devise_materialize 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.circleci/config.yml +93 -196
- data/.codeclimate.json +80 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +34 -0
- data/.github/ISSUE_TEMPLATE/feature-request.md +20 -0
- data/.github/ISSUE_TEMPLATE/question.md +10 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +28 -5
- data/.gitignore +1 -0
- data/.mdlrc +5 -0
- data/.rubocop.yml +494 -1354
- data/CHANGELOG.md +20 -10
- data/CODE_OF_CONDUCT.md +4 -7
- data/CONTRIBUTING.md +132 -0
- data/Gemfile +7 -2
- data/README.md +18 -16
- data/_config.yml +1 -1
- data/bin/console +0 -3
- data/bin/publish +68 -0
- data/bin/setup +0 -2
- data/devise_materialize.gemspec +8 -8
- data/lib/devise_materialize/version.rb +1 -1
- data/lib/generators/devise_materialize/install_generator.rb +2 -2
- data/test/devise_materialize_test.rb +5 -0
- data/test/lib/install_generator_test.rb +14 -12
- data/test/test_helper.rb +14 -16
- metadata +19 -14
- data/.codeclimate.yml +0 -45
- data/.github/CONTRIBUTING.md +0 -17
- data/.github/ISSUE_TEMPLATE.md +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 670dd47831326fb7a5c16aca280f8bed055dc2befeab6242d5122d5b0db94a63
|
4
|
+
data.tar.gz: 3982e0d90cf0a266d0f398ca95894d09ccb433406b7e4dabacb2f3d43a275d61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf3d14fa932d261c45b9dcf70acfd40d67a98051b8061c37166d7f072c87b642d9b97db2d26c5edb67c1423f209fb56cd7be827014985209bfe37d00ae69d5ee
|
7
|
+
data.tar.gz: 68c3ea81cf24ba5e2f65c0d00751c0501bbb070aef84eac77062fafcc2b97cafb9817082931513c489cdf65818105f210a9513290b66d93a2cb5a267b1c0a954
|
data/.circleci/config.yml
CHANGED
@@ -1,241 +1,138 @@
|
|
1
1
|
version: 2
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
ruby_versions:
|
4
|
+
- &ruby-2-6
|
5
|
+
working_directory: ~/devise_materialize
|
5
6
|
docker:
|
6
|
-
- image: circleci/ruby:2.
|
7
|
+
- image: circleci/ruby:2.6.3
|
7
8
|
environment:
|
8
9
|
BUNDLE_JOBS: 3
|
9
10
|
BUNDLE_RETRY: 3
|
10
|
-
BUNDLE_PATH: vendor/bundle
|
11
11
|
RAILS_ENV: test
|
12
12
|
|
13
|
+
- &ruby-2-5
|
13
14
|
working_directory: ~/devise_materialize
|
14
|
-
|
15
|
-
steps:
|
16
|
-
- checkout
|
17
|
-
|
18
|
-
# Download and cache dependencies
|
19
|
-
- restore_cache:
|
20
|
-
keys:
|
21
|
-
- rails-bundle-v1-{{ checksum "Gemfile" }}
|
22
|
-
- rails-bundle-v1-
|
23
|
-
|
24
|
-
- run:
|
25
|
-
name: Bundle Install
|
26
|
-
command: bundle check || bundle install
|
27
|
-
|
28
|
-
- save_cache:
|
29
|
-
key: rails-bundle-v1-{{ checksum "Gemfile" }}
|
30
|
-
paths:
|
31
|
-
- vendor/bundle
|
32
|
-
|
33
|
-
# run tests!
|
34
|
-
- run:
|
35
|
-
name: Run Tests
|
36
|
-
command: bundle exec rake test
|
37
|
-
when: always
|
38
|
-
|
39
|
-
# collect reports
|
40
|
-
- store_artifacts:
|
41
|
-
path: coverage
|
42
|
-
destination: coverage
|
43
|
-
|
44
|
-
- store_test_results:
|
45
|
-
path: test/reports
|
46
|
-
|
47
|
-
ruby_2_4_3:
|
48
15
|
docker:
|
49
|
-
- image: circleci/ruby:2.
|
16
|
+
- image: circleci/ruby:2.5.5
|
50
17
|
environment:
|
51
18
|
BUNDLE_JOBS: 3
|
52
19
|
BUNDLE_RETRY: 3
|
53
|
-
BUNDLE_PATH: vendor/bundle
|
54
20
|
RAILS_ENV: test
|
55
21
|
|
22
|
+
- &ruby-2-4
|
56
23
|
working_directory: ~/devise_materialize
|
57
|
-
|
58
|
-
steps:
|
59
|
-
- checkout
|
60
|
-
|
61
|
-
# Download and cache dependencies
|
62
|
-
- restore_cache:
|
63
|
-
keys:
|
64
|
-
- rails-bundle-v1-{{ checksum "Gemfile" }}
|
65
|
-
- rails-bundle-v1-
|
66
|
-
|
67
|
-
- run:
|
68
|
-
name: Bundle Install
|
69
|
-
command: bundle check || bundle install
|
70
|
-
|
71
|
-
- save_cache:
|
72
|
-
key: rails-bundle-v1-{{ checksum "Gemfile" }}
|
73
|
-
paths:
|
74
|
-
- vendor/bundle
|
75
|
-
|
76
|
-
# run tests!
|
77
|
-
- run:
|
78
|
-
name: Run Tests
|
79
|
-
command: bundle exec rake test
|
80
|
-
when: always
|
81
|
-
|
82
|
-
# collect reports
|
83
|
-
- store_artifacts:
|
84
|
-
path: coverage
|
85
|
-
destination: coverage
|
86
|
-
|
87
|
-
- store_test_results:
|
88
|
-
path: test/reports
|
89
|
-
|
90
|
-
ruby_2_3_6:
|
91
24
|
docker:
|
92
|
-
- image: circleci/ruby:2.
|
25
|
+
- image: circleci/ruby:2.4.6
|
93
26
|
environment:
|
94
27
|
BUNDLE_JOBS: 3
|
95
28
|
BUNDLE_RETRY: 3
|
96
|
-
BUNDLE_PATH: vendor/bundle
|
97
29
|
RAILS_ENV: test
|
98
30
|
|
31
|
+
- &ruby-2-3
|
99
32
|
working_directory: ~/devise_materialize
|
100
|
-
|
101
|
-
steps:
|
102
|
-
- checkout
|
103
|
-
|
104
|
-
# Download and cache dependencies
|
105
|
-
- restore_cache:
|
106
|
-
keys:
|
107
|
-
- rails-bundle-v1-{{ checksum "Gemfile" }}
|
108
|
-
- rails-bundle-v1-
|
109
|
-
|
110
|
-
- run:
|
111
|
-
name: Bundle Install
|
112
|
-
command: bundle check || bundle install
|
113
|
-
|
114
|
-
- save_cache:
|
115
|
-
key: rails-bundle-v1-{{ checksum "Gemfile" }}
|
116
|
-
paths:
|
117
|
-
- vendor/bundle
|
118
|
-
|
119
|
-
# run tests!
|
120
|
-
- run:
|
121
|
-
name: Run Tests
|
122
|
-
command: bundle exec rake test
|
123
|
-
when: always
|
124
|
-
|
125
|
-
# collect reports
|
126
|
-
- store_artifacts:
|
127
|
-
path: coverage
|
128
|
-
destination: coverage
|
129
|
-
|
130
|
-
- store_test_results:
|
131
|
-
path: test/reports
|
132
|
-
|
133
|
-
ruby_2_2_9:
|
134
33
|
docker:
|
135
|
-
- image: circleci/ruby:2.
|
34
|
+
- image: circleci/ruby:2.3.7
|
136
35
|
environment:
|
137
36
|
BUNDLE_JOBS: 3
|
138
37
|
BUNDLE_RETRY: 3
|
139
|
-
BUNDLE_PATH: vendor/bundle
|
140
38
|
RAILS_ENV: test
|
141
39
|
|
142
|
-
|
40
|
+
build_steps:
|
41
|
+
- &bundle_install
|
42
|
+
run:
|
43
|
+
name: Bundle Install
|
44
|
+
command: bundle check || bundle install
|
45
|
+
|
46
|
+
- &setup_code_climate
|
47
|
+
run:
|
48
|
+
name: Setup Code Climate test-reporter
|
49
|
+
command: |
|
50
|
+
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
51
|
+
chmod +x ./cc-test-reporter
|
52
|
+
|
53
|
+
- &run_test_cc
|
54
|
+
run:
|
55
|
+
name: Run Tests
|
56
|
+
command: |
|
57
|
+
./cc-test-reporter before-build
|
58
|
+
bundle exec rake test
|
59
|
+
./cc-test-reporter after-build
|
60
|
+
when: always
|
61
|
+
|
62
|
+
- &run_test
|
63
|
+
run:
|
64
|
+
name: Run Tests
|
65
|
+
command: bundle exec rake test
|
66
|
+
when: always
|
67
|
+
|
68
|
+
- &store_coverage
|
69
|
+
# collect reports
|
70
|
+
store_artifacts:
|
71
|
+
path: coverage
|
72
|
+
destination: coverage
|
73
|
+
|
74
|
+
- &store_test_results
|
75
|
+
store_test_results:
|
76
|
+
path: test/reports
|
143
77
|
|
78
|
+
jobs:
|
79
|
+
test_ruby_2_6:
|
80
|
+
<<: *ruby-2-6
|
144
81
|
steps:
|
145
82
|
- checkout
|
83
|
+
- *bundle_install
|
84
|
+
- *run_test
|
85
|
+
- *store_coverage
|
86
|
+
- *store_test_results
|
146
87
|
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
-
|
154
|
-
|
155
|
-
command: bundle check || bundle install
|
156
|
-
|
157
|
-
- save_cache:
|
158
|
-
key: rails-bundle-v1-{{ checksum "Gemfile" }}
|
159
|
-
paths:
|
160
|
-
- vendor/bundle
|
161
|
-
|
162
|
-
# run tests!
|
163
|
-
- run:
|
164
|
-
name: Run Tests
|
165
|
-
command: bundle exec rake test
|
166
|
-
when: always
|
88
|
+
test_ruby_2_5:
|
89
|
+
<<: *ruby-2-5
|
90
|
+
steps:
|
91
|
+
- checkout
|
92
|
+
- *bundle_install
|
93
|
+
- *run_test
|
94
|
+
- *store_coverage
|
95
|
+
- *store_test_results
|
167
96
|
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
97
|
+
test_ruby_2_4:
|
98
|
+
<<: *ruby-2-4
|
99
|
+
steps:
|
100
|
+
- checkout
|
101
|
+
- *bundle_install
|
102
|
+
- *run_test
|
103
|
+
- *store_coverage
|
104
|
+
- *store_test_results
|
172
105
|
|
173
|
-
|
174
|
-
|
106
|
+
test_ruby_2_3:
|
107
|
+
<<: *ruby-2-3
|
108
|
+
steps:
|
109
|
+
- checkout
|
110
|
+
- *bundle_install
|
111
|
+
- *run_test
|
112
|
+
- *store_coverage
|
113
|
+
- *store_test_results
|
175
114
|
|
176
115
|
test:
|
177
|
-
|
178
|
-
- image: circleci/ruby:2.5.0
|
179
|
-
environment:
|
180
|
-
BUNDLE_JOBS: 3
|
181
|
-
BUNDLE_RETRY: 3
|
182
|
-
BUNDLE_PATH: vendor/bundle
|
183
|
-
RAILS_ENV: test
|
184
|
-
|
185
|
-
working_directory: ~/devise_materialize
|
186
|
-
|
116
|
+
<<: *ruby-2-6
|
187
117
|
steps:
|
188
118
|
- checkout
|
189
|
-
|
190
|
-
|
191
|
-
-
|
192
|
-
|
193
|
-
|
194
|
-
- rails-bundle-v1-
|
195
|
-
|
196
|
-
- run:
|
197
|
-
name: Bundle Install
|
198
|
-
command: bundle check || bundle install
|
199
|
-
|
200
|
-
- save_cache:
|
201
|
-
key: rails-bundle-v1-{{ checksum "Gemfile" }}
|
202
|
-
paths:
|
203
|
-
- vendor/bundle
|
204
|
-
|
205
|
-
# run tests!
|
206
|
-
- run:
|
207
|
-
name: Setup Code Climate test-reporter
|
208
|
-
command: |
|
209
|
-
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
210
|
-
chmod +x ./cc-test-reporter
|
211
|
-
|
212
|
-
- run:
|
213
|
-
name: Run Tests
|
214
|
-
command: |
|
215
|
-
./cc-test-reporter before-build
|
216
|
-
bundle exec rake test
|
217
|
-
./cc-test-reporter after-build
|
218
|
-
when: always
|
219
|
-
|
220
|
-
# collect reports
|
221
|
-
- store_artifacts:
|
222
|
-
path: coverage
|
223
|
-
destination: coverage
|
224
|
-
|
225
|
-
- store_test_results:
|
226
|
-
path: test/reports
|
119
|
+
- *bundle_install
|
120
|
+
- *setup_code_climate
|
121
|
+
- *run_test_cc
|
122
|
+
- *store_coverage
|
123
|
+
- *store_test_results
|
227
124
|
|
228
125
|
workflows:
|
229
126
|
version: 2
|
230
|
-
|
127
|
+
build-and-test:
|
231
128
|
jobs:
|
232
|
-
-
|
233
|
-
-
|
234
|
-
-
|
235
|
-
-
|
129
|
+
- test_ruby_2_6
|
130
|
+
- test_ruby_2_5
|
131
|
+
- test_ruby_2_4
|
132
|
+
- test_ruby_2_3
|
236
133
|
- test:
|
237
134
|
requires:
|
238
|
-
-
|
239
|
-
-
|
240
|
-
-
|
241
|
-
-
|
135
|
+
- test_ruby_2_6
|
136
|
+
- test_ruby_2_5
|
137
|
+
- test_ruby_2_4
|
138
|
+
- test_ruby_2_3
|
data/.codeclimate.json
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
{
|
2
|
+
"version": "2",
|
3
|
+
"checks": {
|
4
|
+
"argument-count": {
|
5
|
+
"enabled": true,
|
6
|
+
"config": {
|
7
|
+
"threshold": 4
|
8
|
+
}
|
9
|
+
},
|
10
|
+
"complex-logic": {
|
11
|
+
"enabled": true,
|
12
|
+
"config": {
|
13
|
+
"threshold": 4
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"file-lines": {
|
17
|
+
"enabled": true,
|
18
|
+
"config": {
|
19
|
+
"threshold": 250
|
20
|
+
}
|
21
|
+
},
|
22
|
+
"method-complexity": {
|
23
|
+
"enabled": true,
|
24
|
+
"config": {
|
25
|
+
"threshold": 5
|
26
|
+
}
|
27
|
+
},
|
28
|
+
"method-count": {
|
29
|
+
"enabled": true,
|
30
|
+
"config": {
|
31
|
+
"threshold": 20
|
32
|
+
}
|
33
|
+
},
|
34
|
+
"method-lines": {
|
35
|
+
"enabled": true,
|
36
|
+
"config": {
|
37
|
+
"threshold": 25
|
38
|
+
}
|
39
|
+
},
|
40
|
+
"nested-control-flow": {
|
41
|
+
"enabled": true,
|
42
|
+
"config": {
|
43
|
+
"threshold": 4
|
44
|
+
}
|
45
|
+
},
|
46
|
+
"return-statements": {
|
47
|
+
"enabled": true,
|
48
|
+
"config": {
|
49
|
+
"threshold": 4
|
50
|
+
}
|
51
|
+
},
|
52
|
+
"similar-code": {
|
53
|
+
"enabled": true,
|
54
|
+
"config": {
|
55
|
+
"threshold": null
|
56
|
+
}
|
57
|
+
},
|
58
|
+
"identical-code": {
|
59
|
+
"enabled": true,
|
60
|
+
"config": {
|
61
|
+
"threshold": null
|
62
|
+
}
|
63
|
+
}
|
64
|
+
},
|
65
|
+
"plugins": {
|
66
|
+
"rubocop": {
|
67
|
+
"enabled": true,
|
68
|
+
"channel": "rubocop-0-71"
|
69
|
+
},
|
70
|
+
"markdownlint": {
|
71
|
+
"enabled": true
|
72
|
+
}
|
73
|
+
},
|
74
|
+
"exclude_patterns": [
|
75
|
+
"**/public/",
|
76
|
+
"**/node_modules/",
|
77
|
+
"**/*.d.ts",
|
78
|
+
"**/test/rails_app"
|
79
|
+
]
|
80
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
---
|
2
|
+
name: Bug report
|
3
|
+
about: Create a report to help us improve
|
4
|
+
title: ''
|
5
|
+
labels: bug, new
|
6
|
+
assignees: chiefpansancolt
|
7
|
+
|
8
|
+
---
|
9
|
+
|
10
|
+
**Describe the bug**
|
11
|
+
A clear and concise description of what the bug is.
|
12
|
+
|
13
|
+
**To Reproduce**
|
14
|
+
Steps to reproduce the behavior:
|
15
|
+
|
16
|
+
1. Go to '...'
|
17
|
+
2. Click on '....'
|
18
|
+
3. Scroll down to '....'
|
19
|
+
4. See error
|
20
|
+
|
21
|
+
**Expected behavior**
|
22
|
+
A clear and concise description of what you expected to happen.
|
23
|
+
|
24
|
+
**Screenshots**
|
25
|
+
If applicable, add screenshots to help explain your problem.
|
26
|
+
|
27
|
+
**Desktop (please complete the following information):**
|
28
|
+
|
29
|
+
- OS: [e.g. iOS]
|
30
|
+
- Browser [e.g. chrome, safari]
|
31
|
+
- Version [e.g. 22]
|
32
|
+
|
33
|
+
**Additional context**
|
34
|
+
Add any other context about the problem here.
|