poise-ruby-build 1.0.1 → 1.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: 4a07eca70f6f3304b38de491b2126559cce39fdc
4
- data.tar.gz: 33230f856c92200db06613fe73a23fa07290c168
3
+ metadata.gz: a1f54d7cef4dc8ff0ef87e1b6438d1daaab3a5a2
4
+ data.tar.gz: 2f17a794cb20c0e0459c2081eb7c06557c6d457d
5
5
  SHA512:
6
- metadata.gz: c9737a634499b2f4235d298f5366e64dd3dacc0a6c20b12ac1b8dc3ba8c8b425e58a375e5fe3dc00f84ef9c00108a8cb4dbebba09e411eb68fff96f58fde2320
7
- data.tar.gz: 369afe47117c8ea584f192fbc237d91e09d00416504d4dfcbb5dcb64a10c426fa2f48a99f23c4dc72eb075d2d54877930cb90aae40e809e3f59cf5038bd8b2f1
6
+ metadata.gz: 4cab153c49cf867e85f1b414a500783ee98198b0b3e7c62d7247d1a5956ada74ef62668b827e71df1c6f126191bfe21a4f58f6d81bbea6411a395306bd1ede33
7
+ data.tar.gz: 1e192871d2bed258b1d53b96f9558bcbf48d1cd87c0ec467c9320f91ef6c914901db8bce390750de105435ad2377e2cb4110841e0beddec27a1baa6ddf3df6db
data/.kitchen.yml CHANGED
@@ -1,8 +1,3 @@
1
1
  ---
2
2
  #<% require 'poise_boiler' %>
3
- <%= PoiseBoiler.kitchen(platforms: 'linux') %>
4
-
5
- suites:
6
- - name: default
7
- run_list:
8
- - recipe[poise-ruby-build_test]
3
+ <%= PoiseBoiler.kitchen %>
data/.travis.yml CHANGED
@@ -11,11 +11,17 @@ addons:
11
11
  env:
12
12
  global:
13
13
  - USE_SYSTEM_GECODE=true
14
- - KITCHEN_LOCAL_YAML=.kitchen.travis.yml
15
14
  - secure: lqst12Un4L5SLj0I8VlU7aRwXDoEPemuRcQrP1+wQA8f1YGnxe5fWMnjnWNHi3dsxshYDBZmjyXzKxnju2v7OJdtLNSGcJlFAz/0PwJOwAuM/rFqK/PXMgYZDS2BgvYdsDOEYoVdC8dL7N5Q/Ri3nst4uCThDcv2XX9F7gAAWLc=
15
+ before_install: "gem install bundler"
16
16
  bundler_args: "--binstubs=$PWD/bin --jobs 3 --retry 3"
17
17
  script:
18
18
  - "./bin/rake travis"
19
19
  gemfile:
20
20
  - test/gemfiles/chef-12.gemfile
21
+ - test/gemfiles/chef-12.1.gemfile
22
+ - test/gemfiles/chef-12.2.gemfile
23
+ - test/gemfiles/chef-12.3.gemfile
24
+ - test/gemfiles/chef-12.4.gemfile
25
+ - test/gemfiles/chef-12.5.gemfile
26
+ - test/gemfiles/chef-12.6.gemfile
21
27
  - test/gemfiles/master.gemfile
data/Berksfile CHANGED
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2015, Noah Kantrowitz
2
+ # Copyright 2015-2016, 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.
@@ -22,8 +22,3 @@ cookbook 'poise', gem: 'poise'
22
22
  cookbook 'poise-languages', gem: 'poise-languages'
23
23
  cookbook 'poise-ruby', gem: 'poise-ruby'
24
24
  cookbook 'poise-ruby-build', gem: 'poise-ruby-build'
25
-
26
- group :test do
27
- cookbook 'poise-ruby-build_test', path: 'test/cookbooks/poise-ruby-build_test'
28
- cookbook 'apt'
29
- end
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Poise-Ruby-Build Changelog
2
2
 
3
+ ## v1.0.2
4
+
5
+ * Fix a typo that prevented uninstalling `ruby_build` runtimes.
6
+ * Ensure bzip2 is installed as some minimal Linux images do not include it.
7
+
3
8
  ## v1.0.1
4
9
 
5
10
  * Install bundler in the same way as other `ruby_runtime` providers.
data/Gemfile CHANGED
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2015, Noah Kantrowitz
2
+ # Copyright 2015-2016, 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.
@@ -32,3 +32,4 @@ dev_gem 'poise'
32
32
  dev_gem 'poise-boiler'
33
33
  dev_gem 'poise-ruby'
34
34
  dev_gem 'poise-languages'
35
+ dev_gem 'poise-profiler'
data/README.md CHANGED
@@ -38,7 +38,7 @@ The Poise test server infrastructure is sponsored by [Rackspace](https://rackspa
38
38
 
39
39
  ## License
40
40
 
41
- Copyright 2015, Noah Kantrowitz
41
+ Copyright 2015-2016, Noah Kantrowitz
42
42
 
43
43
  Licensed under the Apache License, Version 2.0 (the "License");
44
44
  you may not use this file except in compliance with the License.
data/Rakefile CHANGED
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2015, Noah Kantrowitz
2
+ # Copyright 2015-2016, 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.
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2015, Noah Kantrowitz
2
+ # Copyright 2015-2016, 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.
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2015, Noah Kantrowitz
2
+ # Copyright 2015-2016, 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.
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2015, Noah Kantrowitz
2
+ # Copyright 2015-2016, 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.
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2015, Noah Kantrowitz
2
+ # Copyright 2015-2016, 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.
@@ -96,7 +96,8 @@ module PoiseRuby
96
96
  install_ruby_build
97
97
  install_dependencies
98
98
  # Possible failed install or a version change. Wipe the existing build.
99
- remove_ruby if ::File.exists?(::File.join(options['prefix'], 'builds', new_resource.name))
99
+ # If we weren't going to rebuild, we would have bailed out already.
100
+ uninstall_ruby
100
101
  end
101
102
  # Second converge has ruby-build installed so using #ruby_definition
102
103
  # is safe.
@@ -163,7 +164,7 @@ module PoiseRuby
163
164
  unless options['version'].start_with?('jruby')
164
165
  pkgs = node.value_for_platform_family(
165
166
  debian: %w{libreadline6-dev zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev libxml2-dev libxslt1-dev},
166
- rhel: %w{tar readline-devel zlib-devel libffi-devel openssl-devel libxml2-devel libxslt-devel},
167
+ rhel: %w{tar bzip2 readline-devel zlib-devel libffi-devel openssl-devel libxml2-devel libxslt-devel},
167
168
  suse: %w{zlib-devel libffi-devel sqlite3-devel libxml2-devel libxslt-devel},
168
169
  )
169
170
  package pkgs if pkgs
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2015, Noah Kantrowitz
2
+ # Copyright 2015-2016, 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,6 +17,6 @@
17
17
 
18
18
  module PoiseRuby
19
19
  module RubyBuild
20
- VERSION = '1.0.1'
20
+ VERSION = '1.0.2'
21
21
  end
22
22
  end
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2015, Noah Kantrowitz
2
+ # Copyright 2015-2016, 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,7 +37,8 @@ Gem::Specification.new do |spec|
37
37
  spec.add_dependency 'poise', '~> 2.0'
38
38
  spec.add_dependency 'poise-ruby', '~> 2.1'
39
39
 
40
- spec.add_development_dependency 'poise-boiler', '~> 1.0'
40
+ spec.add_development_dependency 'berkshelf', '~> 4.0'
41
+ spec.add_development_dependency 'poise-boiler', '~> 1.6'
41
42
 
42
43
  spec.metadata['halite_dependencies'] = 'git ~> 4.2, build-essential ~> 2.2'
43
44
  end
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2015, Noah Kantrowitz
2
+ # Copyright 2015-2016, 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.
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2015, Noah Kantrowitz
2
+ # Copyright 2015-2016, 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.
@@ -0,0 +1,19 @@
1
+ #
2
+ # Copyright 2015-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.1.2'
@@ -0,0 +1,19 @@
1
+ #
2
+ # Copyright 2015-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.2.1'
@@ -0,0 +1,19 @@
1
+ #
2
+ # Copyright 2015-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.3.0'
@@ -0,0 +1,21 @@
1
+ #
2
+ # Copyright 2015-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.4.3'
20
+ # Pending https://github.com/berkshelf/ridley/pull/335
21
+ gem 'ridley', '4.4.1'
@@ -0,0 +1,19 @@
1
+ #
2
+ # Copyright 2015-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.5.1'
@@ -0,0 +1,19 @@
1
+ #
2
+ # Copyright 2015-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.6.0'
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2015, Noah Kantrowitz
2
+ # Copyright 2015-2016, 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.0'
19
+ gem 'chef', '~> 12.6'
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2015, Noah Kantrowitz
2
+ # Copyright 2015-2016, 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.
@@ -22,3 +22,4 @@ gem 'poise', github: 'poise/poise'
22
22
  gem 'poise-boiler', github: 'poise/poise-boiler'
23
23
  gem 'poise-ruby', github: 'poise/poise-ruby'
24
24
  gem 'poise-languages', github: 'poise/poise-languages'
25
+ gem 'poise-profiler', github: 'poise/poise-profiler'
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2015, Noah Kantrowitz
2
+ # Copyright 2015-2016, 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.
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2015, Noah Kantrowitz
2
+ # Copyright 2015-2016, 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.
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2015, Noah Kantrowitz
2
+ # Copyright 2015-2016, 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.
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2015, Noah Kantrowitz
2
+ # Copyright 2015-2016, 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.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poise-ruby-build
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noah Kantrowitz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-03 00:00:00.000000000 Z
11
+ date: 2016-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: halite
@@ -52,20 +52,34 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '2.1'
55
+ - !ruby/object:Gem::Dependency
56
+ name: berkshelf
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '4.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '4.0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: poise-boiler
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
73
  - - "~>"
60
74
  - !ruby/object:Gem::Version
61
- version: '1.0'
75
+ version: '1.6'
62
76
  type: :development
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
80
  - - "~>"
67
81
  - !ruby/object:Gem::Version
68
- version: '1.0'
82
+ version: '1.6'
69
83
  description: A Chef cookbook for managing Ruby installations using ruby-build.
70
84
  email:
71
85
  - noah@coderanger.net
@@ -74,7 +88,6 @@ extensions: []
74
88
  extra_rdoc_files: []
75
89
  files:
76
90
  - ".gitignore"
77
- - ".kitchen.travis.yml"
78
91
  - ".kitchen.yml"
79
92
  - ".travis.yml"
80
93
  - ".yardopts"
@@ -90,10 +103,16 @@ files:
90
103
  - lib/poise_ruby/ruby_build/provider.rb
91
104
  - lib/poise_ruby/ruby_build/version.rb
92
105
  - poise-ruby-build.gemspec
93
- - test/cookbooks/poise-ruby-build_test/metadata.rb
94
- - test/cookbooks/poise-ruby-build_test/recipes/default.rb
106
+ - test/cookbook/metadata.rb
107
+ - test/cookbook/recipes/default.rb
95
108
  - test/docker/docker.ca
96
109
  - test/docker/docker.pem
110
+ - test/gemfiles/chef-12.1.gemfile
111
+ - test/gemfiles/chef-12.2.gemfile
112
+ - test/gemfiles/chef-12.3.gemfile
113
+ - test/gemfiles/chef-12.4.gemfile
114
+ - test/gemfiles/chef-12.5.gemfile
115
+ - test/gemfiles/chef-12.6.gemfile
97
116
  - test/gemfiles/chef-12.gemfile
98
117
  - test/gemfiles/master.gemfile
99
118
  - test/integration/default/serverspec/Gemfile
@@ -121,15 +140,21 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
140
  version: '0'
122
141
  requirements: []
123
142
  rubyforge_project:
124
- rubygems_version: 2.4.8
143
+ rubygems_version: 2.6.2
125
144
  signing_key:
126
145
  specification_version: 4
127
146
  summary: A Chef cookbook for managing Ruby installations using ruby-build.
128
147
  test_files:
129
- - test/cookbooks/poise-ruby-build_test/metadata.rb
130
- - test/cookbooks/poise-ruby-build_test/recipes/default.rb
148
+ - test/cookbook/metadata.rb
149
+ - test/cookbook/recipes/default.rb
131
150
  - test/docker/docker.ca
132
151
  - test/docker/docker.pem
152
+ - test/gemfiles/chef-12.1.gemfile
153
+ - test/gemfiles/chef-12.2.gemfile
154
+ - test/gemfiles/chef-12.3.gemfile
155
+ - test/gemfiles/chef-12.4.gemfile
156
+ - test/gemfiles/chef-12.5.gemfile
157
+ - test/gemfiles/chef-12.6.gemfile
133
158
  - test/gemfiles/chef-12.gemfile
134
159
  - test/gemfiles/master.gemfile
135
160
  - test/integration/default/serverspec/Gemfile
data/.kitchen.travis.yml DELETED
@@ -1,9 +0,0 @@
1
- ---
2
- driver:
3
- name: docker
4
- binary: "./docker"
5
- socket: tcp://docker.poise.io:443
6
- tls_verify: true
7
- tls_cacert: test/docker/docker.ca
8
- tls_cert: test/docker/docker.pem
9
- tls_key: test/docker/docker.key