soup 1.0.10 → 1.0.11

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.10"
24
+ s.version = "1.0.11"
25
25
  s.summary = "A super-simple data store"
26
26
  s.author = "James Adam"
27
27
  s.email = "james@lazyatom.com"
@@ -11,8 +11,9 @@ class Soup
11
11
 
12
12
  def method_missing(*args)
13
13
  @backends.each do |backend|
14
- if result = (backend.respond_to?(args.first) ? backend.__send__(*args) : nil)
15
- return result
14
+ if backend.respond_to?(args.first)
15
+ result = backend.__send__(*args)
16
+ return result if result
16
17
  end
17
18
  end
18
19
  nil
@@ -18,4 +18,4 @@ class Soup
18
18
  end
19
19
  end
20
20
  end
21
- end
21
+ end
@@ -1,6 +1,6 @@
1
1
  # Based on Builder's BlankSlate object
2
2
  class Soup
3
3
  class EmptyClass
4
- instance_methods.each { |m| undef_method(m) unless m =~ /^(is_a\?|__|object_id|instance_eval|respond_to\?)/ }
4
+ instance_methods.each { |m| undef_method(m) unless m =~ /^(is_a\?|__|object_id|instance_eval|respond_to\?|\!=)/ }
5
5
  end
6
- end
6
+ end
data/lib/soup/snip.rb CHANGED
@@ -27,10 +27,6 @@ class Soup
27
27
  self == other
28
28
  end
29
29
 
30
- def !=(other)
31
- !eql?(other)
32
- end
33
-
34
30
  def inspect
35
31
  keys = @attributes.keys.dup
36
32
  keys.delete(:name)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.10
4
+ version: 1.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-19 00:00:00.000000000 Z
12
+ date: 2012-12-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: kintama
@@ -86,7 +86,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
86
86
  version: '0'
87
87
  segments:
88
88
  - 0
89
- hash: 2212562329042645875
89
+ hash: 748977221621873681
90
90
  required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  none: false
92
92
  requirements:
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  version: '0'
96
96
  segments:
97
97
  - 0
98
- hash: 2212562329042645875
98
+ hash: 748977221621873681
99
99
  requirements: []
100
100
  rubyforge_project:
101
101
  rubygems_version: 1.8.23