sinatra-kittens 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -7
- data/.travis.yml +19 -0
- data/README.md +3 -3
- data/Rakefile +7 -0
- data/lib/sinatra/kittens.rb +2 -0
- data/lib/sinatra/kittens/version.rb +1 -1
- data/sinatra-kittens.gemspec +10 -3
- data/spec/extension_spec.rb +14 -0
- data/spec/spec_helper.rb +15 -0
- metadata +79 -37
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
|
4
|
-
|
5
|
-
SHA512:
|
6
|
-
|
7
|
-
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 05c011dd55b84164e951f5e3b36a18d823d319da
|
4
|
+
data.tar.gz: f288b51e47102920782d8b6489025ef930fc0439
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 815bdccc00ce7b9fd91387c38a7de21e991104a2e90d5dc3cd68c3401c9936c6e6865554bc2f8bf8cf0c463babf8541acf95bbfc22252ce287e976c2e53b03d3
|
7
|
+
data.tar.gz: 20995561004ba99814f1ebce124856b30fc331c351308cd624d4f10c92ce6db1402181e2a06c4ab93d5fa882f2a040c131916b3d5fb79506a40934601432b3c6
|
data/.travis.yml
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# Not until there are better Github permissions.
|
2
|
+
# Travis CI wants to "Update your public repositories (Commits, Issues, etc)".
|
3
|
+
#
|
4
|
+
# :(
|
5
|
+
|
6
|
+
# language: ruby
|
7
|
+
# rvm:
|
8
|
+
# - ruby-head
|
9
|
+
# - 2.0.0
|
10
|
+
# - 1.9.3
|
11
|
+
# - 1.9.2
|
12
|
+
# - 1.9.1
|
13
|
+
# - 1.8.7
|
14
|
+
# - jruby-head
|
15
|
+
# - jruby-19mode
|
16
|
+
# - jruby-18mode
|
17
|
+
# - rbx-19mode
|
18
|
+
# - rbx-18mode
|
19
|
+
# - ree
|
data/README.md
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
# sinatra-kittens
|
1
|
+
# sinatra-kittens [![Gem Version](https://badge.fury.io/rb/sinatra-kittens.png)](http://badge.fury.io/rb/sinatra-kittens)
|
2
2
|
|
3
3
|
Providing kitten not_found pages for [Sinatra](https://github.com/sinatra/sinatra "Sinatra") using [placekitten](http://placekitten.com/ "placekitten").
|
4
4
|
|
5
5
|
Example application [here](http://sinatra-kittens-example.herokuapp.com/).
|
6
6
|
|
7
7
|
## Requirements
|
8
|
-
- Ruby
|
9
|
-
- Sinatra
|
8
|
+
- Ruby >= 1.8.7
|
9
|
+
- Sinatra >= 1.0
|
10
10
|
|
11
11
|
## Installation
|
12
12
|
|
data/Rakefile
ADDED
data/lib/sinatra/kittens.rb
CHANGED
data/sinatra-kittens.gemspec
CHANGED
@@ -7,23 +7,30 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.version = Sinatra::Kittens::VERSION
|
8
8
|
spec.authors = ['Tobias Bühlmann']
|
9
9
|
spec.email = ['tobias.buehlmann@gmx.de']
|
10
|
-
spec.date = '2013-03-
|
10
|
+
spec.date = '2013-03-12'
|
11
11
|
spec.description = 'Kitten pictures for Sinatra not_found pages.'
|
12
12
|
spec.summary = spec.description
|
13
|
-
spec.homepage = 'https://github.com/tbuehlmann/kittens'
|
13
|
+
spec.homepage = 'https://github.com/tbuehlmann/sinatra-kittens'
|
14
14
|
spec.license = 'MIT'
|
15
15
|
spec.require_paths = ['lib']
|
16
16
|
spec.files = %w[
|
17
17
|
.gitignore
|
18
|
+
.travis.yml
|
18
19
|
Gemfile
|
19
20
|
LICENSE.txt
|
20
21
|
README.md
|
22
|
+
Rakefile
|
21
23
|
lib/sinatra/kittens.rb
|
22
24
|
lib/sinatra/kittens/helpers.rb
|
23
25
|
lib/sinatra/kittens/version.rb
|
24
26
|
sinatra-kittens.gemspec
|
27
|
+
spec/extension_spec.rb
|
28
|
+
spec/spec_helper.rb
|
25
29
|
]
|
26
30
|
|
27
31
|
spec.required_ruby_version = '>= 1.8.7'
|
28
|
-
spec.add_dependency 'sinatra', '
|
32
|
+
spec.add_dependency 'sinatra', '>= 1.0'
|
33
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
34
|
+
spec.add_development_dependency 'rspec', '~> 2.13'
|
35
|
+
spec.add_development_dependency 'rack-test', '~> 0.6'
|
29
36
|
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Sinatra::Kittens do
|
4
|
+
def app
|
5
|
+
KittenTest
|
6
|
+
end
|
7
|
+
|
8
|
+
it 'renders kittens for a not_found page' do
|
9
|
+
get '/'
|
10
|
+
expect(last_response).to be_not_found
|
11
|
+
expect(last_response.status).to eq(404)
|
12
|
+
expect(last_response.body).to include('http://placekitten.com/')
|
13
|
+
end
|
14
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'sinatra/kittens'
|
2
|
+
require 'rspec'
|
3
|
+
require 'rack/test'
|
4
|
+
|
5
|
+
RSpec.configure do |config|
|
6
|
+
config.color_enabled = true
|
7
|
+
config.include Rack::Test::Methods
|
8
|
+
end
|
9
|
+
|
10
|
+
class KittenTest < Sinatra::Base
|
11
|
+
configure do
|
12
|
+
set :environment, :test
|
13
|
+
register Sinatra::Kittens
|
14
|
+
end
|
15
|
+
end
|
metadata
CHANGED
@@ -1,70 +1,112 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra-kittens
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
|
-
authors:
|
7
|
-
-
|
6
|
+
authors:
|
7
|
+
- Tobias Bühlmann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2013-03-12 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
15
14
|
name: sinatra
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
20
|
+
type: :runtime
|
16
21
|
prerelease: false
|
17
|
-
|
18
|
-
requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
19
31
|
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version:
|
22
|
-
type: :
|
23
|
-
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.13'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.13'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rack-test
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.6'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.6'
|
24
69
|
description: Kitten pictures for Sinatra not_found pages.
|
25
|
-
email:
|
70
|
+
email:
|
26
71
|
- tobias.buehlmann@gmx.de
|
27
72
|
executables: []
|
28
|
-
|
29
73
|
extensions: []
|
30
|
-
|
31
74
|
extra_rdoc_files: []
|
32
|
-
|
33
|
-
files:
|
75
|
+
files:
|
34
76
|
- .gitignore
|
77
|
+
- .travis.yml
|
35
78
|
- Gemfile
|
36
79
|
- LICENSE.txt
|
37
80
|
- README.md
|
81
|
+
- Rakefile
|
38
82
|
- lib/sinatra/kittens.rb
|
39
83
|
- lib/sinatra/kittens/helpers.rb
|
40
84
|
- lib/sinatra/kittens/version.rb
|
41
85
|
- sinatra-kittens.gemspec
|
42
|
-
|
43
|
-
|
86
|
+
- spec/extension_spec.rb
|
87
|
+
- spec/spec_helper.rb
|
88
|
+
homepage: https://github.com/tbuehlmann/sinatra-kittens
|
89
|
+
licenses:
|
44
90
|
- MIT
|
45
91
|
metadata: {}
|
46
|
-
|
47
92
|
post_install_message:
|
48
93
|
rdoc_options: []
|
49
|
-
|
50
|
-
require_paths:
|
94
|
+
require_paths:
|
51
95
|
- lib
|
52
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
-
requirements:
|
54
|
-
- -
|
55
|
-
- !ruby/object:Gem::Version
|
96
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - '>='
|
99
|
+
- !ruby/object:Gem::Version
|
56
100
|
version: 1.8.7
|
57
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- -
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version:
|
101
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - '>='
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '0'
|
62
106
|
requirements: []
|
63
|
-
|
64
107
|
rubyforge_project:
|
65
|
-
rubygems_version: 2.0.
|
108
|
+
rubygems_version: 2.0.2
|
66
109
|
signing_key:
|
67
110
|
specification_version: 4
|
68
111
|
summary: Kitten pictures for Sinatra not_found pages.
|
69
112
|
test_files: []
|
70
|
-
|