poise-languages 2.0.1 → 2.0.2

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: ebe6739da8a1f2c03a97f96eda50c35d148ca8ef
4
- data.tar.gz: 82677b413f32981926ba7c95fd5b55e922cb8b57
3
+ metadata.gz: 37488d2f8c5adc957ff81874a1229328e0630ed4
4
+ data.tar.gz: c3c3e6b0264cfc7adf15d768cfe64dc02de5c02c
5
5
  SHA512:
6
- metadata.gz: b71717b3045efff8151eecf1587e1b67ba70393484ba17f88f30b0edb5b4def1949e06c692de8640b87bfc2fb4fc7ebe6af601c7925a1342fef65aa67e68630e
7
- data.tar.gz: c97f65a1e7fbe88980358bd4ae06772ccab45247fca4a4b6820e8b8e10f43b7435b201e9d259f0bc0c03e7c9dcc19d92b618cb27ba94edba18f75ca32a7f3d86
6
+ metadata.gz: 184db76074b6c80ddd66df87e750de223647bc7579e24132b7ba2ddf858d5495827275d6a703c191922d31f6a6e28caf5ee8ab2f6055747cae9c9174935f38cd
7
+ data.tar.gz: 9f6123eb12a35037ff8b1414d7374322a11021ec623234284f4c55c2724f7ee2ec7b4726caa4d6587de3516391ae7900642c135d1268f0d7a863829150d949bc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## v2.0.2
4
+
5
+ * Don't try to use SCL providers on Amazon Linux.
6
+
3
7
  ## v2.0.1
4
8
 
5
9
  * Don't error on `Chef::Decorator::Lazy` proxy objects for `candidate_version`.
@@ -80,7 +80,8 @@ module PoiseLanguages
80
80
  module ClassMethods
81
81
  def provides_auto?(node, resource)
82
82
  # They don't build 32-bit versions for these and only for RHEL/CentOS.
83
- return false unless node['kernel']['machine'] == 'x86_64' && node.platform_family?('rhel')
83
+ # TODO: What do I do about Fedora and/or Amazon?
84
+ return false unless node['kernel']['machine'] == 'x86_64' && node.platform?('redhat', 'centos')
84
85
  version = inversion_options(node, resource)['version']
85
86
  !!find_scl_package(node, version)
86
87
  end
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module PoiseLanguages
19
- VERSION = '2.0.1'
19
+ VERSION = '2.0.2'
20
20
  end
@@ -203,7 +203,7 @@ EOH
203
203
  let(:new_resource) { double('resource') }
204
204
  subject { provider(:poise_test).provides_auto?(node, new_resource) }
205
205
  before do
206
- allow(node).to receive(:platform_family?) {|name| name == 'rhel' }
206
+ allow(node).to receive(:platform?) {|*names| names.include?('redhat') || names.include?('centos') }
207
207
  allow(provider(:poise_test)).to receive(:inversion_options).with(node, new_resource).and_return({})
208
208
  allow(provider(:poise_test)).to receive(:find_scl_package).with(node, nil).and_return({})
209
209
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poise-languages
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noah Kantrowitz