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 ADDED
@@ -0,0 +1,5 @@
1
+ Manifest
2
+ doc
3
+ pkg
4
+ coverage
5
+ tags
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 'echoe'
9
- Echoe.new('shoutcast_api') do |gem|
10
- gem.version = '0.1.3'
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 = 'peter-scapi@suschlik.de'
14
- gem.url = %q{http://github.com/splattael/shoutcast_api}
15
- gem.runtime_dependencies = [ "httparty ~>0.4", "roxml ~>2.5" ]
16
- gem.ignore_pattern = ["tags"]
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
@@ -0,0 +1,5 @@
1
+ ---
2
+ :major: 0
3
+ :minor: 1
4
+ :patch: 4
5
+ :build:
data/bin/shoutcast_search CHANGED
@@ -9,8 +9,7 @@
9
9
  #
10
10
  # shoutcast_search name=Chronix br=128 # => display a list of all Chronix stations with bitrate of 128
11
11
  #
12
- require 'rubygems'
13
-
12
+ # require 'rubygems'
14
13
  require 'shoutcast_api'
15
14
 
16
15
  if ARGV.size > 0
data/lib/shoutcast_api.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require 'activesupport'
1
2
  require 'httparty'
2
3
  require 'roxml'
3
4
  require 'forwardable'
@@ -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.3"
8
+ s.version = "0.1.4"
6
9
 
7
- s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
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-04}
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 = ["lib/shoutcast_api.rb", "README.rdoc", "bin/shoutcast_search"]
15
- s.files = ["lib/shoutcast_api.rb", "Rakefile", "test/test_xml.rb", "test/helper.rb", "test/test_basic.rb", "test/fixtures/empty.plain", "test/fixtures/genrelist.plain", "test/fixtures/search_death.plain", "test/test_fetcher.rb", "README.rdoc", "Manifest", "bin/shoutcast_search", "shoutcast_api.gemspec"]
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 = ["--line-numbers", "--inline-source", "--title", "Shoutcast_api", "--main", "README.rdoc"]
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 = ["test/test_xml.rb", "test/test_fetcher.rb", "test/test_basic.rb"]
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
@@ -1,7 +1,8 @@
1
1
  $LOAD_PATH.unshift File.join(File.dirname(__FILE__), "..", "lib")
2
2
 
3
- require 'rubygems'
4
3
  require 'test/unit'
4
+
5
+ require 'rubygems'
5
6
  require 'mocha'
6
7
 
7
8
  require 'shoutcast_api'
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.3
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-04 00:00:00 +01:00
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
- description: Simple shoutcast.com API.
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
- - lib/shoutcast_api.rb
54
+ - .gitignore
55
+ - README.rdoc
47
56
  - Rakefile
48
- - test/test_xml.rb
49
- - test/helper.rb
50
- - test/test_basic.rb
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
- - README.rdoc
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
- - --line-numbers
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: "1.2"
87
+ version: "0"
84
88
  version:
85
89
  requirements: []
86
90
 
87
- rubyforge_project: shoutcast_api
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