poise-ruby 2.3.0 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -1
  3. data/.travis.yml +35 -2
  4. data/.yo-rc.json +7 -0
  5. data/CHANGELOG.md +4 -0
  6. data/Gemfile +1 -1
  7. data/lib/poise_ruby/ruby_providers/scl.rb +2 -1
  8. data/lib/poise_ruby/version.rb +1 -1
  9. data/poise-ruby.gemspec +3 -2
  10. data/test/cookbook/recipes/bundle_install.rb +11 -2
  11. data/test/cookbook/recipes/default.rb +7 -3
  12. data/test/gemfiles/chef-12.1.gemfile +6 -2
  13. data/test/gemfiles/chef-12.10.gemfile +6 -2
  14. data/test/gemfiles/chef-12.11.gemfile +6 -2
  15. data/test/gemfiles/chef-12.12.gemfile +5 -1
  16. data/test/gemfiles/chef-12.13.gemfile +5 -1
  17. data/test/gemfiles/chef-12.18.gemfile +19 -0
  18. data/test/gemfiles/chef-12.19.gemfile +19 -0
  19. data/test/gemfiles/chef-12.2.gemfile +6 -2
  20. data/test/gemfiles/chef-12.20.gemfile +19 -0
  21. data/test/gemfiles/chef-12.21.gemfile +19 -0
  22. data/test/gemfiles/chef-12.3.gemfile +6 -2
  23. data/test/gemfiles/chef-12.4.gemfile +6 -2
  24. data/test/gemfiles/chef-12.5.gemfile +6 -2
  25. data/test/gemfiles/chef-12.6.gemfile +6 -2
  26. data/test/gemfiles/chef-12.7.gemfile +6 -2
  27. data/test/gemfiles/chef-12.8.gemfile +6 -2
  28. data/test/gemfiles/chef-12.9.gemfile +6 -2
  29. data/test/gemfiles/chef-12.gemfile +1 -1
  30. data/test/gemfiles/chef-13.0.gemfile +19 -0
  31. data/test/gemfiles/chef-13.1.gemfile +19 -0
  32. data/test/gemfiles/chef-13.2.gemfile +19 -0
  33. data/test/gemfiles/chef-13.3.gemfile +19 -0
  34. data/test/gemfiles/chef-13.4.gemfile +19 -0
  35. data/test/gemfiles/chef-13.5.gemfile +19 -0
  36. data/test/gemfiles/chef-13.6.gemfile +19 -0
  37. data/test/gemfiles/chef-13.8.gemfile +19 -0
  38. data/test/gemfiles/chef-13.gemfile +19 -0
  39. data/test/gemfiles/master.gemfile +11 -9
  40. data/test/integration/default/serverspec/bundle_install_spec.rb +10 -11
  41. data/test/spec/ruby_providers/scl_spec.rb +11 -5
  42. metadata +35 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c7efb4dbedbb97c97324b797d098c42ed0b21ac3
4
- data.tar.gz: 21014daee3169145193c8de9ba3a99e5c9cecfcb
3
+ metadata.gz: daf8d9c39a660298a810ee1d1f5eecbfac15640c
4
+ data.tar.gz: 9daa60fef16247b40ec3107750779df884f50ab3
5
5
  SHA512:
6
- metadata.gz: 3ee101538989e548a27d124a5971cfcd634a927e3d014c5d7eda1889a1259be241e5ebf2b431aea3ccf764df2fe84261833401288057d7964144443af38354b0
7
- data.tar.gz: dd6e311f66f8441337291b2007df90f128b1bdfb7a84e766406e4c6fccc9691e3bb857777f251c9c1d5583c4f202da7bf8aedb9a4f9b84034a234f9edf04f6f1
6
+ metadata.gz: '09ffeb62d4b8b43bec828f9e11aecebaa47446aead22cf725926048263eee503132664e7d8c8051b355a8f64cdc094d3c9daf957318d6e5ee5bf6ac0d3c3ff7c'
7
+ data.tar.gz: a8492aeb0c00571a86a2624889d969f91cebffb471b29366efe05ae59cfc39b9144e4a84de1324feaeb84f9ac05f6e623eefc36d4918566b99fd4fece42eba75
data/.gitignore CHANGED
@@ -4,8 +4,8 @@ test/gemfiles/*.lock
4
4
  .kitchen/
5
5
  .kitchen.local.yml
6
6
  test/docker/
7
+ test/ec2/
7
8
  coverage/
8
9
  pkg/
9
10
  .yardoc/
10
11
  doc/
11
-
@@ -1,17 +1,26 @@
1
+ dist: trusty
1
2
  sudo: false
2
3
  cache: bundler
3
4
  language: ruby
4
5
  env:
5
6
  global:
6
7
  - secure: YOM++OBAaAhRGG4IkODRzmscd0JAW1w5jnfTcpF1nV9pGFEicFGGneHANzT2FdNl/xU2BDzoQd46Wv5rSPb0C+Kw00qYyadTsyWaVVggHL60FLFWGpnFq29iApHnKA+HX5qoKGgtW5ZPczJlwumuZvr+pgstUOVYTk/RJqFy+vw=
7
- before_install: gem install bundler
8
- bundler_args: '--binstubs=$PWD/bin --jobs 3 --retry 3'
8
+ before_install:
9
+ - 'if [[ $BUNDLE_GEMFILE == *master.gemfile ]]; then gem update --system; fi'
10
+ - gem --version
11
+ - gem install bundler
12
+ - bundle --version
13
+ - 'bundle config --local path ${BUNDLE_PATH:-$(dirname $BUNDLE_GEMFILE)/vendor/bundle}'
14
+ - bundle config --local bin $PWD/bin
15
+ install: bundle update --jobs=3 --retry=3
9
16
  script:
10
17
  - ./bin/rake travis
11
18
  matrix:
12
19
  include:
13
20
  - rvm: 2.3.1
14
21
  gemfile: test/gemfiles/chef-12.gemfile
22
+ - rvm: 2.4.3
23
+ gemfile: test/gemfiles/chef-13.gemfile
15
24
  - rvm: 2.1.4
16
25
  gemfile: test/gemfiles/chef-12.1.gemfile
17
26
  - rvm: 2.1.4
@@ -47,4 +56,28 @@ matrix:
47
56
  - rvm: 2.3.1
48
57
  gemfile: test/gemfiles/chef-12.17.gemfile
49
58
  - rvm: 2.3.1
59
+ gemfile: test/gemfiles/chef-12.18.gemfile
60
+ - rvm: 2.3.1
61
+ gemfile: test/gemfiles/chef-12.19.gemfile
62
+ - rvm: 2.3.1
63
+ gemfile: test/gemfiles/chef-12.20.gemfile
64
+ - rvm: 2.3.1
65
+ gemfile: test/gemfiles/chef-12.21.gemfile
66
+ - rvm: 2.4.1
67
+ gemfile: test/gemfiles/chef-13.0.gemfile
68
+ - rvm: 2.4.1
69
+ gemfile: test/gemfiles/chef-13.1.gemfile
70
+ - rvm: 2.4.1
71
+ gemfile: test/gemfiles/chef-13.2.gemfile
72
+ - rvm: 2.4.1
73
+ gemfile: test/gemfiles/chef-13.3.gemfile
74
+ - rvm: 2.4.2
75
+ gemfile: test/gemfiles/chef-13.4.gemfile
76
+ - rvm: 2.4.2
77
+ gemfile: test/gemfiles/chef-13.5.gemfile
78
+ - rvm: 2.4.2
79
+ gemfile: test/gemfiles/chef-13.6.gemfile
80
+ - rvm: 2.4.3
81
+ gemfile: test/gemfiles/chef-13.8.gemfile
82
+ - rvm: 2.5.0
50
83
  gemfile: test/gemfiles/master.gemfile
@@ -0,0 +1,7 @@
1
+ {
2
+ "generator-poise": {
3
+ "created": true,
4
+ "name": "poise-ruby",
5
+ "cookbookName": "auto"
6
+ }
7
+ }
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## v2.4.0
4
+
5
+ * Add support for the rh-ruby24 SCL package.
6
+
3
7
  ## v2.3.0
4
8
 
5
9
  * Chef 13 support.
data/Gemfile CHANGED
@@ -23,7 +23,7 @@ def dev_gem(name, path: File.join('..', name), github: nil)
23
23
  if File.exist?(path)
24
24
  gem name, path: path
25
25
  elsif github
26
- gem name, github: github
26
+ gem name, git: "https://github.com/#{github}.git"
27
27
  end
28
28
  end
29
29
 
@@ -25,7 +25,8 @@ module PoiseRuby
25
25
  class Scl < Base
26
26
  include PoiseLanguages::Scl::Mixin
27
27
  provides(:scl)
28
- scl_package('2.3.0', 'rh-ruby23', 'rh-ruby23-ruby-devel', '>= 7.0')
28
+ scl_package('2.4.0', 'rh-ruby24', 'rh-ruby24-ruby-devel')
29
+ scl_package('2.3.1', 'rh-ruby23', 'rh-ruby23-ruby-devel')
29
30
  scl_package('2.2.2', 'rh-ruby22', 'rh-ruby22-ruby-devel')
30
31
  # On EL7, the system package is Ruby 2.0.0 and is newer than the SCL build.
31
32
  scl_package('2.0.0', 'ruby200', 'ruby200-ruby-devel', '~> 6.0')
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module PoiseRuby
19
- VERSION = '2.3.0'
19
+ VERSION = '2.4.0'
20
20
  end
@@ -26,14 +26,15 @@ Gem::Specification.new do |spec|
26
26
  spec.description = "A Chef cookbook for managing Ruby installations."
27
27
  spec.summary = spec.description
28
28
  spec.homepage = 'https://github.com/poise/poise-ruby'
29
- spec.license = 'Apache 2.0'
29
+ spec.license = 'Apache-2.0'
30
+ spec.metadata['platforms'] = 'ubuntu debian centos redhat fedora amazon'
30
31
 
31
32
  spec.files = `git ls-files`.split($/)
32
33
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
33
34
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
34
35
  spec.require_paths = %w{lib}
35
36
 
36
- spec.add_dependency 'chef', '>= 12.1', '< 14'
37
+ spec.add_dependency 'chef', '>= 12.1', '< 15'
37
38
  spec.add_dependency 'halite', '~> 1.0'
38
39
  spec.add_dependency 'poise', '~> 2.0'
39
40
  spec.add_dependency 'poise-languages', '~> 2.0'
@@ -16,7 +16,11 @@
16
16
 
17
17
  ruby_runtime 'bundle_install test' do
18
18
  version ''
19
- provider :system
19
+ if platform_family?('rhel') && node['platform_version'].start_with?('6')
20
+ provider :scl
21
+ else
22
+ provider :system
23
+ end
20
24
  end
21
25
 
22
26
  directory '/opt/bundle1'
@@ -24,7 +28,12 @@ directory '/opt/bundle1'
24
28
  file '/opt/bundle1/Gemfile' do
25
29
  content <<-EOH
26
30
  source 'https://rubygems.org/'
27
- gem 'rake', '~> 10.0'
31
+ if RUBY_VERSION.start_with?('1.8')
32
+ # CentOS 6 system packages.
33
+ gem 'rake', '~> 10.0'
34
+ else
35
+ gem 'rake', '~> 11.0'
36
+ end
28
37
  EOH
29
38
  end
30
39
 
@@ -29,9 +29,13 @@ ruby_runtime_test 'chef' do
29
29
  runtime_provider :chef
30
30
  end
31
31
 
32
- ruby_runtime_test 'system' do
33
- version ''
34
- runtime_provider :system
32
+ if platform_family?('rhel') && node['platform_version'].start_with?('6')
33
+ file '/no_system'
34
+ else
35
+ ruby_runtime_test 'system' do
36
+ version ''
37
+ runtime_provider :system
38
+ end
35
39
  end
36
40
 
37
41
  if platform_family?('rhel')
@@ -17,6 +17,10 @@
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'
20
+ gem 'byebug', '< 9.1.0'
21
+ gem 'chefspec', '< 6'
22
22
  gem 'fauxhai', '<= 3.9.0'
23
+ gem 'ffi-yajl', '< 2.3.1'
24
+ gem 'foodcritic', '< 8'
25
+ gem 'mixlib-shellout', '< 2.3.0'
26
+ gem 'rack', '< 2'
@@ -17,6 +17,10 @@
17
17
  eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
18
18
 
19
19
  gem 'chef', '~> 12.10.24'
20
- gem 'rack', '< 2'
21
- gem 'foodcritic', '< 8'
20
+ gem 'byebug', '< 9.1.0'
21
+ gem 'chefspec', '< 6'
22
22
  gem 'fauxhai', '<= 3.9.0'
23
+ gem 'ffi-yajl', '< 2.3.1'
24
+ gem 'foodcritic', '< 8'
25
+ gem 'mixlib-shellout', '< 2.3.0'
26
+ gem 'rack', '< 2'
@@ -17,6 +17,10 @@
17
17
  eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
18
18
 
19
19
  gem 'chef', '~> 12.11.18'
20
- gem 'rack', '< 2'
21
- gem 'foodcritic', '< 8'
20
+ gem 'byebug', '< 9.1.0'
21
+ gem 'chefspec', '< 6'
22
22
  gem 'fauxhai', '<= 3.9.0'
23
+ gem 'ffi-yajl', '< 2.3.1'
24
+ gem 'foodcritic', '< 8'
25
+ gem 'mixlib-shellout', '< 2.3.0'
26
+ gem 'rack', '< 2'
@@ -17,5 +17,9 @@
17
17
  eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
18
18
 
19
19
  gem 'chef', '~> 12.12.15'
20
- gem 'foodcritic', '< 8'
20
+ gem 'byebug', '< 9.1.0'
21
+ gem 'chefspec', '< 6'
21
22
  gem 'fauxhai', '<= 3.9.0'
23
+ gem 'ffi-yajl', '< 2.3.1'
24
+ gem 'foodcritic', '< 8'
25
+ gem 'mixlib-shellout', '< 2.3.0'
@@ -17,5 +17,9 @@
17
17
  eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
18
18
 
19
19
  gem 'chef', '~> 12.13.37'
20
- gem 'foodcritic', '< 8'
20
+ gem 'byebug', '< 9.1.0'
21
+ gem 'chefspec', '< 6'
21
22
  gem 'fauxhai', '<= 3.9.0'
23
+ gem 'ffi-yajl', '< 2.3.1'
24
+ gem 'foodcritic', '< 8'
25
+ gem 'mixlib-shellout', '< 2.3.0'
@@ -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.18.31'
@@ -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.19.36'
@@ -17,6 +17,10 @@
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'
20
+ gem 'byebug', '< 9.1.0'
21
+ gem 'chefspec', '< 6'
22
22
  gem 'fauxhai', '<= 3.9.0'
23
+ gem 'ffi-yajl', '< 2.3.1'
24
+ gem 'foodcritic', '< 8'
25
+ gem 'mixlib-shellout', '< 2.3.0'
26
+ gem 'rack', '< 2'
@@ -0,0 +1,19 @@
1
+ #
2
+ # Copyright 2018, 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.20.3'
@@ -0,0 +1,19 @@
1
+ #
2
+ # Copyright 2018, 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.21.31'
@@ -17,6 +17,10 @@
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'
20
+ gem 'byebug', '< 9.1.0'
21
+ gem 'chefspec', '< 6'
22
22
  gem 'fauxhai', '<= 3.9.0'
23
+ gem 'ffi-yajl', '< 2.3.1'
24
+ gem 'foodcritic', '< 8'
25
+ gem 'mixlib-shellout', '< 2.3.0'
26
+ gem 'rack', '< 2'
@@ -17,7 +17,11 @@
17
17
  eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
18
18
 
19
19
  gem 'chef', '~> 12.4.3'
20
- gem 'rack', '< 2'
21
- gem 'foodcritic', '< 8'
20
+ gem 'byebug', '< 9.1.0'
21
+ gem 'chefspec', '< 6'
22
22
  gem 'fauxhai', '<= 3.9.0'
23
+ gem 'ffi-yajl', '< 2.3.1'
24
+ gem 'foodcritic', '< 8'
23
25
  gem 'gh', '0.14.0'
26
+ gem 'mixlib-shellout', '< 2.3.0'
27
+ gem 'rack', '< 2'
@@ -17,6 +17,10 @@
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'
20
+ gem 'byebug', '< 9.1.0'
21
+ gem 'chefspec', '< 6'
22
22
  gem 'fauxhai', '<= 3.9.0'
23
+ gem 'ffi-yajl', '< 2.3.1'
24
+ gem 'foodcritic', '< 8'
25
+ gem 'mixlib-shellout', '< 2.3.0'
26
+ gem 'rack', '< 2'
@@ -17,6 +17,10 @@
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'
20
+ gem 'byebug', '< 9.1.0'
21
+ gem 'chefspec', '< 6'
22
22
  gem 'fauxhai', '<= 3.9.0'
23
+ gem 'ffi-yajl', '< 2.3.1'
24
+ gem 'foodcritic', '< 8'
25
+ gem 'mixlib-shellout', '< 2.3.0'
26
+ gem 'rack', '< 2'
@@ -17,6 +17,10 @@
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'
20
+ gem 'byebug', '< 9.1.0'
21
+ gem 'chefspec', '< 6'
22
22
  gem 'fauxhai', '<= 3.9.0'
23
+ gem 'ffi-yajl', '< 2.3.1'
24
+ gem 'foodcritic', '< 8'
25
+ gem 'mixlib-shellout', '< 2.3.0'
26
+ gem 'rack', '< 2'
@@ -17,6 +17,10 @@
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'
20
+ gem 'byebug', '< 9.1.0'
21
+ gem 'chefspec', '< 6'
22
22
  gem 'fauxhai', '<= 3.9.0'
23
+ gem 'ffi-yajl', '< 2.3.1'
24
+ gem 'foodcritic', '< 8'
25
+ gem 'mixlib-shellout', '< 2.3.0'
26
+ gem 'rack', '< 2'
@@ -17,6 +17,10 @@
17
17
  eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
18
18
 
19
19
  gem 'chef', '~> 12.9.41'
20
- gem 'rack', '< 2'
21
- gem 'foodcritic', '< 8'
20
+ gem 'byebug', '< 9.1.0'
21
+ gem 'chefspec', '< 6'
22
22
  gem 'fauxhai', '<= 3.9.0'
23
+ gem 'ffi-yajl', '< 2.3.1'
24
+ gem 'foodcritic', '< 8'
25
+ gem 'mixlib-shellout', '< 2.3.0'
26
+ gem 'rack', '< 2'
@@ -16,4 +16,4 @@
16
16
 
17
17
  eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
18
18
 
19
- gem 'chef', '~> 12.17'
19
+ gem 'chef', '~> 12.21'
@@ -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', '~> 13.0.118'
@@ -0,0 +1,19 @@
1
+ #
2
+ # Copyright 2018, 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', '~> 13.1.31'
@@ -0,0 +1,19 @@
1
+ #
2
+ # Copyright 2018, 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', '~> 13.2.20'
@@ -0,0 +1,19 @@
1
+ #
2
+ # Copyright 2018, 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', '~> 13.3.42'
@@ -0,0 +1,19 @@
1
+ #
2
+ # Copyright 2018, 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', '~> 13.4.24'
@@ -0,0 +1,19 @@
1
+ #
2
+ # Copyright 2018, 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', '~> 13.5.3'
@@ -0,0 +1,19 @@
1
+ #
2
+ # Copyright 2018, 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', '~> 13.6.4'
@@ -0,0 +1,19 @@
1
+ #
2
+ # Copyright 2018, 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', '~> 13.8.0'
@@ -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', '~> 13.8'
@@ -16,12 +16,14 @@
16
16
 
17
17
  eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
18
18
 
19
- gem 'chef', github: 'chef/chef'
20
- gem 'halite', github: 'poise/halite'
21
- gem 'ohai', github: 'chef/ohai'
22
- gem 'poise', github: 'poise/poise'
23
- gem 'poise-archive', github: 'poise/poise-archive'
24
- gem 'poise-boiler', github: 'poise/poise-boiler'
25
- gem 'poise-languages', github: 'poise/poise-languages'
26
- gem 'poise-profiler', github: 'poise/poise-profiler'
27
-
19
+ gem 'chef', git: 'https://github.com/chef/chef.git'
20
+ gem 'chefspec', git: 'https://github.com/sethvargo/chefspec.git'
21
+ gem 'fauxhai', git: 'https://github.com/customink/fauxhai.git'
22
+ gem 'foodcritic', git: 'https://github.com/foodcritic/foodcritic.git'
23
+ gem 'halite', git: 'https://github.com/poise/halite.git'
24
+ gem 'ohai', git: 'https://github.com/chef/ohai.git'
25
+ gem 'poise', git: 'https://github.com/poise/poise.git'
26
+ gem 'poise-archive', git: 'https://github.com/poise/poise-archive.git'
27
+ gem 'poise-boiler', git: 'https://github.com/poise/poise-boiler.git'
28
+ gem 'poise-languages', git: 'https://github.com/poise/poise-languages.git'
29
+ gem 'poise-profiler', git: 'https://github.com/poise/poise-profiler.git'
@@ -18,6 +18,12 @@ require 'serverspec'
18
18
  set :backend, :exec
19
19
 
20
20
  describe 'bundle_install' do
21
+ scl_prefix = if os[:family] == 'redhat' && os[:release] =~ /^6/
22
+ 'scl enable rh-ruby24 -- '
23
+ else
24
+ ''
25
+ end
26
+
21
27
  describe 'system-level install' do
22
28
  rake_binary = case os[:family]
23
29
  when 'debian', 'ubuntu'
@@ -25,7 +31,7 @@ describe 'bundle_install' do
25
31
  when 'redhat'
26
32
  case os[:release]
27
33
  when /^6/
28
- '/usr/bin/rake'
34
+ '/opt/rh/rh-ruby24/root/usr/local/bin/rake'
29
35
  else
30
36
  '/usr/local/bin/rake'
31
37
  end
@@ -35,7 +41,7 @@ describe 'bundle_install' do
35
41
  it { is_expected.to be_a_file }
36
42
  end
37
43
 
38
- describe command("#{rake_binary} --version") do
44
+ describe command("#{scl_prefix}#{rake_binary} --version") do
39
45
  its(:exit_status) { is_expected.to eq 0 }
40
46
  end
41
47
  end
@@ -45,7 +51,7 @@ describe 'bundle_install' do
45
51
  it { is_expected.to be_a_file }
46
52
  end
47
53
 
48
- describe command('/opt/bundle2/bin/rake --version') do
54
+ describe command("#{scl_prefix}/opt/bundle2/bin/rake --version") do
49
55
  its(:exit_status) { is_expected.to eq 0 }
50
56
  its(:stdout) { is_expected.to include('10.4.2') }
51
57
  end
@@ -66,14 +72,7 @@ describe 'bundle_install' do
66
72
  it { is_expected.to be_a_file }
67
73
  end
68
74
 
69
- scl_name = case os[:release]
70
- when /^6/
71
- 'rh-ruby22'
72
- else
73
- 'rh-ruby23'
74
- end
75
-
76
- describe command("scl enable #{scl_name} \"/opt/bundle3/bin/rake --version\"") do
75
+ describe command("scl enable rh-ruby24 -- /opt/bundle3/bin/rake --version") do
77
76
  its(:exit_status) { is_expected.to eq 0 }
78
77
  end
79
78
  end
@@ -18,7 +18,7 @@ require 'spec_helper'
18
18
 
19
19
  describe PoiseRuby::RubyProviders::Scl do
20
20
  let(:ruby_version) { '' }
21
- let(:chefspec_options) { {platform: 'centos', version: '7.0'} }
21
+ let(:chefspec_options) { {platform: 'centos', version: '7.3.1611'} }
22
22
  let(:default_attributes) { {poise_ruby_version: ruby_version} }
23
23
  let(:ruby_runtime) { chef_run.ruby_runtime('test') }
24
24
  step_into(:ruby_runtime)
@@ -45,7 +45,7 @@ describe PoiseRuby::RubyProviders::Scl do
45
45
 
46
46
  context 'with version ""' do
47
47
  let(:ruby_version) { '' }
48
- it_behaves_like 'scl provider', 'rh-ruby23'
48
+ it_behaves_like 'scl provider', 'rh-ruby24'
49
49
  end # /context with version ""
50
50
 
51
51
  context 'with version "2.2"' do
@@ -53,16 +53,22 @@ describe PoiseRuby::RubyProviders::Scl do
53
53
  it_behaves_like 'scl provider', 'rh-ruby22'
54
54
  end # /context with version "2.2"
55
55
 
56
+ context 'with version "2.3"' do
57
+ let(:ruby_version) { '2.3' }
58
+ it_behaves_like 'scl provider', 'rh-ruby23'
59
+ end # /context with version "2.3"
60
+
61
+
56
62
  context 'with version "2"' do
57
63
  let(:ruby_version) { '2' }
58
- it_behaves_like 'scl provider', 'rh-ruby23'
64
+ it_behaves_like 'scl provider', 'rh-ruby24'
59
65
  end # /context with version "2"
60
66
 
61
67
 
62
68
  context 'with version "" on CentOS 6' do
63
- let(:chefspec_options) { {platform: 'centos', version: '6.0'} }
69
+ let(:chefspec_options) { {platform: 'centos', version: '6.8'} }
64
70
  let(:ruby_version) { '' }
65
- it_behaves_like 'scl provider', 'rh-ruby22'
71
+ it_behaves_like 'scl provider', 'rh-ruby24'
66
72
  end # /context with version "" on CentOS 6
67
73
 
68
74
  context 'action :uninstall' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poise-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.4.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: 2017-04-12 00:00:00.000000000 Z
11
+ date: 2018-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '12.1'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '14'
22
+ version: '15'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '12.1'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '14'
32
+ version: '15'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: halite
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -97,6 +97,7 @@ files:
97
97
  - ".kitchen.yml"
98
98
  - ".travis.yml"
99
99
  - ".yardopts"
100
+ - ".yo-rc.json"
100
101
  - CHANGELOG.md
101
102
  - Gemfile
102
103
  - LICENSE
@@ -137,7 +138,11 @@ files:
137
138
  - test/gemfiles/chef-12.15.gemfile
138
139
  - test/gemfiles/chef-12.16.gemfile
139
140
  - test/gemfiles/chef-12.17.gemfile
141
+ - test/gemfiles/chef-12.18.gemfile
142
+ - test/gemfiles/chef-12.19.gemfile
140
143
  - test/gemfiles/chef-12.2.gemfile
144
+ - test/gemfiles/chef-12.20.gemfile
145
+ - test/gemfiles/chef-12.21.gemfile
141
146
  - test/gemfiles/chef-12.3.gemfile
142
147
  - test/gemfiles/chef-12.4.gemfile
143
148
  - test/gemfiles/chef-12.5.gemfile
@@ -146,6 +151,15 @@ files:
146
151
  - test/gemfiles/chef-12.8.gemfile
147
152
  - test/gemfiles/chef-12.9.gemfile
148
153
  - test/gemfiles/chef-12.gemfile
154
+ - test/gemfiles/chef-13.0.gemfile
155
+ - test/gemfiles/chef-13.1.gemfile
156
+ - test/gemfiles/chef-13.2.gemfile
157
+ - test/gemfiles/chef-13.3.gemfile
158
+ - test/gemfiles/chef-13.4.gemfile
159
+ - test/gemfiles/chef-13.5.gemfile
160
+ - test/gemfiles/chef-13.6.gemfile
161
+ - test/gemfiles/chef-13.8.gemfile
162
+ - test/gemfiles/chef-13.gemfile
149
163
  - test/gemfiles/master.gemfile
150
164
  - test/integration/default/serverspec/Gemfile
151
165
  - test/integration/default/serverspec/bundle_install_spec.rb
@@ -158,8 +172,9 @@ files:
158
172
  - test/spec/spec_helper.rb
159
173
  homepage: https://github.com/poise/poise-ruby
160
174
  licenses:
161
- - Apache 2.0
162
- metadata: {}
175
+ - Apache-2.0
176
+ metadata:
177
+ platforms: ubuntu debian centos redhat fedora amazon
163
178
  post_install_message:
164
179
  rdoc_options: []
165
180
  require_paths:
@@ -176,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
191
  version: '0'
177
192
  requirements: []
178
193
  rubyforge_project:
179
- rubygems_version: 2.6.11
194
+ rubygems_version: 2.6.13
180
195
  signing_key:
181
196
  specification_version: 4
182
197
  summary: A Chef cookbook for managing Ruby installations.
@@ -195,7 +210,11 @@ test_files:
195
210
  - test/gemfiles/chef-12.15.gemfile
196
211
  - test/gemfiles/chef-12.16.gemfile
197
212
  - test/gemfiles/chef-12.17.gemfile
213
+ - test/gemfiles/chef-12.18.gemfile
214
+ - test/gemfiles/chef-12.19.gemfile
198
215
  - test/gemfiles/chef-12.2.gemfile
216
+ - test/gemfiles/chef-12.20.gemfile
217
+ - test/gemfiles/chef-12.21.gemfile
199
218
  - test/gemfiles/chef-12.3.gemfile
200
219
  - test/gemfiles/chef-12.4.gemfile
201
220
  - test/gemfiles/chef-12.5.gemfile
@@ -204,6 +223,15 @@ test_files:
204
223
  - test/gemfiles/chef-12.8.gemfile
205
224
  - test/gemfiles/chef-12.9.gemfile
206
225
  - test/gemfiles/chef-12.gemfile
226
+ - test/gemfiles/chef-13.0.gemfile
227
+ - test/gemfiles/chef-13.1.gemfile
228
+ - test/gemfiles/chef-13.2.gemfile
229
+ - test/gemfiles/chef-13.3.gemfile
230
+ - test/gemfiles/chef-13.4.gemfile
231
+ - test/gemfiles/chef-13.5.gemfile
232
+ - test/gemfiles/chef-13.6.gemfile
233
+ - test/gemfiles/chef-13.8.gemfile
234
+ - test/gemfiles/chef-13.gemfile
207
235
  - test/gemfiles/master.gemfile
208
236
  - test/integration/default/serverspec/Gemfile
209
237
  - test/integration/default/serverspec/bundle_install_spec.rb