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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c49e029cceac6f6735ce1d5e685645dcf5396a22
4
- data.tar.gz: 2a6020d4a3e4658b73335adae162e1d9fba136bc
3
+ metadata.gz: e7a01be37097c6e8da7531b97683406585bedefe
4
+ data.tar.gz: 33192bb74fddef1c5a4a6d26fe3e7122e2b3a370
5
5
  SHA512:
6
- metadata.gz: ca039cfdb068e34282f9131686dbfc6ba9d59446dee1807e38865baff356221fd8d0556a7282502d97ac86c3b810ef491db2abc298ef19933db218abdcfca2ee
7
- data.tar.gz: 0ee1a45b0d3de1dacef8038d8427242bd8d418c1d391d4ce46dc899f6562c4cb86b2f355705c70234f75e7d8197e73485fcf930dad682f480c606ad6d40906e0
6
+ metadata.gz: a3799d38150e87d62184c44f298968617bafd69edba24919dce241f5fafb567a08bf5850afecc0fb65d96a62cf2f299e811348c17a048866c325480d8114335e
7
+ data.tar.gz: dfd029312cf429560f1fad9e1bb242d734a4792faca5e6e7da6c94cd8020cc403d584c6ce6536e50fc33c344d2888c94ea4081c604c5afd6220031bd0cbd99ed
checksums.yaml.gz.sig CHANGED
Binary file
@@ -143,7 +143,19 @@ EOF
143
143
  end
144
144
 
145
145
  def to_s()
146
- build(self.records).join("\n")
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
@@ -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.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file