rackson-five 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/rack/html/rackson-five.html +28 -0
- data/lib/rack/images/tile.png +0 -0
- data/lib/rack/rackson-five.rb +4 -1
- metadata +3 -1
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.2.0
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<style type="text/css" media="screen">
|
|
2
|
+
body {
|
|
3
|
+
margin-bottom: 60px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
#rackson-five {
|
|
7
|
+
position: fixed;
|
|
8
|
+
left: 0;
|
|
9
|
+
bottom: -5px;
|
|
10
|
+
width: 100%;
|
|
11
|
+
padding: 0;
|
|
12
|
+
margin: 0;
|
|
13
|
+
text-align: right;
|
|
14
|
+
background: url('/rackson-five/tile.png');
|
|
15
|
+
background-position: bottom left;
|
|
16
|
+
background-repeat: repeat-x;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
#rackson-five img {
|
|
20
|
+
margin:0;
|
|
21
|
+
padding: 0;
|
|
22
|
+
}
|
|
23
|
+
</style>
|
|
24
|
+
|
|
25
|
+
<div id="rackson-five">
|
|
26
|
+
<img src="/rackson-five/rackson-five.png" />
|
|
27
|
+
<embed src="/rackson-five/rackson-five.mid" autostart="true" loop="-1" hidden="true" />
|
|
28
|
+
</div>
|
|
Binary file
|
data/lib/rack/rackson-five.rb
CHANGED
|
@@ -17,6 +17,9 @@ module Rack
|
|
|
17
17
|
if path == "rackson-five.png"
|
|
18
18
|
data = ::File.open(::File.join(::File.dirname(__FILE__),"images","group.png"),"r").read
|
|
19
19
|
[200, {"Content-Type" => "image/png"},data]
|
|
20
|
+
elsif path == "tile.png"
|
|
21
|
+
data = ::File.open(::File.join(::File.dirname(__FILE__),"images","tile.png"),"r").read
|
|
22
|
+
[200, {"Content-Type" => "image/png"},data]
|
|
20
23
|
elsif path == "rackson-five.mid"
|
|
21
24
|
data = ::File.open(::File.join(::File.dirname(__FILE__),"midi","want_you_back.mid"),"r").read
|
|
22
25
|
[200, {"Content-Type" => "audio/midi"},data]
|
|
@@ -30,7 +33,7 @@ module Rack
|
|
|
30
33
|
response.each { |part| body << part }
|
|
31
34
|
index = body.rindex("</body>")
|
|
32
35
|
if index
|
|
33
|
-
body.insert(index,
|
|
36
|
+
body.insert(index, ::File.open(::File.join(::File.dirname(__FILE__),"html","rackson-five.html"),"r").read)
|
|
34
37
|
headers["Content-Length"] = body.length.to_s
|
|
35
38
|
response = [body]
|
|
36
39
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rackson-five
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adam Holt
|
|
@@ -26,7 +26,9 @@ files:
|
|
|
26
26
|
- README.mdown
|
|
27
27
|
- Rakefile
|
|
28
28
|
- VERSION
|
|
29
|
+
- lib/rack/html/rackson-five.html
|
|
29
30
|
- lib/rack/images/group.png
|
|
31
|
+
- lib/rack/images/tile.png
|
|
30
32
|
- lib/rack/midi/want_you_back.mid
|
|
31
33
|
- lib/rack/rackson-five.rb
|
|
32
34
|
has_rdoc: true
|