simplecov-material 0.2.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.
Files changed (58) hide show
  1. checksums.yaml +7 -0
  2. data/.circleci/config.yml +286 -0
  3. data/.circleci/setup-rubygems.sh +3 -0
  4. data/.codeclimate.json +86 -0
  5. data/.eslintignore +1 -0
  6. data/.eslintrc.yml +25 -0
  7. data/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
  8. data/.github/ISSUE_TEMPLATE/feature-request.md +20 -0
  9. data/.github/ISSUE_TEMPLATE/question.md +10 -0
  10. data/.github/PULL_REQUEST_TEMPLATE.md +32 -0
  11. data/.gitignore +12 -0
  12. data/.rubocop.yml +884 -0
  13. data/.stylelintignore +1 -0
  14. data/.stylelintrc +48 -0
  15. data/CHANGELOG.md +13 -0
  16. data/CODE_OF_CONDUCT.md +74 -0
  17. data/CONTRIBUTING.md +132 -0
  18. data/Gemfile +19 -0
  19. data/LICENSE +21 -0
  20. data/README.md +84 -0
  21. data/Rakefile +12 -0
  22. data/bin/console +12 -0
  23. data/bin/publish +82 -0
  24. data/bin/setup +6 -0
  25. data/dist/app.js +8 -0
  26. data/dist/app.scss +11 -0
  27. data/dist/scripts/dialog.js +8 -0
  28. data/dist/scripts/forms.js +13 -0
  29. data/dist/scripts/list.js +8 -0
  30. data/dist/scripts/navigation.js +14 -0
  31. data/dist/scripts/ripple.js +18 -0
  32. data/dist/scripts/table.js +18 -0
  33. data/dist/scripts/timeago.js +3 -0
  34. data/dist/scripts/topbar.js +5 -0
  35. data/dist/styles/dialog.scss +191 -0
  36. data/dist/styles/main.scss +141 -0
  37. data/dist/styles/table.scss +136 -0
  38. data/lib/simplecov-material.rb +123 -0
  39. data/lib/simplecov-material/version.rb +9 -0
  40. data/package.json +66 -0
  41. data/public/application.css +11083 -0
  42. data/public/application.js +936 -0
  43. data/public/fonts/0509ab09c1b0d2200a4135803c91d6ce.woff2 +0 -0
  44. data/public/fonts/29b882f018fa6fe75fd338aaae6235b8.woff +0 -0
  45. data/public/fonts/96c476804d7a788cc1c05351b287ee41.eot +0 -0
  46. data/public/fonts/da4ea5cdfca6b3baab285741f5ccb59f.ttf +0 -0
  47. data/simplecov-material.gemspec +32 -0
  48. data/test/fixtures/app/controllers/sample_controller.rb +12 -0
  49. data/test/fixtures/app/models/user.rb +12 -0
  50. data/test/fixtures/sample.rb +12 -0
  51. data/test/simplecov-material/simplecov_material_test.rb +40 -0
  52. data/test/test_helper.rb +17 -0
  53. data/views/dialog.erb +51 -0
  54. data/views/group_page.erb +110 -0
  55. data/views/main.erb +90 -0
  56. data/webpack.config.js +81 -0
  57. data/yarn.lock +6973 -0
  58. metadata +127 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 7e8cffeb606f27da998141ff41e141314653f22cd740d38f587355b191890b5b
4
+ data.tar.gz: c073d8f83923399fbe6d3c136d27a494e24e5b7bd95d6544657e397b7af6a347
5
+ SHA512:
6
+ metadata.gz: 4cd1ff7b37a0b0d70a44009a1511e191ec25e0ad0e36d0b44c908c371f7b8b378d58ea724b51316f7eb739eb7a9fa616b8630aa4d40db5a90330b9e57b6cd417
7
+ data.tar.gz: 6e7a3583fce63bbbe6dc1c3c4296ddd3057cb444319db46ae7f0ff093f3885527928b7aa90e7ae1a7346ced6e1890574df21a1a97abb86267f94657f1f746d76
@@ -0,0 +1,286 @@
1
+ version: 2
2
+
3
+ node_version:
4
+ - &node_version
5
+ working_directory: ~/simplecov-material
6
+ docker:
7
+ - image: circleci/node:latest
8
+
9
+ ruby_versions:
10
+ - &ruby-2-6
11
+ working_directory: ~/simplecov-material
12
+ docker:
13
+ - image: circleci/ruby:2.6.3
14
+ environment:
15
+ BUNDLE_JOBS: 3
16
+ BUNDLE_RETRY: 3
17
+ RAILS_ENV: test
18
+
19
+ - &ruby-2-5
20
+ working_directory: ~/simplecov-material
21
+ docker:
22
+ - image: circleci/ruby:2.5.5
23
+ environment:
24
+ BUNDLE_JOBS: 3
25
+ BUNDLE_RETRY: 3
26
+ RAILS_ENV: test
27
+
28
+ - &ruby-2-4
29
+ working_directory: ~/simplecov-material
30
+ docker:
31
+ - image: circleci/ruby:2.4.6
32
+ environment:
33
+ BUNDLE_JOBS: 3
34
+ BUNDLE_RETRY: 3
35
+ RAILS_ENV: test
36
+
37
+ - &ruby-2-3
38
+ working_directory: ~/simplecov-material
39
+ docker:
40
+ - image: circleci/ruby:2.3.7
41
+ environment:
42
+ BUNDLE_JOBS: 3
43
+ BUNDLE_RETRY: 3
44
+ RAILS_ENV: test
45
+
46
+ build_steps:
47
+ - &install_yarn
48
+ run:
49
+ name: Update Yarn to Latest
50
+ command: sudo npm install -g yarn
51
+
52
+ - &yarn_restore_cache
53
+ restore_cache:
54
+ keys:
55
+ - chris-pezza-yarn{{ checksum "yarn.lock" }}
56
+ - chris-pezza-yarn
57
+
58
+ - &yarn_install
59
+ run:
60
+ name: Yarn Install
61
+ command: yarn install --frozen-lockfile
62
+
63
+ - &yarn_save_cache
64
+ save_cache:
65
+ key: chris-pezza-yarn{{ checksum "yarn.lock" }}
66
+ paths:
67
+ - ~/.cache/yarn
68
+
69
+ - &build_output
70
+ run:
71
+ name: Build Public files
72
+ command: yarn build
73
+
74
+ - &bundle_install
75
+ run:
76
+ name: Bundle Install
77
+ command: bundle check || bundle install
78
+
79
+ - &setup_code_climate
80
+ run:
81
+ name: Setup Code Climate test-reporter
82
+ command: |
83
+ curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
84
+ chmod +x ./cc-test-reporter
85
+
86
+ - &run_test_cc
87
+ run:
88
+ name: Run Tests
89
+ command: |
90
+ ./cc-test-reporter before-build
91
+ bundle exec rake test
92
+ ./cc-test-reporter after-build
93
+ when: always
94
+
95
+ - &run_test
96
+ run:
97
+ name: Run Tests
98
+ command: bundle exec rake test
99
+ when: always
100
+
101
+ - &store_coverage
102
+ # collect reports
103
+ store_artifacts:
104
+ path: coverage
105
+ destination: coverage
106
+
107
+ - &store_public
108
+ # collect public
109
+ store_artifacts:
110
+ path: public
111
+ destination: public
112
+
113
+ - &store_test_results
114
+ store_test_results:
115
+ path: test/reports
116
+
117
+ - &register_ruby_gems
118
+ run:
119
+ name: Setup Rubygems
120
+ command: bash .circleci/setup-rubygems.sh
121
+
122
+ - &publish_gem_major
123
+ run:
124
+ name: Publish Gem to RubyGems and Github
125
+ command: ./bin/publish major
126
+
127
+ - &publish_gem_minor
128
+ run:
129
+ name: Publish Gem to RubyGems and Github
130
+ command: ./bin/publish minor
131
+
132
+ - &publish_gem_patch
133
+ run:
134
+ name: Publish Gem to RubyGems and Github
135
+ command: ./bin/publish patch
136
+
137
+ jobs:
138
+ build:
139
+ <<: *node_version
140
+ steps:
141
+ - checkout
142
+ - *install_yarn
143
+ - *yarn_restore_cache
144
+ - *yarn_install
145
+ - *yarn_save_cache
146
+ - *build_output
147
+ - *store_public
148
+
149
+ test-ruby-2-6:
150
+ <<: *ruby-2-6
151
+ steps:
152
+ - checkout
153
+ - *bundle_install
154
+ - *run_test
155
+ - *store_coverage
156
+ - *store_test_results
157
+
158
+ test-ruby-2-5:
159
+ <<: *ruby-2-5
160
+ steps:
161
+ - checkout
162
+ - *bundle_install
163
+ - *run_test
164
+ - *store_coverage
165
+ - *store_test_results
166
+
167
+ test-ruby-2-4:
168
+ <<: *ruby-2-4
169
+ steps:
170
+ - checkout
171
+ - *bundle_install
172
+ - *run_test
173
+ - *store_coverage
174
+ - *store_test_results
175
+
176
+ test-ruby-2-3:
177
+ <<: *ruby-2-3
178
+ steps:
179
+ - checkout
180
+ - *bundle_install
181
+ - *run_test
182
+ - *store_coverage
183
+ - *store_test_results
184
+
185
+ test:
186
+ <<: *ruby-2-6
187
+ steps:
188
+ - checkout
189
+ - *bundle_install
190
+ - *setup_code_climate
191
+ - *run_test_cc
192
+ - *store_coverage
193
+ - *store_test_results
194
+
195
+ publish_major:
196
+ <<: *ruby-2-6
197
+ steps:
198
+ - checkout
199
+ - *bundle_install
200
+ - *register_ruby_gems
201
+ - *publish_gem_major
202
+
203
+ publish_minor:
204
+ <<: *ruby-2-6
205
+ steps:
206
+ - checkout
207
+ - *bundle_install
208
+ - *register_ruby_gems
209
+ - *publish_gem_minor
210
+
211
+ publish_patch:
212
+ <<: *ruby-2-6
213
+ steps:
214
+ - checkout
215
+ - *bundle_install
216
+ - *register_ruby_gems
217
+ - *publish_gem_patch
218
+
219
+ workflows:
220
+ version: 2
221
+ build-test-publish:
222
+ jobs:
223
+ - build
224
+ - test-ruby-2-6:
225
+ requires:
226
+ - build
227
+ - test-ruby-2-5:
228
+ requires:
229
+ - build
230
+ - test-ruby-2-4:
231
+ requires:
232
+ - build
233
+ - test-ruby-2-3:
234
+ requires:
235
+ - build
236
+ - test:
237
+ requires:
238
+ - test-ruby-2-6
239
+ - test-ruby-2-5
240
+ - test-ruby-2-4
241
+ - test-ruby-2-3
242
+ - major:
243
+ type: approval
244
+ requires:
245
+ - test
246
+ filters:
247
+ branches:
248
+ only:
249
+ - master
250
+ - minor:
251
+ type: approval
252
+ requires:
253
+ - test
254
+ filters:
255
+ branches:
256
+ only:
257
+ - master
258
+ - patch:
259
+ type: approval
260
+ requires:
261
+ - test
262
+ filters:
263
+ branches:
264
+ only:
265
+ - master
266
+ - publish_major:
267
+ requires:
268
+ - major
269
+ filters:
270
+ branches:
271
+ only:
272
+ - master
273
+ - publish_minor:
274
+ requires:
275
+ - minor
276
+ filters:
277
+ branches:
278
+ only:
279
+ - master
280
+ - publish_patch:
281
+ requires:
282
+ - patch
283
+ filters:
284
+ branches:
285
+ only:
286
+ - master
@@ -0,0 +1,3 @@
1
+ mkdir ~/.gem
2
+ echo -e "---\r\n:rubygems_api_key: $RUBYGEMS_API_KEY" > ~/.gem/credentials
3
+ chmod 0600 /home/circleci/.gem/credentials
@@ -0,0 +1,86 @@
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
+ "eslint": {
71
+ "enabled": true,
72
+ "channel": "eslint-5",
73
+ "config": {
74
+ "config": "./.eslintrc"
75
+ }
76
+ },
77
+ "stylelint": {
78
+ "enabled": true
79
+ }
80
+ },
81
+ "exclude_patterns": [
82
+ "**/public/",
83
+ "**/node_modules/",
84
+ "**/*.d.ts"
85
+ ]
86
+ }
@@ -0,0 +1 @@
1
+ node_modules/*
@@ -0,0 +1,25 @@
1
+ extends: google
2
+ globals:
3
+ goog: false
4
+ env:
5
+ browser: true
6
+ parserOptions:
7
+ ecmaVersion: 2017 # Enable async/await support in Node scripts
8
+ sourceType: module
9
+ rules:
10
+ indent: [error, 2]
11
+ max-len: [error, 120]
12
+ quotes: [error, single, {"avoidEscape": true}]
13
+ no-var: off
14
+ new-cap: off
15
+ curly: error
16
+ eol-last: [error, "always"]
17
+ no-floating-decimal: error
18
+ no-unused-vars:
19
+ - error
20
+ - varsIgnorePattern: ^(?:(?:MDC(?:(?:[A-Z][a-z0-9]+)+)Adapter)|(?:(?:(?:[A-Z][a-z0-9]+)+)Type))$
21
+
22
+ require-jsdoc: off
23
+ valid-jsdoc: off
24
+
25
+ prefer-const: error
@@ -0,0 +1,38 @@
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
+ 1. Go to '...'
16
+ 2. Click on '....'
17
+ 3. Scroll down to '....'
18
+ 4. See error
19
+
20
+ **Expected behavior**
21
+ A clear and concise description of what you expected to happen.
22
+
23
+ **Screenshots**
24
+ If applicable, add screenshots to help explain your problem.
25
+
26
+ **Desktop (please complete the following information):**
27
+ - OS: [e.g. iOS]
28
+ - Browser [e.g. chrome, safari]
29
+ - Version [e.g. 22]
30
+
31
+ **Smartphone (please complete the following information):**
32
+ - Device: [e.g. iPhone6]
33
+ - OS: [e.g. iOS8.1]
34
+ - Browser [e.g. stock browser, safari]
35
+ - Version [e.g. 22]
36
+
37
+ **Additional context**
38
+ Add any other context about the problem here.