flockdb 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/flockdb.gemspec +5 -5
- data/lib/flock/client.rb +1 -1
- data/spec/flock_spec.rb +9 -0
- metadata +18 -5
data/Rakefile
CHANGED
@@ -20,7 +20,7 @@ begin
|
|
20
20
|
gemspec.summary = "Ruby Flock client"
|
21
21
|
gemspec.description = "Get your flock on in Ruby."
|
22
22
|
gemspec.email = "freels@twitter.com"
|
23
|
-
gemspec.homepage = "http://
|
23
|
+
gemspec.homepage = "http://github.com/twitter/flockdb-client"
|
24
24
|
gemspec.authors = ["Matt Freels", "Rael Dornfest", "Nick Kallen"]
|
25
25
|
gemspec.add_dependency 'thrift', '>= 0.2.0'
|
26
26
|
gemspec.add_dependency 'thrift_client', '>= 0.4.1'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.1
|
data/flockdb.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{flockdb}
|
8
|
-
s.version = "0.4.
|
8
|
+
s.version = "0.4.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Matt Freels", "Rael Dornfest", "Nick Kallen"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-10-22}
|
13
13
|
s.description = %q{Get your flock on in Ruby.}
|
14
14
|
s.email = %q{freels@twitter.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -49,10 +49,10 @@ Gem::Specification.new do |s|
|
|
49
49
|
"spec/spec.opts",
|
50
50
|
"spec/spec_helper.rb"
|
51
51
|
]
|
52
|
-
s.homepage = %q{http://
|
52
|
+
s.homepage = %q{http://github.com/twitter/flockdb-client}
|
53
53
|
s.rdoc_options = ["--charset=UTF-8"]
|
54
54
|
s.require_paths = ["lib"]
|
55
|
-
s.rubygems_version = %q{1.3.
|
55
|
+
s.rubygems_version = %q{1.3.7}
|
56
56
|
s.summary = %q{Ruby Flock client}
|
57
57
|
s.test_files = [
|
58
58
|
"spec/execute_operations_spec.rb",
|
@@ -67,7 +67,7 @@ Gem::Specification.new do |s|
|
|
67
67
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
68
68
|
s.specification_version = 3
|
69
69
|
|
70
|
-
if Gem::Version.new(Gem::
|
70
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
71
71
|
s.add_runtime_dependency(%q<thrift>, [">= 0.2.0"])
|
72
72
|
s.add_runtime_dependency(%q<thrift_client>, [">= 0.4.1"])
|
73
73
|
s.add_development_dependency(%q<rspec>, [">= 0"])
|
data/lib/flock/client.rb
CHANGED
data/spec/flock_spec.rb
CHANGED
@@ -16,6 +16,15 @@ describe Flock do
|
|
16
16
|
it 'works' do
|
17
17
|
flock.contains(1,1,2).should == true
|
18
18
|
end
|
19
|
+
|
20
|
+
it 'works within nested transactions' do
|
21
|
+
flock.transaction do
|
22
|
+
flock.transaction do |f|
|
23
|
+
f.add(1,1,5)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
flock.contains(1,1,5).should == true
|
27
|
+
end
|
19
28
|
end
|
20
29
|
|
21
30
|
describe 'remove' do
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flockdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 13
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 4
|
8
|
-
-
|
9
|
-
version: 0.4.
|
9
|
+
- 1
|
10
|
+
version: 0.4.1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Matt Freels
|
@@ -16,16 +17,18 @@ autorequire:
|
|
16
17
|
bindir: bin
|
17
18
|
cert_chain: []
|
18
19
|
|
19
|
-
date: 2010-
|
20
|
+
date: 2010-10-22 00:00:00 -07:00
|
20
21
|
default_executable:
|
21
22
|
dependencies:
|
22
23
|
- !ruby/object:Gem::Dependency
|
23
24
|
name: thrift
|
24
25
|
prerelease: false
|
25
26
|
requirement: &id001 !ruby/object:Gem::Requirement
|
27
|
+
none: false
|
26
28
|
requirements:
|
27
29
|
- - ">="
|
28
30
|
- !ruby/object:Gem::Version
|
31
|
+
hash: 23
|
29
32
|
segments:
|
30
33
|
- 0
|
31
34
|
- 2
|
@@ -37,9 +40,11 @@ dependencies:
|
|
37
40
|
name: thrift_client
|
38
41
|
prerelease: false
|
39
42
|
requirement: &id002 !ruby/object:Gem::Requirement
|
43
|
+
none: false
|
40
44
|
requirements:
|
41
45
|
- - ">="
|
42
46
|
- !ruby/object:Gem::Version
|
47
|
+
hash: 13
|
43
48
|
segments:
|
44
49
|
- 0
|
45
50
|
- 4
|
@@ -51,9 +56,11 @@ dependencies:
|
|
51
56
|
name: rspec
|
52
57
|
prerelease: false
|
53
58
|
requirement: &id003 !ruby/object:Gem::Requirement
|
59
|
+
none: false
|
54
60
|
requirements:
|
55
61
|
- - ">="
|
56
62
|
- !ruby/object:Gem::Version
|
63
|
+
hash: 3
|
57
64
|
segments:
|
58
65
|
- 0
|
59
66
|
version: "0"
|
@@ -63,9 +70,11 @@ dependencies:
|
|
63
70
|
name: rr
|
64
71
|
prerelease: false
|
65
72
|
requirement: &id004 !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
66
74
|
requirements:
|
67
75
|
- - ">="
|
68
76
|
- !ruby/object:Gem::Version
|
77
|
+
hash: 3
|
69
78
|
segments:
|
70
79
|
- 0
|
71
80
|
version: "0"
|
@@ -113,7 +122,7 @@ files:
|
|
113
122
|
- spec/spec.opts
|
114
123
|
- spec/spec_helper.rb
|
115
124
|
has_rdoc: true
|
116
|
-
homepage: http://
|
125
|
+
homepage: http://github.com/twitter/flockdb-client
|
117
126
|
licenses: []
|
118
127
|
|
119
128
|
post_install_message:
|
@@ -122,23 +131,27 @@ rdoc_options:
|
|
122
131
|
require_paths:
|
123
132
|
- lib
|
124
133
|
required_ruby_version: !ruby/object:Gem::Requirement
|
134
|
+
none: false
|
125
135
|
requirements:
|
126
136
|
- - ">="
|
127
137
|
- !ruby/object:Gem::Version
|
138
|
+
hash: 3
|
128
139
|
segments:
|
129
140
|
- 0
|
130
141
|
version: "0"
|
131
142
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
|
+
none: false
|
132
144
|
requirements:
|
133
145
|
- - ">="
|
134
146
|
- !ruby/object:Gem::Version
|
147
|
+
hash: 3
|
135
148
|
segments:
|
136
149
|
- 0
|
137
150
|
version: "0"
|
138
151
|
requirements: []
|
139
152
|
|
140
153
|
rubyforge_project:
|
141
|
-
rubygems_version: 1.3.
|
154
|
+
rubygems_version: 1.3.7
|
142
155
|
signing_key:
|
143
156
|
specification_version: 3
|
144
157
|
summary: Ruby Flock client
|