wave_box 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/wave_box/box.rb +4 -0
- data/lib/wave_box/version.rb +1 -1
- data/spec/wave_box/box_spec.rb +8 -0
- metadata +4 -4
data/lib/wave_box/box.rb
CHANGED
data/lib/wave_box/version.rb
CHANGED
data/spec/wave_box/box_spec.rb
CHANGED
@@ -37,6 +37,14 @@ describe WaveBox::Box do
|
|
37
37
|
@box.push "bar", Time.now - 10000
|
38
38
|
@box.after(0)[0].must_equal "bar"
|
39
39
|
end
|
40
|
+
|
41
|
+
it "should be able to clear everything inside it" do
|
42
|
+
@box.push "foo"
|
43
|
+
|
44
|
+
@box.clear!
|
45
|
+
@box.size.must_equal 0
|
46
|
+
end
|
47
|
+
|
40
48
|
end
|
41
49
|
|
42
50
|
describe "A box with limit" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wave_box
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-06-
|
12
|
+
date: 2013-06-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: redis
|
16
|
-
requirement: &
|
16
|
+
requirement: &70141141803820 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70141141803820
|
25
25
|
description: A simple push style messaging based on redis
|
26
26
|
email:
|
27
27
|
- poga.bahamut@gmail.com
|