shields_up 0.18.0 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +7 -2
- data/lib/shields_up/shields_up.rb +4 -1
- data/lib/shields_up/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f98f11a8151f77c6c1c557a7322ae49331284b90
|
4
|
+
data.tar.gz: a1bc8ea177c6dd17269fa5f2e50e36f0c3bd8c4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d28587275d459c8cf159f704af161ad62102958d9762889ccf8d37c55d06d353bc5101695e4ea229b2e1ab3f8de4c242e4135db7ae8f833f8618e39ea3b602ec
|
7
|
+
data.tar.gz: acd1f7b09306a7752846da458f14a8a78e1076fb6ac2a78350db26706abede5a4c7a62de4336577ed398c15c688f8760800d4e9cd99c3811f351302534af5327
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
shields_up (0.
|
5
|
-
activesupport (
|
4
|
+
shields_up (0.18.0)
|
5
|
+
activesupport (>= 3.2, < 4.1)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
@@ -34,6 +34,10 @@ GEM
|
|
34
34
|
activesupport (3.2.19)
|
35
35
|
i18n (~> 0.6, >= 0.6.4)
|
36
36
|
multi_json (~> 1.0)
|
37
|
+
appraisal (1.0.2)
|
38
|
+
bundler
|
39
|
+
rake
|
40
|
+
thor (>= 0.14.0)
|
37
41
|
arel (3.0.3)
|
38
42
|
builder (3.0.4)
|
39
43
|
codeclimate-test-reporter (0.4.1)
|
@@ -101,6 +105,7 @@ PLATFORMS
|
|
101
105
|
|
102
106
|
DEPENDENCIES
|
103
107
|
activemodel
|
108
|
+
appraisal
|
104
109
|
codeclimate-test-reporter
|
105
110
|
minitest (~> 4.0)
|
106
111
|
mocha
|
@@ -1,7 +1,10 @@
|
|
1
1
|
module ShieldsUp
|
2
2
|
def self.included(klass)
|
3
3
|
klass.before_filter do
|
4
|
-
|
4
|
+
unless params.is_a?(ShieldsUp::Parameters)
|
5
|
+
params.permit! if params.respond_to?(:permit!)
|
6
|
+
self.params = ShieldsUp::Parameters.new(params, self)
|
7
|
+
end
|
5
8
|
end
|
6
9
|
klass.rescue_from(ShieldsUp::ParameterMissing) do |parameter_missing_exception|
|
7
10
|
render :text => "Required parameter missing: #{parameter_missing_exception}", :status => :bad_request
|
data/lib/shields_up/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shields_up
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.19.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AppFolio
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|