dynarex-import 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/dynarex-import.rb +4 -7
  2. metadata +20 -9
@@ -1,8 +1,8 @@
1
- #!/usr/bin/ruby
1
+ #!/usr/bin/env ruby
2
2
 
3
3
  # file: dynarex-import.rb
4
4
 
5
- require 'nokogiri'
5
+ require 'rexslt'
6
6
 
7
7
  class DynarexImport
8
8
 
@@ -113,10 +113,7 @@ class DynarexImport
113
113
  end
114
114
 
115
115
  def transform(xsl, xml)
116
- doc = Nokogiri::XML(xml)
117
- xslt = Nokogiri::XSLT(xsl)
118
- xslt.transform(doc).to_xml
116
+ Rexslt.new(xsl, xml).to_s
119
117
  end
120
118
 
121
- end
122
-
119
+ end
metadata CHANGED
@@ -1,18 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynarex-import
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ prerelease:
5
+ version: 0.2.0
5
6
  platform: ruby
6
- authors: []
7
-
7
+ authors:
8
+ - James Robertson
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
12
 
12
- date: 2011-02-01 00:00:00 +00:00
13
+ date: 2011-11-21 00:00:00 +00:00
13
14
  default_executable:
14
- dependencies: []
15
-
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: rexslt
18
+ prerelease: false
19
+ requirement: &id001 !ruby/object:Gem::Requirement
20
+ none: false
21
+ requirements:
22
+ - - ">="
23
+ - !ruby/object:Gem::Version
24
+ version: "0"
25
+ type: :runtime
26
+ version_requirements: *id001
16
27
  description:
17
28
  email:
18
29
  executables: []
@@ -33,21 +44,21 @@ rdoc_options: []
33
44
  require_paths:
34
45
  - lib
35
46
  required_ruby_version: !ruby/object:Gem::Requirement
47
+ none: false
36
48
  requirements:
37
49
  - - ">="
38
50
  - !ruby/object:Gem::Version
39
51
  version: "0"
40
- version:
41
52
  required_rubygems_version: !ruby/object:Gem::Requirement
53
+ none: false
42
54
  requirements:
43
55
  - - ">="
44
56
  - !ruby/object:Gem::Version
45
57
  version: "0"
46
- version:
47
58
  requirements: []
48
59
 
49
60
  rubyforge_project:
50
- rubygems_version: 1.3.5
61
+ rubygems_version: 1.5.2
51
62
  signing_key:
52
63
  specification_version: 3
53
64
  summary: dynarex-import