rget 4.3.3 → 4.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dropbox.rb +3 -3
- data/lib/webradio.rb +1 -1
- data/rget.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5ac10ea1e88a0628213de515ab2b9503b2c16add1741f67826296f832441642
|
4
|
+
data.tar.gz: e8a5eeba64e2d93a7db0a7b9ec746053143caf745bef6e457dc37ab518cff1c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c1344138702af1571c6ea5603620d36df6e0d0c28e4fe0346739f3e73a20a7b079f983f5c962d2d54c1fd57e6218e348cc81e5f9895829a9aab4d67e5060099
|
7
|
+
data.tar.gz: db8b7bec7f4460b82ed783d655f711bd7f6143d799ed1c522fde5aca52d9b4e454ce50d314c9ca64a2b6eae352aa37912210de7a32d3a2a6dcbcd6a3ce6ced1a
|
data/lib/dropbox.rb
CHANGED
@@ -24,7 +24,7 @@ module RGet
|
|
24
24
|
api_secret = $stdin.gets.chomp
|
25
25
|
end
|
26
26
|
|
27
|
-
authenticator = DropboxApi::Authenticator.new(api_key, api_secret)
|
27
|
+
authenticator = ::DropboxApi::Authenticator.new(api_key, api_secret)
|
28
28
|
puts "\nGo to this url and click 'Authorize' to get the token:"
|
29
29
|
puts authenticator.authorize_url
|
30
30
|
|
@@ -34,7 +34,7 @@ module RGet
|
|
34
34
|
token[:api_token] = authenticator.get_token(code).token
|
35
35
|
Pit::set('rget-dropbox', data: token)
|
36
36
|
end
|
37
|
-
@client = DropboxApi::Client.new(token[:api_token])
|
37
|
+
@client = ::DropboxApi::Client.new(token[:api_token])
|
38
38
|
end
|
39
39
|
|
40
40
|
def exist?(dst, dropbox_path)
|
@@ -42,7 +42,7 @@ module RGet
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def upload(dropbox_path)
|
45
|
-
info = DropboxApi::Metadata::CommitInfo.new('path'=>dropbox_path, 'mode'=>:add)
|
45
|
+
info = ::DropboxApi::Metadata::CommitInfo.new('path'=>dropbox_path, 'mode'=>:add)
|
46
46
|
cursor = @client.upload_session_start('')
|
47
47
|
while data = yield
|
48
48
|
@client.upload_session_append_v2(cursor, data)
|
data/lib/webradio.rb
CHANGED
data/rget.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "rget"
|
7
|
-
spec.version = "4.3.
|
7
|
+
spec.version = "4.3.4"
|
8
8
|
spec.authors = ["TADA Tadashi"]
|
9
9
|
spec.email = ["t@tdtds.jp"]
|
10
10
|
spec.description = %q{Downloading newest radio programs on the web. Supported radio stations are hibiki, onsen, niconico and freshlive.}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rget
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.3.
|
4
|
+
version: 4.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TADA Tadashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -185,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
185
185
|
version: '0'
|
186
186
|
requirements: []
|
187
187
|
rubyforge_project:
|
188
|
-
rubygems_version: 2.
|
188
|
+
rubygems_version: 2.7.3
|
189
189
|
signing_key:
|
190
190
|
specification_version: 4
|
191
191
|
summary: Downloading newest radio programs on the web.
|