rack-conneg 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +17 -0
- data/README.rdoc +5 -4
- data/lib/rack/conneg.rb +2 -2
- metadata +38 -55
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9bc1d63e5affc3489032fed5c1b4767f0403b419
|
4
|
+
data.tar.gz: 54a747b5058aad44d8d6c5349aa1c0389033a7cf
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7abbc299e57b745c4b8e066b77300d2ad3f1b7596a0dcd4825a8fe9a8e6710e4d3eca4fb20ca7063d1e07c8752a9796f900f5ce65aa394ae37271a67f99675cf
|
7
|
+
data.tar.gz: 2b2644a6659866d4b049c28127b510364cfed8e923b0ca3c3aef5b4e39611316c3ec750fef821e50d3f3eb2c4df63516d9aef35003c3e3c45f6eda08cae35eae
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2010 Michael B. Klein
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
6
|
+
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
7
|
+
the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions
|
11
|
+
of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
14
|
+
THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
15
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
16
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
17
|
+
SOFTWARE.
|
data/README.rdoc
CHANGED
@@ -43,7 +43,8 @@ Content negotiation for Rack applications, including a Rails-style respond_to bl
|
|
43
43
|
|
44
44
|
= Release History
|
45
45
|
|
46
|
-
<b>0.1.2</b> - Initial release
|
47
|
-
<b>0.1.3</b> - Added proper RegExp escaping to match content types with + in them
|
48
|
-
<b>0.1.4</b> - Added ignore_contents_of() to recursively ignore directory contents and negotiated? method to determine if negotiation took place
|
49
|
-
<b>0.1.5</b> - Allow negotiation to fall back if no Accept: header supplied
|
46
|
+
- <b>0.1.2</b> - Initial release
|
47
|
+
- <b>0.1.3</b> - Added proper RegExp escaping to match content types with + in them
|
48
|
+
- <b>0.1.4</b> - Added ignore_contents_of() to recursively ignore directory contents and negotiated? method to determine if negotiation took place
|
49
|
+
- <b>0.1.5</b> - Allow negotiation to fall back if no Accept: header supplied
|
50
|
+
- <b>0.1.6</b> - Add license
|
data/lib/rack/conneg.rb
CHANGED
metadata
CHANGED
@@ -1,81 +1,64 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-conneg
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
- 5
|
10
|
-
version: 0.1.5
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.6
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Michael B. Klein
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2016-10-09 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
21
14
|
name: rack
|
22
|
-
|
23
|
-
|
24
|
-
none: false
|
25
|
-
requirements:
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
26
17
|
- - ">="
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
segments:
|
30
|
-
- 1
|
31
|
-
- 0
|
32
|
-
version: "1.0"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
33
20
|
type: :runtime
|
34
|
-
|
35
|
-
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.0'
|
27
|
+
description: Middleware that provides both file extension and HTTP_ACCEPT-type content
|
28
|
+
negotiation for Rack applications
|
36
29
|
email: Michael.Klein@oregonstate.edu
|
37
30
|
executables: []
|
38
|
-
|
39
31
|
extensions: []
|
40
|
-
|
41
|
-
extra_rdoc_files:
|
32
|
+
extra_rdoc_files:
|
42
33
|
- README.rdoc
|
43
|
-
files:
|
34
|
+
files:
|
35
|
+
- LICENSE.txt
|
44
36
|
- README.rdoc
|
45
37
|
- lib/rack/conneg.rb
|
46
38
|
homepage:
|
47
|
-
licenses:
|
48
|
-
|
39
|
+
licenses:
|
40
|
+
- MIT
|
41
|
+
metadata: {}
|
49
42
|
post_install_message:
|
50
|
-
rdoc_options:
|
51
|
-
- --main
|
43
|
+
rdoc_options:
|
44
|
+
- "--main"
|
52
45
|
- README.rdoc
|
53
|
-
require_paths:
|
46
|
+
require_paths:
|
54
47
|
- lib
|
55
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
56
|
-
|
57
|
-
requirements:
|
48
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
58
50
|
- - ">="
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
version: "0"
|
64
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0'
|
53
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
67
55
|
- - ">="
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
|
70
|
-
segments:
|
71
|
-
- 0
|
72
|
-
version: "0"
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0'
|
73
58
|
requirements: []
|
74
|
-
|
75
59
|
rubyforge_project:
|
76
|
-
rubygems_version:
|
60
|
+
rubygems_version: 2.5.1
|
77
61
|
signing_key:
|
78
|
-
specification_version:
|
62
|
+
specification_version: 4
|
79
63
|
summary: Content Negotiation middleware for Rack applications
|
80
64
|
test_files: []
|
81
|
-
|