shields_up 0.22.0 → 0.23.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8ebf4d0587d52c5f8a50c851d3d93f4c002e6809
4
- data.tar.gz: c784fa554fe7699e47194a57e489317126cdc6a2
2
+ SHA256:
3
+ metadata.gz: f2e0f67072d21926cace59f6416268ba135fdca0a2901fd86c388ec530dec136
4
+ data.tar.gz: b8241450a2f9ea9006d985b713d6c388e312e54fa22e0b0fee49f60f6a564978
5
5
  SHA512:
6
- metadata.gz: 3e0835663a3c6cee011012076660fef5ff56b1c42010708a814fcebdcba41da517f7c4dc459dd91ca24706d7fbca14116242781c86c67e2cc9b86da79bea2680
7
- data.tar.gz: 59a1a824ef8d0f2fdf7f7fc98c095835c3a50bae9aca04b374155a2eadea09254971d60ea00365b2d83fc18ea9cbbc465e3b5b89f9a17c042a342ad1e27f77c6
6
+ metadata.gz: f42baafcd3bac1ed294c47b3076a9328ba34dca94c906b9a383a7839ab5bdefd9b86015e6808be132bbc4906e614032748e7bbce411fdf2c49178be6292ffd57
7
+ data.tar.gz: 520f655a4786eb5f45b9a9d7d2df67fdc7b7a123c559bd7340629b86f56241d47b8ed1c88d74557a5af9772952d0e3ebcb3251f2dc326c17f9ab93fc45001709
@@ -1,118 +1,117 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shields_up (0.22.0)
4
+ shields_up (0.23.0)
5
5
  activesupport (>= 3.2, < 4.3)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actionmailer (4.2.9)
11
- actionpack (= 4.2.9)
12
- actionview (= 4.2.9)
13
- activejob (= 4.2.9)
10
+ actionmailer (4.2.5)
11
+ actionpack (= 4.2.5)
12
+ actionview (= 4.2.5)
13
+ activejob (= 4.2.5)
14
14
  mail (~> 2.5, >= 2.5.4)
15
15
  rails-dom-testing (~> 1.0, >= 1.0.5)
16
- actionpack (4.2.9)
17
- actionview (= 4.2.9)
18
- activesupport (= 4.2.9)
16
+ actionpack (4.2.5)
17
+ actionview (= 4.2.5)
18
+ activesupport (= 4.2.5)
19
19
  rack (~> 1.6)
20
20
  rack-test (~> 0.6.2)
21
21
  rails-dom-testing (~> 1.0, >= 1.0.5)
22
22
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
23
- actionview (4.2.9)
24
- activesupport (= 4.2.9)
23
+ actionview (4.2.5)
24
+ activesupport (= 4.2.5)
25
25
  builder (~> 3.1)
26
26
  erubis (~> 2.7.0)
27
27
  rails-dom-testing (~> 1.0, >= 1.0.5)
28
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
29
- activejob (4.2.9)
30
- activesupport (= 4.2.9)
28
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
29
+ activejob (4.2.5)
30
+ activesupport (= 4.2.5)
31
31
  globalid (>= 0.3.0)
32
- activemodel (4.2.9)
33
- activesupport (= 4.2.9)
32
+ activemodel (4.2.5)
33
+ activesupport (= 4.2.5)
34
34
  builder (~> 3.1)
35
- activerecord (4.2.9)
36
- activemodel (= 4.2.9)
37
- activesupport (= 4.2.9)
35
+ activerecord (4.2.5)
36
+ activemodel (= 4.2.5)
37
+ activesupport (= 4.2.5)
38
38
  arel (~> 6.0)
39
- activesupport (4.2.9)
39
+ activesupport (4.2.5)
40
40
  i18n (~> 0.7)
41
+ json (~> 1.7, >= 1.7.7)
41
42
  minitest (~> 5.1)
42
43
  thread_safe (~> 0.3, >= 0.3.4)
43
44
  tzinfo (~> 1.1)
44
- appraisal (2.2.0)
45
+ appraisal (2.1.0)
45
46
  bundler
46
47
  rake
47
48
  thor (>= 0.14.0)
48
- arel (6.0.4)
49
- builder (3.2.3)
50
- codeclimate-test-reporter (1.0.8)
51
- simplecov (<= 0.13)
52
- concurrent-ruby (1.0.5)
49
+ arel (6.0.3)
50
+ builder (3.2.2)
51
+ codeclimate-test-reporter (0.4.8)
52
+ simplecov (>= 0.7.1, < 1.0.0)
53
+ concurrent-ruby (1.0.0)
53
54
  docile (1.1.5)
54
55
  erubis (2.7.0)
55
- globalid (0.4.0)
56
- activesupport (>= 4.2.0)
57
- i18n (0.8.6)
58
- json (2.1.0)
56
+ globalid (0.3.6)
57
+ activesupport (>= 4.1.0)
58
+ i18n (0.7.0)
59
+ json (1.8.3)
59
60
  loofah (2.0.3)
60
61
  nokogiri (>= 1.5.9)
61
- mail (2.6.6)
62
- mime-types (>= 1.16, < 4)
62
+ mail (2.6.3)
63
+ mime-types (>= 1.16, < 3)
63
64
  metaclass (0.0.4)
64
- mime-types (3.1)
65
- mime-types-data (~> 3.2015)
66
- mime-types-data (3.2016.0521)
67
- mini_portile2 (2.2.0)
68
- minitest (5.10.3)
69
- mocha (1.2.1)
65
+ mime-types (2.99)
66
+ mini_portile2 (2.0.0)
67
+ minitest (5.8.3)
68
+ mocha (1.1.0)
70
69
  metaclass (~> 0.0.1)
71
- nokogiri (1.8.0)
72
- mini_portile2 (~> 2.2.0)
73
- rack (1.6.8)
70
+ nokogiri (1.6.7)
71
+ mini_portile2 (~> 2.0.0.rc2)
72
+ rack (1.6.4)
74
73
  rack-test (0.6.3)
75
74
  rack (>= 1.0)
76
- rails (4.2.9)
77
- actionmailer (= 4.2.9)
78
- actionpack (= 4.2.9)
79
- actionview (= 4.2.9)
80
- activejob (= 4.2.9)
81
- activemodel (= 4.2.9)
82
- activerecord (= 4.2.9)
83
- activesupport (= 4.2.9)
75
+ rails (4.2.5)
76
+ actionmailer (= 4.2.5)
77
+ actionpack (= 4.2.5)
78
+ actionview (= 4.2.5)
79
+ activejob (= 4.2.5)
80
+ activemodel (= 4.2.5)
81
+ activerecord (= 4.2.5)
82
+ activesupport (= 4.2.5)
84
83
  bundler (>= 1.3.0, < 2.0)
85
- railties (= 4.2.9)
84
+ railties (= 4.2.5)
86
85
  sprockets-rails
87
86
  rails-deprecated_sanitizer (1.0.3)
88
87
  activesupport (>= 4.2.0.alpha)
89
- rails-dom-testing (1.0.8)
88
+ rails-dom-testing (1.0.7)
90
89
  activesupport (>= 4.2.0.beta, < 5.0)
91
- nokogiri (~> 1.6)
90
+ nokogiri (~> 1.6.0)
92
91
  rails-deprecated_sanitizer (>= 1.0.1)
93
- rails-html-sanitizer (1.0.3)
92
+ rails-html-sanitizer (1.0.2)
94
93
  loofah (~> 2.0)
95
- railties (4.2.9)
96
- actionpack (= 4.2.9)
97
- activesupport (= 4.2.9)
94
+ railties (4.2.5)
95
+ actionpack (= 4.2.5)
96
+ activesupport (= 4.2.5)
98
97
  rake (>= 0.8.7)
99
98
  thor (>= 0.18.1, < 2.0)
100
- rake (12.0.0)
101
- simplecov (0.13.0)
99
+ rake (10.4.2)
100
+ simplecov (0.11.1)
102
101
  docile (~> 1.1.0)
103
- json (>= 1.8, < 3)
102
+ json (~> 1.8)
104
103
  simplecov-html (~> 0.10.0)
105
- simplecov-html (0.10.1)
106
- sprockets (3.7.1)
104
+ simplecov-html (0.10.0)
105
+ sprockets (3.5.0)
107
106
  concurrent-ruby (~> 1.0)
108
107
  rack (> 1, < 3)
109
- sprockets-rails (3.2.0)
110
- actionpack (>= 4.0)
111
- activesupport (>= 4.0)
112
- sprockets (>= 3.0.0)
113
- thor (0.19.4)
114
- thread_safe (0.3.6)
115
- tzinfo (1.2.3)
108
+ sprockets-rails (2.3.3)
109
+ actionpack (>= 3.0)
110
+ activesupport (>= 3.0)
111
+ sprockets (>= 2.8, < 4.0)
112
+ thor (0.19.1)
113
+ thread_safe (0.3.5)
114
+ tzinfo (1.2.2)
116
115
  thread_safe (~> 0.1)
117
116
 
118
117
  PLATFORMS
@@ -127,4 +126,4 @@ DEPENDENCIES
127
126
  shields_up!
128
127
 
129
128
  BUNDLED WITH
130
- 1.15.3
129
+ 1.16.1
@@ -1,4 +1,6 @@
1
1
  require 'active_support/core_ext/hash/indifferent_access'
2
+ require 'active_support/core_ext/object/duplicable'
3
+
2
4
  module ShieldsUp
3
5
  class Parameters
4
6
  def self.param_type
@@ -69,9 +71,9 @@ module ShieldsUp
69
71
  self[key] or raise ParameterMissing.new("Required parameter #{key} does not exist in #{to_s}")
70
72
  end
71
73
 
72
- # def permit!
73
- # deep_dup_to_hash(@params).symbolize_keys
74
- # end
74
+ def permit!
75
+ deep_dup_to_hash(@params).symbolize_keys
76
+ end
75
77
 
76
78
  def [](key)
77
79
  key = key.to_s
@@ -1,3 +1,3 @@
1
1
  module ShieldsUp
2
- VERSION = '0.22.0'.freeze
2
+ VERSION = '0.23.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.22.0
4
+ version: 0.23.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - AppFolio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-14 00:00:00.000000000 Z
11
+ date: 2018-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
74
  version: '0'
75
75
  requirements: []
76
76
  rubyforge_project:
77
- rubygems_version: 2.5.2
77
+ rubygems_version: 2.7.4
78
78
  signing_key:
79
79
  specification_version: 4
80
80
  summary: Mass assignment Protection made by AppFolio Inc., inspired by strong_parameters.