dwc-archive 0.5.4 → 0.5.5
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.
- data/VERSION +1 -1
- data/lib/dwc-archive.rb +6 -3
- metadata +13 -6
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.5
|
data/lib/dwc-archive.rb
CHANGED
@@ -52,20 +52,23 @@ class DarwinCore
|
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
55
|
+
def self.logger
|
56
|
+
@@logger ||= Logger.new(nil)
|
57
|
+
end
|
58
|
+
|
55
59
|
def self.logger=(logger)
|
56
60
|
@@logger = logger
|
57
61
|
end
|
58
62
|
|
59
63
|
def self.logger_reset
|
60
|
-
|
64
|
+
self.logger = Logger.new(nil)
|
61
65
|
end
|
62
66
|
|
63
67
|
def self.logger_write(obj_id, message, method = :info)
|
64
|
-
|
68
|
+
self.logger.send(method, "|%s|%s|" % [obj_id, message])
|
65
69
|
end
|
66
70
|
|
67
71
|
def initialize(dwc_path, tmp_dir = DEFAULT_TMP_DIR)
|
68
|
-
@@logger ||= Logger.new(nil)
|
69
72
|
@archive = DarwinCore::Archive.new(dwc_path, tmp_dir)
|
70
73
|
@core = DarwinCore::Core.new(self)
|
71
74
|
@metadata = DarwinCore::Metadata.new(@archive)
|
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: 1
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 5
|
10
|
+
version: 0.5.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Dmitry Mozzherin
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-11-
|
18
|
+
date: 2010-11-09 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -66,8 +66,11 @@ dependencies:
|
|
66
66
|
version_requirements: *id003
|
67
67
|
description: Darwin Core Archive is the current standard exchange format for GLobal Names Architecture modules. This gem makes it easy to incorporate files in Darwin Core Archive format into a ruby project.
|
68
68
|
email: dmozzherin at gmail dot com
|
69
|
-
executables:
|
70
|
-
|
69
|
+
executables:
|
70
|
+
- log.txt
|
71
|
+
- parse.rb
|
72
|
+
- preparse.rb
|
73
|
+
- t
|
71
74
|
extensions: []
|
72
75
|
|
73
76
|
extra_rdoc_files:
|
@@ -118,6 +121,10 @@ files:
|
|
118
121
|
- spec/lib/ruby_extenstions_spec.rb
|
119
122
|
- spec/spec.opts
|
120
123
|
- spec/spec_helper.rb
|
124
|
+
- bin/log.txt
|
125
|
+
- bin/parse.rb
|
126
|
+
- bin/preparse.rb
|
127
|
+
- bin/t
|
121
128
|
has_rdoc: true
|
122
129
|
homepage: http://github.com/GlobalNamesArchitecture/dwc-archive
|
123
130
|
licenses: []
|