-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from rspec/prep-for-version-2-0-0
Modernise rspec-its, prepare version 2.0.0 dropping outdated RSpec / Ruby
- Loading branch information
Showing
19 changed files
with
513 additions
and
662 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,4 @@ spec/reports | |
test/tmp | ||
test/version_tmp | ||
tmp | ||
bin/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,26 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
|
||
# Specify your gem's dependencies in rspec-its.gemspec | ||
gemspec | ||
|
||
%w[rspec rspec-core rspec-expectations rspec-mocks rspec-support].each do |lib| | ||
branch = ENV.fetch('BRANCH','main') | ||
branch = ENV.fetch('BRANCH', 'main') | ||
library_path = File.expand_path("../../#{lib}", __FILE__) | ||
|
||
if File.exist?(library_path) && !ENV['USE_GIT_REPOS'] | ||
gem lib, :path => library_path | ||
gem lib, path: library_path | ||
elsif lib == 'rspec' | ||
gem 'rspec', :git => "https://github.com/rspec/rspec-metagem.git", :branch => branch | ||
gem 'rspec', git: "https://github.com/rspec/rspec-metagem.git", branch: branch | ||
else | ||
gem lib, :git => "https://github.com/rspec/#{lib}.git", :branch => branch | ||
gem lib, git: "https://github.com/rspec/#{lib}.git", branch: branch | ||
end | ||
end | ||
|
||
if RUBY_VERSION < '2.2.0' && !!(RbConfig::CONFIG['host_os'] =~ /cygwin|mswin|mingw|bccwin|wince|emx/) | ||
gem 'ffi', '< 1.10' | ||
elsif RUBY_VERSION < '2.4.0' && !!(RbConfig::CONFIG['host_os'] =~ /cygwin|mswin|mingw|bccwin|wince|emx/) | ||
gem 'ffi', '< 1.15' | ||
elsif RUBY_VERSION < '2.0' | ||
gem 'ffi', '< 1.9.19' # ffi dropped Ruby 1.8 support in 1.9.19 | ||
elsif RUBY_VERSION < '2.3.0' | ||
gem 'ffi', '~> 1.12.0' | ||
else | ||
gem 'ffi', '~> 1.15.0' | ||
end | ||
|
||
# test coverage | ||
# gem 'simplecov', :require => false | ||
|
||
gem 'contracts', '< 0.16' if RUBY_VERSION < '1.9.0' | ||
|
||
gem 'coveralls', :require => false, :platform => :mri_20 | ||
|
||
eval File.read('Gemfile-custom') if File.exist?('Gemfile-custom') | ||
gem 'aruba', '~> 2.2.0' | ||
gem 'bundler', '> 2.0.0' | ||
gem 'coveralls', require: false | ||
gem 'cucumber', '>= 1.3.8' | ||
gem 'ffi', '~> 1.17.0' | ||
gem 'matrix', '~> 0.4.2' | ||
gem 'rake', '~> 13.2.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.