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 +1 -1
- data/lib/soup/backends/multi_soup.rb +3 -2
- data/lib/soup/backends/read_only.rb +1 -1
- data/lib/soup/empty_class.rb +2 -2
- data/lib/soup/snip.rb +0 -4
- metadata +4 -4
data/Rakefile
CHANGED
@@ -11,8 +11,9 @@ class Soup
|
|
11
11
|
|
12
12
|
def method_missing(*args)
|
13
13
|
@backends.each do |backend|
|
14
|
-
if
|
15
|
-
|
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
|
data/lib/soup/empty_class.rb
CHANGED
@@ -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
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.
|
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-
|
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:
|
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:
|
98
|
+
hash: 748977221621873681
|
99
99
|
requirements: []
|
100
100
|
rubyforge_project:
|
101
101
|
rubygems_version: 1.8.23
|