transmission-rss 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/transmission-rss +2 -1
- data/lib/transmission-rss/client.rb +4 -4
- data/lib/transmission-rss/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 704c52a380e2d3a708361c0bcc0f6a3a6b09b645
|
4
|
+
data.tar.gz: 0ede1eafb3b90889b62e33667d78b2b556e71ebe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 835221ea29553f8e4c95fceaca9278d141201635fe766e13ee6b50d8129416c713ddd2d095d7a3d49ac9347760a46a0a0ce45781009526e93c1cb537d3b18621
|
7
|
+
data.tar.gz: a2ac8712185966c4e6179e33c645c0f8598f41c023f22625ef1954d2ec9f2add118d9e176602f724a54a6bc43d635dbcee8f3d944c80203d2dbd5135e78b8447
|
data/bin/transmission-rss
CHANGED
@@ -137,11 +137,12 @@ end
|
|
137
137
|
aggregator = Aggregator.new(config.feeds, seen_file: config.seen_file)
|
138
138
|
|
139
139
|
if reset_seen_file
|
140
|
-
aggregator.seen.clear!
|
140
|
+
aggregator.seen.clear!
|
141
141
|
log.debug('seenfile reset')
|
142
142
|
end
|
143
143
|
|
144
144
|
# Initialize communication to transmission.
|
145
|
+
p config.server
|
145
146
|
client = Client.new(config.server, config.login)
|
146
147
|
|
147
148
|
# Callback for a new item on one of the feeds.
|
@@ -11,12 +11,12 @@ module TransmissionRSS
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def initialize(server = {}, login = nil, options = {})
|
14
|
-
@host = server
|
15
|
-
@port = server
|
16
|
-
@rpc_path = server
|
14
|
+
@host = server.host || 'localhost'
|
15
|
+
@port = server.port || 9091
|
16
|
+
@rpc_path = server.rpc_path || '/transmission/rpc'
|
17
17
|
@login = login
|
18
18
|
|
19
|
-
@timeout = options
|
19
|
+
@timeout = options.timeout || 5
|
20
20
|
@log = TransmissionRSS::Log.instance
|
21
21
|
end
|
22
22
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: transmission-rss
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- henning mueller
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: open_uri_redirections
|