torquebox-configure 2.0.0.beta2-java → 2.0.0.beta3-java
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/torquebox/configuration/global.rb +3 -0
- data/lib/torquebox-configure.jar +0 -0
- data/lib/torquebox-configure.rb +2 -2
- data/spec/global_spec.rb +10 -0
- metadata +2 -2
@@ -45,6 +45,9 @@ module TorqueBox
|
|
45
45
|
:credential => ThingsEntry.with_settings(:require_parent => [:authentication],
|
46
46
|
:discrete => true),
|
47
47
|
:environment => OptionsEntry,
|
48
|
+
:injection => OptionsEntry.with_settings(:validate => {
|
49
|
+
:required => [{ :enabled => [true, false] }]
|
50
|
+
}),
|
48
51
|
:job => ThingWithOptionsEntry.with_settings(:discrete => true,
|
49
52
|
:validate => {
|
50
53
|
:required => [:cron],
|
data/lib/torquebox-configure.jar
CHANGED
Binary file
|
data/lib/torquebox-configure.rb
CHANGED
data/spec/global_spec.rb
CHANGED
@@ -137,6 +137,16 @@ describe "TorqueBox.configure using the GlobalConfiguration" do
|
|
137
137
|
config['<root>']['environment'].should == { 'foo' => 'bar', 'bar' => 'baz' }
|
138
138
|
end
|
139
139
|
end
|
140
|
+
|
141
|
+
describe '#injection' do
|
142
|
+
before(:each) { @method = 'injection' }
|
143
|
+
it_should_behave_like 'options'
|
144
|
+
|
145
|
+
it_should_not_allow_invalid_options { injection :foo => :bar }
|
146
|
+
it_should_allow_valid_options { injection :enabled => true }
|
147
|
+
it_should_allow_valid_options { injection :enabled => false }
|
148
|
+
|
149
|
+
end
|
140
150
|
|
141
151
|
describe '#ruby' do
|
142
152
|
before(:each) { @method = 'ruby' }
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: torquebox-configure
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease: 6
|
5
|
-
version: 2.0.0.
|
5
|
+
version: 2.0.0.beta3
|
6
6
|
platform: java
|
7
7
|
authors:
|
8
8
|
- The TorqueBox Team
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2012-01-
|
13
|
+
date: 2012-01-24 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: blankslate
|