responder_controller 0.1.2 → 0.1.3

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/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ *ResponderController 0.1.2*
2
+
3
+ * If a requested scope errors out, raise a BadScope exception. Tell rails (if present) to render these as 422s.
4
+
1
5
  *ResponderController 0.1.1*
2
6
 
3
7
  * Use AR#scoped instead of #all to create initial query, as #all gives a literal array (whoops.)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -11,9 +11,9 @@ module ResponderController
11
11
  mod.send :include, InstanceMethods
12
12
  mod.send :include, Actions
13
13
 
14
- # Uncaught BadScope exceptions become 422s
14
+ # Uncaught BadScope exceptions become 400s
15
15
  if defined? ActionDispatch
16
- ActionDispatch::ShowExceptions.rescue_responses[BadScope.name] = :unprocessable_entity
16
+ ActionDispatch::ShowExceptions.rescue_responses[BadScope.name] = :bad_request
17
17
  end
18
18
  end
19
19
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{responder_controller}
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Phil Smith"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 2
9
- version: 0.1.2
8
+ - 3
9
+ version: 0.1.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Phil Smith