sinatra-kittens 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +2 -0
- data/LICENSE.txt +22 -0
- data/README.md +37 -0
- data/lib/sinatra/kittens.rb +14 -0
- data/lib/sinatra/kittens/version.rb +5 -0
- data/sinatra-kittens.gemspec +28 -0
- metadata +65 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 581ede8a9c66829a5b4aa063ba78eb54e01be02c
|
4
|
+
data.tar.gz: f95bff35b1c6a4382c4aac54cb68b7f0540ad584
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e5249cbb4f29cbecfcd1503684e5d87b6559344529d67aef819c7fa594793c0c53291d4aea3c9c32860d28f298d300ff04880a51e9b8be6c85c1725d07c7f83f
|
7
|
+
data.tar.gz: c02f270cfbed933b980e87cced4c04088eb65767e13c7fec3eb607892f35a1791f67ef4c38bf829a3ff6b624ad6f097b74cdd6b122e22b8e8bbf02d5a67c521e
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Tobias Bühlmann
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
# sinatra-kittens
|
2
|
+
|
3
|
+
Providing kitten not_found pages for [Sinatra](https://github.com/sinatra/sinatra "Sinatra") using [placekitten](http://placekitten.com/ "placekitten").
|
4
|
+
|
5
|
+
## Requirements
|
6
|
+
- Ruby => 1.9.2
|
7
|
+
- Sinatra ~> 1.3
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
### Using Bundler
|
12
|
+
Add it to your Gemfile:
|
13
|
+
```ruby
|
14
|
+
gem 'sinatra-kittens'
|
15
|
+
```
|
16
|
+
|
17
|
+
Install it:
|
18
|
+
|
19
|
+
$ bundle install
|
20
|
+
|
21
|
+
### As a Gem
|
22
|
+
$ gem install sinatra-kittens
|
23
|
+
|
24
|
+
## Usage
|
25
|
+
Require the Gem and register the `Kittens` Module:
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
require 'sinatra-kittens'
|
29
|
+
|
30
|
+
class Application < Sinatra::Base
|
31
|
+
configure do
|
32
|
+
register Sinatra::Kittens
|
33
|
+
end
|
34
|
+
end
|
35
|
+
```
|
36
|
+
|
37
|
+
Now, when hitting a page Sinatra does not have a route for, a Kitten will appear.
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require './lib/sinatra/kittens/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'sinatra-kittens'
|
7
|
+
spec.version = Sinatra::Kittens::VERSION
|
8
|
+
spec.authors = ['Tobias Bühlmann']
|
9
|
+
spec.email = ['tobias.buehlmann@gmx.de']
|
10
|
+
spec.date = '2013-03-05'
|
11
|
+
spec.description = 'Kitten pictures for Sinatra not_found pages.'
|
12
|
+
spec.summary = spec.description
|
13
|
+
spec.homepage = 'https://github.com/tbuehlmann/kittens'
|
14
|
+
spec.license = 'MIT'
|
15
|
+
spec.require_paths = ['lib']
|
16
|
+
spec.files = %w[
|
17
|
+
.gitignore
|
18
|
+
Gemfile
|
19
|
+
LICENSE.txt
|
20
|
+
README.md
|
21
|
+
sinatra-kittens.gemspec
|
22
|
+
lib/sinatra/kittens.rb
|
23
|
+
lib/sinatra/kittens/version.rb
|
24
|
+
]
|
25
|
+
|
26
|
+
spec.required_ruby_version = '>= 1.9.2'
|
27
|
+
spec.add_dependency 'sinatra', '~> 1.3'
|
28
|
+
end
|
metadata
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sinatra-kittens
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tobias Bühlmann
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-03-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: sinatra
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
description: Kitten pictures for Sinatra not_found pages.
|
28
|
+
email:
|
29
|
+
- tobias.buehlmann@gmx.de
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- .gitignore
|
35
|
+
- Gemfile
|
36
|
+
- LICENSE.txt
|
37
|
+
- README.md
|
38
|
+
- sinatra-kittens.gemspec
|
39
|
+
- lib/sinatra/kittens.rb
|
40
|
+
- lib/sinatra/kittens/version.rb
|
41
|
+
homepage: https://github.com/tbuehlmann/kittens
|
42
|
+
licenses:
|
43
|
+
- MIT
|
44
|
+
metadata: {}
|
45
|
+
post_install_message:
|
46
|
+
rdoc_options: []
|
47
|
+
require_paths:
|
48
|
+
- lib
|
49
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 1.9.2
|
54
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
55
|
+
requirements:
|
56
|
+
- - '>='
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: '0'
|
59
|
+
requirements: []
|
60
|
+
rubyforge_project:
|
61
|
+
rubygems_version: 2.0.0
|
62
|
+
signing_key:
|
63
|
+
specification_version: 4
|
64
|
+
summary: Kitten pictures for Sinatra not_found pages.
|
65
|
+
test_files: []
|