poise-javascript 1.1.0 → 1.2.0
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 +9 -1
- data/CHANGELOG.md +5 -0
- data/Gemfile +1 -1
- data/README.md +1 -1
- data/Rakefile +1 -1
- data/chef/attributes/default.rb +1 -1
- data/chef/recipes/default.rb +1 -1
- data/lib/poise_javascript.rb +1 -1
- data/lib/poise_javascript/cheftie.rb +1 -1
- data/lib/poise_javascript/error.rb +1 -1
- data/lib/poise_javascript/javascript_command_mixin.rb +1 -1
- data/lib/poise_javascript/javascript_providers.rb +1 -1
- data/lib/poise_javascript/javascript_providers/base.rb +1 -1
- data/lib/poise_javascript/javascript_providers/dummy.rb +1 -1
- data/lib/poise_javascript/javascript_providers/iojs.rb +1 -1
- data/lib/poise_javascript/javascript_providers/nodejs.rb +2 -2
- data/lib/poise_javascript/javascript_providers/scl.rb +1 -1
- data/lib/poise_javascript/javascript_providers/system.rb +1 -1
- data/lib/poise_javascript/resources.rb +1 -1
- data/lib/poise_javascript/resources/javascript_execute.rb +1 -1
- data/lib/poise_javascript/resources/javascript_runtime.rb +1 -1
- data/lib/poise_javascript/resources/javascript_runtime_test.rb +1 -1
- data/lib/poise_javascript/resources/node_package.rb +1 -1
- data/lib/poise_javascript/resources/npm_install.rb +1 -1
- data/lib/poise_javascript/version.rb +2 -2
- data/poise-javascript.gemspec +2 -2
- data/test/cookbooks/poise-javascript_test/metadata.rb +1 -1
- data/test/cookbooks/poise-javascript_test/recipes/default.rb +3 -3
- data/test/gemfiles/chef-12.1.gemfile +3 -1
- data/test/gemfiles/chef-12.10.gemfile +3 -1
- data/test/gemfiles/chef-12.11.gemfile +3 -1
- data/test/gemfiles/chef-12.12.gemfile +3 -1
- data/test/gemfiles/chef-12.13.gemfile +3 -1
- data/test/gemfiles/chef-12.14.gemfile +19 -0
- data/test/gemfiles/chef-12.15.gemfile +19 -0
- data/test/gemfiles/chef-12.16.gemfile +19 -0
- data/test/gemfiles/chef-12.17.gemfile +19 -0
- data/test/gemfiles/chef-12.2.gemfile +3 -1
- data/test/gemfiles/chef-12.3.gemfile +3 -1
- data/test/gemfiles/chef-12.4.gemfile +4 -2
- data/test/gemfiles/chef-12.5.gemfile +3 -1
- data/test/gemfiles/chef-12.6.gemfile +3 -1
- data/test/gemfiles/chef-12.7.gemfile +3 -1
- data/test/gemfiles/chef-12.8.gemfile +3 -1
- data/test/gemfiles/chef-12.9.gemfile +3 -1
- data/test/gemfiles/chef-12.gemfile +2 -2
- data/test/gemfiles/master.gemfile +2 -1
- data/test/integration/default/serverspec/default_spec.rb +1 -1
- data/test/spec/javascript_command_mixin_spec.rb +1 -1
- data/test/spec/javascript_providers/base_spec.rb +1 -1
- data/test/spec/javascript_providers/dummy_spec.rb +1 -1
- data/test/spec/javascript_providers/iojs_spec.rb +1 -1
- data/test/spec/javascript_providers/nodejs_spec.rb +25 -7
- data/test/spec/javascript_providers/scl_spec.rb +1 -1
- data/test/spec/javascript_providers/system_spec.rb +1 -1
- data/test/spec/resources/javascript_execute_spec.rb +1 -1
- data/test/spec/resources/node_package_spec.rb +2 -2
- data/test/spec/resources/npm_install_spec.rb +1 -1
- data/test/spec/spec_helper.rb +1 -1
- metadata +19 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cdba8eea67b36da2fdd7d1e1489c68c873df3dac
|
|
4
|
+
data.tar.gz: 921e0371240bb0fd6858fbc3fe5d125136c25814
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6c06daf4b53e478dfb9b346509425f448a85a35a7643d05aac694d2a28bed975934b34ebfeb626fba7926d356651dd3a005f187bedef72ff861d25ac9fbfa012
|
|
7
|
+
data.tar.gz: a064b4b46f6fd5d4e4804306adda58e15628aa4e3abcb4e5ecbd7740ae90f72f8e7d70080cedab6f11c797fec677b2cb514870075314dd5039ca7b1d7235a313
|
data/.travis.yml
CHANGED
|
@@ -10,7 +10,7 @@ script:
|
|
|
10
10
|
- ./bin/rake travis
|
|
11
11
|
matrix:
|
|
12
12
|
include:
|
|
13
|
-
- rvm: 2.1
|
|
13
|
+
- rvm: 2.3.1
|
|
14
14
|
gemfile: test/gemfiles/chef-12.gemfile
|
|
15
15
|
- rvm: 2.1.4
|
|
16
16
|
gemfile: test/gemfiles/chef-12.1.gemfile
|
|
@@ -38,5 +38,13 @@ matrix:
|
|
|
38
38
|
gemfile: test/gemfiles/chef-12.12.gemfile
|
|
39
39
|
- rvm: 2.1.9
|
|
40
40
|
gemfile: test/gemfiles/chef-12.13.gemfile
|
|
41
|
+
- rvm: 2.3.1
|
|
42
|
+
gemfile: test/gemfiles/chef-12.14.gemfile
|
|
43
|
+
- rvm: 2.3.1
|
|
44
|
+
gemfile: test/gemfiles/chef-12.15.gemfile
|
|
45
|
+
- rvm: 2.3.1
|
|
46
|
+
gemfile: test/gemfiles/chef-12.16.gemfile
|
|
47
|
+
- rvm: 2.3.1
|
|
48
|
+
gemfile: test/gemfiles/chef-12.17.gemfile
|
|
41
49
|
- rvm: 2.3.1
|
|
42
50
|
gemfile: test/gemfiles/master.gemfile
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -317,7 +317,7 @@ The Poise test server infrastructure is sponsored by [Rackspace](https://rackspa
|
|
|
317
317
|
|
|
318
318
|
## License
|
|
319
319
|
|
|
320
|
-
Copyright 2015-
|
|
320
|
+
Copyright 2015-2017, Noah Kantrowitz
|
|
321
321
|
|
|
322
322
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
323
323
|
you may not use this file except in compliance with the License.
|
data/Rakefile
CHANGED
data/chef/attributes/default.rb
CHANGED
data/chef/recipes/default.rb
CHANGED
data/lib/poise_javascript.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright 2015-
|
|
2
|
+
# Copyright 2015-2017, Noah Kantrowitz
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -27,7 +27,7 @@ module PoiseJavascript
|
|
|
27
27
|
provides(:nodejs)
|
|
28
28
|
include PoiseLanguages::Static(
|
|
29
29
|
# 4.x is still first here because that is what NodeJS recommends.
|
|
30
|
-
versions: %w{4.5.0 6.4.0 6.3.1 6.2.2 6.
|
|
30
|
+
versions: %w{6.10.2 7.9.0 7.8.0 7.7.4 7.6.0 7.5.0 7.4.0 7.3.0 7.2.1 7.1.0 7.0.0 6.9.5 6.8.1 6.7.0 6.6.0 6.5.0 6.4.0 6.3.1 6.2.2 6.0.0 5.12.0 5.11.1 5.10.1 5.9.1 5.8.0 5.7.1 5.6.0 5.5.0 5.4.1 5.3.0 5.2.0 5.0.0 4.8.2 4.7.3 4.6.2 4.5.0 4.4.7 4.3.2 4.2.6 4.1.2 4.0.0 0.12.18 0.11.16 0.10.48 0.9.12 0.8.28 0.7.12 0.6.21 0.5.10 0.4.12 0.3.8 0.2.6},
|
|
31
31
|
machines: %w{linux-i686 linux-x86_64 linux-armv6l linux-armv7l linux-arm64 darwin-x86_64},
|
|
32
32
|
url: 'https://nodejs.org/dist/v%{version}/node-v%{version}-%{kernel}-%{machine}.tar.gz',
|
|
33
33
|
)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright 2015-
|
|
2
|
+
# Copyright 2015-2017, Noah Kantrowitz
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
module PoiseJavascript
|
|
19
|
-
VERSION = '1.
|
|
19
|
+
VERSION = '1.2.0'
|
|
20
20
|
end
|
data/poise-javascript.gemspec
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright 2015-
|
|
2
|
+
# Copyright 2015-2017, Noah Kantrowitz
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -33,7 +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', '
|
|
36
|
+
spec.add_dependency 'chef', '>= 12.1', '< 14'
|
|
37
37
|
spec.add_dependency 'halite', '~> 1.0'
|
|
38
38
|
spec.add_dependency 'poise', '~> 2.0'
|
|
39
39
|
spec.add_dependency 'poise-languages', '~> 2.0'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright 2015-
|
|
2
|
+
# Copyright 2015-2017, Noah Kantrowitz
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -37,8 +37,8 @@ else
|
|
|
37
37
|
file '/no_scl'
|
|
38
38
|
end
|
|
39
39
|
|
|
40
|
-
# npm in 12.04
|
|
41
|
-
if !platform_family?('rhel') && !(platform?('ubuntu') && node['platform_version']
|
|
40
|
+
# npm in 12.04 and 14.04 is too old to test.
|
|
41
|
+
if !platform_family?('rhel') && !(platform?('ubuntu') && %w{12.04 14.04}.include?(node['platform_version']))
|
|
42
42
|
javascript_runtime_test 'system' do
|
|
43
43
|
version ''
|
|
44
44
|
runtime_provider :system
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright 2015-
|
|
2
|
+
# Copyright 2015-2017, Noah Kantrowitz
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -18,3 +18,5 @@ eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
|
|
|
18
18
|
|
|
19
19
|
gem 'chef', '~> 12.1.2'
|
|
20
20
|
gem 'rack', '< 2'
|
|
21
|
+
gem 'foodcritic', '< 8'
|
|
22
|
+
gem 'fauxhai', '<= 3.9.0'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright 2016, Noah Kantrowitz
|
|
2
|
+
# Copyright 2016-2017, Noah Kantrowitz
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -18,3 +18,5 @@ eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
|
|
|
18
18
|
|
|
19
19
|
gem 'chef', '~> 12.10.24'
|
|
20
20
|
gem 'rack', '< 2'
|
|
21
|
+
gem 'foodcritic', '< 8'
|
|
22
|
+
gem 'fauxhai', '<= 3.9.0'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright 2016, Noah Kantrowitz
|
|
2
|
+
# Copyright 2016-2017, Noah Kantrowitz
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -18,3 +18,5 @@ eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
|
|
|
18
18
|
|
|
19
19
|
gem 'chef', '~> 12.11.18'
|
|
20
20
|
gem 'rack', '< 2'
|
|
21
|
+
gem 'foodcritic', '< 8'
|
|
22
|
+
gem 'fauxhai', '<= 3.9.0'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright 2016, Noah Kantrowitz
|
|
2
|
+
# Copyright 2016-2017, Noah Kantrowitz
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -17,3 +17,5 @@
|
|
|
17
17
|
eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
|
|
18
18
|
|
|
19
19
|
gem 'chef', '~> 12.12.15'
|
|
20
|
+
gem 'foodcritic', '< 8'
|
|
21
|
+
gem 'fauxhai', '<= 3.9.0'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright 2016, Noah Kantrowitz
|
|
2
|
+
# Copyright 2016-2017, Noah Kantrowitz
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -17,3 +17,5 @@
|
|
|
17
17
|
eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
|
|
18
18
|
|
|
19
19
|
gem 'chef', '~> 12.13.37'
|
|
20
|
+
gem 'foodcritic', '< 8'
|
|
21
|
+
gem 'fauxhai', '<= 3.9.0'
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Copyright 2016-2017, 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-2017, 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,19 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Copyright 2017, 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.16.42'
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Copyright 2017, 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.17.44'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright 2015-
|
|
2
|
+
# Copyright 2015-2017, Noah Kantrowitz
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -18,3 +18,5 @@ eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
|
|
|
18
18
|
|
|
19
19
|
gem 'chef', '~> 12.2.1'
|
|
20
20
|
gem 'rack', '< 2'
|
|
21
|
+
gem 'foodcritic', '< 8'
|
|
22
|
+
gem 'fauxhai', '<= 3.9.0'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright 2015-
|
|
2
|
+
# Copyright 2015-2017, Noah Kantrowitz
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -18,3 +18,5 @@ eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
|
|
|
18
18
|
|
|
19
19
|
gem 'chef', '~> 12.3.0'
|
|
20
20
|
gem 'rack', '< 2'
|
|
21
|
+
gem 'foodcritic', '< 8'
|
|
22
|
+
gem 'fauxhai', '<= 3.9.0'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright 2015-
|
|
2
|
+
# Copyright 2015-2017, Noah Kantrowitz
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -18,4 +18,6 @@ eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
|
|
|
18
18
|
|
|
19
19
|
gem 'chef', '~> 12.4.3'
|
|
20
20
|
gem 'rack', '< 2'
|
|
21
|
-
gem '
|
|
21
|
+
gem 'foodcritic', '< 8'
|
|
22
|
+
gem 'fauxhai', '<= 3.9.0'
|
|
23
|
+
gem 'gh', '0.14.0'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright 2015-
|
|
2
|
+
# Copyright 2015-2017, Noah Kantrowitz
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -18,3 +18,5 @@ eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
|
|
|
18
18
|
|
|
19
19
|
gem 'chef', '~> 12.5.1'
|
|
20
20
|
gem 'rack', '< 2'
|
|
21
|
+
gem 'foodcritic', '< 8'
|
|
22
|
+
gem 'fauxhai', '<= 3.9.0'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright 2015-
|
|
2
|
+
# Copyright 2015-2017, Noah Kantrowitz
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -18,3 +18,5 @@ eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
|
|
|
18
18
|
|
|
19
19
|
gem 'chef', '~> 12.6.0'
|
|
20
20
|
gem 'rack', '< 2'
|
|
21
|
+
gem 'foodcritic', '< 8'
|
|
22
|
+
gem 'fauxhai', '<= 3.9.0'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright 2016, Noah Kantrowitz
|
|
2
|
+
# Copyright 2016-2017, Noah Kantrowitz
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -18,3 +18,5 @@ eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
|
|
|
18
18
|
|
|
19
19
|
gem 'chef', '~> 12.7.2'
|
|
20
20
|
gem 'rack', '< 2'
|
|
21
|
+
gem 'foodcritic', '< 8'
|
|
22
|
+
gem 'fauxhai', '<= 3.9.0'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright 2016, Noah Kantrowitz
|
|
2
|
+
# Copyright 2016-2017, Noah Kantrowitz
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -18,3 +18,5 @@ eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
|
|
|
18
18
|
|
|
19
19
|
gem 'chef', '~> 12.8.1'
|
|
20
20
|
gem 'rack', '< 2'
|
|
21
|
+
gem 'foodcritic', '< 8'
|
|
22
|
+
gem 'fauxhai', '<= 3.9.0'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright 2016, Noah Kantrowitz
|
|
2
|
+
# Copyright 2016-2017, Noah Kantrowitz
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -18,3 +18,5 @@ eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
|
|
|
18
18
|
|
|
19
19
|
gem 'chef', '~> 12.9.41'
|
|
20
20
|
gem 'rack', '< 2'
|
|
21
|
+
gem 'foodcritic', '< 8'
|
|
22
|
+
gem 'fauxhai', '<= 3.9.0'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright 2015-
|
|
2
|
+
# Copyright 2015-2017, Noah Kantrowitz
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -16,4 +16,4 @@
|
|
|
16
16
|
|
|
17
17
|
eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
|
|
18
18
|
|
|
19
|
-
gem 'chef', '~> 12.
|
|
19
|
+
gem 'chef', '~> 12.17'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright 2015-
|
|
2
|
+
# Copyright 2015-2017, Noah Kantrowitz
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -18,6 +18,7 @@ eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
|
|
|
18
18
|
|
|
19
19
|
gem 'chef', github: 'chef/chef'
|
|
20
20
|
gem 'halite', github: 'poise/halite'
|
|
21
|
+
gem 'ohai', github: 'chef/ohai'
|
|
21
22
|
gem 'poise', github: 'poise/poise'
|
|
22
23
|
gem 'poise-archive', github: 'poise/poise-archive'
|
|
23
24
|
gem 'poise-boiler', github: 'poise/poise-boiler'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright 2015-
|
|
2
|
+
# Copyright 2015-2017, Noah Kantrowitz
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -36,17 +36,17 @@ describe PoiseJavascript::JavascriptProviders::NodeJS do
|
|
|
36
36
|
|
|
37
37
|
context 'with version ""' do
|
|
38
38
|
let(:javascript_version) { '' }
|
|
39
|
-
it_behaves_like 'nodejs provider', 'nodejs-
|
|
39
|
+
it_behaves_like 'nodejs provider', 'nodejs-6.10.2', 'https://nodejs.org/dist/v6.10.2/node-v6.10.2-linux-x64.tar.gz'
|
|
40
40
|
end # /context with version ""
|
|
41
41
|
|
|
42
42
|
context 'with version nodejs' do
|
|
43
43
|
let(:javascript_version) { 'nodejs' }
|
|
44
|
-
it_behaves_like 'nodejs provider', 'nodejs-
|
|
44
|
+
it_behaves_like 'nodejs provider', 'nodejs-6.10.2', 'https://nodejs.org/dist/v6.10.2/node-v6.10.2-linux-x64.tar.gz'
|
|
45
45
|
end # /context with version nodejs
|
|
46
46
|
|
|
47
47
|
context 'with version nodejs-0.10' do
|
|
48
48
|
let(:javascript_version) { 'nodejs-0.10' }
|
|
49
|
-
it_behaves_like 'nodejs provider', 'nodejs-0.10.
|
|
49
|
+
it_behaves_like 'nodejs provider', 'nodejs-0.10.48', 'https://nodejs.org/dist/v0.10.48/node-v0.10.48-linux-x64.tar.gz'
|
|
50
50
|
end # /context with version nodejs-0.10
|
|
51
51
|
|
|
52
52
|
context 'with version nodejs-0.10.30' do
|
|
@@ -56,7 +56,7 @@ describe PoiseJavascript::JavascriptProviders::NodeJS do
|
|
|
56
56
|
|
|
57
57
|
context 'with version 0.12' do
|
|
58
58
|
let(:javascript_version) { '0.12' }
|
|
59
|
-
it_behaves_like 'nodejs provider', 'nodejs-0.12.
|
|
59
|
+
it_behaves_like 'nodejs provider', 'nodejs-0.12.18', 'https://nodejs.org/dist/v0.12.18/node-v0.12.18-linux-x64.tar.gz'
|
|
60
60
|
end # /context with version 0.12
|
|
61
61
|
|
|
62
62
|
context 'with 32-bit OS' do
|
|
@@ -66,7 +66,7 @@ describe PoiseJavascript::JavascriptProviders::NodeJS do
|
|
|
66
66
|
version ''
|
|
67
67
|
end
|
|
68
68
|
end
|
|
69
|
-
it_behaves_like 'nodejs provider', 'nodejs-
|
|
69
|
+
it_behaves_like 'nodejs provider', 'nodejs-6.10.2', 'https://nodejs.org/dist/v6.10.2/node-v6.10.2-linux-x86.tar.gz'
|
|
70
70
|
end # /context with 32-bit OS
|
|
71
71
|
|
|
72
72
|
context 'action :uninstall' do
|
|
@@ -77,6 +77,24 @@ describe PoiseJavascript::JavascriptProviders::NodeJS do
|
|
|
77
77
|
end
|
|
78
78
|
end
|
|
79
79
|
|
|
80
|
-
it { is_expected.to uninstall_poise_languages_static('/opt/nodejs-
|
|
80
|
+
it { is_expected.to uninstall_poise_languages_static('/opt/nodejs-6.10.2') }
|
|
81
81
|
end # /context action :uninstall
|
|
82
|
+
|
|
83
|
+
describe 'release checker' do
|
|
84
|
+
let(:class_versions) { described_class.static_versions }
|
|
85
|
+
let(:node_versions) { Chef::JSONCompat.parse(Chef::HTTP::Simple.new('https://nodejs.org/').get('/dist/index.json')) }
|
|
86
|
+
let(:current_lts) { node_versions.find {|ver| ver['lts'] }['version'][/v(.*)/, 1] }
|
|
87
|
+
let(:desired_versions) do
|
|
88
|
+
versions = node_versions.map {|ver| ver['version'][/v(.*)/, 1] }
|
|
89
|
+
clean_versions = versions.each_with_object([]) do |ver, acc|
|
|
90
|
+
minor = ver[/^(.*)\.\d+$/, 1]
|
|
91
|
+
unless acc.any? {|v| v.start_with?(minor) }
|
|
92
|
+
acc << ver
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
clean_versions.delete(current_lts)
|
|
96
|
+
[current_lts] + clean_versions
|
|
97
|
+
end
|
|
98
|
+
it { expect(desired_versions.join("\n")).to eq(class_versions.join("\n")), "NodeJS versions out of date:\n%w{#{desired_versions.join(' ')}}" }
|
|
99
|
+
end # /describe release checker
|
|
82
100
|
end
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright 2015-
|
|
2
|
+
# Copyright 2015-2017, Noah Kantrowitz
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -95,7 +95,7 @@ describe PoiseJavascript::Resources::NodePackage do
|
|
|
95
95
|
|
|
96
96
|
describe PoiseJavascript::Resources::NodePackage::Provider do
|
|
97
97
|
let(:new_resource) { double('new_resource', path: nil, javascript: '/node', npm_binary: '/npm', user: nil, group: nil) }
|
|
98
|
-
let(:test_provider) { described_class.new(new_resource, nil) }
|
|
98
|
+
let(:test_provider) { described_class.new(new_resource, double(resource_collection: nil)) }
|
|
99
99
|
|
|
100
100
|
def stub_javascript_shell_out(cmd, ret, **options)
|
|
101
101
|
default_options = {cwd: nil, user: nil, group: nil, environment: {'PATH' => "/:#{ENV['PATH']}"}}
|
data/test/spec/spec_helper.rb
CHANGED
metadata
CHANGED
|
@@ -1,29 +1,35 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: poise-javascript
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Noah Kantrowitz
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-04-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: chef
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - "
|
|
17
|
+
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: '12.1'
|
|
20
|
+
- - "<"
|
|
21
|
+
- !ruby/object:Gem::Version
|
|
22
|
+
version: '14'
|
|
20
23
|
type: :runtime
|
|
21
24
|
prerelease: false
|
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
26
|
requirements:
|
|
24
|
-
- - "
|
|
27
|
+
- - ">="
|
|
25
28
|
- !ruby/object:Gem::Version
|
|
26
29
|
version: '12.1'
|
|
30
|
+
- - "<"
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '14'
|
|
27
33
|
- !ruby/object:Gem::Dependency
|
|
28
34
|
name: halite
|
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -126,6 +132,10 @@ files:
|
|
|
126
132
|
- test/gemfiles/chef-12.11.gemfile
|
|
127
133
|
- test/gemfiles/chef-12.12.gemfile
|
|
128
134
|
- test/gemfiles/chef-12.13.gemfile
|
|
135
|
+
- test/gemfiles/chef-12.14.gemfile
|
|
136
|
+
- test/gemfiles/chef-12.15.gemfile
|
|
137
|
+
- test/gemfiles/chef-12.16.gemfile
|
|
138
|
+
- test/gemfiles/chef-12.17.gemfile
|
|
129
139
|
- test/gemfiles/chef-12.2.gemfile
|
|
130
140
|
- test/gemfiles/chef-12.3.gemfile
|
|
131
141
|
- test/gemfiles/chef-12.4.gemfile
|
|
@@ -168,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
168
178
|
version: '0'
|
|
169
179
|
requirements: []
|
|
170
180
|
rubyforge_project:
|
|
171
|
-
rubygems_version: 2.6.
|
|
181
|
+
rubygems_version: 2.6.11
|
|
172
182
|
signing_key:
|
|
173
183
|
specification_version: 4
|
|
174
184
|
summary: A Chef cookbook for managing Node.js and io.js installations.
|
|
@@ -182,6 +192,10 @@ test_files:
|
|
|
182
192
|
- test/gemfiles/chef-12.11.gemfile
|
|
183
193
|
- test/gemfiles/chef-12.12.gemfile
|
|
184
194
|
- test/gemfiles/chef-12.13.gemfile
|
|
195
|
+
- test/gemfiles/chef-12.14.gemfile
|
|
196
|
+
- test/gemfiles/chef-12.15.gemfile
|
|
197
|
+
- test/gemfiles/chef-12.16.gemfile
|
|
198
|
+
- test/gemfiles/chef-12.17.gemfile
|
|
185
199
|
- test/gemfiles/chef-12.2.gemfile
|
|
186
200
|
- test/gemfiles/chef-12.3.gemfile
|
|
187
201
|
- test/gemfiles/chef-12.4.gemfile
|