Skip to content

Commit 28237e0

Browse files
authored
Merge pull request #203 from rspec/update_build_scripts
Update build scripts
2 parents 46b9ebb + ab9c2cc commit 28237e0

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

Rakefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,11 +427,12 @@ def confirm_branch_name(name)
427427
return name unless system("git show-branch #{name} > /dev/null 2>&1")
428428

429429
puts "Branch #{name} already exists, delete? [Y/n] or rename new branch? [r[ename] <name>]"
430-
case STDIN.gets.downcase
431-
when /^y/
430+
case input = STDIN.gets.downcase
431+
when /^y/i
432432
`git branch -D #{name}`
433433
when /^r(?:ename)? (.*)$/
434434
name = $1
435+
when /^n/i
435436
else
436437
abort "Unknown option: #{input}"
437438
end

travis/.travis.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ cache:
66
- ../bundle
77
before_install:
88
- gem update --system # https://github.com/travis-ci/travis-ci/issues/8978#issuecomment-354036443
9+
- gem install bundler
910
- unset _JAVA_OPTIONS
1011
- "script/clone_all_rspec_repos"
11-
# Note this doesn't work on JRUBY 2.0.0 mode so we don't do it, the excluded versions are broken on Ruby 2.3
12-
- if [ "jruby" != "$TRAVIS_RUBY_VERSION" ]; then gem install bundler --version "1.11.2"; fi
13-
- alias bundle="bundle _1.11.2_"
1412
bundler_args: "--binstubs --standalone --without documentation --path ../bundle"
1513
script: "script/run_build"
1614
rvm:
@@ -19,10 +17,10 @@ rvm:
1917
- 1.9.3
2018
- 2.0.0
2119
- 2.1
22-
- 2.2.9
23-
- 2.3.6
24-
- 2.4.3
25-
- 2.5.0
20+
- 2.2.10
21+
- 2.3.7
22+
- 2.4.4
23+
- 2.5.1
2624
- ruby-head
2725
- ree
2826
- rbx-3

0 commit comments

Comments
 (0)