fraggle 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/fraggle/snap.rb CHANGED
@@ -4,11 +4,12 @@ module Fraggle
4
4
 
5
5
  class Snap
6
6
 
7
- attr_reader :id
7
+ attr_reader :id, :rev, :c
8
8
 
9
- def initialize(id, c)
10
- @id = id
11
- @c = c
9
+ def initialize(id, c, rev=nil)
10
+ @id = id
11
+ @c = c
12
+ @rev = rev
12
13
  end
13
14
 
14
15
  def get(path, &blk)
@@ -29,7 +30,7 @@ module Fraggle
29
30
 
30
31
  def snap(&blk)
31
32
  @c.snap do |res|
32
- sn = Snap.new(res.id, @c)
33
+ sn = Snap.new(res.id, @c, res.rev)
33
34
  blk.call(sn)
34
35
  end
35
36
  end
@@ -8,7 +8,7 @@ class FraggleClientTest < Test::Unit::TestCase
8
8
  attr_reader :c, :blk
9
9
 
10
10
  def setup
11
- @c = TestClient.new("doozer:?ca=127.0.0.1:8046")
11
+ @c = TestClient.new(["127.0.0.1:8046"])
12
12
  @blk = Blk.new
13
13
  end
14
14
 
@@ -82,7 +82,7 @@ class FraggleProtocolTest < Test::Unit::TestCase
82
82
 
83
83
  def initialize
84
84
  @data = ""
85
- super("doozer:?ca=127.0.0.1:8046")
85
+ super(["127.0.0.1:8046"])
86
86
  end
87
87
 
88
88
  def send_data(data)
@@ -7,7 +7,7 @@ class FraggleSnapTest < Test::Unit::TestCase
7
7
  attr_reader :c, :blk
8
8
 
9
9
  def setup
10
- cl = TestClient.new("doozer:?ca=127.0.0.1:8046")
10
+ cl = TestClient.new(["127.0.0.1:8046"])
11
11
  @c = Fraggle::Snap.new(1, cl)
12
12
  @blk = Blk.new
13
13
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 0
9
- version: 0.3.0
8
+ - 1
9
+ version: 0.3.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Blake Mizerany