poise-languages 2.0.3 → 2.0.4

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: a0dd01ed6eb47171782da7f2fa43d1d4115ba543
4
- data.tar.gz: d6c1cbda3452daecf72031e8b8e30e196bd746bf
3
+ metadata.gz: aa8fb75f5fa14464a435297e7d6fd3d0ad4ec335
4
+ data.tar.gz: 81c08315aab320fa78dd5290f77ab7d7c1d8927d
5
5
  SHA512:
6
- metadata.gz: 2b4d786b663cab44e18fb3381ca8e0daf1ded3c8bb5946263bb044a12218609cd3e2291e92f6b152ae5b3a477e454715232ca3e1e7ef3c96a23c8d1534d9491d
7
- data.tar.gz: a04fb627b5728e8e3f991fd3c3d23918b6ef6de3d12fbd6d21178cf799cae0b9f8dcde2fff48edc23b947b3e2929cf80f9f18dfbbe626f94a2c5a91fd5b3060e
6
+ metadata.gz: e6f20fdea1e6bbac5ca1569250e54b701ddb4c7fa168573ee92fb662c6f05a46b32eece1d67f82225c533492f1b64cd937324b609dda072cb9502d041ff50184
7
+ data.tar.gz: 5421e5fe10fe7df56b386efbd5c9c9d5258e3d37cb7acd151a191358b569b99bc9a2515cfb829c7c78f8fb8fc2f0fc227201f86b4617f6a354717a197eabba56
@@ -1,22 +1,45 @@
1
1
  sudo: false
2
2
  cache: bundler
3
3
  language: ruby
4
- rvm:
5
- - 2.3.1
6
4
  env:
7
- - secure: hBSCgjWddgLHgzkhAx1ItgA0joNdevIwYgo6B34fJ9meGVuntP1zbHgEJ/H4wzCnxumU7cvGo0DOy93nctrpy/El9YeQ8pqfqwt0vywDBY7FhNoRV2oW59+TsvOyUvdmO6YThv17qjzWf19Ag15A5X5LgfbCrFdubXpueOSMfgSsHzny3cjF+GTuh8Ykvs8U8914JlhLNc7k7Z/cyXog7i3sO83vaHEWUBytEsnBIc1YXbbp3d1B+7YiF2EDrFxMbyN2BjmjrWpkpl31SgiyneCmw8Vj8Q4T3seK9qRrLeX5HvIdtSa0YLTvxO4kfrsNlgcJgLOmVqqMo2EStT2LRDR1DdeP9Nj8RinqkNQ7lOl4InNK7IM6Kl56dgGmnt7ZVs2kVt1xhzqWQEcRYbP14kUocCzt6A9p4gLy9trQTkBGqgCIcxFqiyfXPLJv3yAYQovGemkv6WfPAViPum7GL+98pBj0TFbiRLLcOljijbAQOi7R2VTdgaHJVBDQ5u8R9mtcecTyiBJwgYn0INY7IjpGoL1mepRNBfG9gW1+awyfvGLeYXe3dISuaPUDKZHaRSKIvJIo2Pi/OxYUPsBLiF4cL8fg6DiB9Ly/AHmI2fgct+lvkByq6ec4NlSWpSyBRtBYF7uCEkXSeSo2MPCEmPxoY/S4pO6Jz6LPtzWRdRk=
8
- before_install: "gem install bundler"
9
- bundler_args: "--binstubs=$PWD/bin --jobs 3 --retry 3"
5
+ global: []
6
+ before_install: gem install bundler
7
+ bundler_args: '--binstubs=$PWD/bin --jobs 3 --retry 3'
10
8
  script:
11
- - "./bin/rake travis"
12
- gemfile:
13
- - test/gemfiles/chef-12.gemfile
14
- - test/gemfiles/chef-12.1.gemfile
15
- - test/gemfiles/chef-12.2.gemfile
16
- - test/gemfiles/chef-12.3.gemfile
17
- - test/gemfiles/chef-12.4.gemfile
18
- - test/gemfiles/chef-12.5.gemfile
19
- - test/gemfiles/chef-12.6.gemfile
20
- - test/gemfiles/chef-12.7.gemfile
21
- - test/gemfiles/chef-12.8.gemfile
22
- - test/gemfiles/master.gemfile
9
+ - ./bin/rake travis
10
+ matrix:
11
+ include:
12
+ - rvm: 2.3.1
13
+ gemfile: test/gemfiles/chef-12.gemfile
14
+ - rvm: 2.1.4
15
+ gemfile: test/gemfiles/chef-12.1.gemfile
16
+ - rvm: 2.1.4
17
+ gemfile: test/gemfiles/chef-12.2.gemfile
18
+ - rvm: 2.1.4
19
+ gemfile: test/gemfiles/chef-12.3.gemfile
20
+ - rvm: 2.1.6
21
+ gemfile: test/gemfiles/chef-12.4.gemfile
22
+ - rvm: 2.1.6
23
+ gemfile: test/gemfiles/chef-12.5.gemfile
24
+ - rvm: 2.1.6
25
+ gemfile: test/gemfiles/chef-12.6.gemfile
26
+ - rvm: 2.1.6
27
+ gemfile: test/gemfiles/chef-12.7.gemfile
28
+ - rvm: 2.1.6
29
+ gemfile: test/gemfiles/chef-12.8.gemfile
30
+ - rvm: 2.1.8
31
+ gemfile: test/gemfiles/chef-12.9.gemfile
32
+ - rvm: 2.1.8
33
+ gemfile: test/gemfiles/chef-12.10.gemfile
34
+ - rvm: 2.1.8
35
+ gemfile: test/gemfiles/chef-12.11.gemfile
36
+ - rvm: 2.1.8
37
+ gemfile: test/gemfiles/chef-12.12.gemfile
38
+ - rvm: 2.1.9
39
+ gemfile: test/gemfiles/chef-12.13.gemfile
40
+ - rvm: 2.3.1
41
+ gemfile: test/gemfiles/chef-12.14.gemfile
42
+ - rvm: 2.3.1
43
+ gemfile: test/gemfiles/chef-12.15.gemfile
44
+ - rvm: 2.3.1
45
+ gemfile: test/gemfiles/master.gemfile
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## v2.0.4
4
+
5
+ * Fixes to work with the latest Chef.
6
+
3
7
  ## v2.0.3
4
8
 
5
9
  * Correct the subscription repository name used for SCLs on RedHat.
@@ -194,7 +194,7 @@ module PoiseLanguages
194
194
  # In Chef 12.14+, candidate_version is a Chef::Decorator::Lazy object
195
195
  # so we need the nil? check to see if the object being proxied is
196
196
  # nil (i.e. there is no version).
197
- unless candidate_version && (!candidate_version.nil?) && candidate_version.start_with?(version)
197
+ unless candidate_version && (!candidate_version.nil?) && (!candidate_version.empty?) && candidate_version.start_with?(version)
198
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.")
199
199
  end
200
200
  end
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module PoiseLanguages
19
- VERSION = '2.0.3'
19
+ VERSION = '2.0.4'
20
20
  end
@@ -33,6 +33,7 @@ Gem::Specification.new do |spec|
33
33
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
34
34
  spec.require_paths = %w{lib}
35
35
 
36
+ spec.add_dependency 'chef', '~> 12.1'
36
37
  spec.add_dependency 'halite', '~> 1.0'
37
38
  spec.add_dependency 'poise', '~> 2.5'
38
39
  spec.add_dependency 'poise-archive', '~> 1.0'
@@ -17,3 +17,6 @@
17
17
  eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
18
18
 
19
19
  gem 'chef', '~> 12.1.2'
20
+ gem 'rack', '< 2'
21
+ gem 'foodcritic', '< 8'
22
+ gem 'fauxhai', '<= 3.9.0'
@@ -0,0 +1,22 @@
1
+ #
2
+ # Copyright 2016, Noah Kantrowitz
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
+ eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
18
+
19
+ gem 'chef', '~> 12.10.24'
20
+ gem 'rack', '< 2'
21
+ gem 'foodcritic', '< 8'
22
+ gem 'fauxhai', '<= 3.9.0'
@@ -0,0 +1,22 @@
1
+ #
2
+ # Copyright 2016, Noah Kantrowitz
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
+ eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
18
+
19
+ gem 'chef', '~> 12.11.18'
20
+ gem 'rack', '< 2'
21
+ gem 'foodcritic', '< 8'
22
+ gem 'fauxhai', '<= 3.9.0'
@@ -0,0 +1,21 @@
1
+ #
2
+ # Copyright 2016, Noah Kantrowitz
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
+ eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
18
+
19
+ gem 'chef', '~> 12.12.15'
20
+ gem 'foodcritic', '< 8'
21
+ gem 'fauxhai', '<= 3.9.0'
@@ -0,0 +1,21 @@
1
+ #
2
+ # Copyright 2016, Noah Kantrowitz
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
+ eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
18
+
19
+ gem 'chef', '~> 12.13.37'
20
+ gem 'foodcritic', '< 8'
21
+ gem 'fauxhai', '<= 3.9.0'
@@ -0,0 +1,19 @@
1
+ #
2
+ # Copyright 2016, Noah Kantrowitz
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
+ eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
18
+
19
+ gem 'chef', '~> 12.14.89'
@@ -0,0 +1,19 @@
1
+ #
2
+ # Copyright 2016, Noah Kantrowitz
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
+ eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
18
+
19
+ gem 'chef', '~> 12.15.19'
@@ -17,3 +17,6 @@
17
17
  eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
18
18
 
19
19
  gem 'chef', '~> 12.2.1'
20
+ gem 'rack', '< 2'
21
+ gem 'foodcritic', '< 8'
22
+ gem 'fauxhai', '<= 3.9.0'
@@ -17,3 +17,6 @@
17
17
  eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
18
18
 
19
19
  gem 'chef', '~> 12.3.0'
20
+ gem 'rack', '< 2'
21
+ gem 'foodcritic', '< 8'
22
+ gem 'fauxhai', '<= 3.9.0'
@@ -17,5 +17,7 @@
17
17
  eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
18
18
 
19
19
  gem 'chef', '~> 12.4.3'
20
- # Pending https://github.com/berkshelf/ridley/pull/335
20
+ gem 'rack', '< 2'
21
21
  gem 'ridley', '4.4.1'
22
+ gem 'foodcritic', '< 8'
23
+ gem 'fauxhai', '<= 3.9.0'
@@ -17,3 +17,6 @@
17
17
  eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
18
18
 
19
19
  gem 'chef', '~> 12.5.1'
20
+ gem 'rack', '< 2'
21
+ gem 'foodcritic', '< 8'
22
+ gem 'fauxhai', '<= 3.9.0'
@@ -17,3 +17,6 @@
17
17
  eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
18
18
 
19
19
  gem 'chef', '~> 12.6.0'
20
+ gem 'rack', '< 2'
21
+ gem 'foodcritic', '< 8'
22
+ gem 'fauxhai', '<= 3.9.0'
@@ -17,3 +17,6 @@
17
17
  eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
18
18
 
19
19
  gem 'chef', '~> 12.7.2'
20
+ gem 'rack', '< 2'
21
+ gem 'foodcritic', '< 8'
22
+ gem 'fauxhai', '<= 3.9.0'
@@ -17,3 +17,6 @@
17
17
  eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
18
18
 
19
19
  gem 'chef', '~> 12.8.1'
20
+ gem 'rack', '< 2'
21
+ gem 'foodcritic', '< 8'
22
+ gem 'fauxhai', '<= 3.9.0'
@@ -0,0 +1,22 @@
1
+ #
2
+ # Copyright 2016, Noah Kantrowitz
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
+ eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
18
+
19
+ gem 'chef', '~> 12.9.41'
20
+ gem 'rack', '< 2'
21
+ gem 'foodcritic', '< 8'
22
+ gem 'fauxhai', '<= 3.9.0'
@@ -16,4 +16,4 @@
16
16
 
17
17
  eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
18
18
 
19
- gem 'chef', '~> 12.6'
19
+ gem 'chef', '~> 12.15'
@@ -23,6 +23,7 @@ describe PoiseLanguages::System::Mixin do
23
23
  end
24
24
 
25
25
  describe '#install_system_packages' do
26
+ let(:chefspec_options) { {platform: 'ubuntu', version: '16.04'} }
26
27
  provider(:poise_test) do
27
28
  include Poise
28
29
  include described_class
@@ -41,7 +42,7 @@ describe PoiseLanguages::System::Mixin do
41
42
  end
42
43
 
43
44
  it { is_expected.to install_poise_languages_system('mylang').with(parent: chef_run.poise_test('test'),
44
- dev_package: nil,
45
+ dev_package: 'mylang-dev',
45
46
  dev_package_overrides: {},
46
47
  package_version: nil,
47
48
  version: '') }
@@ -36,7 +36,8 @@ describe PoiseLanguages::System::Resource do
36
36
  current_resource
37
37
  end
38
38
  def install_package(name, version)
39
- run_context.resource_collection << new_resource unless run_context.resource_collection.keys.include?(new_resource.to_s)
39
+ rc = defined?(Chef.run_context) ? Chef.run_context : self.run_context
40
+ rc.resource_collection << new_resource unless rc.resource_collection.keys.include?(new_resource.to_s)
40
41
  end
41
42
  alias_method :upgrade_package, :install_package
42
43
  alias_method :remove_package, :install_package
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poise-languages
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
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-09-12 00:00:00.000000000 Z
11
+ date: 2016-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: chef
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '12.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '12.1'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: halite
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -100,6 +114,12 @@ files:
100
114
  - test/docker/docker.ca
101
115
  - test/docker/docker.pem
102
116
  - test/gemfiles/chef-12.1.gemfile
117
+ - test/gemfiles/chef-12.10.gemfile
118
+ - test/gemfiles/chef-12.11.gemfile
119
+ - test/gemfiles/chef-12.12.gemfile
120
+ - test/gemfiles/chef-12.13.gemfile
121
+ - test/gemfiles/chef-12.14.gemfile
122
+ - test/gemfiles/chef-12.15.gemfile
103
123
  - test/gemfiles/chef-12.2.gemfile
104
124
  - test/gemfiles/chef-12.3.gemfile
105
125
  - test/gemfiles/chef-12.4.gemfile
@@ -107,6 +127,7 @@ files:
107
127
  - test/gemfiles/chef-12.6.gemfile
108
128
  - test/gemfiles/chef-12.7.gemfile
109
129
  - test/gemfiles/chef-12.8.gemfile
130
+ - test/gemfiles/chef-12.9.gemfile
110
131
  - test/gemfiles/chef-12.gemfile
111
132
  - test/gemfiles/master.gemfile
112
133
  - test/spec/command/mixin_spec.rb
@@ -146,6 +167,12 @@ test_files:
146
167
  - test/docker/docker.ca
147
168
  - test/docker/docker.pem
148
169
  - test/gemfiles/chef-12.1.gemfile
170
+ - test/gemfiles/chef-12.10.gemfile
171
+ - test/gemfiles/chef-12.11.gemfile
172
+ - test/gemfiles/chef-12.12.gemfile
173
+ - test/gemfiles/chef-12.13.gemfile
174
+ - test/gemfiles/chef-12.14.gemfile
175
+ - test/gemfiles/chef-12.15.gemfile
149
176
  - test/gemfiles/chef-12.2.gemfile
150
177
  - test/gemfiles/chef-12.3.gemfile
151
178
  - test/gemfiles/chef-12.4.gemfile
@@ -153,6 +180,7 @@ test_files:
153
180
  - test/gemfiles/chef-12.6.gemfile
154
181
  - test/gemfiles/chef-12.7.gemfile
155
182
  - test/gemfiles/chef-12.8.gemfile
183
+ - test/gemfiles/chef-12.9.gemfile
156
184
  - test/gemfiles/chef-12.gemfile
157
185
  - test/gemfiles/master.gemfile
158
186
  - test/spec/command/mixin_spec.rb