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

Commit d2c93fd

Browse files
committed
Merge pull request #360 from rspec/update-travis-build-scripts-2018-12-25-for-master
Updates from rspec-dev (2018-12-25)
1 parent 969aec7 commit d2c93fd

File tree

9 files changed

+22
-12
lines changed

9 files changed

+22
-12
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 2018-12-21T13:15:34+00:00 from the rspec-dev repo.
1+
# This file was generated on 2018-12-25T18:01:30+00: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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2018-12-21T13:15:34+00:00 from the rspec-dev repo.
1+
# This file was generated on 2018-12-25T18:01:30+00: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
language: ruby
@@ -25,6 +25,7 @@ rvm:
2525
- 2.3.8
2626
- 2.4.5
2727
- 2.5.3
28+
- 2.6.0
2829
- ruby-head
2930
- ree
3031
- rbx-3

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 2018-12-21T13:15:34+00:00 from the rspec-dev repo.
1+
# This file was generated on 2018-12-25T18:01:30+00: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}"

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 2018-12-21T13:15:34+00:00 from the rspec-dev repo.
2+
# This file was generated on 2018-12-25T18:01:30+00: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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2018-12-21T13:15:34+00:00 from the rspec-dev repo.
1+
# This file was generated on 2018-12-25T18:01:30+00: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 )"

script/predicate_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 2018-12-21T13:15:34+00:00 from the rspec-dev repo.
1+
# This file was generated on 2018-12-25T18:01:30+00: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 {

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 2018-12-21T13:15:34+00:00 from the rspec-dev repo.
2+
# This file was generated on 2018-12-25T18:01:30+00: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 2018-12-21T13:15:34+00:00 from the rspec-dev repo.
1+
# This file was generated on 2018-12-25T18:01:30+00: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:

spec/rspec/support/source_spec.rb

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,19 @@ module RSpec::Support
7979
describe '#nodes_by_line_number' do
8080
it 'returns a hash containing nodes for each line number' do
8181
expect(source.nodes_by_line_number).to match(
82-
1 => [
83-
an_object_having_attributes(:type => :@int),
84-
an_object_having_attributes(:type => :@ident)
85-
],
82+
1 =>
83+
if RUBY_VERSION >= '2.6.0'
84+
[
85+
an_object_having_attributes(:type => :@int),
86+
an_object_having_attributes(:type => :@period),
87+
an_object_having_attributes(:type => :@ident)
88+
]
89+
else
90+
[
91+
an_object_having_attributes(:type => :@int),
92+
an_object_having_attributes(:type => :@ident)
93+
]
94+
end,
8695
2 => [
8796
an_object_having_attributes(:type => :@ident),
8897
an_object_having_attributes(:type => :@ident)

0 commit comments

Comments
 (0)