cadun 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/cadun/user.rb CHANGED
@@ -14,7 +14,7 @@ module Cadun
14
14
  end
15
15
 
16
16
  def initialize(glb_id, ip, service_id)
17
- @gateway = Gateway.new(@glb_id, @ip, @service_id)
17
+ @gateway = Gateway.new(glb_id, ip, service_id)
18
18
  end
19
19
 
20
20
  def address
data/lib/cadun/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Cadun
2
2
  module VERSION
3
3
  MAJOR = 0
4
- MINOR = 1
4
+ MINOR = 2
5
5
  TINY = 0
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY] * '.'
@@ -8,6 +8,11 @@ describe Cadun::User do
8
8
  stub_requests
9
9
  end
10
10
 
11
+ it "should load a gateway" do
12
+ mock(Cadun::Gateway).new("GLB_ID", "127.0.0.1", 2626)
13
+ Cadun::User.new("GLB_ID", "127.0.0.1", 2626)
14
+ end
15
+
11
16
  subject { Cadun::User.new("GLB_ID", "127.0.0.1", 2626) }
12
17
 
13
18
  describe "#id" do
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: cadun
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.0
5
+ version: 0.2.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Bruno Azisaka Maciel
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-23 00:00:00 -03:00
13
+ date: 2011-05-24 00:00:00 -03:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency