poise-application-ruby 4.0.0 → 4.0.1

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: 343aa4e79f85226ba678e935e7ae7455dc57abea
4
- data.tar.gz: 0ee0d3e1e405df44b900755ec0ca0e75846745a2
3
+ metadata.gz: 8d4fcc59ff9d0aa94c65e9bb2a610393e570b428
4
+ data.tar.gz: 6b286b88c179d78ad14c948263d3b7532b8f7db3
5
5
  SHA512:
6
- metadata.gz: 246cadc649d172574d28db4a73b7ae8146be262908bfedbc0aabdd1f3546f255370323027b347def19fc9061664b0678cf99d60fe2751e946147e2ec5968cfcd
7
- data.tar.gz: 672ab1dad613233205745ba92748c7381e702d71a7c88e65ec85025f7199e80c37811057aded2fc19a176d093d58d42c629a1553ec7d1b6f2edbe5993e7e7683
6
+ metadata.gz: 8a977b15690a4fe6dc57398f0d983b1cdd2e10e37d2bcd015cdfc032bdfa7f9f0da56f9d1d50391a9f71156dafb4eb3b6ba155c84c5dff678ff4c77b9f245f5d
7
+ data.tar.gz: fdd020c99ca1b6d82aec9cdcb7a03e80269cf8da3141987040b8751324c5fa08fae43b46f77de746eefb67995cd281b6c207b546f04fd4176c3d692762651950
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Application_Ruby Changelog
2
2
 
3
+ ## v4.0.1
4
+
5
+ * Correct `gem_binary` results for `application_ruby`.
6
+
3
7
  ## v4.0.0
4
8
 
5
9
  * Massive rewrite on top of newer Chef patterns. See the 4.0 README for details.
@@ -42,6 +42,12 @@ module PoiseApplicationRuby
42
42
  container_default(false)
43
43
  subclass_providers!
44
44
 
45
+ # Rebind the parent class #gem_binary instead of the one from
46
+ # RubyCommandMixin (by way of AppMixin)
47
+ def gem_binary(*args, &block)
48
+ self.class.superclass.instance_method(:gem_binary).bind(self).call(*args, &block)
49
+ end
50
+
45
51
  # Set this resource as the app_state's parent ruby.
46
52
  #
47
53
  # @api private
@@ -15,5 +15,5 @@
15
15
  #
16
16
 
17
17
  module PoiseApplicationRuby
18
- VERSION = '4.0.0'
18
+ VERSION = '4.0.1'
19
19
  end
@@ -0,0 +1,31 @@
1
+ #
2
+ # Copyright 2015, 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
+ require 'spec_helper'
18
+
19
+ describe PoiseApplicationRuby::Resources::Ruby do
20
+ recipe do
21
+ application '/test' do
22
+ ruby do
23
+ provider :dummy
24
+ end
25
+ ruby_gem 'test'
26
+ end
27
+ end
28
+
29
+ it { is_expected.to install_application_ruby('/test').with(ruby_binary: '/ruby', gem_binary: '/gem') }
30
+ it { is_expected.to install_application_ruby_gem('test').with(ruby: '/ruby', gem_binary: '/gem') }
31
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poise-application-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.1
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-05 00:00:00.000000000 Z
11
+ date: 2015-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: halite
@@ -158,6 +158,7 @@ files:
158
158
  - test/integration/default/serverspec/rails_spec.rb
159
159
  - test/integration/default/serverspec/sinatra_spec.rb
160
160
  - test/spec/resources/ruby_execute_spec.rb
161
+ - test/spec/resources/ruby_spec.rb
161
162
  - test/spec/spec_helper.rb
162
163
  homepage: https://github.com/poise/application_ruby
163
164
  licenses:
@@ -198,5 +199,6 @@ test_files:
198
199
  - test/integration/default/serverspec/rails_spec.rb
199
200
  - test/integration/default/serverspec/sinatra_spec.rb
200
201
  - test/spec/resources/ruby_execute_spec.rb
202
+ - test/spec/resources/ruby_spec.rb
201
203
  - test/spec/spec_helper.rb
202
204
  has_rdoc: