transmission-rss 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/transmission-add-file +2 -4
- data/bin/transmission-rss +1 -1
- data/lib/transmission-rss/config.rb +5 -0
- data/lib/transmission-rss.rb +1 -1
- metadata +6 -16
data/bin/transmission-add-file
CHANGED
@@ -33,15 +33,13 @@ options.each do |option, argument|
|
|
33
33
|
case(option)
|
34
34
|
when '-c'
|
35
35
|
config_file = argument
|
36
|
-
when '-e'
|
37
|
-
edit_config = true
|
38
|
-
when '-f'
|
39
|
-
dofork = true
|
40
36
|
when '-h'
|
41
37
|
usage_message(config_file)
|
42
38
|
end
|
43
39
|
end
|
44
40
|
|
41
|
+
usage_message(config_file) if ARGV.empty?
|
42
|
+
|
45
43
|
# Seems to be necessary when called from gem installation.
|
46
44
|
# Otherwise Config is somehow mixed up with RbConfig.
|
47
45
|
config = TransmissionRSS::Config.instance
|
data/bin/transmission-rss
CHANGED
@@ -19,7 +19,7 @@ dofork = false
|
|
19
19
|
|
20
20
|
# Shows a summary of the command line options.
|
21
21
|
def usage_message( config_file )
|
22
|
-
$stderr << "#{File.basename($0)} [
|
22
|
+
$stderr << "#{File.basename($0)} [option]..
|
23
23
|
Adds torrents from rss feeds to transmission web frontend.
|
24
24
|
|
25
25
|
-c <file> Custom config file path. Default: #{config_file}
|
@@ -1,6 +1,11 @@
|
|
1
1
|
require 'singleton'
|
2
2
|
require 'yaml'
|
3
3
|
|
4
|
+
# In ruby 1.9.3, Psych is used as YAML engine. Psych maps YAML to a class
|
5
|
+
# automatically when deserializing, which it does by calling the "new"
|
6
|
+
# method in that process. This fails with Singleton classes.
|
7
|
+
YAML::ENGINE.yamler = 'syck'
|
8
|
+
|
4
9
|
# Class handles configuration parameters.
|
5
10
|
class TransmissionRSS::Config < Hash
|
6
11
|
# This is a singleton class.
|
data/lib/transmission-rss.rb
CHANGED
metadata
CHANGED
@@ -1,12 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: transmission-rss
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 1
|
8
|
-
- 8
|
9
|
-
version: 0.1.8
|
4
|
+
prerelease:
|
5
|
+
version: 0.1.9
|
10
6
|
platform: ruby
|
11
7
|
authors:
|
12
8
|
- henning mueller
|
@@ -14,8 +10,7 @@ autorequire:
|
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
12
|
|
17
|
-
date: 2011-
|
18
|
-
default_executable:
|
13
|
+
date: 2011-12-03 00:00:00 Z
|
19
14
|
dependencies: []
|
20
15
|
|
21
16
|
description: |-
|
@@ -33,7 +28,6 @@ extra_rdoc_files: []
|
|
33
28
|
files:
|
34
29
|
- bin/transmission-rss
|
35
30
|
- bin/transmission-add-file
|
36
|
-
- lib/transmission-rss.rb
|
37
31
|
- lib/transmission-rss/aggregator.rb
|
38
32
|
- lib/transmission-rss/client.rb
|
39
33
|
- lib/transmission-rss/config-editor.rb
|
@@ -41,11 +35,11 @@ files:
|
|
41
35
|
- lib/transmission-rss/config-editor/listbox.rb
|
42
36
|
- lib/transmission-rss/config-editor/main.glade
|
43
37
|
- lib/transmission-rss/config-editor/main.rb
|
44
|
-
- lib/transmission-rss/config.rb
|
45
38
|
- lib/transmission-rss/hash.rb
|
46
39
|
- lib/transmission-rss/log.rb
|
40
|
+
- lib/transmission-rss/config.rb
|
41
|
+
- lib/transmission-rss.rb
|
47
42
|
- README.rdoc
|
48
|
-
has_rdoc: true
|
49
43
|
homepage:
|
50
44
|
licenses: []
|
51
45
|
|
@@ -59,21 +53,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
59
53
|
requirements:
|
60
54
|
- - ">="
|
61
55
|
- !ruby/object:Gem::Version
|
62
|
-
segments:
|
63
|
-
- 0
|
64
56
|
version: "0"
|
65
57
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
58
|
none: false
|
67
59
|
requirements:
|
68
60
|
- - ">="
|
69
61
|
- !ruby/object:Gem::Version
|
70
|
-
segments:
|
71
|
-
- 0
|
72
62
|
version: "0"
|
73
63
|
requirements: []
|
74
64
|
|
75
65
|
rubyforge_project:
|
76
|
-
rubygems_version: 1.
|
66
|
+
rubygems_version: 1.8.11
|
77
67
|
signing_key:
|
78
68
|
specification_version: 3
|
79
69
|
summary: Adds torrents from rss feeds to transmission web frontend.
|