shields_up 0.22.0 → 0.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile.lock +67 -68
- data/lib/shields_up/parameters.rb +5 -3
- data/lib/shields_up/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f2e0f67072d21926cace59f6416268ba135fdca0a2901fd86c388ec530dec136
|
4
|
+
data.tar.gz: b8241450a2f9ea9006d985b713d6c388e312e54fa22e0b0fee49f60f6a564978
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f42baafcd3bac1ed294c47b3076a9328ba34dca94c906b9a383a7839ab5bdefd9b86015e6808be132bbc4906e614032748e7bbce411fdf2c49178be6292ffd57
|
7
|
+
data.tar.gz: 520f655a4786eb5f45b9a9d7d2df67fdc7b7a123c559bd7340629b86f56241d47b8ed1c88d74557a5af9772952d0e3ebcb3251f2dc326c17f9ab93fc45001709
|
data/Gemfile.lock
CHANGED
@@ -1,118 +1,117 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
shields_up (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.
|
11
|
-
actionpack (= 4.2.
|
12
|
-
actionview (= 4.2.
|
13
|
-
activejob (= 4.2.
|
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.
|
17
|
-
actionview (= 4.2.
|
18
|
-
activesupport (= 4.2.
|
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.
|
24
|
-
activesupport (= 4.2.
|
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.
|
29
|
-
activejob (4.2.
|
30
|
-
activesupport (= 4.2.
|
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.
|
33
|
-
activesupport (= 4.2.
|
32
|
+
activemodel (4.2.5)
|
33
|
+
activesupport (= 4.2.5)
|
34
34
|
builder (~> 3.1)
|
35
|
-
activerecord (4.2.
|
36
|
-
activemodel (= 4.2.
|
37
|
-
activesupport (= 4.2.
|
35
|
+
activerecord (4.2.5)
|
36
|
+
activemodel (= 4.2.5)
|
37
|
+
activesupport (= 4.2.5)
|
38
38
|
arel (~> 6.0)
|
39
|
-
activesupport (4.2.
|
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.
|
45
|
+
appraisal (2.1.0)
|
45
46
|
bundler
|
46
47
|
rake
|
47
48
|
thor (>= 0.14.0)
|
48
|
-
arel (6.0.
|
49
|
-
builder (3.2.
|
50
|
-
codeclimate-test-reporter (
|
51
|
-
simplecov (
|
52
|
-
concurrent-ruby (1.0.
|
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.
|
56
|
-
activesupport (>= 4.
|
57
|
-
i18n (0.
|
58
|
-
json (
|
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.
|
62
|
-
mime-types (>= 1.16, <
|
62
|
+
mail (2.6.3)
|
63
|
+
mime-types (>= 1.16, < 3)
|
63
64
|
metaclass (0.0.4)
|
64
|
-
mime-types (
|
65
|
-
|
66
|
-
|
67
|
-
|
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.
|
72
|
-
mini_portile2 (~> 2.
|
73
|
-
rack (1.6.
|
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.
|
77
|
-
actionmailer (= 4.2.
|
78
|
-
actionpack (= 4.2.
|
79
|
-
actionview (= 4.2.
|
80
|
-
activejob (= 4.2.
|
81
|
-
activemodel (= 4.2.
|
82
|
-
activerecord (= 4.2.
|
83
|
-
activesupport (= 4.2.
|
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.
|
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.
|
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.
|
92
|
+
rails-html-sanitizer (1.0.2)
|
94
93
|
loofah (~> 2.0)
|
95
|
-
railties (4.2.
|
96
|
-
actionpack (= 4.2.
|
97
|
-
activesupport (= 4.2.
|
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 (
|
101
|
-
simplecov (0.
|
99
|
+
rake (10.4.2)
|
100
|
+
simplecov (0.11.1)
|
102
101
|
docile (~> 1.1.0)
|
103
|
-
json (
|
102
|
+
json (~> 1.8)
|
104
103
|
simplecov-html (~> 0.10.0)
|
105
|
-
simplecov-html (0.10.
|
106
|
-
sprockets (3.
|
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.
|
110
|
-
actionpack (>=
|
111
|
-
activesupport (>=
|
112
|
-
sprockets (>=
|
113
|
-
thor (0.19.
|
114
|
-
thread_safe (0.3.
|
115
|
-
tzinfo (1.2.
|
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.
|
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
|
-
|
73
|
-
|
74
|
-
|
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
|
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.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:
|
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.
|
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.
|