redness 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/redness/red_capped_list.rb +4 -0
- data/lib/redness/version.rb +1 -1
- data/lib/redness.rb +1 -0
- data/redness.gemspec +3 -2
- data/spec/redness/red_capped_list_spec.rb +14 -0
- data/spec/spec_integration_helper.rb +1 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3862e8e860fee075ba25f5de2434a99af1b6072c
|
4
|
+
data.tar.gz: d3322385369795e8a577cff257f15c446a13110d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 415af254a7f8b6fa44cd55b09875519ae4b207513b53fc17623c0dbfaca25a125e84dcba197b9f1e069414902ec921176af48562ae3391d414ec5bceda3e020a
|
7
|
+
data.tar.gz: b094a27bf2d162d017d799e8dfc2e89cadb534b29ab1f7f8ef869e680e219c14ac4e68d993398a865b08679151385dc4b2e5cf7fa4d86d6babdd85eebde3b2a0
|
data/.gitignore
CHANGED
data/lib/redness/version.rb
CHANGED
data/lib/redness.rb
CHANGED
data/redness.gemspec
CHANGED
@@ -10,9 +10,10 @@ Gem::Specification.new do |s|
|
|
10
10
|
"Bryan Woods",
|
11
11
|
"Kenneth Lay",
|
12
12
|
"Marco Carag",
|
13
|
-
"Conner Peirce"
|
13
|
+
"Conner Peirce",
|
14
|
+
"George Ogata"
|
14
15
|
]
|
15
|
-
s.email = "
|
16
|
+
s.email = "bryanwoods4e@gmail.com"
|
16
17
|
s.summary = "Helpful Ruby classes for improved Redis data structures"
|
17
18
|
s.description = "Helpful Ruby classes for improved Redis data structures"
|
18
19
|
s.homepage = "http://github.com/howaboutwe/redness"
|
@@ -16,6 +16,20 @@ describe RedCappedList do
|
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
19
|
+
describe "#get_strings" do
|
20
|
+
it "returns the string values of the list at the key" do
|
21
|
+
r = RedCappedList.new("somekey", 2)
|
22
|
+
|
23
|
+
r.get_strings.should == []
|
24
|
+
|
25
|
+
r.add("foo")
|
26
|
+
r.add("bar")
|
27
|
+
r.add("baz")
|
28
|
+
|
29
|
+
r.get_strings.should == ["baz", "bar"]
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
19
33
|
describe "#add" do
|
20
34
|
it "adds to the list at the key" do
|
21
35
|
r = RedCappedList.new("somekey", 1000)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redness
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Baldur Gudbjornsson
|
@@ -10,10 +10,11 @@ authors:
|
|
10
10
|
- Kenneth Lay
|
11
11
|
- Marco Carag
|
12
12
|
- Conner Peirce
|
13
|
+
- George Ogata
|
13
14
|
autorequire:
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
|
-
date:
|
17
|
+
date: 2015-12-21 00:00:00.000000000 Z
|
17
18
|
dependencies:
|
18
19
|
- !ruby/object:Gem::Dependency
|
19
20
|
name: json
|
@@ -100,7 +101,7 @@ dependencies:
|
|
100
101
|
- !ruby/object:Gem::Version
|
101
102
|
version: '0'
|
102
103
|
description: Helpful Ruby classes for improved Redis data structures
|
103
|
-
email:
|
104
|
+
email: bryanwoods4e@gmail.com
|
104
105
|
executables: []
|
105
106
|
extensions: []
|
106
107
|
extra_rdoc_files: []
|
@@ -157,9 +158,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
158
|
version: '0'
|
158
159
|
requirements: []
|
159
160
|
rubyforge_project:
|
160
|
-
rubygems_version: 2.
|
161
|
+
rubygems_version: 2.0.14
|
161
162
|
signing_key:
|
162
163
|
specification_version: 4
|
163
164
|
summary: Helpful Ruby classes for improved Redis data structures
|
164
165
|
test_files: []
|
165
|
-
has_rdoc:
|