polyrex 0.8.9 → 0.8.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/polyrex.rb +1 -1
- metadata +2 -2
data/lib/polyrex.rb
CHANGED
@@ -353,7 +353,7 @@ class Polyrex
|
|
353
353
|
methodx = a.map do |class_name, methods|
|
354
354
|
class_name.downcase!
|
355
355
|
methods.map do |method_name|
|
356
|
-
xpath = %Q(@doc.
|
356
|
+
xpath = %Q(@doc.element("//%s[summary/%s='\#\{val\}']")) % [class_name, method_name]
|
357
357
|
"def find_by_%s_%s(val) @parent_node = %s; self.%s end" % [class_name, method_name, xpath, class_name]
|
358
358
|
end
|
359
359
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: polyrex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.8.
|
5
|
+
version: 0.8.10
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- James Robertson
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-11-06 00:00:00 +00:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|