polyrex 1.0.11 → 1.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/polyrex.rb +10 -3
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbb7afab5b7d6c9fce30e2b45b4bb321ac3ca31a
|
4
|
+
data.tar.gz: a70b0a758fe62aa735a28a5a990ffa2ae884d77a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a19afb0f367bfff522485191f50cc54616c721a485cd2f2e9b2236f2a7e74be7c8ef5650fa0a1d83d8e72d04344830b164d517601c2674696b006844afb1be7a
|
7
|
+
data.tar.gz: 5071da0ac7e12a78cc25194ac70f1cf398c512d0b3dc3a5fa09dfe3a7bd62b5709c0f2336e72289218b2e1503e3152d51941bdcb96d38b2b09f79e3501b5ed2b
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/polyrex.rb
CHANGED
@@ -687,8 +687,15 @@ EOF
|
|
687
687
|
methods.map do |method_name|
|
688
688
|
xpath = %Q(@doc.root.element("//%s[summary/%s='\#\{val\}']")) % [class_name, method_name]
|
689
689
|
"def find_by_#{class_name}_#{method_name}(val)
|
690
|
-
|
691
|
-
|
690
|
+
|
691
|
+
parent_node = #{xpath}
|
692
|
+
|
693
|
+
if parent_node then
|
694
|
+
@objects['#{class_name}'].new(@parent_node, id: @id)
|
695
|
+
else
|
696
|
+
nil
|
697
|
+
end
|
698
|
+
|
692
699
|
end"
|
693
700
|
end
|
694
701
|
end
|
@@ -717,4 +724,4 @@ EOF
|
|
717
724
|
end
|
718
725
|
end
|
719
726
|
|
720
|
-
end
|
727
|
+
end
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|