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

Commit 36abad6

Browse files
committed
Merge pull request #247 from rspec/update-travis-build-scripts-2015-10-13-for-master
Updates from rspec-dev (2015-10-13)
2 parents 9bdb4ab + 723bad9 commit 36abad6

File tree

10 files changed

+14
-15
lines changed

10 files changed

+14
-15
lines changed

.rubocop_rspec_base.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2015-08-13T10:40:53+01:00 from the rspec-dev repo.
1+
# This file was generated on 2015-10-13T18:52:09-07: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
@@ -101,9 +101,9 @@ Proc:
101101
RedundantReturn:
102102
AllowMultipleReturnValues: true
103103

104-
# We have to rescue Exception in the `raise_error` matcher for it to work properly.
104+
# Exceptions should be rescued with `Support::AllExceptionsExceptOnesWeMustNotRescue`
105105
RescueException:
106-
Enabled: false
106+
Enabled: true
107107

108108
# We haven't adopted the `fail` to signal exceptions vs `raise` for re-raises convention.
109109
SignalException:

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2015-08-13T10:40:53+01:00 from the rspec-dev repo.
1+
# This file was generated on 2015-10-13T18:52:09-07: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
@@ -8,9 +8,8 @@ cache:
88
- ../bundle
99
before_install:
1010
- "script/clone_all_rspec_repos"
11-
# Downgrade bundler to work around https://github.com/bundler/bundler/issues/3004
1211
# Note this doesn't work on JRUBY 2.0.0 mode so we don't do it
13-
- if [ -z "$JRUBY_OPTS" ]; then gem install bundler -v=1.5.3 && alias bundle="bundle _1.5.3_"; fi
12+
- if [ "jruby" != "$TRAVIS_RUBY_VERSION" ]; then gem install bundler; fi
1413
bundler_args: "--binstubs --standalone --without documentation --path ../bundle"
1514
script: "script/run_build"
1615
rvm:

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 2015-08-13T10:40:53+01:00 from the rspec-dev repo.
1+
# This file was generated on 2015-10-13T18:52:09-07: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}"

lib/rspec/support.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def self.method_handle_for(object, method_name)
5151
handle = object.method(method_name)
5252
raise original unless handle.is_a? Method
5353
handle
54-
rescue Exception
54+
rescue Support::AllExceptionsExceptOnesWeMustNotRescue
5555
raise original
5656
end
5757
end
@@ -67,7 +67,7 @@ def self.method_handle_for(object, method_name)
6767
handle = object.method(method_name)
6868
raise original unless handle.is_a? Method
6969
handle
70-
rescue Exception
70+
rescue Support::AllExceptionsExceptOnesWeMustNotRescue
7171
raise original
7272
end
7373
end

lib/rspec/support/spec/in_sub_process.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def in_sub_process(prevent_warnings=true)
1616
begin
1717
yield
1818
warning_preventer.verify_no_warnings! if prevent_warnings
19-
rescue Exception => e
19+
rescue Support::AllExceptionsExceptOnesWeMustNotRescue => e
2020
exception = e
2121
end
2222

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 2015-08-13T10:40:53+01:00 from the rspec-dev repo.
2+
# This file was generated on 2015-10-13T18:52:09-07: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 2015-08-13T10:40:53+01:00 from the rspec-dev repo.
1+
# This file was generated on 2015-10-13T18:52:09-07: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 2015-08-13T10:40:53+01:00 from the rspec-dev repo.
1+
# This file was generated on 2015-10-13T18:52:09-07: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 2015-08-13T10:40:53+01:00 from the rspec-dev repo.
2+
# This file was generated on 2015-10-13T18:52:09-07: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 2015-08-13T10:40:53+01:00 from the rspec-dev repo.
1+
# This file was generated on 2015-10-13T18:52:09-07: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:

0 commit comments

Comments
 (0)