splattael-shoutcast_api 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +34 -0
- metadata +73 -0
data/README.rdoc
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
= Shoutcast API
|
2
|
+
|
3
|
+
Simple API for http://shoutcast.com.
|
4
|
+
Uses httparty and roxml for fetch and parsing data from http://yp.shoutcast.com/sbin/newxml.phtml.
|
5
|
+
|
6
|
+
== Usage
|
7
|
+
|
8
|
+
require 'shoutcast_api'
|
9
|
+
|
10
|
+
# Stations
|
11
|
+
Shoutcast.search(:name => "Chronix").stations.each do |station|
|
12
|
+
p station
|
13
|
+
puts station.tunein
|
14
|
+
end
|
15
|
+
|
16
|
+
Shoutcast.search(:genre => "Metal")
|
17
|
+
|
18
|
+
# Genres
|
19
|
+
Shoutcast.genres # => all genres
|
20
|
+
Shoutcast.genres /op/ # => genres which match "op"
|
21
|
+
|
22
|
+
== Command line
|
23
|
+
|
24
|
+
ruby -rubygems lib/shoutcast_api.rb # Genres
|
25
|
+
|
26
|
+
ruby -rubygems lib/shoutcast_api.rb name=Chronix
|
27
|
+
ruby -rubygems lib/shoutcast_api.rb genre=metal
|
28
|
+
|
29
|
+
== TODO
|
30
|
+
|
31
|
+
* Tests!
|
32
|
+
* Docs!
|
33
|
+
* command line options transformations
|
34
|
+
* handle empty responses like search(:search => "")
|
metadata
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: splattael-shoutcast_api
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Peter Suschlik
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-05-14 00:00:00 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: httparty
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ~>
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: "0.4"
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: roxml
|
27
|
+
type: :runtime
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: "2.5"
|
34
|
+
version:
|
35
|
+
description:
|
36
|
+
email: peter-scapi@suschlik.de
|
37
|
+
executables: []
|
38
|
+
|
39
|
+
extensions: []
|
40
|
+
|
41
|
+
extra_rdoc_files:
|
42
|
+
- README.rdoc
|
43
|
+
files:
|
44
|
+
- README.rdoc
|
45
|
+
has_rdoc: true
|
46
|
+
homepage: http://github.com/splattael/shoutcast_api
|
47
|
+
post_install_message:
|
48
|
+
rdoc_options:
|
49
|
+
- --inline-source
|
50
|
+
- --charset=UTF-8
|
51
|
+
require_paths:
|
52
|
+
- lib
|
53
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: "0"
|
58
|
+
version:
|
59
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: "0"
|
64
|
+
version:
|
65
|
+
requirements: []
|
66
|
+
|
67
|
+
rubyforge_project:
|
68
|
+
rubygems_version: 1.2.0
|
69
|
+
signing_key:
|
70
|
+
specification_version: 2
|
71
|
+
summary: Simple Shoutcast.com API.
|
72
|
+
test_files: []
|
73
|
+
|