opds_monster 0.0.1 → 0.0.2
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/bin/monster +9 -2
- data/lib/opds_monster/version.rb +1 -1
- metadata +4 -4
data/bin/monster
CHANGED
@@ -38,8 +38,15 @@ abort "monster requires an opds feed url" if ARGV[0].nil?
|
|
38
38
|
|
39
39
|
url = ARGV[0]
|
40
40
|
feed = OpdsMonster::Feed.new(url, :username => options[:username], :password => options[:password])
|
41
|
-
|
42
|
-
|
41
|
+
|
42
|
+
begin
|
43
|
+
feed.download_all_items do |item, success|
|
44
|
+
puts "downloaded: #{item.title}" unless options[:quiet]
|
45
|
+
end
|
46
|
+
rescue Interrupt
|
47
|
+
puts "\nexiting..."
|
48
|
+
rescue Exception => e
|
49
|
+
puts e
|
43
50
|
end
|
44
51
|
|
45
52
|
# puts feed.items.count
|
data/lib/opds_monster/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opds_monster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Nick Rowe
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-11-01 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|