dynarex 1.1.6 → 1.1.7

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.
Files changed (2) hide show
  1. data/lib/dynarex.rb +2 -8
  2. metadata +1 -1
@@ -9,7 +9,7 @@ require 'line-tree'
9
9
  require 'rexle'
10
10
  require 'rexle-builder'
11
11
  require 'rexslt'
12
- require 'recordx-xslt'
12
+ require 'dynarex-xslt'
13
13
 
14
14
  class Dynarex
15
15
 
@@ -26,7 +26,6 @@ class Dynarex
26
26
  def initialize(location=nil)
27
27
  @delimiter = ' '
28
28
  open(location) if location
29
- @dynarex_xslt = RecordxXSLT.new
30
29
  end
31
30
 
32
31
  def add(x)
@@ -229,18 +228,13 @@ EOF
229
228
  end
230
229
 
231
230
  def to_xslt()
232
- @dynarex_xslt.schema = @schema
233
- @dynarex_xslt.to_xslt
231
+ DynarexXSLT.new(schema: @schema, xslt_schema: @xslt_schema).to_xslt
234
232
  end
235
233
 
236
234
  def xpath(x)
237
235
  @doc.root.xpath x
238
236
  end
239
237
 
240
- def xslt_schema=(s)
241
- @dynarex_xslt.xslt_schema = s
242
- self
243
- end
244
238
 
245
239
  private
246
240
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: dynarex
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.1.6
5
+ version: 1.1.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - James Robertson