gem_pre_unversioned_install 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2220d2c4b3af9b9ac80b9974240d23b462d83d67
4
- data.tar.gz: '089eaa96ce0ef8a735571b5870c221dfe23f23d1'
3
+ metadata.gz: 8c542b773abbd9ced9de46952b65180c28b0a3e1
4
+ data.tar.gz: 6d42201996f0d11a65ee60d1ee0e7b7f03bff047
5
5
  SHA512:
6
- metadata.gz: 24be65709fc33ff6e01bc88d1c55f78ef2027acc8716048f961298d50adc9c8665c219b5dd416511fdba066711eaffb3ec5dfe9d7a2d38bc24baf68db6361540
7
- data.tar.gz: 3eecb360a0fef2df96828d9857d823857da8ef8a81d3ce19eb17d782ef4882b08ea688496e3c9a4256c0b584122be646aaf92ca7a657e81dcdb92b6ea4a6c017
6
+ metadata.gz: 92514f1d3bcbedaff847076d9ba2809c3fb8f1ab1c58c3ed4f45ef83ed4862289550f66d970f4c2e12e088417c82b62249eeeb3a1dea4e7c692cfbed5d2e1b48
7
+ data.tar.gz: 31d53c3e0abaff93898b85aa5daf978c49e41d0f23b367d0c1eac1f56a7280d8c85ff3f0acf4c10356548e58dc41834df352d3cc29c359e47d6607487a9f34ef
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Gem,pre_unversioned_install
1
+ # Gem.pre_unversioned_install
2
2
 
3
3
  This gem provides a RubyGems plugin that adds a hook method called prior to installation of any future RubyGem that uses simply latest version rather than some formal version pinning.
4
4
 
@@ -9,7 +9,7 @@ $LOAD_PATH.merge! [File.expand_path('../lib', __FILE__)]
9
9
  Gem::Specification.new do |spec|
10
10
  raise 'RubyGems 2.0 or newer is required.' unless spec.respond_to?(:metadata)
11
11
  spec.name = 'gem_pre_unversioned_install'
12
- spec.version = '1.0.0'
12
+ spec.version = '1.0.1'
13
13
  spec.authors = ['Andrew Smith']
14
14
  spec.email = ['andrew.smith at moneysupermarket.com']
15
15
 
@@ -50,7 +50,7 @@ Gem.pre_install do |installer|
50
50
  # so we allow our plugins to do the same and trigger this behaviour
51
51
  rval = nil
52
52
  Gem._unversioned_hooks.each do |hook|
53
- break unless (rval = hook.call(spec.name, spec.version))
53
+ break if (rval = hook.call(spec.name, spec.version)) == false
54
54
  end
55
55
  rval
56
56
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem_pre_unversioned_install
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-01 00:00:00.000000000 Z
11
+ date: 2018-03-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Allows custom actions in delivery pipelines for RubyGem installations
14
14
  that have no version specifications