status_dogs 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +14 -1
- data/README.md +2 -2
- data/dogs/207.jpg +0 -0
- data/dogs/208.jpg +0 -0
- data/dogs/226.jpg +0 -0
- data/dogs/307.jpg +0 -0
- data/dogs/308.jpg +0 -0
- data/dogs/407.jpg +0 -0
- data/dogs/412.jpg +0 -0
- data/dogs/451.jpg +0 -0
- data/dogs/494.jpg +0 -0
- data/dogs/509.jpg +0 -0
- data/dogs/510.jpg +0 -0
- data/lib/status_dogs.rb +1 -1
- data/status_dogs.gemspec +16 -16
- metadata +17 -3
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
# Status Dogs
|
1
|
+
# Status Dogs [![Build Status](https://travis-ci.org/jnv/status_dogs.png?branch=master)](https://travis-ci.org/jnv/status_dogs)
|
2
2
|
|
3
3
|
Rack middleware replacing responses with relevant pictures of dogs, based on the status code.
|
4
4
|
|
5
5
|
The pictures are made/collected by [Mike Lee](https://twitter.com/mikeleeorg) on [HTTP Status Dogs](http://httpstatusdogs.com/).
|
6
6
|
|
7
|
-
This is a shameless fork of [status_cats](https://github.com/iain/status_cats) by
|
7
|
+
This is a shameless fork of [status_cats](https://github.com/iain/status_cats) by [Iain Hecker](https://github.com/iain).
|
8
8
|
|
9
9
|
## Usage
|
10
10
|
|
data/dogs/207.jpg
ADDED
Binary file
|
data/dogs/208.jpg
ADDED
Binary file
|
data/dogs/226.jpg
ADDED
Binary file
|
data/dogs/307.jpg
ADDED
Binary file
|
data/dogs/308.jpg
ADDED
Binary file
|
data/dogs/407.jpg
ADDED
Binary file
|
data/dogs/412.jpg
ADDED
Binary file
|
data/dogs/451.jpg
ADDED
Binary file
|
data/dogs/494.jpg
ADDED
Binary file
|
data/dogs/509.jpg
ADDED
Binary file
|
data/dogs/510.jpg
ADDED
Binary file
|
data/lib/status_dogs.rb
CHANGED
@@ -2,7 +2,7 @@ require 'rack/file'
|
|
2
2
|
|
3
3
|
class StatusDogs
|
4
4
|
|
5
|
-
DOGS = [ 100, 200, 201, 202, 203, 206, 300, 301, 302, 303, 305, 306, 400, 401, 402, 403, 404, 405, 406, 408, 409, 410, 411, 413, 414, 416, 417, 418, 420, 422, 423, 424, 425, 426, 429, 431, 444, 450, 500, 501, 502, 503, 504, 506, 507, 508 ].freeze
|
5
|
+
DOGS = [ 100, 200, 201, 202, 203, 206, 207, 208, 226, 300, 301, 302, 303, 305, 306, 307, 308, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 416, 417, 418, 420, 422, 423, 424, 425, 426, 429, 431, 444, 450, 451, 494, 500, 501, 502, 503, 504, 506, 507, 508, 509, 510 ].freeze
|
6
6
|
DOGS_DIR = File.expand_path("../../dogs", __FILE__)
|
7
7
|
|
8
8
|
def initialize(app, options = {})
|
data/status_dogs.gemspec
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
|
3
|
-
Gem::Specification.new do |
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
3
|
+
Gem::Specification.new do |gem|
|
4
|
+
gem.name = "status_dogs"
|
5
|
+
gem.version = "0.0.2"
|
6
|
+
gem.authors = ["Jan Vlnas", "iain"]
|
7
|
+
gem.email = ["gems@jan.vlnas.cz", "iain@iain.nl"]
|
8
|
+
gem.homepage = "https://github.com/jnv/status_dogs"
|
9
|
+
gem.summary = %q{Rack middleware; replaces responses with dogs}
|
10
|
+
gem.description = %q{Rack middleware replacing responses with relevant pictures of dogs, based on the status code.}
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
12
|
+
gem.files = `git ls-files`.split($/)
|
13
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
14
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
15
|
+
gem.require_paths = ["lib"]
|
16
16
|
|
17
17
|
# specify any dependencies here; for example:
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
18
|
+
gem.add_development_dependency "rspec", ">= 2"
|
19
|
+
gem.add_development_dependency "rack-test"
|
20
|
+
gem.add_development_dependency "rake"
|
21
|
+
gem.add_runtime_dependency "rack"
|
22
22
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: status_dogs
|
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:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-12-
|
13
|
+
date: 2012-12-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
type: :development
|
@@ -99,6 +99,9 @@ files:
|
|
99
99
|
- dogs/203.jpg
|
100
100
|
- dogs/204.jpg
|
101
101
|
- dogs/206.jpg
|
102
|
+
- dogs/207.jpg
|
103
|
+
- dogs/208.jpg
|
104
|
+
- dogs/226.jpg
|
102
105
|
- dogs/300.jpg
|
103
106
|
- dogs/301.jpg
|
104
107
|
- dogs/302.jpg
|
@@ -106,6 +109,8 @@ files:
|
|
106
109
|
- dogs/304.jpg
|
107
110
|
- dogs/305.jpg
|
108
111
|
- dogs/306.jpg
|
112
|
+
- dogs/307.jpg
|
113
|
+
- dogs/308.jpg
|
109
114
|
- dogs/400.jpg
|
110
115
|
- dogs/401.jpg
|
111
116
|
- dogs/402.jpg
|
@@ -113,10 +118,12 @@ files:
|
|
113
118
|
- dogs/404.jpg
|
114
119
|
- dogs/405.jpg
|
115
120
|
- dogs/406.jpg
|
121
|
+
- dogs/407.jpg
|
116
122
|
- dogs/408.jpg
|
117
123
|
- dogs/409.jpg
|
118
124
|
- dogs/410.jpg
|
119
125
|
- dogs/411.jpg
|
126
|
+
- dogs/412.jpg
|
120
127
|
- dogs/413.jpg
|
121
128
|
- dogs/414.jpg
|
122
129
|
- dogs/416.jpg
|
@@ -132,6 +139,8 @@ files:
|
|
132
139
|
- dogs/431.jpg
|
133
140
|
- dogs/444.jpg
|
134
141
|
- dogs/450.jpg
|
142
|
+
- dogs/451.jpg
|
143
|
+
- dogs/494.jpg
|
135
144
|
- dogs/500.jpg
|
136
145
|
- dogs/501.jpg
|
137
146
|
- dogs/502.jpg
|
@@ -140,6 +149,8 @@ files:
|
|
140
149
|
- dogs/506.jpg
|
141
150
|
- dogs/507.jpg
|
142
151
|
- dogs/508.jpg
|
152
|
+
- dogs/509.jpg
|
153
|
+
- dogs/510.jpg
|
143
154
|
- lib/status_dogs.rb
|
144
155
|
- spec/spec_helper.rb
|
145
156
|
- spec/status_dogs_spec.rb
|
@@ -169,5 +180,8 @@ rubygems_version: 1.8.23
|
|
169
180
|
signing_key:
|
170
181
|
specification_version: 3
|
171
182
|
summary: Rack middleware; replaces responses with dogs
|
172
|
-
test_files:
|
183
|
+
test_files:
|
184
|
+
- spec/spec_helper.rb
|
185
|
+
- spec/status_dogs_spec.rb
|
186
|
+
- spec/test_app.rb
|
173
187
|
has_rdoc:
|