ruby_logo 0.0.1 → 0.0.2
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/README.md +2 -2
- data/assets/php.gif +0 -0
- data/lib/ruby_logo.rb +1 -1
- data/ruby_logo.gemspec +1 -1
- metadata +3 -3
- data/assets/ruby.png +0 -0
data/README.md
CHANGED
@@ -16,12 +16,12 @@ Too right you do! You'll want it near the start, so you can serve up these logos
|
|
16
16
|
|
17
17
|
# Gemfile
|
18
18
|
|
19
|
+
gem "ruby_logo"
|
20
|
+
|
19
21
|
```
|
20
22
|
|
21
23
|
```ruby
|
22
24
|
|
23
|
-
gem "ruby_logo"
|
24
|
-
|
25
25
|
# config/application.rb
|
26
26
|
|
27
27
|
config.middleware.insert_before ActionDispatch::Static, RubyLogo
|
data/assets/php.gif
ADDED
Binary file
|
data/lib/ruby_logo.rb
CHANGED
@@ -7,7 +7,7 @@ class RubyLogo
|
|
7
7
|
def call(env)
|
8
8
|
if env["REQUEST_URI"].include? "?=PHPE9568F34-D428-11d2-A769-00AA001ACF42"
|
9
9
|
# Dump the ruby logo
|
10
|
-
[200, {"Content-Type" => "image/png"}, File.open(File.expand_path("../../assets/
|
10
|
+
[200, {"Content-Type" => "image/png"}, File.open(File.expand_path("../../assets/php.gif", __FILE__))]
|
11
11
|
else
|
12
12
|
@app.call(env)
|
13
13
|
end
|
data/ruby_logo.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_logo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-06-08 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Show the ruby logo if you have the right magic query string
|
15
15
|
email:
|
@@ -19,7 +19,7 @@ extensions: []
|
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
21
|
- README.md
|
22
|
-
- assets/
|
22
|
+
- assets/php.gif
|
23
23
|
- lib/ruby_logo.rb
|
24
24
|
- ruby_logo.gemspec
|
25
25
|
homepage: http://github.com/richo/ruby_logo
|
data/assets/ruby.png
DELETED
Binary file
|