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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d63111d7b50998534ae7d1913fdc04f2e5e6d6849bd0d8515deb13c3c28183b1
4
- data.tar.gz: 4e7e831b9d2bfc2134bc83a751cda51808557214c6ca89d6ed238636f5ac3076
3
+ metadata.gz: b5ac10ea1e88a0628213de515ab2b9503b2c16add1741f67826296f832441642
4
+ data.tar.gz: e8a5eeba64e2d93a7db0a7b9ec746053143caf745bef6e457dc37ab518cff1c0
5
5
  SHA512:
6
- metadata.gz: 0dfbd4050cf941ea8dd9e9473afeadc1e9ca5701bd20d5ddfacfcb8e20f2018419718e7b9bc89fff3b37b942018f83f09aa4fe650abf52ad8fe3e5d9c32b2dde
7
- data.tar.gz: 417359d62943102f05e6c3bdcc6c641ae0562a7daf913d4bc90c058c528413016d4e3d6006a665bcdaac557cbd94e804f3cac609c8742f4f88bbd81e6f5cc84f
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
@@ -163,7 +163,7 @@ private
163
163
  return
164
164
  end
165
165
  puts "done."
166
- rescue DropboxApi::Errors::FileConflictError
166
+ rescue ::DropboxApi::Errors::FileConflictError
167
167
  puts "existent, skip."
168
168
  rescue => e
169
169
  puts "failed."
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.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.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-13 00:00:00.000000000 Z
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.6.14
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.