soup 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -21,7 +21,7 @@ spec = Gem::Specification.new do |s|
21
21
 
22
22
  # Change these as appropriate
23
23
  s.name = "soup"
24
- s.version = "1.0.7"
24
+ s.version = "1.0.8"
25
25
  s.summary = "A super-simple data store"
26
26
  s.author = "James Adam"
27
27
  s.email = "james@lazyatom.com"
data/lib/soup.rb CHANGED
@@ -44,6 +44,10 @@ class Soup
44
44
  @backend.destroy(name)
45
45
  end
46
46
 
47
+ def all_snips
48
+ @backend.all_snips
49
+ end
50
+
47
51
  private
48
52
 
49
53
  def symbolize_keys(hash)
@@ -70,4 +70,11 @@ context "A Soup with multiple backends" do
70
70
  assert_not_nil @soup_two["snip"]
71
71
  end
72
72
  end
73
+
74
+ should "return all snips" do
75
+ @soup_one << {:name => "alpha"}
76
+ @soup_two << {:name => "beta"}
77
+ assert_equal 2, @soup.all_snips.length
78
+ assert_equal %w(alpha beta), @soup.all_snips.map { |s| s.name }
79
+ end
73
80
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soup
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 7
10
- version: 1.0.7
9
+ - 8
10
+ version: 1.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - James Adam
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-05 00:00:00 +01:00
18
+ date: 2011-05-12 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency