Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 3fd32d5

Browse files
committed
Sync build with master
1 parent 17a63b5 commit 3fd32d5

12 files changed

+47
-20
lines changed

.rubocop_rspec_base.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2019-12-26T17:20:33+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-04-03T18:53:24+03:00 from the rspec-dev repo.
22
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
33

44
# This file contains defaults for RSpec projects. Individual projects

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2019-12-26T17:20:33+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-04-03T18:53:24+03:00 from the rspec-dev repo.
22
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
33

44
# In order to install old Rubies, we need to use old Ubuntu distibution.
@@ -22,10 +22,10 @@ rvm:
2222
- 2.1
2323
- 2.2.10
2424
- 2.3.8
25-
- 2.4.9
26-
- 2.5.7
27-
- 2.6.5
28-
- 2.7.0
25+
- 2.4.10
26+
- 2.5.8
27+
- 2.6.6
28+
- 2.7.1
2929
- ruby-head
3030
- ree
3131
- rbx-3

Gemfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,22 @@ branch = File.read(File.expand_path("../maintenance-branch", __FILE__)).chomp
1313
end
1414
end
1515

16+
if RUBY_VERSION < '1.9.3'
17+
gem 'rake', '< 11.0.0' # rake 11 requires Ruby 1.9.3 or later
18+
elsif RUBY_VERSION < '2.0.0'
19+
gem 'rake', '< 12.0.0' # rake 12 requires Ruby 2.0.0 or later
20+
else
21+
gem 'rake', '>= 12.3.3'
22+
end
23+
24+
if RUBY_VERSION < '2.2.0' && !!(RbConfig::CONFIG['host_os'] =~ /cygwin|mswin|mingw|bccwin|wince|emx/)
25+
gem "childprocess", "< 1.0.0"
26+
elsif RUBY_VERSION < '2.3.0'
27+
gem "childprocess", "< 3.0.0"
28+
else
29+
gem "childprocess", ">= 3.0.0"
30+
end
31+
1632
### dep for ci/coverage
1733
gem 'simplecov', '~> 0.8'
1834

Rakefile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,12 @@ end
2323

2424
task :build => :verify_private_key_present
2525

26-
require 'rubocop/rake_task'
27-
desc 'Run RuboCop on the lib directory'
28-
RuboCop::RakeTask.new(:rubocop) do |task|
29-
task.patterns = ['lib/**/*.rb']
26+
begin
27+
require 'rubocop/rake_task'
28+
desc 'Run RuboCop on the lib directory'
29+
RuboCop::RakeTask.new(:rubocop) do |task|
30+
task.patterns = ['lib/**/*.rb']
31+
end
32+
rescue LoadError
33+
# No rubocop means no rubocop rake task
3034
end

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2019-12-26T17:20:33+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-04-03T18:53:24+03:00 from the rspec-dev repo.
22
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
33

44
version: "{build}"

rspec-support.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ Gem::Specification.new do |spec|
3535

3636
spec.required_ruby_version = '>= 1.8.7'
3737

38-
spec.add_development_dependency "rake", "~> 10.0.0"
38+
spec.add_development_dependency "rake", "> 10.0.0"
3939
spec.add_development_dependency "thread_order", "~> 1.1.0"
4040
end

script/clone_all_rspec_repos

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# This file was generated on 2019-12-26T17:20:33+00:00 from the rspec-dev repo.
2+
# This file was generated on 2020-04-03T18:53:24+03:00 from the rspec-dev repo.
33
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
44

55
set -e

script/functions.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2019-12-26T17:20:33+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-04-03T18:53:24+03:00 from the rspec-dev repo.
22
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
33

44
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
@@ -187,7 +187,6 @@ function run_all_spec_suites {
187187
fold "rspec-core specs" run_spec_suite_for "rspec-core"
188188
fold "rspec-expectations specs" run_spec_suite_for "rspec-expectations"
189189
fold "rspec-mocks specs" run_spec_suite_for "rspec-mocks"
190-
191190
if rspec_rails_compatible; then
192191
fold "rspec-rails specs" run_spec_suite_for "rspec-rails"
193192
fi

script/predicate_functions.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2019-12-26T17:20:33+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-04-03T18:53:24+03:00 from the rspec-dev repo.
22
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
33

44
function is_mri {
@@ -65,8 +65,16 @@ function is_ruby_23_plus {
6565
fi
6666
}
6767

68+
function is_ruby_25_plus {
69+
if ruby -e "exit(RUBY_VERSION.to_f >= 2.5)"; then
70+
return 0
71+
else
72+
return 1
73+
fi
74+
}
75+
6876
function rspec_rails_compatible {
69-
if is_ruby_23_plus; then
77+
if is_ruby_25_plus; then
7078
return 0
7179
else
7280
return 1

script/run_build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# This file was generated on 2019-12-26T17:20:33+00:00 from the rspec-dev repo.
2+
# This file was generated on 2020-04-03T18:53:24+03:00 from the rspec-dev repo.
33
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
44

55
set -e

script/travis_functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2019-12-26T17:20:33+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-04-03T18:53:24+03:00 from the rspec-dev repo.
22
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
33

44
# Taken from:

script/update_rubygems_and_install_bundler

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# This file was generated on 2019-12-26T17:20:33+00:00 from the rspec-dev repo.
2+
# This file was generated on 2020-04-03T18:53:24+03:00 from the rspec-dev repo.
33
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
44

55
set -e

0 commit comments

Comments
 (0)