moderate_parameters 0.2.1 → 0.2.2

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
2
  SHA256:
3
- metadata.gz: 40cf0a80d0a76ca34637f1189efc5b17bd1e7ed176bef8f39f64a6216eebe020
4
- data.tar.gz: 8176b21e083b2d08f0b009224325a9628b3900b487f14295736e60cc1fbd9a23
3
+ metadata.gz: d3c83897c1341a4514987933e1db7e029cfb55705146765d7e676f21ac01463d
4
+ data.tar.gz: 61a327e83595a3c4cd27d96157f1289a2aa3b1b6872bd119287a44ede1a804b6
5
5
  SHA512:
6
- metadata.gz: 552e33f7a1d3e52218e86a61ab97e4155c76b3b8d349189f0d61f0f2b3ebd3e96f3622b5edf154b256b35bbac40329907735d83fc86500c13fcce91e7883d5a4
7
- data.tar.gz: 734fa6326e0b047e9d5f2091f27018c8d07db331239338750300c37259086336729ef277152cad9369001b77a9d741d53400ed0dc65436b1da71be1b2f145858
6
+ metadata.gz: 70f2b9290e974967825f4cb3a4dae3f1dcda817f8e79afe3961e24a086c938b2abbce047e24ac85c09a44f7da5cfdaa47aec5019e894d5d9e1245b1912c13166
7
+ data.tar.gz: 502c734fda35865096a0b2e3ef038b841e905204ad3696068fe7f6e4c303399c0cece1e25cf338a7fe0082b6a5f8add0088c505a08d39eb256a1730b07bf2af8
data/Appraisals ADDED
@@ -0,0 +1,34 @@
1
+ appraise 'rails-4-2' do
2
+ gem 'actionpack', '4.2.11.1'
3
+ gem 'activemodel', '4.2.11.1'
4
+ gem 'activesupport', '4.2.11.1'
5
+ gem 'railties', '4.2.11.1'
6
+ end
7
+
8
+ appraise 'rails-5-0' do
9
+ gem 'actionpack', '5.0.7.2'
10
+ gem 'activemodel', '5.0.7.2'
11
+ gem 'activesupport', '5.0.7.2'
12
+ gem 'railties', '5.0.7.2'
13
+ end
14
+
15
+ appraise 'rails-5-1' do
16
+ gem 'actionpack', '5.1.7'
17
+ gem 'activemodel', '5.1.7'
18
+ gem 'activesupport', '5.1.7'
19
+ gem 'railties', '5.1.7'
20
+ end
21
+
22
+ appraise 'rails-5-2' do
23
+ gem 'actionpack', '5.2.3'
24
+ gem 'activemodel', '5.2.3'
25
+ gem 'activesupport', '5.2.3'
26
+ gem 'railties', '5.2.3'
27
+ end
28
+
29
+ appraise 'rails-6-0' do
30
+ gem 'actionpack', '6.0.0'
31
+ gem 'activemodel', '6.0.0'
32
+ gem 'activesupport', '6.0.0'
33
+ gem 'railties', '6.0.0'
34
+ end
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ### 0.2.1 - 2019-08-25
2
+
3
+ * Bugfix deprecation warning with already defined constant
4
+
5
+ ### 0.2.0 - 2019-08-25
6
+
7
+ * Add Breadcrumbs functionality for mutation logging
8
+ * Add generator for Breadcrumbs initializer config template
9
+
1
10
  ### 0.1.0 - 2019-03-25
2
11
 
3
12
  * Init Project
data/Gemfile.lock CHANGED
@@ -1,11 +1,11 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- moderate_parameters (0.1.1)
5
- actionpack (>= 3.0, < 6.1)
6
- activemodel (>= 3.0, < 6.1)
7
- activesupport (>= 3.0, < 6.1)
8
- railties (>= 3.0, < 6.1)
4
+ moderate_parameters (0.2.2)
5
+ actionpack (>= 4.2, < 6.1)
6
+ activemodel (>= 4.2, < 6.1)
7
+ activesupport (>= 4.2, < 6.1)
8
+ railties (>= 4.2, < 6.1)
9
9
 
10
10
  GEM
11
11
  remote: https://rubygems.org/
@@ -31,20 +31,24 @@ GEM
31
31
  minitest (~> 5.1)
32
32
  tzinfo (~> 1.1)
33
33
  zeitwerk (~> 2.1, >= 2.1.8)
34
+ appraisal (2.2.0)
35
+ bundler
36
+ rake
37
+ thor (>= 0.14.0)
34
38
  builder (3.2.3)
35
39
  coderay (1.1.2)
36
40
  concurrent-ruby (1.1.5)
37
- crass (1.0.4)
41
+ crass (1.0.5)
38
42
  diff-lcs (1.3)
39
43
  erubi (1.9.0)
40
- i18n (1.6.0)
44
+ i18n (1.7.0)
41
45
  concurrent-ruby (~> 1.0)
42
- loofah (2.2.3)
46
+ loofah (2.3.1)
43
47
  crass (~> 1.0.2)
44
48
  nokogiri (>= 1.5.9)
45
49
  method_source (0.9.2)
46
50
  mini_portile2 (2.4.0)
47
- minitest (5.12.0)
51
+ minitest (5.12.2)
48
52
  nokogiri (1.10.4)
49
53
  mini_portile2 (~> 2.4.0)
50
54
  pry (0.12.2)
@@ -56,8 +60,8 @@ GEM
56
60
  rails-dom-testing (2.0.3)
57
61
  activesupport (>= 4.2.0)
58
62
  nokogiri (>= 1.6)
59
- rails-html-sanitizer (1.2.0)
60
- loofah (~> 2.2, >= 2.2.2)
63
+ rails-html-sanitizer (1.3.0)
64
+ loofah (~> 2.3)
61
65
  railties (6.0.0)
62
66
  actionpack (= 6.0.0)
63
67
  activesupport (= 6.0.0)
@@ -84,12 +88,13 @@ GEM
84
88
  thread_safe (0.3.6)
85
89
  tzinfo (1.2.5)
86
90
  thread_safe (~> 0.1)
87
- zeitwerk (2.1.10)
91
+ zeitwerk (2.2.0)
88
92
 
89
93
  PLATFORMS
90
94
  ruby
91
95
 
92
96
  DEPENDENCIES
97
+ appraisal (= 2.2.0)
93
98
  bundler (~> 2.0.1)
94
99
  moderate_parameters!
95
100
  pry (~> 0.12.2)
data/README.md CHANGED
@@ -2,7 +2,9 @@
2
2
 
3
3
  By [Hint.io](https://hint.io)
4
4
 
5
- In our experience with [UpgradeRails](https://www.upgraderails.com), the migration from [protected_attributes](https://github.com/rails/protected_attributes) to [strong_parameters](https://api.rubyonrails.org/classes/ActionController/StrongParameters.html) can leave more questions than answers. It can be difficult to determine what data is originating from within the app and what is coming from the internet. Moderate Parameters is a tool that provides safety nets and logging of data sources in the controller by extending `ActionController::Parameters` functionality.
5
+ In our experience with [UpgradeRails](https://www.upgraderails.com), the migration from [protected_attributes](https://github.com/rails/protected_attributes) to [strong_parameters](https://api.rubyonrails.org/classes/ActionController/StrongParameters.html) can leave more questions than answers. It can be difficult to determine what data is originating from within the app and what is coming from the internet.
6
+
7
+ Moderate Parameters is a set of tools providing logging of data sources in the controller by extending `ActionController::Parameters` functionality.
6
8
 
7
9
  ## Installation
8
10
 
@@ -20,6 +22,12 @@ Or install it yourself as:
20
22
 
21
23
  $ gem install moderate_parameters
22
24
 
25
+ Then add the initializer by running:
26
+
27
+ $ bundle exec rails g moderate_parameters:install
28
+
29
+ This will add an initializer to your rails app for turning on/off functionality.
30
+
23
31
  ## Usage
24
32
 
25
33
  Given a form at `/people/new` that submits data to the `PeopleController#create` action like so:
@@ -0,0 +1,2 @@
1
+ ---
2
+ BUNDLE_RETRY: "1"
@@ -0,0 +1,10 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "actionpack", "4.2.11.1"
6
+ gem "activemodel", "4.2.11.1"
7
+ gem "activesupport", "4.2.11.1"
8
+ gem "railties", "4.2.11.1"
9
+
10
+ gemspec path: "../"
@@ -0,0 +1,111 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ moderate_parameters (0.2.1)
5
+ actionpack (>= 4.2, < 6.1)
6
+ activemodel (>= 4.2, < 6.1)
7
+ activesupport (>= 4.2, < 6.1)
8
+ railties (>= 4.2, < 6.1)
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ actionpack (4.2.11.1)
14
+ actionview (= 4.2.11.1)
15
+ activesupport (= 4.2.11.1)
16
+ rack (~> 1.6)
17
+ rack-test (~> 0.6.2)
18
+ rails-dom-testing (~> 1.0, >= 1.0.5)
19
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
20
+ actionview (4.2.11.1)
21
+ activesupport (= 4.2.11.1)
22
+ builder (~> 3.1)
23
+ erubis (~> 2.7.0)
24
+ rails-dom-testing (~> 1.0, >= 1.0.5)
25
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
26
+ activemodel (4.2.11.1)
27
+ activesupport (= 4.2.11.1)
28
+ builder (~> 3.1)
29
+ activesupport (4.2.11.1)
30
+ i18n (~> 0.7)
31
+ minitest (~> 5.1)
32
+ thread_safe (~> 0.3, >= 0.3.4)
33
+ tzinfo (~> 1.1)
34
+ appraisal (2.2.0)
35
+ bundler
36
+ rake
37
+ thor (>= 0.14.0)
38
+ builder (3.2.3)
39
+ coderay (1.1.2)
40
+ concurrent-ruby (1.1.5)
41
+ crass (1.0.5)
42
+ diff-lcs (1.3)
43
+ erubis (2.7.0)
44
+ i18n (0.9.5)
45
+ concurrent-ruby (~> 1.0)
46
+ loofah (2.3.1)
47
+ crass (~> 1.0.2)
48
+ nokogiri (>= 1.5.9)
49
+ method_source (0.9.2)
50
+ mini_portile2 (2.4.0)
51
+ minitest (5.12.2)
52
+ nokogiri (1.10.4)
53
+ mini_portile2 (~> 2.4.0)
54
+ pry (0.12.2)
55
+ coderay (~> 1.1.0)
56
+ method_source (~> 0.9.0)
57
+ rack (1.6.11)
58
+ rack-test (0.6.3)
59
+ rack (>= 1.0)
60
+ rails-deprecated_sanitizer (1.0.3)
61
+ activesupport (>= 4.2.0.alpha)
62
+ rails-dom-testing (1.0.9)
63
+ activesupport (>= 4.2.0, < 5.0)
64
+ nokogiri (~> 1.6)
65
+ rails-deprecated_sanitizer (>= 1.0.1)
66
+ rails-html-sanitizer (1.3.0)
67
+ loofah (~> 2.3)
68
+ railties (4.2.11.1)
69
+ actionpack (= 4.2.11.1)
70
+ activesupport (= 4.2.11.1)
71
+ rake (>= 0.8.7)
72
+ thor (>= 0.18.1, < 2.0)
73
+ rake (10.5.0)
74
+ rspec (3.9.0)
75
+ rspec-core (~> 3.9.0)
76
+ rspec-expectations (~> 3.9.0)
77
+ rspec-mocks (~> 3.9.0)
78
+ rspec-core (3.9.0)
79
+ rspec-support (~> 3.9.0)
80
+ rspec-expectations (3.9.0)
81
+ diff-lcs (>= 1.2.0, < 2.0)
82
+ rspec-support (~> 3.9.0)
83
+ rspec-mocks (3.9.0)
84
+ diff-lcs (>= 1.2.0, < 2.0)
85
+ rspec-support (~> 3.9.0)
86
+ rspec-support (3.9.0)
87
+ rspec_junit_formatter (0.4.1)
88
+ rspec-core (>= 2, < 4, != 2.12.0)
89
+ thor (0.20.3)
90
+ thread_safe (0.3.6)
91
+ tzinfo (1.2.5)
92
+ thread_safe (~> 0.1)
93
+
94
+ PLATFORMS
95
+ ruby
96
+
97
+ DEPENDENCIES
98
+ actionpack (= 4.2.11.1)
99
+ activemodel (= 4.2.11.1)
100
+ activesupport (= 4.2.11.1)
101
+ appraisal (= 2.2.0)
102
+ bundler (~> 2.0.1)
103
+ moderate_parameters!
104
+ pry (~> 0.12.2)
105
+ railties (= 4.2.11.1)
106
+ rake (~> 10.0)
107
+ rspec (~> 3.0)
108
+ rspec_junit_formatter (= 0.4.1)
109
+
110
+ BUNDLED WITH
111
+ 2.0.1
@@ -0,0 +1,10 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "actionpack", "5.0.7.2"
6
+ gem "activemodel", "5.0.7.2"
7
+ gem "activesupport", "5.0.7.2"
8
+ gem "railties", "5.0.7.2"
9
+
10
+ gemspec path: "../"
@@ -0,0 +1,108 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ moderate_parameters (0.2.1)
5
+ actionpack (>= 3.0, < 6.1)
6
+ activemodel (>= 3.0, < 6.1)
7
+ activesupport (>= 3.0, < 6.1)
8
+ railties (>= 3.0, < 6.1)
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ actionpack (5.0.7.2)
14
+ actionview (= 5.0.7.2)
15
+ activesupport (= 5.0.7.2)
16
+ rack (~> 2.0)
17
+ rack-test (~> 0.6.3)
18
+ rails-dom-testing (~> 2.0)
19
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
20
+ actionview (5.0.7.2)
21
+ activesupport (= 5.0.7.2)
22
+ builder (~> 3.1)
23
+ erubis (~> 2.7.0)
24
+ rails-dom-testing (~> 2.0)
25
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
26
+ activemodel (5.0.7.2)
27
+ activesupport (= 5.0.7.2)
28
+ activesupport (5.0.7.2)
29
+ concurrent-ruby (~> 1.0, >= 1.0.2)
30
+ i18n (>= 0.7, < 2)
31
+ minitest (~> 5.1)
32
+ tzinfo (~> 1.1)
33
+ appraisal (2.2.0)
34
+ bundler
35
+ rake
36
+ thor (>= 0.14.0)
37
+ builder (3.2.3)
38
+ coderay (1.1.2)
39
+ concurrent-ruby (1.1.5)
40
+ crass (1.0.5)
41
+ diff-lcs (1.3)
42
+ erubis (2.7.0)
43
+ i18n (1.7.0)
44
+ concurrent-ruby (~> 1.0)
45
+ loofah (2.3.1)
46
+ crass (~> 1.0.2)
47
+ nokogiri (>= 1.5.9)
48
+ method_source (0.9.2)
49
+ mini_portile2 (2.4.0)
50
+ minitest (5.12.2)
51
+ nokogiri (1.10.4)
52
+ mini_portile2 (~> 2.4.0)
53
+ pry (0.12.2)
54
+ coderay (~> 1.1.0)
55
+ method_source (~> 0.9.0)
56
+ rack (2.0.7)
57
+ rack-test (0.6.3)
58
+ rack (>= 1.0)
59
+ rails-dom-testing (2.0.3)
60
+ activesupport (>= 4.2.0)
61
+ nokogiri (>= 1.6)
62
+ rails-html-sanitizer (1.3.0)
63
+ loofah (~> 2.3)
64
+ railties (5.0.7.2)
65
+ actionpack (= 5.0.7.2)
66
+ activesupport (= 5.0.7.2)
67
+ method_source
68
+ rake (>= 0.8.7)
69
+ thor (>= 0.18.1, < 2.0)
70
+ rake (10.5.0)
71
+ rspec (3.9.0)
72
+ rspec-core (~> 3.9.0)
73
+ rspec-expectations (~> 3.9.0)
74
+ rspec-mocks (~> 3.9.0)
75
+ rspec-core (3.9.0)
76
+ rspec-support (~> 3.9.0)
77
+ rspec-expectations (3.9.0)
78
+ diff-lcs (>= 1.2.0, < 2.0)
79
+ rspec-support (~> 3.9.0)
80
+ rspec-mocks (3.9.0)
81
+ diff-lcs (>= 1.2.0, < 2.0)
82
+ rspec-support (~> 3.9.0)
83
+ rspec-support (3.9.0)
84
+ rspec_junit_formatter (0.4.1)
85
+ rspec-core (>= 2, < 4, != 2.12.0)
86
+ thor (0.20.3)
87
+ thread_safe (0.3.6)
88
+ tzinfo (1.2.5)
89
+ thread_safe (~> 0.1)
90
+
91
+ PLATFORMS
92
+ ruby
93
+
94
+ DEPENDENCIES
95
+ actionpack (= 5.0.7.2)
96
+ activemodel (= 5.0.7.2)
97
+ activesupport (= 5.0.7.2)
98
+ appraisal (= 2.2.0)
99
+ bundler (~> 2.0.1)
100
+ moderate_parameters!
101
+ pry (~> 0.12.2)
102
+ railties (= 5.0.7.2)
103
+ rake (~> 10.0)
104
+ rspec (~> 3.0)
105
+ rspec_junit_formatter (= 0.4.1)
106
+
107
+ BUNDLED WITH
108
+ 2.0.1
@@ -0,0 +1,10 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "actionpack", "5.1.7"
6
+ gem "activemodel", "5.1.7"
7
+ gem "activesupport", "5.1.7"
8
+ gem "railties", "5.1.7"
9
+
10
+ gemspec path: "../"
@@ -0,0 +1,108 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ moderate_parameters (0.2.1)
5
+ actionpack (>= 3.0, < 6.1)
6
+ activemodel (>= 3.0, < 6.1)
7
+ activesupport (>= 3.0, < 6.1)
8
+ railties (>= 3.0, < 6.1)
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ actionpack (5.1.7)
14
+ actionview (= 5.1.7)
15
+ activesupport (= 5.1.7)
16
+ rack (~> 2.0)
17
+ rack-test (>= 0.6.3)
18
+ rails-dom-testing (~> 2.0)
19
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
20
+ actionview (5.1.7)
21
+ activesupport (= 5.1.7)
22
+ builder (~> 3.1)
23
+ erubi (~> 1.4)
24
+ rails-dom-testing (~> 2.0)
25
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
26
+ activemodel (5.1.7)
27
+ activesupport (= 5.1.7)
28
+ activesupport (5.1.7)
29
+ concurrent-ruby (~> 1.0, >= 1.0.2)
30
+ i18n (>= 0.7, < 2)
31
+ minitest (~> 5.1)
32
+ tzinfo (~> 1.1)
33
+ appraisal (2.2.0)
34
+ bundler
35
+ rake
36
+ thor (>= 0.14.0)
37
+ builder (3.2.3)
38
+ coderay (1.1.2)
39
+ concurrent-ruby (1.1.5)
40
+ crass (1.0.5)
41
+ diff-lcs (1.3)
42
+ erubi (1.9.0)
43
+ i18n (1.7.0)
44
+ concurrent-ruby (~> 1.0)
45
+ loofah (2.3.1)
46
+ crass (~> 1.0.2)
47
+ nokogiri (>= 1.5.9)
48
+ method_source (0.9.2)
49
+ mini_portile2 (2.4.0)
50
+ minitest (5.12.2)
51
+ nokogiri (1.10.4)
52
+ mini_portile2 (~> 2.4.0)
53
+ pry (0.12.2)
54
+ coderay (~> 1.1.0)
55
+ method_source (~> 0.9.0)
56
+ rack (2.0.7)
57
+ rack-test (1.1.0)
58
+ rack (>= 1.0, < 3)
59
+ rails-dom-testing (2.0.3)
60
+ activesupport (>= 4.2.0)
61
+ nokogiri (>= 1.6)
62
+ rails-html-sanitizer (1.3.0)
63
+ loofah (~> 2.3)
64
+ railties (5.1.7)
65
+ actionpack (= 5.1.7)
66
+ activesupport (= 5.1.7)
67
+ method_source
68
+ rake (>= 0.8.7)
69
+ thor (>= 0.18.1, < 2.0)
70
+ rake (10.5.0)
71
+ rspec (3.9.0)
72
+ rspec-core (~> 3.9.0)
73
+ rspec-expectations (~> 3.9.0)
74
+ rspec-mocks (~> 3.9.0)
75
+ rspec-core (3.9.0)
76
+ rspec-support (~> 3.9.0)
77
+ rspec-expectations (3.9.0)
78
+ diff-lcs (>= 1.2.0, < 2.0)
79
+ rspec-support (~> 3.9.0)
80
+ rspec-mocks (3.9.0)
81
+ diff-lcs (>= 1.2.0, < 2.0)
82
+ rspec-support (~> 3.9.0)
83
+ rspec-support (3.9.0)
84
+ rspec_junit_formatter (0.4.1)
85
+ rspec-core (>= 2, < 4, != 2.12.0)
86
+ thor (0.20.3)
87
+ thread_safe (0.3.6)
88
+ tzinfo (1.2.5)
89
+ thread_safe (~> 0.1)
90
+
91
+ PLATFORMS
92
+ ruby
93
+
94
+ DEPENDENCIES
95
+ actionpack (= 5.1.7)
96
+ activemodel (= 5.1.7)
97
+ activesupport (= 5.1.7)
98
+ appraisal (= 2.2.0)
99
+ bundler (~> 2.0.1)
100
+ moderate_parameters!
101
+ pry (~> 0.12.2)
102
+ railties (= 5.1.7)
103
+ rake (~> 10.0)
104
+ rspec (~> 3.0)
105
+ rspec_junit_formatter (= 0.4.1)
106
+
107
+ BUNDLED WITH
108
+ 2.0.1
@@ -0,0 +1,10 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "actionpack", "5.2.3"
6
+ gem "activemodel", "5.2.3"
7
+ gem "activesupport", "5.2.3"
8
+ gem "railties", "5.2.3"
9
+
10
+ gemspec path: "../"
@@ -0,0 +1,108 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ moderate_parameters (0.2.1)
5
+ actionpack (>= 3.0, < 6.1)
6
+ activemodel (>= 3.0, < 6.1)
7
+ activesupport (>= 3.0, < 6.1)
8
+ railties (>= 3.0, < 6.1)
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ actionpack (5.2.3)
14
+ actionview (= 5.2.3)
15
+ activesupport (= 5.2.3)
16
+ rack (~> 2.0)
17
+ rack-test (>= 0.6.3)
18
+ rails-dom-testing (~> 2.0)
19
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
20
+ actionview (5.2.3)
21
+ activesupport (= 5.2.3)
22
+ builder (~> 3.1)
23
+ erubi (~> 1.4)
24
+ rails-dom-testing (~> 2.0)
25
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
26
+ activemodel (5.2.3)
27
+ activesupport (= 5.2.3)
28
+ activesupport (5.2.3)
29
+ concurrent-ruby (~> 1.0, >= 1.0.2)
30
+ i18n (>= 0.7, < 2)
31
+ minitest (~> 5.1)
32
+ tzinfo (~> 1.1)
33
+ appraisal (2.2.0)
34
+ bundler
35
+ rake
36
+ thor (>= 0.14.0)
37
+ builder (3.2.3)
38
+ coderay (1.1.2)
39
+ concurrent-ruby (1.1.5)
40
+ crass (1.0.5)
41
+ diff-lcs (1.3)
42
+ erubi (1.9.0)
43
+ i18n (1.7.0)
44
+ concurrent-ruby (~> 1.0)
45
+ loofah (2.3.1)
46
+ crass (~> 1.0.2)
47
+ nokogiri (>= 1.5.9)
48
+ method_source (0.9.2)
49
+ mini_portile2 (2.4.0)
50
+ minitest (5.12.2)
51
+ nokogiri (1.10.4)
52
+ mini_portile2 (~> 2.4.0)
53
+ pry (0.12.2)
54
+ coderay (~> 1.1.0)
55
+ method_source (~> 0.9.0)
56
+ rack (2.0.7)
57
+ rack-test (1.1.0)
58
+ rack (>= 1.0, < 3)
59
+ rails-dom-testing (2.0.3)
60
+ activesupport (>= 4.2.0)
61
+ nokogiri (>= 1.6)
62
+ rails-html-sanitizer (1.3.0)
63
+ loofah (~> 2.3)
64
+ railties (5.2.3)
65
+ actionpack (= 5.2.3)
66
+ activesupport (= 5.2.3)
67
+ method_source
68
+ rake (>= 0.8.7)
69
+ thor (>= 0.19.0, < 2.0)
70
+ rake (10.5.0)
71
+ rspec (3.9.0)
72
+ rspec-core (~> 3.9.0)
73
+ rspec-expectations (~> 3.9.0)
74
+ rspec-mocks (~> 3.9.0)
75
+ rspec-core (3.9.0)
76
+ rspec-support (~> 3.9.0)
77
+ rspec-expectations (3.9.0)
78
+ diff-lcs (>= 1.2.0, < 2.0)
79
+ rspec-support (~> 3.9.0)
80
+ rspec-mocks (3.9.0)
81
+ diff-lcs (>= 1.2.0, < 2.0)
82
+ rspec-support (~> 3.9.0)
83
+ rspec-support (3.9.0)
84
+ rspec_junit_formatter (0.4.1)
85
+ rspec-core (>= 2, < 4, != 2.12.0)
86
+ thor (0.20.3)
87
+ thread_safe (0.3.6)
88
+ tzinfo (1.2.5)
89
+ thread_safe (~> 0.1)
90
+
91
+ PLATFORMS
92
+ ruby
93
+
94
+ DEPENDENCIES
95
+ actionpack (= 5.2.3)
96
+ activemodel (= 5.2.3)
97
+ activesupport (= 5.2.3)
98
+ appraisal (= 2.2.0)
99
+ bundler (~> 2.0.1)
100
+ moderate_parameters!
101
+ pry (~> 0.12.2)
102
+ railties (= 5.2.3)
103
+ rake (~> 10.0)
104
+ rspec (~> 3.0)
105
+ rspec_junit_formatter (= 0.4.1)
106
+
107
+ BUNDLED WITH
108
+ 2.0.1
@@ -0,0 +1,10 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "actionpack", "6.0.0"
6
+ gem "activemodel", "6.0.0"
7
+ gem "activesupport", "6.0.0"
8
+ gem "railties", "6.0.0"
9
+
10
+ gemspec path: "../"
@@ -0,0 +1,110 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ moderate_parameters (0.2.1)
5
+ actionpack (>= 3.0, < 6.1)
6
+ activemodel (>= 3.0, < 6.1)
7
+ activesupport (>= 3.0, < 6.1)
8
+ railties (>= 3.0, < 6.1)
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ actionpack (6.0.0)
14
+ actionview (= 6.0.0)
15
+ activesupport (= 6.0.0)
16
+ rack (~> 2.0)
17
+ rack-test (>= 0.6.3)
18
+ rails-dom-testing (~> 2.0)
19
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
20
+ actionview (6.0.0)
21
+ activesupport (= 6.0.0)
22
+ builder (~> 3.1)
23
+ erubi (~> 1.4)
24
+ rails-dom-testing (~> 2.0)
25
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
26
+ activemodel (6.0.0)
27
+ activesupport (= 6.0.0)
28
+ activesupport (6.0.0)
29
+ concurrent-ruby (~> 1.0, >= 1.0.2)
30
+ i18n (>= 0.7, < 2)
31
+ minitest (~> 5.1)
32
+ tzinfo (~> 1.1)
33
+ zeitwerk (~> 2.1, >= 2.1.8)
34
+ appraisal (2.2.0)
35
+ bundler
36
+ rake
37
+ thor (>= 0.14.0)
38
+ builder (3.2.3)
39
+ coderay (1.1.2)
40
+ concurrent-ruby (1.1.5)
41
+ crass (1.0.5)
42
+ diff-lcs (1.3)
43
+ erubi (1.9.0)
44
+ i18n (1.7.0)
45
+ concurrent-ruby (~> 1.0)
46
+ loofah (2.3.1)
47
+ crass (~> 1.0.2)
48
+ nokogiri (>= 1.5.9)
49
+ method_source (0.9.2)
50
+ mini_portile2 (2.4.0)
51
+ minitest (5.12.2)
52
+ nokogiri (1.10.4)
53
+ mini_portile2 (~> 2.4.0)
54
+ pry (0.12.2)
55
+ coderay (~> 1.1.0)
56
+ method_source (~> 0.9.0)
57
+ rack (2.0.7)
58
+ rack-test (1.1.0)
59
+ rack (>= 1.0, < 3)
60
+ rails-dom-testing (2.0.3)
61
+ activesupport (>= 4.2.0)
62
+ nokogiri (>= 1.6)
63
+ rails-html-sanitizer (1.3.0)
64
+ loofah (~> 2.3)
65
+ railties (6.0.0)
66
+ actionpack (= 6.0.0)
67
+ activesupport (= 6.0.0)
68
+ method_source
69
+ rake (>= 0.8.7)
70
+ thor (>= 0.20.3, < 2.0)
71
+ rake (10.5.0)
72
+ rspec (3.9.0)
73
+ rspec-core (~> 3.9.0)
74
+ rspec-expectations (~> 3.9.0)
75
+ rspec-mocks (~> 3.9.0)
76
+ rspec-core (3.9.0)
77
+ rspec-support (~> 3.9.0)
78
+ rspec-expectations (3.9.0)
79
+ diff-lcs (>= 1.2.0, < 2.0)
80
+ rspec-support (~> 3.9.0)
81
+ rspec-mocks (3.9.0)
82
+ diff-lcs (>= 1.2.0, < 2.0)
83
+ rspec-support (~> 3.9.0)
84
+ rspec-support (3.9.0)
85
+ rspec_junit_formatter (0.4.1)
86
+ rspec-core (>= 2, < 4, != 2.12.0)
87
+ thor (0.20.3)
88
+ thread_safe (0.3.6)
89
+ tzinfo (1.2.5)
90
+ thread_safe (~> 0.1)
91
+ zeitwerk (2.2.0)
92
+
93
+ PLATFORMS
94
+ ruby
95
+
96
+ DEPENDENCIES
97
+ actionpack (= 6.0.0)
98
+ activemodel (= 6.0.0)
99
+ activesupport (= 6.0.0)
100
+ appraisal (= 2.2.0)
101
+ bundler (~> 2.0.1)
102
+ moderate_parameters!
103
+ pry (~> 0.12.2)
104
+ railties (= 6.0.0)
105
+ rake (~> 10.0)
106
+ rspec (~> 3.0)
107
+ rspec_junit_formatter (= 0.4.1)
108
+
109
+ BUNDLED WITH
110
+ 2.0.1
@@ -35,6 +35,7 @@ module ModerateParameters
35
35
  end
36
36
 
37
37
  EMPTY_HASH ||= {}
38
+ EMPTY_ARRAY ||= []
38
39
  def cust_hash_filter(params, filter, controller_name, action)
39
40
  filter = filter.with_indifferent_access
40
41
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ModerateParameters
4
- VERSION = '0.2.1'
4
+ VERSION = '0.2.2'
5
5
  end
@@ -36,14 +36,15 @@ Gem::Specification.new do |spec|
36
36
 
37
37
  spec.required_ruby_version = '>= 2.3.1'
38
38
 
39
- spec.add_dependency 'actionpack', '>= 3.0', '< 6.1'
40
- spec.add_dependency 'activemodel', '>= 3.0', '< 6.1'
41
- spec.add_dependency 'activesupport', '>= 3.0', '< 6.1'
42
- spec.add_dependency 'railties', '>= 3.0', '< 6.1'
39
+ spec.add_dependency 'actionpack', '>= 4.2', '< 6.1'
40
+ spec.add_dependency 'activemodel', '>= 4.2', '< 6.1'
41
+ spec.add_dependency 'activesupport', '>= 4.2', '< 6.1'
42
+ spec.add_dependency 'railties', '>= 4.2', '< 6.1'
43
43
 
44
44
  spec.add_development_dependency 'bundler', '~> 2.0.1'
45
45
  spec.add_development_dependency 'pry', '~> 0.12.2'
46
46
  spec.add_development_dependency 'rake', '~> 10.0'
47
47
  spec.add_development_dependency 'rspec', '~> 3.0'
48
48
  spec.add_development_dependency 'rspec_junit_formatter', '0.4.1'
49
+ spec.add_development_dependency 'appraisal', '2.2.0'
49
50
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moderate_parameters
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Boe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-25 00:00:00.000000000 Z
11
+ date: 2019-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '3.0'
19
+ version: '4.2'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '6.1'
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '3.0'
29
+ version: '4.2'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '6.1'
@@ -36,7 +36,7 @@ dependencies:
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: '3.0'
39
+ version: '4.2'
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
42
  version: '6.1'
@@ -46,7 +46,7 @@ dependencies:
46
46
  requirements:
47
47
  - - ">="
48
48
  - !ruby/object:Gem::Version
49
- version: '3.0'
49
+ version: '4.2'
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
52
  version: '6.1'
@@ -56,7 +56,7 @@ dependencies:
56
56
  requirements:
57
57
  - - ">="
58
58
  - !ruby/object:Gem::Version
59
- version: '3.0'
59
+ version: '4.2'
60
60
  - - "<"
61
61
  - !ruby/object:Gem::Version
62
62
  version: '6.1'
@@ -66,7 +66,7 @@ dependencies:
66
66
  requirements:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: '3.0'
69
+ version: '4.2'
70
70
  - - "<"
71
71
  - !ruby/object:Gem::Version
72
72
  version: '6.1'
@@ -76,7 +76,7 @@ dependencies:
76
76
  requirements:
77
77
  - - ">="
78
78
  - !ruby/object:Gem::Version
79
- version: '3.0'
79
+ version: '4.2'
80
80
  - - "<"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '6.1'
@@ -86,7 +86,7 @@ dependencies:
86
86
  requirements:
87
87
  - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '3.0'
89
+ version: '4.2'
90
90
  - - "<"
91
91
  - !ruby/object:Gem::Version
92
92
  version: '6.1'
@@ -160,6 +160,20 @@ dependencies:
160
160
  - - '='
161
161
  - !ruby/object:Gem::Version
162
162
  version: 0.4.1
163
+ - !ruby/object:Gem::Dependency
164
+ name: appraisal
165
+ requirement: !ruby/object:Gem::Requirement
166
+ requirements:
167
+ - - '='
168
+ - !ruby/object:Gem::Version
169
+ version: 2.2.0
170
+ type: :development
171
+ prerelease: false
172
+ version_requirements: !ruby/object:Gem::Requirement
173
+ requirements:
174
+ - - '='
175
+ - !ruby/object:Gem::Version
176
+ version: 2.2.0
163
177
  description: A tool for migrating Rails applications from Protected Attributes to
164
178
  Strong Parameters.
165
179
  email:
@@ -174,6 +188,7 @@ files:
174
188
  - ".gitignore"
175
189
  - ".rspec"
176
190
  - ".rubocop.yml"
191
+ - Appraisals
177
192
  - CHANGELOG.md
178
193
  - CODE_OF_CONDUCT.md
179
194
  - Gemfile
@@ -183,6 +198,17 @@ files:
183
198
  - Rakefile
184
199
  - bin/console
185
200
  - bin/setup
201
+ - gemfiles/.bundle/config
202
+ - gemfiles/rails_4_2.gemfile
203
+ - gemfiles/rails_4_2.gemfile.lock
204
+ - gemfiles/rails_5_0.gemfile
205
+ - gemfiles/rails_5_0.gemfile.lock
206
+ - gemfiles/rails_5_1.gemfile
207
+ - gemfiles/rails_5_1.gemfile.lock
208
+ - gemfiles/rails_5_2.gemfile
209
+ - gemfiles/rails_5_2.gemfile.lock
210
+ - gemfiles/rails_6_0.gemfile
211
+ - gemfiles/rails_6_0.gemfile.lock
186
212
  - lib/generators/moderate_parameters/install_generator.rb
187
213
  - lib/generators/templates/moderate_parameters.rb
188
214
  - lib/moderate_parameters.rb