File tree 3 files changed +7
-2
lines changed
3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ notifications:
25
25
matrix :
26
26
fast_finish : true
27
27
include :
28
+ - rvm : 1.8.7
29
+ env : WITH_RUBYGEMS=1.4.2
28
30
- rvm : 1.8.7
29
31
env : WITH_RUBYGEMS=1.6.2
30
32
- rvm : 2.5
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ def self.expanded_wrapper_name
16
16
attr_reader :options
17
17
18
18
def initialize ( options )
19
- @options = options || { }
19
+ @options = options || RegenerateBinstubsCommand . default_install_options
20
20
end
21
21
22
22
def install
Original file line number Diff line number Diff line change 13
13
14
14
# Set the custom_shebang if user did not set one
15
15
Gem . pre_install do |gem_installer |
16
- ExecutableHooks ::Wrapper . new ( gem_installer . options ) . install
16
+ options = if gem_installer . methods . map ( &:to_s ) . include? ( 'options' )
17
+ gem_installer . options
18
+ end
19
+ ExecutableHooks ::Wrapper . new ( options ) . install
17
20
end
18
21
19
22
if Gem ::Version . new ( Gem ::VERSION ) < Gem ::Version . new ( '2.0' ) then
You can’t perform that action at this time.
0 commit comments