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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/poise_languages/scl/resource.rb +3 -0
- data/lib/poise_languages/system/resource.rb +6 -1
- data/lib/poise_languages/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebe6739da8a1f2c03a97f96eda50c35d148ca8ef
|
4
|
+
data.tar.gz: 82677b413f32981926ba7c95fd5b55e922cb8b57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
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.
|
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-
|
11
|
+
date: 2016-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: halite
|