oai 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/oai/harvester/shell.rb +7 -5
  3. metadata +2 -2
data/Rakefile CHANGED
@@ -1,4 +1,4 @@
1
- RUBY_OAI_VERSION = '0.0.7'
1
+ RUBY_OAI_VERSION = '0.0.8'
2
2
 
3
3
  require 'rubygems'
4
4
  require 'rake'
@@ -45,10 +45,12 @@ module OAI
45
45
  else
46
46
  self.send(cmd.shift, cmd.join(" "))
47
47
  end
48
- rescue
49
- puts "Not a recognized command, or bad options. Type 'help' for clues."
50
- puts $!
51
- puts $!.backtrace.join("\n")
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 = Chronic.parse(date.join(' ')).utc
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
7
- date: 2008-01-14 00:00:00 -05:00
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