poise-languages 2.0.3 → 2.0.4
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 +4 -4
- data/.travis.yml +40 -17
- data/CHANGELOG.md +4 -0
- data/lib/poise_languages/system/resource.rb +1 -1
- data/lib/poise_languages/version.rb +1 -1
- data/poise-languages.gemspec +1 -0
- data/test/gemfiles/chef-12.1.gemfile +3 -0
- data/test/gemfiles/chef-12.10.gemfile +22 -0
- data/test/gemfiles/chef-12.11.gemfile +22 -0
- data/test/gemfiles/chef-12.12.gemfile +21 -0
- data/test/gemfiles/chef-12.13.gemfile +21 -0
- data/test/gemfiles/chef-12.14.gemfile +19 -0
- data/test/gemfiles/chef-12.15.gemfile +19 -0
- data/test/gemfiles/chef-12.2.gemfile +3 -0
- data/test/gemfiles/chef-12.3.gemfile +3 -0
- data/test/gemfiles/chef-12.4.gemfile +3 -1
- data/test/gemfiles/chef-12.5.gemfile +3 -0
- data/test/gemfiles/chef-12.6.gemfile +3 -0
- data/test/gemfiles/chef-12.7.gemfile +3 -0
- data/test/gemfiles/chef-12.8.gemfile +3 -0
- data/test/gemfiles/chef-12.9.gemfile +22 -0
- data/test/gemfiles/chef-12.gemfile +1 -1
- data/test/spec/system/mixin_spec.rb +2 -1
- data/test/spec/system/resource_spec.rb +2 -1
- metadata +30 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa8fb75f5fa14464a435297e7d6fd3d0ad4ec335
|
4
|
+
data.tar.gz: 81c08315aab320fa78dd5290f77ab7d7c1d8927d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6f20fdea1e6bbac5ca1569250e54b701ddb4c7fa168573ee92fb662c6f05a46b32eece1d67f82225c533492f1b64cd937324b609dda072cb9502d041ff50184
|
7
|
+
data.tar.gz: 5421e5fe10fe7df56b386efbd5c9c9d5258e3d37cb7acd151a191358b569b99bc9a2515cfb829c7c78f8fb8fc2f0fc227201f86b4617f6a354717a197eabba56
|
data/.travis.yml
CHANGED
@@ -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
|
-
|
8
|
-
before_install:
|
9
|
-
bundler_args:
|
5
|
+
global: []
|
6
|
+
before_install: gem install bundler
|
7
|
+
bundler_args: '--binstubs=$PWD/bin --jobs 3 --retry 3'
|
10
8
|
script:
|
11
|
-
-
|
12
|
-
|
13
|
-
|
14
|
-
-
|
15
|
-
|
16
|
-
-
|
17
|
-
|
18
|
-
-
|
19
|
-
|
20
|
-
-
|
21
|
-
|
22
|
-
-
|
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
|
data/CHANGELOG.md
CHANGED
@@ -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
|
data/poise-languages.gemspec
CHANGED
@@ -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'
|
@@ -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'
|
@@ -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'
|
@@ -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:
|
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
|
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.
|
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-
|
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
|