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.
@@ -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],
Binary file
@@ -1,6 +1,6 @@
1
1
  module TorqueboxConfigure
2
- VERSION = '2.0.0.beta2'
3
- MAVEN_VERSION = '2.0.0.beta2'
2
+ VERSION = '2.0.0.beta3'
3
+ MAVEN_VERSION = '2.0.0.beta3'
4
4
  end
5
5
  begin
6
6
  require 'java'
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.beta2
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-05 00:00:00 Z
13
+ date: 2012-01-24 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: blankslate