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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 437e1ba9fb4476f8dc720427401607320e7d4625
4
- data.tar.gz: 09c5b2be9c7e5d2d84a6f3cd466be68639cb59bd
3
+ metadata.gz: f98f11a8151f77c6c1c557a7322ae49331284b90
4
+ data.tar.gz: a1bc8ea177c6dd17269fa5f2e50e36f0c3bd8c4d
5
5
  SHA512:
6
- metadata.gz: 11cc043d76fcf28e2cb50150b95a639ea8f138c5a5986f5720fbeaedc760e64bb2d73c737e06aa2fb25750f1d5ddc90035d08f4436a2f4154546490548f2d3cc
7
- data.tar.gz: ee27061c271e103a51bd9c12287d19ed6108483eb16a93b2cffa6ae36bf5ffa6dfeb386c699a3a229716893e2f014e8d053ae890a4e6acb4608af5048d5046c8
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.17.0)
5
- activesupport (~> 3.2)
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
- self.params = ShieldsUp::Parameters.new(params, self) unless params.is_a?(ShieldsUp::Parameters)
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
@@ -1,3 +1,3 @@
1
1
  module ShieldsUp
2
- VERSION = '0.18.0'.freeze
2
+ VERSION = '0.19.0'.freeze
3
3
  end
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.18.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-19 00:00:00.000000000 Z
11
+ date: 2014-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport