torquebox-configure 2.1.0-java → 2.1.1-java

Sign up to get free protection for your applications and to get access to all the features.
@@ -67,7 +67,7 @@ module TorqueBox
67
67
  }),
68
68
  :pool => ThingWithOptionsEntry.with_settings(:validate => {
69
69
  :required => [{ :type => [:bounded, :shared] }],
70
- :optional => [:min, :max]
70
+ :optional => [:min, :max, { :lazy => [true, false] }]
71
71
  }),
72
72
  :processor => ThingWithOptionsEntry.with_settings(:require_parent => [:queue, :topic],
73
73
  :discrete => true,
Binary file
@@ -1,6 +1,6 @@
1
1
  module TorqueboxConfigure
2
- VERSION = '2.1.0'
3
- MAVEN_VERSION = '2.1.0'
2
+ VERSION = '2.1.1'
3
+ MAVEN_VERSION = '2.1.1'
4
4
  end
5
5
  begin
6
6
  require 'java'
data/spec/global_spec.rb CHANGED
@@ -175,11 +175,15 @@ describe "TorqueBox.configure using the GlobalConfiguration" do
175
175
  before(:each) { @method = 'pool' }
176
176
  it_should_behave_like 'a thing with options'
177
177
 
178
+ # type is required
179
+ it_should_not_allow_invalid_options { pool 'a-name', :min => 3, :max => 5 }
180
+
178
181
  it_should_not_allow_invalid_options { pool 'a-name', :foo => :bar }
179
- it_should_allow_valid_options { pool 'a-name', :type => :shared, :min => '', :max => '' }
182
+ it_should_allow_valid_options { pool 'a-name', :type => :shared, :min => '', :max => '', :lazy => true }
180
183
 
181
184
  it_should_not_allow_invalid_option_values { pool 'a-name', :type => :bacon }
182
- it_should_allow_valid_option_values { pool 'a-name', :type => :shared }
185
+ it_should_not_allow_invalid_option_values { pool 'a-name', :type => :shared, :lazy => 'foo' }
186
+ it_should_allow_valid_option_values { pool 'a-name', :type => :shared, :lazy => false }
183
187
  end
184
188
 
185
189
  %w{ queue topic }.each do |method|
@@ -462,7 +466,8 @@ describe "TorqueBox.configure using the GlobalConfiguration" do
462
466
  :durable => true,
463
467
  :client_id => 'client-id',
464
468
  :config => { :foo => :bar } } ] ] } },
465
- 'web' => { :context => '/bacon' }
469
+ 'web' => { :context => '/bacon',
470
+ :host => ['host1', 'host2'] }
466
471
  }
467
472
 
468
473
  @metadata = @config.to_metadata_hash
@@ -546,10 +551,17 @@ describe "TorqueBox.configure using the GlobalConfiguration" do
546
551
  @metadata['topics']['a-topic'].should == { 'durable' => true }
547
552
  end
548
553
 
549
- it "should properly set web" do
554
+ it "should properly set context" do
550
555
  @metadata['web']['context'].should == '/bacon'
551
556
  end
557
+
558
+ it "should properly set hosts" do
559
+ @metadata['web']['host'].to_a.should == ['host1', 'host2']
560
+ end
561
+
562
+
552
563
  end
564
+
553
565
  end
554
566
 
555
567
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: torquebox-configure
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.1.0
5
+ version: 2.1.1
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-07-26 00:00:00 Z
13
+ date: 2012-08-27 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: blankslate
@@ -48,13 +48,13 @@ files:
48
48
  - lib/torquebox-configure.jar
49
49
  - lib/torquebox-configure.rb
50
50
  - lib/gem_hook.rb
51
- - lib/torquebox/configuration.rb
52
51
  - lib/torquebox/configure.rb
53
- - lib/torquebox/configuration/validator.rb
52
+ - lib/torquebox/configuration.rb
54
53
  - lib/torquebox/configuration/global.rb
55
- - spec/options_macros.rb
56
- - spec/global_spec.rb
54
+ - lib/torquebox/configuration/validator.rb
57
55
  - spec/validator_spec.rb
56
+ - spec/global_spec.rb
57
+ - spec/options_macros.rb
58
58
  homepage: http://torquebox.org/
59
59
  licenses:
60
60
  - lgpl
@@ -83,5 +83,5 @@ signing_key:
83
83
  specification_version: 3
84
84
  summary: TorqueBox Configure Gem
85
85
  test_files:
86
- - spec/global_spec.rb
87
86
  - spec/validator_spec.rb
87
+ - spec/global_spec.rb