transmission-rss 0.1.19 → 0.1.20

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -14,7 +14,7 @@ torrent files.
14
14
  As it's done with poems, I devote this very artful and romantic piece of
15
15
  code to the single most delightful human being: Ann.
16
16
 
17
- The minimum supported Ruby version is 2.0.0.
17
+ The minimum supported Ruby version is 1.9.3.
18
18
 
19
19
  Installation
20
20
  ------------
@@ -14,7 +14,9 @@ module TransmissionRSS
14
14
  extend Callback
15
15
  callback(:on_new_item) # Declare callback for new items.
16
16
 
17
- def initialize(feeds = [], seen_file: nil)
17
+ def initialize(feeds = [], options = {})
18
+ seen_file = options[:seen_file]
19
+
18
20
  # Prepare Array of feeds URLs.
19
21
  @feeds = feeds.map { |x| x.is_a?(Hash) ? x.keys.first : x }
20
22
 
@@ -10,8 +10,9 @@ module TransmissionRSS
10
10
  class Unauthorized < StandardError
11
11
  end
12
12
 
13
- def initialize(host = 'localhost', port = 9091, login = nil, timeout: 5)
14
- @host, @port, @login, @timeout = host, port, login, timeout
13
+ def initialize(host = 'localhost', port = 9091, login = nil, options = {})
14
+ @host, @port, @login = host, port, login
15
+ @timeout = options[:timeout] || 5
15
16
  @log = TransmissionRSS::Log.instance
16
17
  end
17
18
 
@@ -83,16 +84,16 @@ module TransmissionRSS
83
84
  end
84
85
 
85
86
  def request(data)
86
- Timeout::timeout(@timeout) do
87
+ Timeout.timeout(@timeout) do
87
88
  Net::HTTP.new(@host, @port).start do |http|
88
- http.request data
89
+ http.request(data)
89
90
  end
90
91
  end
91
92
  rescue Errno::ECONNREFUSED
92
- @log.debug 'connection refused'
93
+ @log.debug('connection refused')
93
94
  raise
94
95
  rescue Timeout::Error
95
- @log.debug 'connection timeout'
96
+ @log.debug('connection timeout')
96
97
  raise
97
98
  end
98
99
  end
@@ -1,3 +1,3 @@
1
1
  module TransmissionRSS
2
- VERSION = '0.1.19'
2
+ VERSION = '0.1.20'
3
3
  end
metadata CHANGED
@@ -1,39 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: transmission-rss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.19
4
+ version: 0.1.20
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - henning mueller
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-11-09 00:00:00.000000000 Z
12
+ date: 2014-12-02 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: open_uri_redirections
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - "~>"
19
+ - - ~>
18
20
  - !ruby/object:Gem::Version
19
21
  version: '0.1'
20
- - - ">="
22
+ - - ! '>='
21
23
  - !ruby/object:Gem::Version
22
24
  version: 0.1.4
23
25
  type: :runtime
24
26
  prerelease: false
25
27
  version_requirements: !ruby/object:Gem::Requirement
28
+ none: false
26
29
  requirements:
27
- - - "~>"
30
+ - - ~>
28
31
  - !ruby/object:Gem::Version
29
32
  version: '0.1'
30
- - - ">="
33
+ - - ! '>='
31
34
  - !ruby/object:Gem::Version
32
35
  version: 0.1.4
33
- description: |-
34
- transmission-rss is basically a workaround for
35
- transmission's lack of the ability to monitor RSS feeds and
36
- automatically add enclosed torrent links. Devoted to Ann.
36
+ description: ! "transmission-rss is basically a workaround for\n transmission's
37
+ lack of the ability to monitor RSS feeds and\n automatically add enclosed torrent
38
+ links. Devoted to Ann."
37
39
  email: henning@orgizm.net
38
40
  executables:
39
41
  - transmission-add-file
@@ -41,40 +43,42 @@ executables:
41
43
  extensions: []
42
44
  extra_rdoc_files: []
43
45
  files:
44
- - README.md
45
46
  - bin/transmission-add-file
46
47
  - bin/transmission-rss
47
48
  - lib/transmission-rss.rb
49
+ - lib/transmission-rss/hash.rb
50
+ - lib/transmission-rss/config.rb
48
51
  - lib/transmission-rss/aggregator.rb
49
- - lib/transmission-rss/callback.rb
50
52
  - lib/transmission-rss/client.rb
51
- - lib/transmission-rss/config.rb
52
- - lib/transmission-rss/hash.rb
53
+ - lib/transmission-rss/callback.rb
53
54
  - lib/transmission-rss/log.rb
54
55
  - lib/transmission-rss/version.rb
56
+ - README.md
55
57
  - transmission-rss.conf.example
56
58
  homepage: https://rubygems.org/gems/transmission-rss
57
59
  licenses:
58
60
  - GPL-3.0
59
- metadata: {}
60
61
  post_install_message:
61
62
  rdoc_options: []
62
63
  require_paths:
63
64
  - lib
64
65
  required_ruby_version: !ruby/object:Gem::Requirement
66
+ none: false
65
67
  requirements:
66
- - - ">="
68
+ - - ! '>='
67
69
  - !ruby/object:Gem::Version
68
70
  version: '0'
69
71
  required_rubygems_version: !ruby/object:Gem::Requirement
72
+ none: false
70
73
  requirements:
71
- - - ">="
74
+ - - ! '>='
72
75
  - !ruby/object:Gem::Version
73
76
  version: '0'
74
77
  requirements: []
75
78
  rubyforge_project:
76
- rubygems_version: 2.2.2
79
+ rubygems_version: 1.8.23.2
77
80
  signing_key:
78
- specification_version: 4
81
+ specification_version: 3
79
82
  summary: Adds torrents from rss feeds to transmission web frontend.
80
83
  test_files: []
84
+ has_rdoc:
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: fa29b326e65a186b541ecaf1fb4e18adf0cc6743
4
- data.tar.gz: 5eb9e985f291c12f9070d30b0901309efc5491f1
5
- SHA512:
6
- metadata.gz: 05e689315452724d6f16a311623968095874fd643edc6ef1b11fad16d4ef8ab4eb4dc2195a204ee3e36bd3b6ff287a8be2384ff64c6a99beae1b48f1b59f5511
7
- data.tar.gz: 7779b1fca58a0e8d2c7f5bb16bf238a381ef256314a5a6fd0c1babd9c9c92904d0e0ffd8595fe60ba902efcd8b2d83b2519cdf2318dac059f2bd87b827b09ef1