dynarex 1.2.75 → 1.2.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4c81e1151f8ed7d112a66528b25cd8663b9d82c5
4
- data.tar.gz: 2fbe7bce4cc608da6a21001f21ca77889eb8c185
3
+ metadata.gz: 5f7e0d6e18af0040bafe06563d169f326eff0301
4
+ data.tar.gz: f7e3f129f6b6aa3697628874e368c08c2baf7817
5
5
  SHA512:
6
- metadata.gz: 8bdd94ce76fcc2c13ca20a32d324f9080bd3609a521dd6bec4bb1e813d0f0a71ad777aa014c7a63727b5ce9dc5a2ea5f0e15f943a3785ce1bb9d4cf1bd308b9a
7
- data.tar.gz: 1e78787774ffb1fccecaad7775367ef58d71504aba1b32bed36c7ef7ccd85206eff8a7379a1d48cba7bdba1f0ed4c841fb805387ba4e2c3b321f88682e6e0882
6
+ metadata.gz: 0d373f6273405c97597deaa5588edb7b32005014924b98cae0c73c2b87fe627b85b89061f257a927893b01f2d3f908b323f9b8f431a4e12604c31f787b585ed3
7
+ data.tar.gz: 7da26fd815436be81aba342ea510ce9f1b39389cb1ebeb8a4e036e90b462164f7fb4d0789868053a84f51f9956c9e1e0a1c39eb2a77347d11c83a4594ef73755
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -186,8 +186,8 @@ EOF
186
186
 
187
187
  if raw_summary_fields then
188
188
  summary_fields = raw_summary_fields.split(',') # .map(&:to_sym)
189
- sumry = "\n" + summary_fields.map {|x| x + ': ' + \
190
- self.summary[x.to_sym]}.join("\n")
189
+ sumry = summary_fields.map {|x| x.strip!; x + ': ' + \
190
+ self.summary[x.to_sym]}.join("\n") + "\n"
191
191
  end
192
192
 
193
193
  if @raw_header then
@@ -195,11 +195,15 @@ EOF
195
195
  else
196
196
 
197
197
  smry_fields = %i(schema)
198
- smry_fields << :delimiter if self.delimiter.length > 0
199
- s = smry_fields.map {|x| "%s=\"%s\"" % [x, self.send(x)]}.join ' '
198
+ if self.delimiter.length > 0 then
199
+ smry_fields << :delimiter
200
+ else
201
+ smry_fields << :format_mask
202
+ end
203
+ s = smry_fields.map {|x| "%s=\"%s\"" % \
204
+ [x, self.send(x).gsub('"', '\"') ]}.join ' '
200
205
  #declaration = "<?dynarex %s ?>" % s
201
- declaration = %Q(<?dynarex %s format_mask="%s"?>\n) %
202
- [s, self.format_mask.gsub('"', '\"')]
206
+ declaration = %Q(<?dynarex %s format_mask="%s"?>\n) % s
203
207
  end
204
208
 
205
209
  header = declaration + sumry
@@ -596,7 +600,7 @@ EOF
596
600
 
597
601
  raw_stylesheet = buffer.slice!(/<\?xml-stylesheet[^>]+>/)
598
602
  @xslt = raw_stylesheet[/href=["']([^"']+)/,1] if raw_stylesheet
599
- @raw_header = buffer.slice!(/<\?dynarex[^>]+>/)
603
+ @raw_header = buffer.slice!(/<\?dynarex[^>]+>/) + "\n"
600
604
 
601
605
  header = @raw_header[/<?dynarex (.*)?>/,1]
602
606
 
@@ -634,7 +638,7 @@ EOF
634
638
  raw_lines.first[/#{a_summary.join('|')}:\s+\S+/] do
635
639
 
636
640
  label, val = raw_lines.shift.chomp.match(/(\w+):\s+([^$]+)$/).captures
637
- @summary[label] = val
641
+ @summary[label.to_sym] = val
638
642
  end
639
643
  end
640
644
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynarex
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.75
4
+ version: 1.2.76
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -29,7 +29,7 @@ cert_chain:
29
29
  kUea9jZD+xTq1Js9t2BHCz3Ev/sgS7CaijrbQetbNwzasFGHRd30xBEwd4zANQOp
30
30
  i0OBH0e4iIMkv+Q+PYlNRnlpQogsAdTs
31
31
  -----END CERTIFICATE-----
32
- date: 2014-01-04 00:00:00.000000000 Z
32
+ date: 2014-01-05 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: rexle
@@ -215,5 +215,6 @@ rubyforge_project:
215
215
  rubygems_version: 2.1.11
216
216
  signing_key:
217
217
  specification_version: 4
218
- summary: dynarex
218
+ summary: The Dynarex gem can create, read, update or delete rows of Dynarex flavoured
219
+ XMLrecords.
219
220
  test_files: []
metadata.gz.sig CHANGED
Binary file