polyrex-objects 0.6.12 → 0.6.13
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-objects.rb +13 -2
- data.tar.gz.sig +0 -0
- metadata +6 -6
- 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: 22c96164995a8578d99971686670362bcd7c298c
|
4
|
+
data.tar.gz: 16f93d50d29864eff6431d689d8bab58fc6afd32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: adc5b63bab69a4c8b02378569ae880359b2ab2a9611ffe3d49775367b2fc34ab29b369587b9fa817abdb1979bf47c50099dde07b4004e6c276aaf4a0fa512fb4
|
7
|
+
data.tar.gz: 2eb6d815a1e8f9406bc7de42c409831ef60f0b96f56da9b56607cb70fb8bfc83629b1ce2e3c93b46f0def6dffcec767d9d13e3892bece92504c327079ee57f16
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/polyrex-objects.rb
CHANGED
@@ -72,8 +72,19 @@ class PolyrexObjects
|
|
72
72
|
classx << "@create = PolyrexCreateObject.new('#{schema}', @@id)"
|
73
73
|
classx << "end"
|
74
74
|
fields.each do |field|
|
75
|
-
classx << "def #{field}
|
76
|
-
classx << "
|
75
|
+
classx << "def #{field}"
|
76
|
+
classx << " if @node.element('summary/#{field}').nil? then"
|
77
|
+
classx << " @node.element('summary').add Rexle::Element.new('#{field}')"
|
78
|
+
classx << " end"
|
79
|
+
classx << " @node.element('summary/#{field}/text()')"
|
80
|
+
classx << "end"
|
81
|
+
classx << "def #{field}=(text)"
|
82
|
+
classx << " if @node.element('summary/#{field}').nil? then"
|
83
|
+
classx << " @node.element('summary').add Rexle::Element.new('#{field}', text)"
|
84
|
+
classx << " else"
|
85
|
+
classx << " @node.element('summary/#{field}').text = text"
|
86
|
+
classx << " end"
|
87
|
+
classx << "end"
|
77
88
|
end
|
78
89
|
classx << "end"
|
79
90
|
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polyrex-objects
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -29,20 +29,20 @@ cert_chain:
|
|
29
29
|
JMWS3MnEwxE/NLM3D1lV0gz1tVeyaJfaGg4M23ZLHbcE6P9LF2fV3LIRxDJlUeUB
|
30
30
|
DdZHtSzrIZNGkcDlh1ea0JRmUxIv1wrk
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date: 2013-09-
|
32
|
+
date: 2013-09-24 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: polyrex-createobject
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
type: :runtime
|
42
42
|
prerelease: false
|
43
43
|
version_requirements: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
description:
|
@@ -62,12 +62,12 @@ require_paths:
|
|
62
62
|
- lib
|
63
63
|
required_ruby_version: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
|
-
- -
|
65
|
+
- - ">="
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: '0'
|
68
68
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
69
|
requirements:
|
70
|
-
- -
|
70
|
+
- - ">="
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '0'
|
73
73
|
requirements: []
|
metadata.gz.sig
CHANGED
Binary file
|