dynarex 1.2.72 → 1.2.73

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: b14e02a6e94a0751171baa727862c8cdfad345f8
4
- data.tar.gz: bab6ce46136e244219d15bf2f91707f5206e0583
3
+ metadata.gz: 7a91f083c0bd406d43af54b95dddcaedda99b815
4
+ data.tar.gz: ff9e7339ee38b90fec1fe769b8a6190fd618596d
5
5
  SHA512:
6
- metadata.gz: 36b9594a52393a9316e20c37791439e09c6d8188c951fe0a3737078ed45d06b01df124968cac13114f8c0688cf80c1090b247eac8afd6a237c61de6272366414
7
- data.tar.gz: 82e9a51ac9aec26227d900d6c6ea74d7304d7699e4b98926d60ed8057a44bc167696568f4df7b1635836e828c013d2c75a864f5d76fd7348606f17136c9c8792
6
+ metadata.gz: bed1a3af756744e2969e6af6b1ac2ccba1a6aa18ff33a5c9bc4973ef17848b356cdf4fe8327bf0f8605cd3f326199ef22e92364774d3b24fccd4985df947b8ae
7
+ data.tar.gz: 8f7d040482b31e2b0d8f87b1c2059e69c56aacf5f2ff19a3ada380c603c108e253dc2d7c383632427411ec903deb22548d9d068288d15fd76e6bd8e019ec01b7
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -21,7 +21,7 @@ require 'table-formatter'
21
21
  class Dynarex
22
22
 
23
23
  attr_accessor :format_mask, :delimiter, :xslt_schema, :schema,
24
- :order, :type, :limit_by
24
+ :order, :type, :limit_by, :xslt
25
25
 
26
26
 
27
27
  #Create a new dynarex document from 1 of the following options:
@@ -424,6 +424,12 @@ EOF
424
424
  end
425
425
 
426
426
  doc = Rexle.new(a)
427
+
428
+ if @xslt then
429
+ doc.instructions = [['xml-stylesheet',
430
+ "title='XSL_formatting' type='text/xsl' href='#{@xslt}'"]]
431
+ end
432
+
427
433
  return doc if state != :internal
428
434
  @doc = doc
429
435
  end
@@ -583,9 +589,14 @@ EOF
583
589
  buffer.gsub!(/.>/) {|x| x[0] != '?' ? x.sub(/>/,'>') : x }
584
590
  buffer.gsub!(/<./) {|x| x[1] != '?' ? x.sub(/</,'&lt;') : x }
585
591
 
586
- @raw_header = buffer.slice!(/<\?dynarex[^>]+>/)
592
+ @raw_header = buffer[/<\?dynarex[^>]+>/]
593
+
594
+ if buffer[/<\?/] then
595
+
596
+ raw_stylesheet = buffer.slice!(/<\?xml-stylesheet[^>]+>/)
597
+ @xslt = raw_stylesheet[/href=["']([^"']+)/,1] if raw_stylesheet
598
+ @raw_header = buffer.slice!(/<\?dynarex[^>]+>/)
587
599
 
588
- if @raw_header then
589
600
  header = @raw_header[/<?dynarex (.*)?>/,1]
590
601
 
591
602
  r1 = /([\w\-]+\s*\=\s*'[^']*)'/
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.72
4
+ version: 1.2.73
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: 2013-12-22 00:00:00.000000000 Z
32
+ date: 2014-01-01 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: rexle
@@ -212,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
212
212
  version: '0'
213
213
  requirements: []
214
214
  rubyforge_project:
215
- rubygems_version: 2.0.3
215
+ rubygems_version: 2.1.11
216
216
  signing_key:
217
217
  specification_version: 4
218
218
  summary: dynarex
metadata.gz.sig CHANGED
Binary file