torquebox-naming 1.1.1-java → 2.0.0.beta1-java

Sign up to get free protection for your applications and to get access to all the features.
Binary file
@@ -1,13 +1,10 @@
1
1
  module TorqueboxNaming
2
- VERSION = '1.1.1'
3
- MAVEN_VERSION = '1.1.1'
2
+ VERSION = '2.0.0.beta1'
3
+ MAVEN_VERSION = '2.0.0.beta1'
4
4
  end
5
5
  begin
6
6
  require 'java'
7
7
  require File.dirname(__FILE__) + '/torquebox-naming.jar'
8
- require File.dirname(__FILE__) + '/jnp-client-5.0.5.Final.jar'
9
- require File.dirname(__FILE__) + '/jboss-common-core-2.2.17.GA.jar'
10
- require File.dirname(__FILE__) + '/jboss-logging-3.0.0.Beta4.jar'
11
8
  rescue LoadError
12
9
  puts 'JAR-based gems require JRuby to load. Please visit www.jruby.org.'
13
10
  raise
@@ -1,5 +1,5 @@
1
- GNU LESSER GENERAL PUBLIC LICENSE
2
- Version 2.1, February 1999
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 2.1, February 1999
3
3
 
4
4
  Copyright (C) 1991, 1999 Free Software Foundation, Inc.
5
5
  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
@@ -10,7 +10,7 @@
10
10
  as the successor of the GNU Library Public License, version 2, hence
11
11
  the version number 2.1.]
12
12
 
13
- Preamble
13
+ Preamble
14
14
 
15
15
  The licenses for most software are designed to take away your
16
16
  freedom to share and change it. By contrast, the GNU General Public
@@ -112,7 +112,7 @@ modification follow. Pay close attention to the difference between a
112
112
  former contains code derived from the library, whereas the latter must
113
113
  be combined with the library in order to run.
114
114
 
115
- GNU LESSER GENERAL PUBLIC LICENSE
115
+ GNU LESSER GENERAL PUBLIC LICENSE
116
116
  TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
117
117
 
118
118
  0. This License Agreement applies to any software library or other
@@ -146,7 +146,7 @@ such a program is covered only if its contents constitute a work based
146
146
  on the Library (independent of the use of the Library in a tool for
147
147
  writing it). Whether that is true depends on what the Library does
148
148
  and what the program that uses the Library does.
149
-
149
+
150
150
  1. You may copy and distribute verbatim copies of the Library's
151
151
  complete source code as you receive it, in any medium, provided that
152
152
  you conspicuously and appropriately publish on each copy an
@@ -432,7 +432,7 @@ decision will be guided by the two goals of preserving the free status
432
432
  of all derivatives of our free software and of promoting the sharing
433
433
  and reuse of software generally.
434
434
 
435
- NO WARRANTY
435
+ NO WARRANTY
436
436
 
437
437
  15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
438
438
  WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
@@ -455,7 +455,7 @@ FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
455
455
  SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
456
456
  DAMAGES.
457
457
 
458
- END OF TERMS AND CONDITIONS
458
+ END OF TERMS AND CONDITIONS
459
459
 
460
460
  How to Apply These Terms to Your New Libraries
461
461
 
@@ -500,5 +500,3 @@ necessary. Here is a sample; alter the names:
500
500
  Ty Coon, President of Vice
501
501
 
502
502
  That's all there is to it!
503
-
504
-
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: torquebox-naming
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 1.1.1
4
+ prerelease: 6
5
+ version: 2.0.0.beta1
6
6
  platform: java
7
7
  authors:
8
8
  - The TorqueBox Team
@@ -10,8 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-08-09 00:00:00 -04:00
14
- default_executable:
13
+ date: 2011-12-02 00:00:00 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: rspec
@@ -21,7 +20,7 @@ dependencies:
21
20
  requirements:
22
21
  - - "="
23
22
  - !ruby/object:Gem::Version
24
- version: 2.3.0
23
+ version: 2.7.0
25
24
  type: :development
26
25
  version_requirements: *id001
27
26
  description: ""
@@ -37,16 +36,11 @@ files:
37
36
  - licenses/lgpl-2.1.txt
38
37
  - lib/torquebox-naming.jar
39
38
  - lib/torquebox-naming.rb
40
- - lib/jnp-client-5.0.5.Final.jar
41
- - lib/jboss-common-core-2.2.17.GA.jar
42
- - lib/jboss-logging-3.0.0.Beta4.jar
43
39
  - lib/gem_hook.rb
44
40
  - lib/org.torquebox.naming-client.rb
45
41
  - lib/torquebox/naming.rb
46
42
  - lib/torquebox/naming/ext/javax_naming_context.rb
47
- - spec/naming_spec.rb
48
- has_rdoc: true
49
- homepage: http://www.torquebox.org/client-parent/torquebox-naming/
43
+ homepage: http://www.torquebox.org/torquebox-gems-parent/torquebox-naming/
50
44
  licenses:
51
45
  - lgpl
52
46
  post_install_message:
@@ -63,15 +57,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
63
57
  required_rubygems_version: !ruby/object:Gem::Requirement
64
58
  none: false
65
59
  requirements:
66
- - - ">="
60
+ - - ">"
67
61
  - !ruby/object:Gem::Version
68
- version: "0"
62
+ version: 1.3.1
69
63
  requirements: []
70
64
 
71
65
  rubyforge_project:
72
- rubygems_version: 1.5.1
66
+ rubygems_version: 1.8.9
73
67
  signing_key:
74
68
  specification_version: 3
75
69
  summary: TorqueBox Naming Client
76
- test_files:
77
- - spec/naming_spec.rb
70
+ test_files: []
71
+
Binary file
Binary file
Binary file
data/spec/naming_spec.rb DELETED
@@ -1,68 +0,0 @@
1
-
2
- require 'torquebox/naming'
3
-
4
- describe TorqueBox::Naming do
5
-
6
- describe "configuration" do
7
-
8
- before(:each) do
9
- java.lang::System.clearProperty( 'java.naming.provider.url' )
10
- java.lang::System.clearProperty( 'java.naming.factory.initial' )
11
- java.lang::System.clearProperty( 'java.naming.factory.url.pkgs' )
12
- end
13
-
14
- it "should set appropriate localhost-based defaults during configuration" do
15
- TorqueBox::Naming.configure
16
- java.lang::System.getProperty( 'java.naming.provider.url' ).should eql( 'jnp://localhost:1099/' )
17
- java.lang::System.getProperty( 'java.naming.factory.initial' ).should eql( 'org.jnp.interfaces.NamingContextFactory' )
18
- java.lang::System.getProperty( 'java.naming.factory.url.pkgs' ).should eql( 'org.jboss.naming:org.jnp.interfaces' )
19
- end
20
-
21
- it "should allow custom settings for default configuration" do
22
- TorqueBox::Naming.configure do |config|
23
- config.host = 'otherhost.com'
24
- config.port = '11099'
25
- end
26
- java.lang::System.getProperty( 'java.naming.provider.url' ).should eql( 'jnp://otherhost.com:11099/' )
27
- java.lang::System.getProperty( 'java.naming.factory.initial' ).should eql( 'org.jnp.interfaces.NamingContextFactory' )
28
- java.lang::System.getProperty( 'java.naming.factory.url.pkgs' ).should eql( 'org.jboss.naming:org.jnp.interfaces' )
29
- end
30
-
31
- end
32
-
33
- describe "operations" do
34
- before(:each) do
35
- @naming = org.jnp.server::SingletonNamingServer.new
36
- TorqueBox::Naming.configure_local
37
- end
38
-
39
- after(:each) do
40
- @naming.destroy
41
- end
42
-
43
- it "should allow binding and retrieving of named objects" do
44
- obj = "Howdy"
45
- TorqueBox::Naming.names.should be_empty
46
- TorqueBox::Naming['my_object'] = obj
47
- fetched_obj = TorqueBox::Naming['my_object']
48
- fetched_obj.should eql( obj )
49
- TorqueBox::Naming.names.size.should eql(1)
50
- end
51
- end
52
-
53
- describe "connection" do
54
- before(:each) do
55
- #@naming = org.jnp.server::SingletonNamingServer.new
56
- #TorqueBox::Naming.configure_local
57
- end
58
-
59
- it "should allow use custom connection (and fail)" do
60
- TorqueBox::Naming.connect( 'someotherhost.com', 12 ) do |context|
61
- lambda{ TorqueBox::Naming['my_object']}.should raise_error
62
- end
63
- end
64
-
65
- end
66
-
67
-
68
- end