rack_respond_to_malformed_formats 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
+ pkg
1
2
  .DS_Store
2
3
  *.gem
3
- Gemfile.lock
4
+ Gemfile.lock
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
 
@@ -5,7 +5,7 @@ require "yaml"
5
5
 
6
6
  module Rack
7
7
  class RespondToMalformedFormats
8
- VERSION = "0.0.1"
8
+ VERSION = "0.0.2"
9
9
 
10
10
  def initialize(app, options = {})
11
11
  @app = app
@@ -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 = Rack::RespondToMalformedFormats::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
- - 1
10
- version: 0.0.1
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 00:00:00 -04:00
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: activesupport
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
- - 3
32
- - 0
33
- - 0
34
- version: 3.0.0
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"