dwc-archive 0.5.10 → 0.5.11

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.10
1
+ 0.5.11
@@ -2,7 +2,6 @@
2
2
  $:.unshift(File.dirname(__FILE__)) unless
3
3
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
4
4
  R19 = RUBY_VERSION.split('.')[0..1].join('').to_i > 18
5
- require 'ruby_extensions'
6
5
  require 'fileutils'
7
6
  require 'ostruct'
8
7
 
@@ -1,13 +1,13 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + "/../spec_helper")
2
2
 
3
- describe "Hash" do
3
+ describe "DarwinCore::XmlReader" do
4
4
  it "should parse xml to hash" do
5
- Hash.public_methods.map { |i| i.to_s }.include?("from_xml").should be_true
5
+ DarwinCore::XmlReader.public_methods.map { |i| i.to_s }.include?("from_xml").should be_true
6
6
  end
7
7
 
8
8
  it "should parse xml" do
9
9
  xml_string = open(File.dirname(__FILE__) + "/../files/meta.xml").read
10
- meta = Hash.from_xml(xml_string)
10
+ meta = DarwinCore::XmlReader.from_xml(xml_string)
11
11
  meta[:archive].keys.map {|k| k.to_s}.sort.should == %w(core extension)
12
12
  meta[:archive][:core].keys.map{|k| k.to_s}.sort.should == ["attributes", "field", "files", "id"]
13
13
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dwc-archive
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 10
10
- version: 0.5.10
9
+ - 11
10
+ version: 0.5.11
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dmitry Mozzherin
@@ -114,7 +114,7 @@ files:
114
114
  - spec/files/synonyms_in_extension.tar.gz
115
115
  - spec/files/uncompressed
116
116
  - spec/lib/dwc-archive_spec.rb
117
- - spec/lib/ruby_extenstions_spec.rb
117
+ - spec/lib/xml_reader_soec.rb
118
118
  - spec/spec.opts
119
119
  - spec/spec_helper.rb
120
120
  has_rdoc: true
@@ -153,5 +153,5 @@ specification_version: 3
153
153
  summary: Handler of Darwin Core Archive files
154
154
  test_files:
155
155
  - spec/lib/dwc-archive_spec.rb
156
- - spec/lib/ruby_extenstions_spec.rb
156
+ - spec/lib/xml_reader_soec.rb
157
157
  - spec/spec_helper.rb