rget 4.2.0 → 4.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/webradio.rb +6 -3
- data/rget.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52fccc42bdf88077278fd0358e49aab3c2b28df3
|
4
|
+
data.tar.gz: 839d5cbf9d3a030f9a14e43bc147f38edc422b94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eca3d391cd1c040a6d6079b1bd41f616e95c971c00129b93829067cdfdf387bd7f525ca1ffa267f14bc7bbc84690fcd9ce3e9bd619397c5081286d4e3f60d42f
|
7
|
+
data.tar.gz: 7cf83dc45cf0c6d3d39061a53e79bcb34b706116507b3b64522be68d3f7f32bbb4cde5555ca5554bdb338497103ef90fef8ebebf563d5b27fe6d781d791bfa0d
|
data/lib/webradio.rb
CHANGED
@@ -76,7 +76,7 @@ private
|
|
76
76
|
end
|
77
77
|
end
|
78
78
|
if !@options.mp3 || src == dst
|
79
|
-
add_cover(
|
79
|
+
add_cover(src) if src =~ /\.mp3$/
|
80
80
|
move(src) if @options.path
|
81
81
|
return
|
82
82
|
end
|
@@ -146,8 +146,8 @@ private
|
|
146
146
|
|
147
147
|
def move(dst)
|
148
148
|
if @options.path
|
149
|
-
print "move to #{@options.path}..."
|
150
149
|
begin
|
150
|
+
print "move to #{@options.path}..."
|
151
151
|
if @dropbox
|
152
152
|
open(dst) do |r|
|
153
153
|
@dropbox.upload(dropbox_file(dst)) do
|
@@ -156,8 +156,11 @@ private
|
|
156
156
|
end
|
157
157
|
end
|
158
158
|
File.delete(dst)
|
159
|
-
elsif @options.path
|
159
|
+
elsif !(Pathname(@options.path).expand_path == Pathname(dst).expand_path.dirname)
|
160
160
|
FileUtils.mv(dst, @options.path)
|
161
|
+
else
|
162
|
+
puts "skip."
|
163
|
+
return
|
161
164
|
end
|
162
165
|
puts "done."
|
163
166
|
rescue => e
|
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.2.
|
7
|
+
spec.version = "4.2.1"
|
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.2.
|
4
|
+
version: 4.2.1
|
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-
|
11
|
+
date: 2017-10-02 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.6.13
|
189
189
|
signing_key:
|
190
190
|
specification_version: 4
|
191
191
|
summary: Downloading newest radio programs on the web.
|