shoutcast_status 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/shoutcast_status.rb +2 -2
- metadata +41 -48
data/lib/shoutcast_status.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require "open-uri"
|
2
|
-
require "
|
2
|
+
require "v8"
|
3
3
|
|
4
4
|
class ShoutcastStatus
|
5
5
|
DEFAULT_ENDPOINT = "http://%s/cast/"
|
@@ -32,7 +32,7 @@ class ShoutcastStatus
|
|
32
32
|
def stream_info
|
33
33
|
open @info_url do |f|
|
34
34
|
js = f.read
|
35
|
-
return StreamInfo.new(
|
35
|
+
return StreamInfo.new(V8::Context.new.eval(DUMMY_CALLBACK + js))
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
metadata
CHANGED
@@ -1,75 +1,68 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: shoutcast_status
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.2
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
|
-
authors:
|
7
|
+
authors:
|
7
8
|
- Paul Battley
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
12
|
+
date: 2012-05-18 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: therubyracer
|
16
|
+
requirement: &20202720 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
17
22
|
type: :runtime
|
18
|
-
|
19
|
-
version_requirements:
|
20
|
-
|
21
|
-
- - ">="
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: "0"
|
24
|
-
version:
|
25
|
-
- !ruby/object:Gem::Dependency
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *20202720
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
26
|
name: mocha
|
27
|
+
requirement: &20201940 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
27
33
|
type: :development
|
28
|
-
|
29
|
-
version_requirements:
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: "0"
|
34
|
-
version:
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *20201940
|
35
36
|
description:
|
36
37
|
email: pbattley@gmail.com
|
37
38
|
executables: []
|
38
|
-
|
39
39
|
extensions: []
|
40
|
-
|
41
40
|
extra_rdoc_files: []
|
42
|
-
|
43
|
-
files:
|
41
|
+
files:
|
44
42
|
- lib/shoutcast_status.rb
|
45
43
|
- test/shoutcast_status_test.rb
|
46
|
-
has_rdoc: true
|
47
44
|
homepage: http://github.com/threedaymonk/shoutcast_status
|
48
45
|
licenses: []
|
49
|
-
|
50
46
|
post_install_message:
|
51
47
|
rdoc_options: []
|
52
|
-
|
53
|
-
require_paths:
|
48
|
+
require_paths:
|
54
49
|
- lib
|
55
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
50
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
51
|
+
none: false
|
52
|
+
requirements:
|
53
|
+
- - ! '>='
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
67
62
|
requirements: []
|
68
|
-
|
69
63
|
rubyforge_project:
|
70
|
-
rubygems_version: 1.
|
64
|
+
rubygems_version: 1.8.11
|
71
65
|
signing_key:
|
72
66
|
specification_version: 3
|
73
67
|
summary: Get station info from a Shoutcast server
|
74
68
|
test_files: []
|
75
|
-
|