polyrex-objects 0.9.3 → 0.9.4
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 -1
- 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: e7a01be37097c6e8da7531b97683406585bedefe
|
4
|
+
data.tar.gz: 33192bb74fddef1c5a4a6d26fe3e7122e2b3a370
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3799d38150e87d62184c44f298968617bafd69edba24919dce241f5fafb567a08bf5850afecc0fb65d96a62cf2f299e811348c17a048866c325480d8114335e
|
7
|
+
data.tar.gz: dfd029312cf429560f1fad9e1bb242d734a4792faca5e6e7da6c94cd8020cc403d584c6ce6536e50fc33c344d2888c94ea4081c604c5afd6220031bd0cbd99ed
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/polyrex-objects.rb
CHANGED
@@ -143,7 +143,19 @@ EOF
|
|
143
143
|
end
|
144
144
|
|
145
145
|
def to_s()
|
146
|
-
|
146
|
+
|
147
|
+
if self.respond_to? :records then
|
148
|
+
|
149
|
+
build(self.records).join("\n")
|
150
|
+
|
151
|
+
else
|
152
|
+
|
153
|
+
summary = self.element 'summary'
|
154
|
+
format_mask = summary.text('format_mask').to_s
|
155
|
+
format_mask.gsub(/\[![^\]]+\]/){|x| summary.text(x[2..-2]).to_s}
|
156
|
+
|
157
|
+
end
|
158
|
+
|
147
159
|
end
|
148
160
|
|
149
161
|
def to_xml(options={})
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|