rack_respond_to_malformed_formats 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 +2 -1
- data/README.rdoc +1 -1
- data/lib/rack/respond_to_malformed_formats.rb +1 -1
- data/rack_respond_to_malformed_formats.gemspec +2 -3
- metadata +8 -12
data/.gitignore
CHANGED
data/README.rdoc
CHANGED
@@ -12,7 +12,7 @@ Rails will return HTML 500 errors when you send it badly formatted XML or JSON o
|
|
12
12
|
|
13
13
|
Add rack_respond_to_malformed_formats to your Gemfile
|
14
14
|
|
15
|
-
gem 'rack_respond_to_malformed_formats'
|
15
|
+
gem 'rack_respond_to_malformed_formats', :require => 'rack/respond_to_malformed_formats'
|
16
16
|
|
17
17
|
Then run:
|
18
18
|
|
@@ -1,18 +1,17 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
$:.push File.expand_path("../lib", __FILE__)
|
3
|
-
require File.join(File.dirname(__FILE__), "lib/rack/respond_to_malformed_formats")
|
4
3
|
|
5
4
|
Gem::Specification.new do |s|
|
6
5
|
s.name = "rack_respond_to_malformed_formats"
|
7
|
-
s.version =
|
6
|
+
s.version = "0.0.2"
|
8
7
|
s.platform = Gem::Platform::RUBY
|
9
8
|
s.authors = ["Case Commons, LLC"]
|
10
9
|
s.email = ["casecommons-dev@googlegroups.com"]
|
11
10
|
s.homepage = "https://github.com/Casecommons/rack_respond_to_malformed_formats"
|
12
11
|
s.license = "MIT"
|
13
|
-
s.add_dependency('activesupport', '>= 3.0.0')
|
14
12
|
s.summary = %q{Intercept malformed XML and JSON requests and return XML and JSON 400 responses not HTML 500}
|
15
13
|
s.description = %q{Rails currently returns HTML 500 responses when sent unparsable XML and JSON and gives no way to rescue and handle it}
|
14
|
+
s.add_dependency('nokogiri', '>= 1.4.4')
|
16
15
|
|
17
16
|
s.files = `git ls-files`.split("\n")
|
18
17
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack_respond_to_malformed_formats
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 29
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
8
|
+
- 2
|
9
|
+
version: 0.0.2
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Case Commons, LLC
|
@@ -15,23 +14,22 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2011-03-
|
17
|
+
date: 2011-03-18 00:00:00 -04:00
|
19
18
|
default_executable:
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
|
-
name:
|
21
|
+
name: nokogiri
|
23
22
|
prerelease: false
|
24
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
24
|
none: false
|
26
25
|
requirements:
|
27
26
|
- - ">="
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 7
|
30
28
|
segments:
|
31
|
-
-
|
32
|
-
-
|
33
|
-
-
|
34
|
-
version:
|
29
|
+
- 1
|
30
|
+
- 4
|
31
|
+
- 4
|
32
|
+
version: 1.4.4
|
35
33
|
type: :runtime
|
36
34
|
version_requirements: *id001
|
37
35
|
description: Rails currently returns HTML 500 responses when sent unparsable XML and JSON and gives no way to rescue and handle it
|
@@ -68,7 +66,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
68
66
|
requirements:
|
69
67
|
- - ">="
|
70
68
|
- !ruby/object:Gem::Version
|
71
|
-
hash: 3
|
72
69
|
segments:
|
73
70
|
- 0
|
74
71
|
version: "0"
|
@@ -77,7 +74,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
74
|
requirements:
|
78
75
|
- - ">="
|
79
76
|
- !ruby/object:Gem::Version
|
80
|
-
hash: 3
|
81
77
|
segments:
|
82
78
|
- 0
|
83
79
|
version: "0"
|