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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/poise_application_ruby/resources/ruby.rb +6 -0
- data/lib/poise_application_ruby/version.rb +1 -1
- data/test/spec/resources/ruby_spec.rb +31 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d4fcc59ff9d0aa94c65e9bb2a610393e570b428
|
4
|
+
data.tar.gz: 6b286b88c179d78ad14c948263d3b7532b8f7db3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a977b15690a4fe6dc57398f0d983b1cdd2e10e37d2bcd015cdfc032bdfa7f9f0da56f9d1d50391a9f71156dafb4eb3b6ba155c84c5dff678ff4c77b9f245f5d
|
7
|
+
data.tar.gz: fdd020c99ca1b6d82aec9cdcb7a03e80269cf8da3141987040b8751324c5fa08fae43b46f77de746eefb67995cd281b6c207b546f04fd4176c3d692762651950
|
data/CHANGELOG.md
CHANGED
@@ -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
|
@@ -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.
|
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-
|
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:
|