executable-hooks 1.4.1 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.4.2
4
+ date: 2018-02-14
5
+
6
+ - Support rubygems 1.4.2, fixes #29
7
+
3
8
  ## 1.4.1
4
9
  date: 2018-02-12
5
10
 
@@ -1,3 +1,3 @@
1
1
  module ExecutableHooks
2
- VERSION = "1.4.1"
2
+ VERSION = "1.4.2"
3
3
  end
@@ -16,7 +16,7 @@ module ExecutableHooks
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
@@ -13,7 +13,10 @@ if
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
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: executable-hooks
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 4
9
- - 1
10
- version: 1.4.1
9
+ - 2
10
+ version: 1.4.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michal Papis
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2018-02-12 00:00:00 +01:00
18
+ date: 2018-02-14 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency