the_little_streamer 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +5 -1
- data/bin/the_little_streamer +11 -0
- metadata +5 -10
data/README.md
CHANGED
@@ -18,7 +18,11 @@ Browse to [http://localhost:4567](http://localhost:4567)
|
|
18
18
|
* [ruby-taglib2](https://github.com/rumblehq/ruby-taglib2)
|
19
19
|
* A browser that supports HTML5, like [Chrome](http://www.google.com/chrome/)
|
20
20
|
|
21
|
-
You are strongly encouraged to use [Mongrel](https://github.com/fauna/mongrel) instead of WEBrick, as
|
21
|
+
You are strongly encouraged to use [Mongrel](https://github.com/fauna/mongrel) or [Thin](http://code.macournoyer.com/thin/) (installable as gems) instead of WEBrick, as they will be way faster. Just install one and Sinatra will prefer it over WEBrick.
|
22
|
+
|
23
|
+
## Formats
|
24
|
+
|
25
|
+
The Little Streamer currently only searches for MP3 and OGG files.
|
22
26
|
|
23
27
|
## License
|
24
28
|
|
data/bin/the_little_streamer
CHANGED
@@ -19,10 +19,20 @@ def html body
|
|
19
19
|
<style type="text/css">
|
20
20
|
#{css}
|
21
21
|
</style>
|
22
|
+
<title>The Little Streamer</title>
|
22
23
|
</head>
|
23
24
|
<body>
|
24
25
|
#{body}
|
25
26
|
</body>
|
27
|
+
<script>
|
28
|
+
if(document.getElementById('artist')) {
|
29
|
+
window.onload = function() {
|
30
|
+
var artist = document.getElementById('artist').innerHTML;
|
31
|
+
var title = document.getElementById('title').innerHTML;
|
32
|
+
document.title = title + " by " + artist;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
</script>
|
26
36
|
</html>
|
27
37
|
HTML
|
28
38
|
end
|
@@ -128,6 +138,7 @@ def playlist_js songs
|
|
128
138
|
artist.innerHTML = song.artist
|
129
139
|
album.innerHTML = song.album
|
130
140
|
title.innerHTML = song.title
|
141
|
+
document.title = song.title + " by " + song.artist;
|
131
142
|
player.play();
|
132
143
|
}
|
133
144
|
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: the_little_streamer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
4
|
+
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
|
-
-
|
7
|
+
- 3
|
9
8
|
- 0
|
10
|
-
version: 0.
|
9
|
+
version: 0.3.0
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Justin Collins
|
@@ -15,7 +14,7 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2011-
|
17
|
+
date: 2011-09-01 00:00:00 -07:00
|
19
18
|
default_executable:
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
@@ -26,7 +25,6 @@ dependencies:
|
|
26
25
|
requirements:
|
27
26
|
- - ~>
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 15
|
30
28
|
segments:
|
31
29
|
- 1
|
32
30
|
- 0
|
@@ -41,7 +39,6 @@ dependencies:
|
|
41
39
|
requirements:
|
42
40
|
- - ~>
|
43
41
|
- !ruby/object:Gem::Version
|
44
|
-
hash: 11
|
45
42
|
segments:
|
46
43
|
- 1
|
47
44
|
- 2
|
@@ -73,7 +70,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
73
70
|
requirements:
|
74
71
|
- - ">="
|
75
72
|
- !ruby/object:Gem::Version
|
76
|
-
hash: 3
|
77
73
|
segments:
|
78
74
|
- 0
|
79
75
|
version: "0"
|
@@ -82,14 +78,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
78
|
requirements:
|
83
79
|
- - ">="
|
84
80
|
- !ruby/object:Gem::Version
|
85
|
-
hash: 3
|
86
81
|
segments:
|
87
82
|
- 0
|
88
83
|
version: "0"
|
89
84
|
requirements: []
|
90
85
|
|
91
86
|
rubyforge_project:
|
92
|
-
rubygems_version: 1.
|
87
|
+
rubygems_version: 1.3.7
|
93
88
|
signing_key:
|
94
89
|
specification_version: 3
|
95
90
|
summary: Simple Sinatra application for streaming music.
|