shoutcast_api 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -0
- data/README.rdoc +8 -0
- data/Rakefile +36 -8
- data/VERSION.yml +5 -0
- data/bin/shoutcast_search +1 -2
- data/lib/shoutcast_api.rb +1 -0
- data/shoutcast_api.gemspec +35 -9
- data/test/helper.rb +2 -1
- metadata +26 -22
- data/Manifest +0 -13
data/README.rdoc
CHANGED
@@ -19,10 +19,17 @@ Uses httparty and roxml for fetching and parsing data from http://yp.shoutcast.c
|
|
19
19
|
Shoutcast.genres # => all genres
|
20
20
|
|
21
21
|
== Install via gemcutter
|
22
|
+
|
22
23
|
gem install gemcutter
|
23
24
|
gem tumble
|
24
25
|
gem install shoutcast_api
|
25
26
|
|
27
|
+
=== Test
|
28
|
+
|
29
|
+
git clone git://github.com/splattael/shoutcast_api.git
|
30
|
+
cd shoutcast_api
|
31
|
+
gem install mocha
|
32
|
+
|
26
33
|
== Command line
|
27
34
|
|
28
35
|
shoutcast_api # List genres
|
@@ -37,5 +44,6 @@ Uses httparty and roxml for fetching and parsing data from http://yp.shoutcast.c
|
|
37
44
|
|
38
45
|
== TODO
|
39
46
|
|
47
|
+
* README.rdoc as main page for rdoc?!
|
40
48
|
* command line options transformations
|
41
49
|
* Use mock-server for mocking API requests
|
data/Rakefile
CHANGED
@@ -5,17 +5,45 @@ require 'rake/rdoctask'
|
|
5
5
|
desc 'Default: run unit tests.'
|
6
6
|
task :default => :test
|
7
7
|
|
8
|
-
require '
|
9
|
-
|
10
|
-
gem.
|
11
|
-
gem.author = 'Peter Suschlik'
|
8
|
+
require 'jeweler'
|
9
|
+
Jeweler::Tasks.new do |gem|
|
10
|
+
gem.name = "shoutcast_api"
|
12
11
|
gem.summary = 'Simple shoutcast.com API.'
|
13
|
-
gem.email =
|
14
|
-
gem.
|
15
|
-
gem.
|
16
|
-
|
12
|
+
gem.email = "peter-scapi@suschlik.de"
|
13
|
+
gem.homepage = "http://github.com/splattael/shoutcast_api"
|
14
|
+
gem.authors = ["Peter Suschlik"]
|
15
|
+
|
16
|
+
gem.has_rdoc = true
|
17
|
+
gem.extra_rdoc_files = [ "README.rdoc" ]
|
18
|
+
|
19
|
+
gem.add_dependency 'httparty', '~> 0.4'
|
20
|
+
gem.add_dependency 'roxml', '~> 2.5'
|
21
|
+
|
22
|
+
gem.add_development_dependency "mocha"
|
23
|
+
|
24
|
+
gem.test_files = Dir.glob('test/test_*.rb')
|
25
|
+
end
|
26
|
+
|
27
|
+
Jeweler::GemcutterTasks.new
|
28
|
+
|
29
|
+
# Test
|
30
|
+
require 'rake/testtask'
|
31
|
+
Rake::TestTask.new(:test) do |test|
|
32
|
+
test.test_files = FileList.new('test/test_*.rb')
|
33
|
+
test.libs << 'test'
|
34
|
+
test.verbose = true
|
17
35
|
end
|
18
36
|
|
37
|
+
# RDoc
|
38
|
+
Rake::RDocTask.new do |rd|
|
39
|
+
rd.title = "Shoutcast API"
|
40
|
+
rd.main = "README.rdoc"
|
41
|
+
rd.rdoc_files.include("README.rdoc", "lib/*.rb")
|
42
|
+
rd.rdoc_dir = "doc"
|
43
|
+
end
|
44
|
+
|
45
|
+
|
46
|
+
# Misc
|
19
47
|
desc "Tag files for vim"
|
20
48
|
task :ctags do
|
21
49
|
dirs = $LOAD_PATH.select {|path| File.directory?(path) }
|
data/VERSION.yml
ADDED
data/bin/shoutcast_search
CHANGED
data/lib/shoutcast_api.rb
CHANGED
data/shoutcast_api.gemspec
CHANGED
@@ -1,25 +1,47 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
1
4
|
# -*- encoding: utf-8 -*-
|
2
5
|
|
3
6
|
Gem::Specification.new do |s|
|
4
7
|
s.name = %q{shoutcast_api}
|
5
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.4"
|
6
9
|
|
7
|
-
s.required_rubygems_version = Gem::Requirement.new(">=
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
11
|
s.authors = ["Peter Suschlik"]
|
9
|
-
s.date = %q{2009-11-
|
12
|
+
s.date = %q{2009-11-06}
|
10
13
|
s.default_executable = %q{shoutcast_search}
|
11
|
-
s.description = %q{Simple shoutcast.com API.}
|
12
14
|
s.email = %q{peter-scapi@suschlik.de}
|
13
15
|
s.executables = ["shoutcast_search"]
|
14
|
-
s.extra_rdoc_files = [
|
15
|
-
|
16
|
+
s.extra_rdoc_files = [
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".gitignore",
|
21
|
+
"README.rdoc",
|
22
|
+
"Rakefile",
|
23
|
+
"VERSION.yml",
|
24
|
+
"bin/shoutcast_search",
|
25
|
+
"lib/shoutcast_api.rb",
|
26
|
+
"shoutcast_api.gemspec",
|
27
|
+
"test/fixtures/empty.plain",
|
28
|
+
"test/fixtures/genrelist.plain",
|
29
|
+
"test/fixtures/search_death.plain",
|
30
|
+
"test/helper.rb",
|
31
|
+
"test/test_basic.rb",
|
32
|
+
"test/test_fetcher.rb",
|
33
|
+
"test/test_xml.rb"
|
34
|
+
]
|
16
35
|
s.homepage = %q{http://github.com/splattael/shoutcast_api}
|
17
|
-
s.rdoc_options = ["--
|
36
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
18
37
|
s.require_paths = ["lib"]
|
19
|
-
s.rubyforge_project = %q{shoutcast_api}
|
20
38
|
s.rubygems_version = %q{1.3.5}
|
21
39
|
s.summary = %q{Simple shoutcast.com API.}
|
22
|
-
s.test_files = [
|
40
|
+
s.test_files = [
|
41
|
+
"test/test_xml.rb",
|
42
|
+
"test/test_fetcher.rb",
|
43
|
+
"test/test_basic.rb"
|
44
|
+
]
|
23
45
|
|
24
46
|
if s.respond_to? :specification_version then
|
25
47
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
@@ -28,12 +50,16 @@ Gem::Specification.new do |s|
|
|
28
50
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
29
51
|
s.add_runtime_dependency(%q<httparty>, ["~> 0.4"])
|
30
52
|
s.add_runtime_dependency(%q<roxml>, ["~> 2.5"])
|
53
|
+
s.add_development_dependency(%q<mocha>, [">= 0"])
|
31
54
|
else
|
32
55
|
s.add_dependency(%q<httparty>, ["~> 0.4"])
|
33
56
|
s.add_dependency(%q<roxml>, ["~> 2.5"])
|
57
|
+
s.add_dependency(%q<mocha>, [">= 0"])
|
34
58
|
end
|
35
59
|
else
|
36
60
|
s.add_dependency(%q<httparty>, ["~> 0.4"])
|
37
61
|
s.add_dependency(%q<roxml>, ["~> 2.5"])
|
62
|
+
s.add_dependency(%q<mocha>, [">= 0"])
|
38
63
|
end
|
39
64
|
end
|
65
|
+
|
data/test/helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shoutcast_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Suschlik
|
@@ -9,8 +9,8 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-11-
|
13
|
-
default_executable:
|
12
|
+
date: 2009-11-06 00:00:00 +01:00
|
13
|
+
default_executable: shoutcast_search
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: httparty
|
@@ -32,42 +32,46 @@ dependencies:
|
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: "2.5"
|
34
34
|
version:
|
35
|
-
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: mocha
|
37
|
+
type: :development
|
38
|
+
version_requirement:
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: "0"
|
44
|
+
version:
|
45
|
+
description:
|
36
46
|
email: peter-scapi@suschlik.de
|
37
47
|
executables:
|
38
48
|
- shoutcast_search
|
39
49
|
extensions: []
|
40
50
|
|
41
51
|
extra_rdoc_files:
|
42
|
-
- lib/shoutcast_api.rb
|
43
52
|
- README.rdoc
|
44
|
-
- bin/shoutcast_search
|
45
53
|
files:
|
46
|
-
-
|
54
|
+
- .gitignore
|
55
|
+
- README.rdoc
|
47
56
|
- Rakefile
|
48
|
-
-
|
49
|
-
-
|
50
|
-
-
|
57
|
+
- VERSION.yml
|
58
|
+
- bin/shoutcast_search
|
59
|
+
- lib/shoutcast_api.rb
|
60
|
+
- shoutcast_api.gemspec
|
51
61
|
- test/fixtures/empty.plain
|
52
62
|
- test/fixtures/genrelist.plain
|
53
63
|
- test/fixtures/search_death.plain
|
64
|
+
- test/helper.rb
|
65
|
+
- test/test_basic.rb
|
54
66
|
- test/test_fetcher.rb
|
55
|
-
-
|
56
|
-
- Manifest
|
57
|
-
- bin/shoutcast_search
|
58
|
-
- shoutcast_api.gemspec
|
67
|
+
- test/test_xml.rb
|
59
68
|
has_rdoc: true
|
60
69
|
homepage: http://github.com/splattael/shoutcast_api
|
61
70
|
licenses: []
|
62
71
|
|
63
72
|
post_install_message:
|
64
73
|
rdoc_options:
|
65
|
-
- --
|
66
|
-
- --inline-source
|
67
|
-
- --title
|
68
|
-
- Shoutcast_api
|
69
|
-
- --main
|
70
|
-
- README.rdoc
|
74
|
+
- --charset=UTF-8
|
71
75
|
require_paths:
|
72
76
|
- lib
|
73
77
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -80,11 +84,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
84
|
requirements:
|
81
85
|
- - ">="
|
82
86
|
- !ruby/object:Gem::Version
|
83
|
-
version: "
|
87
|
+
version: "0"
|
84
88
|
version:
|
85
89
|
requirements: []
|
86
90
|
|
87
|
-
rubyforge_project:
|
91
|
+
rubyforge_project:
|
88
92
|
rubygems_version: 1.3.5
|
89
93
|
signing_key:
|
90
94
|
specification_version: 3
|
data/Manifest
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
lib/shoutcast_api.rb
|
2
|
-
Rakefile
|
3
|
-
test/test_xml.rb
|
4
|
-
test/helper.rb
|
5
|
-
test/test_basic.rb
|
6
|
-
test/fixtures/empty.plain
|
7
|
-
test/fixtures/genrelist.plain
|
8
|
-
test/fixtures/search_death.plain
|
9
|
-
test/test_fetcher.rb
|
10
|
-
README.rdoc
|
11
|
-
Manifest
|
12
|
-
bin/shoutcast_search
|
13
|
-
shoutcast_api.gemspec
|