the-noises 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.document +5 -0
- data/.rspec +1 -0
- data/Gemfile +17 -0
- data/Gemfile.lock +78 -0
- data/LICENSE.txt +20 -0
- data/README.md +26 -0
- data/Rakefile +50 -0
- data/VERSION +1 -0
- data/bin/the-noises +9 -0
- data/lib/the-noises.rb +88 -0
- data/spec/spec_helper.rb +29 -0
- data/spec/the-noises_spec.rb +125 -0
- data/the-noises.gemspec +75 -0
- metadata +171 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9a2d211e34556c2b28c57744b0250c00fd2f0fe3
|
4
|
+
data.tar.gz: 136bbff6c431d17e4a1d3564745cfd481145956c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a32034f4bb231581861b5876c26557392c39521cb1c6429fcd14d788a89f46b6857763b1dce3ec66f6cad9fc25e86bfa61dbda095d88dbe331dd6e062e34fbd2
|
7
|
+
data.tar.gz: ad55de6512eb82dd8ce9c6ee95163ca1ba1ae27d1cf145965b0bececcb6f96560e732a956bd533decdaf20a0585a56f34042366a8b42aa8fcad54b1d35ded4f6
|
data/.document
ADDED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/Gemfile
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
# Add dependencies required to use your gem here.
|
3
|
+
# Example:
|
4
|
+
# gem "activesupport", ">= 2.3.5"
|
5
|
+
gem 'thor', '~> 0.19.1'
|
6
|
+
gem 'ruby-progressbar', '~> 1.4.2'
|
7
|
+
|
8
|
+
# Add dependencies to develop your gem here.
|
9
|
+
# Include everything needed to run rake, tests, features, etc.
|
10
|
+
group :development do
|
11
|
+
gem 'rspec', '~> 2.14.1'
|
12
|
+
gem "rdoc", "~> 3.12"
|
13
|
+
gem "bundler", "~> 1.0"
|
14
|
+
gem "jeweler", "~> 2.0.1"
|
15
|
+
gem "simplecov", ">= 0"
|
16
|
+
gem 'capture-output', '~> 1.0.0'
|
17
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,78 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
addressable (2.3.6)
|
5
|
+
builder (3.2.2)
|
6
|
+
capture-output (1.0.0)
|
7
|
+
descendants_tracker (0.0.3)
|
8
|
+
diff-lcs (1.2.5)
|
9
|
+
docile (1.1.3)
|
10
|
+
faraday (0.9.0)
|
11
|
+
multipart-post (>= 1.2, < 3)
|
12
|
+
git (1.2.6)
|
13
|
+
github_api (0.11.3)
|
14
|
+
addressable (~> 2.3)
|
15
|
+
descendants_tracker (~> 0.0.1)
|
16
|
+
faraday (~> 0.8, < 0.10)
|
17
|
+
hashie (>= 1.2)
|
18
|
+
multi_json (>= 1.7.5, < 2.0)
|
19
|
+
nokogiri (~> 1.6.0)
|
20
|
+
oauth2
|
21
|
+
hashie (2.0.5)
|
22
|
+
highline (1.6.21)
|
23
|
+
jeweler (2.0.1)
|
24
|
+
builder
|
25
|
+
bundler (>= 1.0)
|
26
|
+
git (>= 1.2.5)
|
27
|
+
github_api
|
28
|
+
highline (>= 1.6.15)
|
29
|
+
nokogiri (>= 1.5.10)
|
30
|
+
rake
|
31
|
+
rdoc
|
32
|
+
json (1.8.1)
|
33
|
+
jwt (0.1.11)
|
34
|
+
multi_json (>= 1.5)
|
35
|
+
mini_portile (0.5.3)
|
36
|
+
multi_json (1.9.2)
|
37
|
+
multi_xml (0.5.5)
|
38
|
+
multipart-post (2.0.0)
|
39
|
+
nokogiri (1.6.1)
|
40
|
+
mini_portile (~> 0.5.0)
|
41
|
+
oauth2 (0.9.3)
|
42
|
+
faraday (>= 0.8, < 0.10)
|
43
|
+
jwt (~> 0.1.8)
|
44
|
+
multi_json (~> 1.3)
|
45
|
+
multi_xml (~> 0.5)
|
46
|
+
rack (~> 1.2)
|
47
|
+
rack (1.5.2)
|
48
|
+
rake (10.2.0)
|
49
|
+
rdoc (3.12.2)
|
50
|
+
json (~> 1.4)
|
51
|
+
rspec (2.14.1)
|
52
|
+
rspec-core (~> 2.14.0)
|
53
|
+
rspec-expectations (~> 2.14.0)
|
54
|
+
rspec-mocks (~> 2.14.0)
|
55
|
+
rspec-core (2.14.8)
|
56
|
+
rspec-expectations (2.14.5)
|
57
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
58
|
+
rspec-mocks (2.14.6)
|
59
|
+
ruby-progressbar (1.4.2)
|
60
|
+
simplecov (0.8.2)
|
61
|
+
docile (~> 1.1.0)
|
62
|
+
multi_json
|
63
|
+
simplecov-html (~> 0.8.0)
|
64
|
+
simplecov-html (0.8.0)
|
65
|
+
thor (0.19.1)
|
66
|
+
|
67
|
+
PLATFORMS
|
68
|
+
ruby
|
69
|
+
|
70
|
+
DEPENDENCIES
|
71
|
+
bundler (~> 1.0)
|
72
|
+
capture-output (~> 1.0.0)
|
73
|
+
jeweler (~> 2.0.1)
|
74
|
+
rdoc (~> 3.12)
|
75
|
+
rspec (~> 2.14.1)
|
76
|
+
ruby-progressbar (~> 1.4.2)
|
77
|
+
simplecov
|
78
|
+
thor (~> 0.19.1)
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2014 ninoseki
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# ruby-the-noises
|
2
|
+
|
3
|
+
[ザ・ノイジーズ](http://www.enterjam.com/?cid=3)のポッドキャスト用Rubyクライアント。
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
```
|
8
|
+
$ gem instal the-noises
|
9
|
+
```
|
10
|
+
|
11
|
+
## Usage
|
12
|
+
|
13
|
+
download an entry
|
14
|
+
|
15
|
+
```
|
16
|
+
$ the-noisies download 300
|
17
|
+
Title: 第300回 本日のお題:なんと飛び級で300回目を迎えちゃいました!テヘ!300回記念回「アイドル八犬伝について語ろう」について語ろう!
|
18
|
+
downloading http://enterjam.net/podcast/noises/300.mp3 to /home/ninoseki/the-noises/300.mp3
|
19
|
+
Time: 00:00:33 <=================================================================================> 100% Progress
|
20
|
+
```
|
21
|
+
|
22
|
+
|
23
|
+
## Copyright
|
24
|
+
|
25
|
+
Copyright (c) 2014 ninoseki. See LICENSE.txt for further details.
|
26
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
require 'rake'
|
13
|
+
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
# gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options
|
17
|
+
gem.name = "the-noises"
|
18
|
+
gem.homepage = "http://github.com/ninoseki/ruby-the-noises"
|
19
|
+
gem.license = "MIT"
|
20
|
+
gem.summary = %Q{ザ・ノイジーズのポッドキャスト用Rubyクライアント}
|
21
|
+
gem.description = %Q{ザ・ノイジーズのポッドキャスト用Rubyクライアント}
|
22
|
+
gem.email = "zgok0079@gmail.com"
|
23
|
+
gem.authors = ["ninoseki"]
|
24
|
+
# dependencies defined in Gemfile
|
25
|
+
end
|
26
|
+
Jeweler::RubygemsDotOrgTasks.new
|
27
|
+
|
28
|
+
require 'rspec/core'
|
29
|
+
require 'rspec/core/rake_task'
|
30
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
31
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
32
|
+
end
|
33
|
+
|
34
|
+
desc "Code coverage detail"
|
35
|
+
task :simplecov do
|
36
|
+
ENV['COVERAGE'] = "true"
|
37
|
+
Rake::Task['spec'].execute
|
38
|
+
end
|
39
|
+
|
40
|
+
task :default => :spec
|
41
|
+
|
42
|
+
require 'rdoc/task'
|
43
|
+
Rake::RDocTask.new do |rdoc|
|
44
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
45
|
+
|
46
|
+
rdoc.rdoc_dir = 'rdoc'
|
47
|
+
rdoc.title = "the_noises_downloader #{version}"
|
48
|
+
rdoc.rdoc_files.include('README*')
|
49
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
50
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.1
|
data/bin/the-noises
ADDED
data/lib/the-noises.rb
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
require 'thor'
|
2
|
+
require 'fileutils'
|
3
|
+
require 'open-uri'
|
4
|
+
require 'ruby-progressbar'
|
5
|
+
require 'rss'
|
6
|
+
|
7
|
+
module TheNoises
|
8
|
+
class CLI < Thor
|
9
|
+
SUBDIR_NAME = "the-noises"
|
10
|
+
BASE_URL = "http://enterjam.net/podcast/noises/"
|
11
|
+
RSS_URL = "http://enterjam.net/noises.xml"
|
12
|
+
|
13
|
+
def initialize(args = [], options = {}, config = {})
|
14
|
+
super
|
15
|
+
end
|
16
|
+
|
17
|
+
desc "download [index]", "start download"
|
18
|
+
option :dst
|
19
|
+
def download(index)
|
20
|
+
begin
|
21
|
+
i=Integer(index)
|
22
|
+
rescue
|
23
|
+
raise ArgumentError, "#{index} is not integer"
|
24
|
+
end
|
25
|
+
|
26
|
+
self.destination_root = options[:dst]
|
27
|
+
|
28
|
+
url = BASE_URL + "#{index}.mp3"
|
29
|
+
show_title(url)
|
30
|
+
save(url)
|
31
|
+
end
|
32
|
+
|
33
|
+
no_tasks do
|
34
|
+
|
35
|
+
def destination_root
|
36
|
+
@destination_root
|
37
|
+
end
|
38
|
+
|
39
|
+
def destination_root=(root)
|
40
|
+
root ||= Dir.home
|
41
|
+
@destination_root = File.expand_path(SUBDIR_NAME, root)
|
42
|
+
end
|
43
|
+
|
44
|
+
def save(url)
|
45
|
+
file_name = File.basename(url)
|
46
|
+
file_path = File.expand_path(file_name, destination_root)
|
47
|
+
FileUtils.mkdir_p(destination_root)
|
48
|
+
|
49
|
+
begin
|
50
|
+
progress_bar = nil
|
51
|
+
|
52
|
+
puts "downloading #{url} to #{file_path}"
|
53
|
+
open(file_path, 'wb') { |file|
|
54
|
+
open(
|
55
|
+
url,
|
56
|
+
:content_length_proc => lambda { |content_length|
|
57
|
+
if content_length
|
58
|
+
progress_bar = ProgressBar.create(:total => content_length, :format => "%a <%B> %p%% %t")
|
59
|
+
end
|
60
|
+
},
|
61
|
+
:progress_proc => lambda { |transferred_bytes|
|
62
|
+
if progress_bar
|
63
|
+
progress_bar.progress = transferred_bytes
|
64
|
+
end
|
65
|
+
}
|
66
|
+
) { |data| file.write(data.read) } }
|
67
|
+
rescue => e
|
68
|
+
FileUtils.rm(file_path)
|
69
|
+
case e
|
70
|
+
when OpenURI::HTTPError
|
71
|
+
puts "#{url} is 404"
|
72
|
+
else
|
73
|
+
puts e
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
end
|
78
|
+
|
79
|
+
def show_title(url)
|
80
|
+
rss = RSS::Parser.parse(RSS_URL, false)
|
81
|
+
item = rss.items.select { |item| item.enclosure.url == url }.first
|
82
|
+
|
83
|
+
title = item ? item.title : "Unkown"
|
84
|
+
puts "Title: #{title}"
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'simplecov'
|
2
|
+
|
3
|
+
module SimpleCov::Configuration
|
4
|
+
def clean_filters
|
5
|
+
@filters = []
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
SimpleCov.configure do
|
10
|
+
clean_filters
|
11
|
+
load_adapter 'test_frameworks'
|
12
|
+
end
|
13
|
+
|
14
|
+
ENV["COVERAGE"] && SimpleCov.start do
|
15
|
+
add_filter "/.rvm/"
|
16
|
+
end
|
17
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
18
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
19
|
+
|
20
|
+
require 'rspec'
|
21
|
+
require 'the-noises'
|
22
|
+
|
23
|
+
# Requires supporting files with custom matchers and macros, etc,
|
24
|
+
# in ./support/ and its subdirectories.
|
25
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
26
|
+
|
27
|
+
RSpec.configure do |config|
|
28
|
+
|
29
|
+
end
|
@@ -0,0 +1,125 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
|
+
require 'capture-output'
|
3
|
+
|
4
|
+
describe "the-noises" do
|
5
|
+
let(:cli) { TheNoises::CLI.new }
|
6
|
+
let(:exists_url) { "http://enterjam.net/podcast/noises/226.mp3" }
|
7
|
+
let(:not_exists_url) { "http://enterjam.net/podcast/noises/1.mp3" }
|
8
|
+
let(:exists_index) { 226 }
|
9
|
+
let(:not_exists_index) { 1 }
|
10
|
+
|
11
|
+
describe "save" do
|
12
|
+
context "exists url" do
|
13
|
+
it "should save .mp3 file" do
|
14
|
+
text = Capture.stdout {
|
15
|
+
cli.destination_root = Dir.home
|
16
|
+
cli.save(exists_url)
|
17
|
+
}
|
18
|
+
|
19
|
+
expect(text).to match(/226\.mp3/)
|
20
|
+
expect(text).to match(/Progress/)
|
21
|
+
expect(text.include?(Dir.home())).to eq(true)
|
22
|
+
|
23
|
+
expect(File.exists?(File.expand_path("226.mp3", cli.destination_root))).to eq(true)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
context "not exists url" do
|
28
|
+
it "should not save .mp3 file" do
|
29
|
+
text = Capture.stdout {
|
30
|
+
cli.destination_root = Dir.home
|
31
|
+
cli.save(not_exists_url)
|
32
|
+
}
|
33
|
+
|
34
|
+
expect(text).to match(/404/)
|
35
|
+
|
36
|
+
expect(File.exists?(File.expand_path("1.mp3", cli.destination_root))).to eq(false)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe "show_title" do
|
42
|
+
context "rss feed contains url" do
|
43
|
+
it "should output title" do
|
44
|
+
text = Capture.stdout {
|
45
|
+
cli.show_title(exists_url)
|
46
|
+
}
|
47
|
+
expect(text).to match(/第226回/)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
context "rss feed doesn't contain url" do
|
52
|
+
it "shouldn't output title" do
|
53
|
+
text = Capture.stdout {
|
54
|
+
# this url is 404
|
55
|
+
cli.show_title(not_exists_url)
|
56
|
+
}
|
57
|
+
expect(text).to match(/Unkown/)
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
describe "download" do
|
63
|
+
context "exists index" do
|
64
|
+
it "should download .mp3 file" do
|
65
|
+
text = Capture.stdout {
|
66
|
+
cli.download(exists_index)
|
67
|
+
}
|
68
|
+
|
69
|
+
expect(text).to match(/第226回/)
|
70
|
+
expect(text).to match(/226\.mp3/)
|
71
|
+
expect(text).to match(/Progress/)
|
72
|
+
expect(text.include?(Dir.home())).to eq(true)
|
73
|
+
|
74
|
+
expect(File.exists?(File.expand_path("226.mp3", cli.destination_root))).to eq(true)
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
context "exists index with dst option" do
|
79
|
+
it "should download .mp3 file" do
|
80
|
+
text = Capture.stdout {
|
81
|
+
TheNoises::CLI.new.invoke(:download, [exists_index], {:dst => "/tmp"})
|
82
|
+
}
|
83
|
+
|
84
|
+
expect(text).to match(/第226回/)
|
85
|
+
expect(text).to match(/226\.mp3/)
|
86
|
+
expect(text).to match(/Progress/)
|
87
|
+
expect(text.include?("/tmp")).to eq(true)
|
88
|
+
|
89
|
+
expect(File.exists?(File.expand_path("226.mp3", "/tmp/the-noises/"))).to eq(true)
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
context "not exists index" do
|
94
|
+
it "should not download .mp3 file" do
|
95
|
+
text = Capture.stdout {
|
96
|
+
cli.download(not_exists_index)
|
97
|
+
}
|
98
|
+
|
99
|
+
expect(text).to match(/404/)
|
100
|
+
|
101
|
+
expect(File.exists?(File.expand_path("1.mp3", cli.destination_root))).to eq(false)
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
context "not exists index with dst option" do
|
106
|
+
it "should not download .mp3 file" do
|
107
|
+
text = Capture.stdout {
|
108
|
+
TheNoises::CLI.new.invoke(:download, [not_exists_index], {:dst => "/tmp"})
|
109
|
+
}
|
110
|
+
|
111
|
+
expect(text).to match(/404/)
|
112
|
+
expect(text).to match(/Unkown/)
|
113
|
+
|
114
|
+
expect(File.exists?(File.expand_path("1.mp3", "/tmp/the-noises"))).to eq(false)
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
context "invalid param" do
|
119
|
+
it "should raise ArgumentError" do
|
120
|
+
expect { cli.download("hoge") }.to raise_error(ArgumentError)
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
data/the-noises.gemspec
ADDED
@@ -0,0 +1,75 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
# stub: the-noises 0.0.1 ruby lib
|
6
|
+
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.name = "the-noises"
|
9
|
+
s.version = "0.0.1"
|
10
|
+
|
11
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
|
+
s.require_paths = ["lib"]
|
13
|
+
s.authors = ["ninoseki"]
|
14
|
+
s.date = "2014-04-01"
|
15
|
+
s.description = "\u{30b6}\u{30fb}\u{30ce}\u{30a4}\u{30b8}\u{30fc}\u{30ba}\u{306e}\u{30dd}\u{30c3}\u{30c9}\u{30ad}\u{30e3}\u{30b9}\u{30c8}\u{7528}Ruby\u{30af}\u{30e9}\u{30a4}\u{30a2}\u{30f3}\u{30c8}"
|
16
|
+
s.email = "zgok0079@gmail.com"
|
17
|
+
s.executables = ["the-noises"]
|
18
|
+
s.extra_rdoc_files = [
|
19
|
+
"LICENSE.txt",
|
20
|
+
"README.md"
|
21
|
+
]
|
22
|
+
s.files = [
|
23
|
+
".document",
|
24
|
+
".rspec",
|
25
|
+
"Gemfile",
|
26
|
+
"Gemfile.lock",
|
27
|
+
"LICENSE.txt",
|
28
|
+
"README.md",
|
29
|
+
"Rakefile",
|
30
|
+
"VERSION",
|
31
|
+
"bin/the-noises",
|
32
|
+
"lib/the-noises.rb",
|
33
|
+
"spec/spec_helper.rb",
|
34
|
+
"spec/the-noises_spec.rb",
|
35
|
+
"the-noises.gemspec"
|
36
|
+
]
|
37
|
+
s.homepage = "http://github.com/ninoseki/ruby-the-noises"
|
38
|
+
s.licenses = ["MIT"]
|
39
|
+
s.rubygems_version = "2.2.2"
|
40
|
+
s.summary = "\u{30b6}\u{30fb}\u{30ce}\u{30a4}\u{30b8}\u{30fc}\u{30ba}\u{306e}\u{30dd}\u{30c3}\u{30c9}\u{30ad}\u{30e3}\u{30b9}\u{30c8}\u{7528}Ruby\u{30af}\u{30e9}\u{30a4}\u{30a2}\u{30f3}\u{30c8}"
|
41
|
+
|
42
|
+
if s.respond_to? :specification_version then
|
43
|
+
s.specification_version = 4
|
44
|
+
|
45
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
46
|
+
s.add_runtime_dependency(%q<thor>, ["~> 0.19.1"])
|
47
|
+
s.add_runtime_dependency(%q<ruby-progressbar>, ["~> 1.4.2"])
|
48
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.14.1"])
|
49
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
50
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0"])
|
51
|
+
s.add_development_dependency(%q<jeweler>, ["~> 2.0.1"])
|
52
|
+
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
53
|
+
s.add_development_dependency(%q<capture-output>, ["~> 1.0.0"])
|
54
|
+
else
|
55
|
+
s.add_dependency(%q<thor>, ["~> 0.19.1"])
|
56
|
+
s.add_dependency(%q<ruby-progressbar>, ["~> 1.4.2"])
|
57
|
+
s.add_dependency(%q<rspec>, ["~> 2.14.1"])
|
58
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
59
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
60
|
+
s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
|
61
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
62
|
+
s.add_dependency(%q<capture-output>, ["~> 1.0.0"])
|
63
|
+
end
|
64
|
+
else
|
65
|
+
s.add_dependency(%q<thor>, ["~> 0.19.1"])
|
66
|
+
s.add_dependency(%q<ruby-progressbar>, ["~> 1.4.2"])
|
67
|
+
s.add_dependency(%q<rspec>, ["~> 2.14.1"])
|
68
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
69
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
70
|
+
s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
|
71
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
72
|
+
s.add_dependency(%q<capture-output>, ["~> 1.0.0"])
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
metadata
ADDED
@@ -0,0 +1,171 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: the-noises
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- ninoseki
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-04-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: thor
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.19.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.19.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: ruby-progressbar
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.4.2
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.4.2
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 2.14.1
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.14.1
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rdoc
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.12'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.12'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: bundler
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: jeweler
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 2.0.1
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 2.0.1
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: simplecov
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: capture-output
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 1.0.0
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 1.0.0
|
125
|
+
description: "ザ・ノイジーズのポッドキャスト用Rubyクライアント"
|
126
|
+
email: zgok0079@gmail.com
|
127
|
+
executables:
|
128
|
+
- the-noises
|
129
|
+
extensions: []
|
130
|
+
extra_rdoc_files:
|
131
|
+
- LICENSE.txt
|
132
|
+
- README.md
|
133
|
+
files:
|
134
|
+
- ".document"
|
135
|
+
- ".rspec"
|
136
|
+
- Gemfile
|
137
|
+
- Gemfile.lock
|
138
|
+
- LICENSE.txt
|
139
|
+
- README.md
|
140
|
+
- Rakefile
|
141
|
+
- VERSION
|
142
|
+
- bin/the-noises
|
143
|
+
- lib/the-noises.rb
|
144
|
+
- spec/spec_helper.rb
|
145
|
+
- spec/the-noises_spec.rb
|
146
|
+
- the-noises.gemspec
|
147
|
+
homepage: http://github.com/ninoseki/ruby-the-noises
|
148
|
+
licenses:
|
149
|
+
- MIT
|
150
|
+
metadata: {}
|
151
|
+
post_install_message:
|
152
|
+
rdoc_options: []
|
153
|
+
require_paths:
|
154
|
+
- lib
|
155
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
161
|
+
requirements:
|
162
|
+
- - ">="
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
version: '0'
|
165
|
+
requirements: []
|
166
|
+
rubyforge_project:
|
167
|
+
rubygems_version: 2.2.2
|
168
|
+
signing_key:
|
169
|
+
specification_version: 4
|
170
|
+
summary: "ザ・ノイジーズのポッドキャスト用Rubyクライアント"
|
171
|
+
test_files: []
|