oddb2xml 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,5 +1,13 @@
1
1
  === 1.0.7 / 20.11.2012
2
2
 
3
+ * Update spec for cli
4
+ * Add zip compress option
5
+ * Use -t option also as prefix of filename
6
+ * Allow tag suffix as flexible word
7
+ * Update help message
8
+
9
+ === 1.0.7 / 20.11.2012
10
+
3
11
  * Add -t --tag-suffix option for 'md'
4
12
 
5
13
  === 1.0.6 / 23.10.2012
data/README.md CHANGED
@@ -1,19 +1,125 @@
1
- oddb2xml
2
- ========
1
+ # oddb2xml
3
2
 
4
3
  oddb2xml, creates xml files using swissINDEX, BAG-XML and Swissmedic XLS.
5
4
 
6
5
 
7
- usage
8
- -----
6
+ ## usage
7
+
8
+ see `--help`.
9
9
 
10
10
  ```
11
11
  $ oddb2xml --help
12
- bin/oddb2xml ver.1.0.6
12
+ oddb2xml ver.1.0.7
13
13
  Usage:
14
14
  oddb2xml [option]
15
- -c F, --compress=F Compress format F. Currently only 'tar.gz' is available.
16
- -a T, --append=T Additional target. T is only 'nonpharma' available.
17
- -t S, --tag-suffix=S XML tag suffix S. default none. Only 'md' is available.
15
+ -c F, --compress=F Compress format F. {tar.gz|zip}
16
+ -a T, --append=T Additional target. T, only 'nonpharma' is available.
17
+ -t S, --tag-suffix=S XML tag suffix S. Default is none. [A-z0-9_]
18
+ If S is given, it is also used as prefix of filename.
18
19
  -h, --help Show this help message.
19
20
  ```
21
+
22
+
23
+ ## example
24
+
25
+ option examples.
26
+
27
+ ```
28
+ $ oddb2xml # => oddb_article.xml, oddb_product.xml
29
+ $ oddb2xml -t md # => md_article.xml, md_product.xml
30
+ $ oddb2xml -a nonpharma -t md -c tar.gz # => md_xml_dd.mm.yyyy_hh.mm.tar.gz
31
+ ```
32
+
33
+ output.
34
+
35
+ ```
36
+ $ oddb2xml
37
+ DE
38
+ Pharma products: 14801
39
+ FR
40
+ Pharma products: 14801
41
+ ```
42
+
43
+ ### article.xml
44
+
45
+ oddb2xml creates article.xml as oddb_article.xml by default.
46
+
47
+ ```
48
+ <?xml version="1.0" encoding="utf-8"?>
49
+ <ARTICLE xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://wiki.oddb.org/wiki.php?pagename=Swissmedic.Datendeklaration" CREATION_DATETIME="2012-11-21T13:09:23.6787110+0900" PROD_DATE="2012-11-21T13:09:23.6787110+0900" VALID_DATE="2012-11-21T13:09:23.6787110+0900">
50
+ <ART DT="">
51
+ <PHAR>31532</PHAR>
52
+ <PRDNO>4123</PRDNO>
53
+ <SMCAT>D</SMCAT>
54
+ <SMNO>29152039</SMNO>
55
+ <SALECD>A</SALECD>
56
+ <QTY>10 Stk</QTY>
57
+ <DSCRD>BEN-U-RON Supp 250 mg Kind</DSCRD>
58
+ <DSCRF>BEN-U-RON supp 250 mg enf</DSCRF>
59
+ <SORTD>BEN-U-RON SUPP 250 MG KIND</SORTD>
60
+ <SORTF>BEN-U-RON SUPP 250 MG ENF</SORTF>
61
+ <SYN1D>Ben-u-ron</SYN1D>
62
+ <SYN1F>Ben-u-ron</SYN1F>
63
+ <SLOPLUS>2</SLOPLUS>
64
+ <ARTCOMP/>
65
+ <ARTBAR>
66
+ <CDTYP>E13</CDTYP>
67
+ <BC>7680291520390</BC>
68
+ <BCSTAT>A</BCSTAT>
69
+ </ARTBAR>
70
+ <ARTPRI>
71
+ <VDAT>01.11.2012</VDAT>
72
+ <PTYP>PEXF</PTYP>
73
+ <PRICE>1.780086</PRICE>
74
+ </ARTPRI>
75
+ <ARTPRI>
76
+ <VDAT>01.11.2012</VDAT>
77
+ <PTYP>PPUB</PTYP>
78
+ <PRICE>3.3</PRICE>
79
+ </ARTPRI>
80
+ </ART>
81
+ ...
82
+ <RESULT>
83
+ <OK_ERROR>OK</OK_ERROR>
84
+ <NBR_RECORD>14801</NBR_RECORD>
85
+ <ERROR_CODE/>
86
+ <MESSAGE/>
87
+ </RESULT>
88
+ </ARTICLE>
89
+ ```
90
+
91
+ ### product.xml
92
+
93
+ For example, if `-t _swiss` is given then oddb2xml creates product.xml as swiss_product.xml.
94
+
95
+ ```
96
+ <?xml version="1.0" encoding="utf-8"?>
97
+ <PRODUCT_SWISS xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://wiki.oddb.org/wiki.php?pagename=Swissmedic.Datendeklaration" CREATION_DATETIME="2012-11-21T13:01:29.5903756+0900" PROD_DATE="2012-11-21T13:01:29.5903756+0900" VALID_DATE="2012-11-21T13:01:29.5903756+0900">
98
+ <PRD_SWISS DT="">
99
+ <PRDNO_SWISS>1167149</PRDNO_SWISS>
100
+ <DSCRD_SWISS>Allergovit Artemisia Inj Susp Kombi</DSCRD_SWISS>
101
+ <DSCRF_SWISS>Allergovit Artemisia susp inj combi </DSCRF_SWISS>
102
+ <ATC_SWISS>V01AA10</ATC_SWISS>
103
+ <IT_SWISS>07.13.30.</IT_SWISS>
104
+ <CPT_SWISS>
105
+ <CPTCMP_SWISS>
106
+ <LINE_SWISS>0</LINE_SWISS>
107
+ <QTY_SWISS>1000</QTY_SWISS>
108
+ <QTYU_SWISS>U.</QTYU_SWISS>
109
+ </CPTCMP_SWISS>
110
+ <CPTCMP_SWISS>
111
+ <LINE_SWISS>1</LINE_SWISS>
112
+ <QTY_SWISS>10000</QTY_SWISS>
113
+ <QTYU_SWISS>U.</QTYU_SWISS>
114
+ </CPTCMP_SWISS>
115
+ </CPT_SWISS>
116
+ </PRD_SWISS>
117
+ ...
118
+ <RESULT_SWISS>
119
+ <OK_ERROR_SWISS>OK</OK_ERROR_SWISS>
120
+ <NBR_RECORD_SWISS>5850</NBR_RECORD_SWISS>
121
+ <ERROR_CODE_SWISS/>
122
+ <MESSAGE_SWISS/>
123
+ </RESULT_SWISS>
124
+ </PRODUCT_SWISS>
125
+ ```
data/bin/oddb2xml CHANGED
@@ -13,23 +13,24 @@ def help
13
13
  #$0 ver.#{Oddb2xml::VERSION}
14
14
  Usage:
15
15
  oddb2xml [option]
16
- -c F, --compress=F Compress format F. Currently only 'tar.gz' is available.
17
- -a T, --append=T Additional target. T is only 'nonpharma' available.
18
- -t S, --tag-suffix=S XML tag suffix S. default none. Only 'md' is available.
16
+ -c F, --compress=F Compress format F. {tar.gz|zip}
17
+ -a T, --append=T Additional target. T, only 'nonpharma' is available.
18
+ -t S, --tag-suffix=S XML tag suffix S. Default is none. [A-z0-9_]
19
+ If S is given, it is also used as prefix of filename.
19
20
  -h, --help Show this help message.
20
21
  EOS
21
22
  end
22
23
 
23
24
  parser = OptionParser.new
24
25
  opts = {
25
- :compress => nil,
26
- :nonpharma => false,
27
- :tag_suffix => '',
26
+ :compress_ext => nil,
27
+ :nonpharma => false,
28
+ :tag_suffix => nil,
28
29
  }
29
30
 
30
- parser.on('-c v', '--compress v', /tar\.gz/) {|v| opts[:compress] = v }
31
+ parser.on('-c v', '--compress v', /tar\.gz|zip/) {|v| opts[:compress_ext] = v }
31
32
  parser.on('-a v', '--append v', /nonpharma/) {|v| opts[:nonpharma] = v }
32
- parser.on('-t v', '--tag-suffix v', /md/i) {|v| opts[:tag_suffix] = v.upcase }
33
+ parser.on('-t v', '--tag-suffix v', /^[A-z0-9_]*$/i) {|v| opts[:tag_suffix] = v.upcase }
33
34
  parser.on_tail('-h', '--help') { puts help; exit }
34
35
 
35
36
  args = ARGV.dup
@@ -22,7 +22,7 @@ module Oddb2xml
22
22
  @subject = nil
23
23
  @index = {}
24
24
  @items = {}
25
- @tag_suffix = ''
25
+ @tag_suffix = nil
26
26
  if block_given?
27
27
  yield self
28
28
  end
data/lib/oddb2xml/cli.rb CHANGED
@@ -48,7 +48,8 @@ module Oddb2xml
48
48
  private
49
49
  def build
50
50
  files = {}
51
- SUBJECTS.each{ |sbj| files[sbj] = "oddb_#{sbj}.xml" }
51
+ prefix = (@options[:tag_suffix] || 'oddb').gsub(/^_|_$/, '').downcase
52
+ SUBJECTS.each{ |sbj| files[sbj] = "#{prefix}_#{sbj}.xml" }
52
53
  begin
53
54
  files.each_pair do |sbj, file|
54
55
  builder = Builder.new do |builder|
@@ -67,8 +68,8 @@ module Oddb2xml
67
68
  xml = builder.to_xml
68
69
  File.open(file, 'w:utf-8'){ |fh| fh << xml }
69
70
  end
70
- if @options[:compress]
71
- compressor = Compressor.new(@options[:compress])
71
+ if @options[:compress_ext]
72
+ compressor = Compressor.new(prefix, @options[:compress_ext])
72
73
  files.values.each do |file|
73
74
  compressor.contents << file
74
75
  end
@@ -2,14 +2,15 @@
2
2
 
3
3
  require 'zlib'
4
4
  require 'archive/tar/minitar'
5
+ require 'zip/zip'
5
6
 
6
7
  module Oddb2xml
7
8
  class Compressor
8
9
  include Archive::Tar
9
10
  attr_accessor :contents
10
- def initialize(ext='tar.gz')
11
- @compressed_file = 'oddb_xml_' + Time.now.strftime("%d.%m.%Y_%H.%M.#{ext}")
12
- @contents = []
11
+ def initialize(prefix='oddb', ext='tar.gz')
12
+ @compress_file = "#{prefix}_xml_" + Time.now.strftime("%d.%m.%Y_%H.%M.#{ext}")
13
+ @contents = []
13
14
  super()
14
15
  end
15
16
  def finalize!
@@ -17,17 +18,27 @@ module Oddb2xml
17
18
  return false
18
19
  end
19
20
  begin
20
- tgz = Zlib::GzipWriter.new(File.open(@compressed_file, 'wb'))
21
- Minitar.pack(@contents, tgz)
22
- if File.exists? @compressed_file
21
+ case @compress_file
22
+ when /\.tar\.gz$/
23
+ tgz = Zlib::GzipWriter.new(File.open(@compress_file, 'wb'))
24
+ Minitar.pack(@contents, tgz)
25
+ when /\.zip$/
26
+ Zip::ZipFile.open(@compress_file, Zip::ZipFile::CREATE) do |zip|
27
+ @contents.each do |file|
28
+ filename = File.basename(file)
29
+ zip.add(filename, file)
30
+ end
31
+ end
32
+ end
33
+ if File.exists? @compress_file
23
34
  @contents.each do |file|
24
35
  File.unlink file
25
36
  end
26
37
  end
27
38
  rescue => error
28
39
  puts error
29
- if File.exists? @compressed_file
30
- File.unlink @compressed_file
40
+ if File.exists? @compress_file
41
+ File.unlink @compress_file
31
42
  end
32
43
  return false
33
44
  end
@@ -1,3 +1,3 @@
1
1
  module Oddb2xml
2
- VERSION = "1.0.7"
2
+ VERSION = "1.0.8"
3
3
  end
data/spec/cli_spec.rb CHANGED
@@ -28,10 +28,17 @@ describe Oddb2xml::Cli do
28
28
  setup_server_mocks
29
29
  end
30
30
  context 'when -c tar.gz option is given' do
31
- let(:cli) { Oddb2xml::Cli.new({:compress => 'tar.gz', :nonpharma => false}) }
31
+ let(:cli) do
32
+ opts = {
33
+ :compress_ext => 'tar.gz',
34
+ :nonpharma => false,
35
+ :tag_suffix => nil,
36
+ }
37
+ Oddb2xml::Cli.new(opts)
38
+ end
32
39
  it_behaves_like 'any interface'
33
40
  it 'should have compress option' do
34
- cli.should have_option(:compress => 'tar.gz')
41
+ cli.should have_option(:compress_ext => 'tar.gz')
35
42
  end
36
43
  it 'should create tar.gz file' do
37
44
  $stdout.should_receive(:puts).with(/Pharma/)
@@ -52,8 +59,47 @@ describe Oddb2xml::Cli do
52
59
  end
53
60
  end
54
61
  end
62
+ context 'when -c zip option is given' do
63
+ let(:cli) do
64
+ opts = {
65
+ :compress_ext => 'zip',
66
+ :nonpharma => false,
67
+ :tag_suffix => nil,
68
+ }
69
+ Oddb2xml::Cli.new(opts)
70
+ end
71
+ it_behaves_like 'any interface'
72
+ it 'should have compress option' do
73
+ cli.should have_option(:compress_ext => 'zip')
74
+ end
75
+ it 'should create zip file' do
76
+ $stdout.should_receive(:puts).with(/Pharma/)
77
+ cli.run
78
+ file = Dir.glob('oddb_*.zip').first
79
+ File.exists?(file).should be_true
80
+ end
81
+ it 'should not create any xml file' do
82
+ $stdout.should_receive(:puts).with(/Pharma/)
83
+ cli.run
84
+ Dir.glob('oddb_*.xml').each do |file|
85
+ File.exists?(file).should be_nil
86
+ end
87
+ end
88
+ after(:each) do
89
+ Dir.glob('oddb_*.zip').each do |file|
90
+ File.unlink(file) if File.exists?(file)
91
+ end
92
+ end
93
+ end
55
94
  context 'when -a nonpharma option is given' do
56
- let(:cli) { Oddb2xml::Cli.new({:compress => nil, :nonpharma => true}) }
95
+ let(:cli) do
96
+ opts = {
97
+ :compress_ext => nil,
98
+ :nonpharma => true,
99
+ :tag_suffix => nil,
100
+ }
101
+ Oddb2xml::Cli.new(opts)
102
+ end
57
103
  it_behaves_like 'any interface'
58
104
  it 'should have nonpharma option' do
59
105
  cli.should have_option(:nonpharma => true)
@@ -62,6 +108,7 @@ describe Oddb2xml::Cli do
62
108
  $stdout.should_receive(:puts).with(/NonPharma/)
63
109
  cli.run
64
110
  Dir.glob('oddb_*.tar.gz').first.should be_nil
111
+ Dir.glob('oddb_*.zip').first.should be_nil
65
112
  end
66
113
  it 'should create 2 xml files' do
67
114
  $stdout.should_receive(:puts).with(/NonPharma/)
@@ -76,4 +123,36 @@ describe Oddb2xml::Cli do
76
123
  end
77
124
  end
78
125
  end
126
+ context 'when -t _swiss option is given' do
127
+ let(:cli) do
128
+ opts = {
129
+ :compress_ext => nil,
130
+ :nonpharma => false,
131
+ :tag_suffix => '_swiss'.upcase,
132
+ }
133
+ Oddb2xml::Cli.new(opts)
134
+ end
135
+ it_behaves_like 'any interface'
136
+ it 'should have tag_suffix option' do
137
+ cli.should have_option(:tag_suffix=> '_SWISS')
138
+ end
139
+ it 'should not create any compressed file' do
140
+ $stdout.should_receive(:puts).with(/Pharma/)
141
+ cli.run
142
+ Dir.glob('oddb_*.tar.gz').first.should be_nil
143
+ Dir.glob('oddb_*.zip').first.should be_nil
144
+ end
145
+ it 'should create 2 xml files with prefix swiss_' do
146
+ $stdout.should_receive(:puts).with(/Pharma/)
147
+ cli.run
148
+ Dir.glob('swiss_*.xml').each do |file|
149
+ File.exists?(file).should be_true
150
+ end
151
+ end
152
+ after(:each) do
153
+ Dir.glob('swiss_*.xml').each do |file|
154
+ File.unlink(file) if File.exists?(file)
155
+ end
156
+ end
157
+ end
79
158
  end
@@ -2,25 +2,66 @@
2
2
 
3
3
  require 'spec_helper'
4
4
 
5
+ shared_examples_for 'any compressor' do
6
+ it 'should create compress file' do
7
+ File.stub(:unlink).and_return(false)
8
+ @compressor.contents << File.expand_path('../data/oddb_article.xml', __FILE__)
9
+ @compressor.contents << File.expand_path('../data/oddb_product.xml', __FILE__)
10
+ @compressor.finalize!.should == true
11
+ compress_file = @compressor.instance_variable_get(:@compress_file)
12
+ File.exists?(compress_file).should == true
13
+ File.unstub!(:unlink)
14
+ end
15
+ end
16
+
5
17
  describe Oddb2xml::Compressor do
6
- context "when tar.gz ext is given at initialize" do
7
- before(:each) do
8
- @compressor = Oddb2xml::Compressor.new('tar.gz')
18
+ context 'at initialize' do
19
+ context 'any argment is given' do
20
+ before(:each) do
21
+ @compressor = Oddb2xml::Compressor.new
22
+ end
23
+ it 'should have empty contents as array' do
24
+ @compressor.contents.should be_a Array
25
+ @compressor.contents.should be_empty
26
+ end
27
+ it 'should have formated filename with datetime' do
28
+ @compressor.instance_variable_get(:@compress_file).
29
+ should =~ /oddb_xml_\d{2}.\d{2}.\d{4}_\d{2}.\d{2}.tar\.gz/
30
+ end
9
31
  end
10
- it 'should have formated filename with datetime' do
11
- @compressor.instance_variable_get(:@compressed_file).
12
- should =~ /oddb_xml_\d{2}.\d{2}.\d{4}_\d{2}.\d{2}.tar\.gz/
32
+ context "when swiss prefix is given" do
33
+ before(:each) do
34
+ @compressor = Oddb2xml::Compressor.new('swiss', 'tar.gz')
35
+ end
36
+ it 'should have formated filename with datetime' do
37
+ @compressor.instance_variable_get(:@compress_file).
38
+ should =~ /swiss_xml_\d{2}.\d{2}.\d{4}_\d{2}.\d{2}.tar\.gz/
39
+ end
13
40
  end
14
- it 'should have empty contents as array' do
15
- @compressor.contents.should be_a Array
16
- @compressor.contents.should be_empty
41
+ context "when tar.gz ext is given" do
42
+ before(:each) do
43
+ @compressor = Oddb2xml::Compressor.new('oddb', 'tar.gz')
44
+ end
45
+ it 'should have formated filename with datetime' do
46
+ @compressor.instance_variable_get(:@compress_file).
47
+ should =~ /oddb_xml_\d{2}.\d{2}.\d{4}_\d{2}.\d{2}.tar\.gz/
48
+ end
49
+ end
50
+ context "when zip ext is given" do
51
+ before(:each) do
52
+ @compressor = Oddb2xml::Compressor.new('oddb', 'zip')
53
+ end
54
+ it 'should have formated filename with datetime' do
55
+ @compressor.instance_variable_get(:@compress_file).
56
+ should =~ /oddb_xml_\d{2}.\d{2}.\d{4}_\d{2}.\d{2}.zip/
57
+ end
17
58
  end
18
59
  end
19
60
  context 'when finalize! is called' do
20
- before(:each) do
21
- @compressor = Oddb2xml::Compressor.new()
22
- end
23
61
  context 'unexpectedly' do
62
+ before(:each) do
63
+ @compressor = Oddb2xml::Compressor.new
64
+ end
24
65
  it 'should fail with no contents' do
25
66
  @compressor.finalize!.should == false
26
67
  end
@@ -30,21 +71,23 @@ describe Oddb2xml::Compressor do
30
71
  end
31
72
  end
32
73
  context 'successfully' do
33
- it 'should create compressed file' do
34
- File.stub(:unlink).and_return(false)
35
- @compressor.contents << File.expand_path('../data/oddb_article.xml', __FILE__)
36
- @compressor.contents << File.expand_path('../data/oddb_product.xml', __FILE__)
37
- @compressor.finalize!.should == true
38
- compressed_file = @compressor.instance_variable_get(:@compressed_file)
39
- File.exists?(compressed_file).should == true
40
- File.unstub!(:unlink)
74
+ context 'with tar.gz' do
75
+ before(:each) do
76
+ @compressor = Oddb2xml::Compressor.new
77
+ end
78
+ it_behaves_like 'any compressor'
79
+ end
80
+ context 'with zip' do
81
+ before(:each) do
82
+ @compressor = Oddb2xml::Compressor.new('oddb', 'zip')
83
+ end
84
+ it_behaves_like 'any compressor'
41
85
  end
42
86
  after(:each) do
43
- Dir.glob('oddb_xml_*.tar.gz').each do |file|
87
+ Dir.glob('oddb_xml_*').each do |file|
44
88
  File.unlink(file) if File.exists?(file)
45
89
  end
46
90
  end
47
91
  end
48
92
  end
49
93
  end
50
-
metadata CHANGED
@@ -1,63 +1,48 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: oddb2xml
3
- version: !ruby/object:Gem::Version
4
- hash: 25
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.8
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 0
9
- - 7
10
- version: 1.0.7
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Yasuhiro Asaka, Zeno R.R. Davatz
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-11-20 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-11-21 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: rdoc
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &17164840 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
18
+ requirements:
26
19
  - - ~>
27
- - !ruby/object:Gem::Version
28
- hash: 19
29
- segments:
30
- - 3
31
- - 10
32
- version: "3.10"
20
+ - !ruby/object:Gem::Version
21
+ version: '3.10'
33
22
  type: :development
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: hoe
37
23
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *17164840
25
+ - !ruby/object:Gem::Dependency
26
+ name: hoe
27
+ requirement: &17164160 !ruby/object:Gem::Requirement
39
28
  none: false
40
- requirements:
29
+ requirements:
41
30
  - - ~>
42
- - !ruby/object:Gem::Version
43
- hash: 25
44
- segments:
45
- - 2
46
- - 13
47
- version: "2.13"
31
+ - !ruby/object:Gem::Version
32
+ version: '2.13'
48
33
  type: :development
49
- version_requirements: *id002
50
- description: ""
51
- email:
34
+ prerelease: false
35
+ version_requirements: *17164160
36
+ description: ''
37
+ email:
52
38
  - yasaka@ywesee.com, zdavatz@ywesee.com
53
- executables:
39
+ executables:
54
40
  - oddb2xml
55
41
  extensions: []
56
-
57
- extra_rdoc_files:
42
+ extra_rdoc_files:
58
43
  - History.txt
59
44
  - Manifest.txt
60
- files:
45
+ files:
61
46
  - .gitignore
62
47
  - .rspec
63
48
  - Gemfile
@@ -88,37 +73,28 @@ files:
88
73
  - spec/spec_helper.rb
89
74
  homepage:
90
75
  licenses: []
91
-
92
76
  post_install_message:
93
- rdoc_options:
77
+ rdoc_options:
94
78
  - --main
95
79
  - README.txt
96
- require_paths:
80
+ require_paths:
97
81
  - lib
98
- required_ruby_version: !ruby/object:Gem::Requirement
82
+ required_ruby_version: !ruby/object:Gem::Requirement
99
83
  none: false
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- hash: 3
104
- segments:
105
- - 0
106
- version: "0"
107
- required_rubygems_version: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ required_rubygems_version: !ruby/object:Gem::Requirement
108
89
  none: false
109
- requirements:
110
- - - ">="
111
- - !ruby/object:Gem::Version
112
- hash: 3
113
- segments:
114
- - 0
115
- version: "0"
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
116
94
  requirements: []
117
-
118
95
  rubyforge_project: oddb2xml
119
96
  rubygems_version: 1.8.15
120
97
  signing_key:
121
98
  specification_version: 3
122
- summary: ""
99
+ summary: ''
123
100
  test_files: []
124
-