oai 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/oai/harvester/shell.rb +7 -5
- metadata +2 -2
data/Rakefile
CHANGED
data/lib/oai/harvester/shell.rb
CHANGED
@@ -45,10 +45,12 @@ module OAI
|
|
45
45
|
else
|
46
46
|
self.send(cmd.shift, cmd.join(" "))
|
47
47
|
end
|
48
|
-
rescue
|
49
|
-
|
50
|
-
|
51
|
-
|
48
|
+
rescue NoMethodError
|
49
|
+
puts "Not a recognized command. Type 'help' for clues."
|
50
|
+
rescue
|
51
|
+
puts "An error occurred:"
|
52
|
+
puts $!
|
53
|
+
puts $!.backtrace.join("\n")
|
52
54
|
end
|
53
55
|
end
|
54
56
|
end
|
@@ -73,7 +75,7 @@ module OAI
|
|
73
75
|
banner "Harvesting '#{site}'"
|
74
76
|
if date && !date.empty?
|
75
77
|
begin
|
76
|
-
date =
|
78
|
+
date = Time.parse(date.join(' ')).utc
|
77
79
|
rescue NoMethodError
|
78
80
|
puts "Couldn't parse the date supplied"
|
79
81
|
return
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: oai
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.0.
|
7
|
-
date: 2008-
|
6
|
+
version: 0.0.8
|
7
|
+
date: 2008-02-11 00:00:00 -05:00
|
8
8
|
summary: A ruby library for working with the Open Archive Initiative Protocol for Metadata Harvesting (OAI-PMH)
|
9
9
|
require_paths:
|
10
10
|
- lib
|