rget 2.2.3 → 2.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/nicodl +1 -3
  3. data/rget.gemspec +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 73e227187f96df91607d1c66502962250d48fcbb
4
- data.tar.gz: a203607fce1946c916d66467b007a601d4e95540
3
+ metadata.gz: e99c7e9a1b29aac8c9be1b14d24e8fea384ce857
4
+ data.tar.gz: 4bb7b4d20b29d4f2af4e453a7bfebeff4f2f87da
5
5
  SHA512:
6
- metadata.gz: 2da0d8915c8eb771c3431c61c706fe6cd6d0332eb0d4950d3bc58a7906c0149757da45de18fe6e1988c5d5c0bf0e90b61bb9b55bed298577206ee390ac1fa07a
7
- data.tar.gz: a3b900f9fbb00fafa0b721e81a38dcfd218ce5b1a008eab725565429a51ab94e4b84e272fbeac3f1fbd4a78792dc9f9d50b41ac959881a2b540d6a6faad1f474
6
+ metadata.gz: af2a08ecfa619c99b0896b77504cf79b11f587262f778d2af210b08f28932b4af6aa63f20784a07cb093b83f3f4fc04b7a7ddd468bf00af91913c59097719b0b
7
+ data.tar.gz: e5c2ac0f0fe3662aec0fbbd61f49d41968fc13f8c659eeee20162ba211904c1ab4b932cd1dc0ccaa5b753e1117c614e49aba333524846f14445983778a8c8607
data/bin/nicodl CHANGED
@@ -16,9 +16,7 @@ account = Pit::get('nicovideo', :require => {
16
16
  nico = Niconico.new(account[:id], account[:pass])
17
17
  nico.login
18
18
  video = nico.video(Pathname(URI(player_url).path).basename.to_s)
19
- title = video.title
20
- file = "#{title}.#{video.type}"
21
- mp3_file = file.sub(/\....$/, '.mp3')
19
+ file = "#{video.title}.#{video.type}".gsub(%r([\\/\?:*"><|]), '_')
22
20
  open(file, 'wb:ASCII-8BIT') do |o|
23
21
  video.get_video{|body|o.write(body)}
24
22
  end
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 = "2.2.3"
7
+ spec.version = "2.2.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, animate, onsen, seaside communications, niconico and youtube.}
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: 2.2.3
4
+ version: 2.2.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: 2015-02-16 00:00:00.000000000 Z
11
+ date: 2015-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor