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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b9b35f8f22cc624a99d0e7e76ec290e45c5b98cb
4
- data.tar.gz: 8c328394b06a598dd0e7939394157af3aa395e47
3
+ metadata.gz: fbb7afab5b7d6c9fce30e2b45b4bb321ac3ca31a
4
+ data.tar.gz: a70b0a758fe62aa735a28a5a990ffa2ae884d77a
5
5
  SHA512:
6
- metadata.gz: 99002460f5449ea3f2b426d4d3b2a3292a08b4966cbfdda280e13a839cf37e5cbeaf77f941319bdedc30451d5507f7068b799928621add0d053b717066e3e5db
7
- data.tar.gz: c376fe9365ccd596e7ad5a0d9681ce53e1e4a77b0f493948cfc4f5c98ba111e6b0cfc0bed7f6a100a692dd63075496c39c8e89a2b6aaaa7d981d85e7e10d4825
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
- @parent_node = #{xpath}
691
- @parent_node ? @objects['#{class_name}'].new(@parent_node, id: @id) : nil
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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyrex
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.11
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file