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 +1 -1
- data/lib/dwc-archive.rb +0 -1
- data/spec/lib/{ruby_extenstions_spec.rb → xml_reader_soec.rb} +3 -3
- metadata +5 -5
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.11
|
data/lib/dwc-archive.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
require File.expand_path(File.dirname(__FILE__) + "/../spec_helper")
|
2
2
|
|
3
|
-
describe "
|
3
|
+
describe "DarwinCore::XmlReader" do
|
4
4
|
it "should parse xml to hash" do
|
5
|
-
|
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 =
|
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:
|
4
|
+
hash: 29
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
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/
|
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/
|
156
|
+
- spec/lib/xml_reader_soec.rb
|
157
157
|
- spec/spec_helper.rb
|