poise-languages 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a246857fd31c0cf4787253270c166b5093090e39
4
- data.tar.gz: 7026c170387e885343071f282efab2bce450ae0b
3
+ metadata.gz: ebe6739da8a1f2c03a97f96eda50c35d148ca8ef
4
+ data.tar.gz: 82677b413f32981926ba7c95fd5b55e922cb8b57
5
5
  SHA512:
6
- metadata.gz: c8dff6c5c9d497b825cf3741d7d2fdb60efb6b5afa9b847dde104f2074d4d34a3b63b54ba2c575e1ec08b401ff446f7242b99183fa96efeb4a62add3b8b6daaf
7
- data.tar.gz: 9c5d5994987986e48970e3f36d234a3fab8dcb10f8b139fb9e9afce0d7133cb7ba8ce2c86814522515ad1881114240eec368be7dc931de51ba76be8cf0881796
6
+ metadata.gz: b71717b3045efff8151eecf1587e1b67ba70393484ba17f88f30b0edb5b4def1949e06c692de8640b87bfc2fb4fc7ebe6af601c7925a1342fef65aa67e68630e
7
+ data.tar.gz: c97f65a1e7fbe88980358bd4ae06772ccab45247fca4a4b6820e8b8e10f43b7435b201e9d259f0bc0c03e7c9dcc19d92b618cb27ba94edba18f75ca32a7f3d86
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## v2.0.1
4
+
5
+ * Don't error on `Chef::Decorator::Lazy` proxy objects for `candidate_version`.
6
+ * Retry system and SCL package installs because transient network failures.
7
+
3
8
  ## v2.0.0
4
9
 
5
10
  * Backwards-incompatible change to SCL management to comply with their new repo
@@ -116,6 +116,7 @@ module PoiseLanguages
116
116
  # important when they happen. If this breaks your prod infra, I'm
117
117
  # sorry :-(
118
118
  action :upgrade
119
+ retries 5
119
120
  end
120
121
  end
121
122
  end
@@ -132,6 +133,7 @@ module PoiseLanguages
132
133
  def install_scl_package(action)
133
134
  package new_resource.package_name do
134
135
  action action
136
+ retries 5
135
137
  version new_resource.version
136
138
  end
137
139
  end
@@ -139,6 +141,7 @@ module PoiseLanguages
139
141
  def install_scl_devel_package(action)
140
142
  package new_resource.dev_package do
141
143
  action action
144
+ retries 5
142
145
  version new_resource.version
143
146
  end
144
147
  end
@@ -140,6 +140,7 @@ module PoiseLanguages
140
140
  r.version(version)
141
141
  r.action(action)
142
142
  r.declared_type = :package
143
+ r.retries(5)
143
144
  end
144
145
  end
145
146
  else
@@ -147,6 +148,7 @@ module PoiseLanguages
147
148
  r.version(packages.values)
148
149
  r.action(action)
149
150
  r.declared_type = :package
151
+ r.retries(5)
150
152
  end]
151
153
  end
152
154
  end
@@ -189,7 +191,10 @@ module PoiseLanguages
189
191
  define_method(:load_current_resource) do
190
192
  super().tap do |_|
191
193
  each_package do |package_name, new_version, current_version, candidate_version|
192
- unless candidate_version && candidate_version.start_with?(version)
194
+ # In Chef 12.14+, candidate_version is a Chef::Decorator::Lazy object
195
+ # so we need the nil? check to see if the object being proxied is
196
+ # nil (i.e. there is no version).
197
+ unless candidate_version && (!candidate_version.nil?) && candidate_version.start_with?(version)
193
198
  raise PoiseLanguages::Error.new("Package #{package_name} would install #{candidate_version}, which does not match #{version.empty? ? version.inspect : version}. Please set the package_name or package_version provider options.")
194
199
  end
195
200
  end
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module PoiseLanguages
19
- VERSION = '2.0.0'
19
+ VERSION = '2.0.1'
20
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poise-languages
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noah Kantrowitz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-29 00:00:00.000000000 Z
11
+ date: 2016-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: halite