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.
- checksums.yaml +7 -0
- data/.circleci/config.yml +286 -0
- data/.circleci/setup-rubygems.sh +3 -0
- data/.codeclimate.json +86 -0
- data/.eslintignore +1 -0
- data/.eslintrc.yml +25 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
- data/.github/ISSUE_TEMPLATE/feature-request.md +20 -0
- data/.github/ISSUE_TEMPLATE/question.md +10 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +32 -0
- data/.gitignore +12 -0
- data/.rubocop.yml +884 -0
- data/.stylelintignore +1 -0
- data/.stylelintrc +48 -0
- data/CHANGELOG.md +13 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/CONTRIBUTING.md +132 -0
- data/Gemfile +19 -0
- data/LICENSE +21 -0
- data/README.md +84 -0
- data/Rakefile +12 -0
- data/bin/console +12 -0
- data/bin/publish +82 -0
- data/bin/setup +6 -0
- data/dist/app.js +8 -0
- data/dist/app.scss +11 -0
- data/dist/scripts/dialog.js +8 -0
- data/dist/scripts/forms.js +13 -0
- data/dist/scripts/list.js +8 -0
- data/dist/scripts/navigation.js +14 -0
- data/dist/scripts/ripple.js +18 -0
- data/dist/scripts/table.js +18 -0
- data/dist/scripts/timeago.js +3 -0
- data/dist/scripts/topbar.js +5 -0
- data/dist/styles/dialog.scss +191 -0
- data/dist/styles/main.scss +141 -0
- data/dist/styles/table.scss +136 -0
- data/lib/simplecov-material.rb +123 -0
- data/lib/simplecov-material/version.rb +9 -0
- data/package.json +66 -0
- data/public/application.css +11083 -0
- data/public/application.js +936 -0
- data/public/fonts/0509ab09c1b0d2200a4135803c91d6ce.woff2 +0 -0
- data/public/fonts/29b882f018fa6fe75fd338aaae6235b8.woff +0 -0
- data/public/fonts/96c476804d7a788cc1c05351b287ee41.eot +0 -0
- data/public/fonts/da4ea5cdfca6b3baab285741f5ccb59f.ttf +0 -0
- data/simplecov-material.gemspec +32 -0
- data/test/fixtures/app/controllers/sample_controller.rb +12 -0
- data/test/fixtures/app/models/user.rb +12 -0
- data/test/fixtures/sample.rb +12 -0
- data/test/simplecov-material/simplecov_material_test.rb +40 -0
- data/test/test_helper.rb +17 -0
- data/views/dialog.erb +51 -0
- data/views/group_page.erb +110 -0
- data/views/main.erb +90 -0
- data/webpack.config.js +81 -0
- data/yarn.lock +6973 -0
- metadata +127 -0
data/.stylelintignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
/public/
|
data/.stylelintrc
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
{
|
2
|
+
"extends": "stylelint-config-standard",
|
3
|
+
"plugins": [
|
4
|
+
"stylelint-scss",
|
5
|
+
"stylelint-order"
|
6
|
+
],
|
7
|
+
"rules": {
|
8
|
+
"scss/at-else-closing-brace-space-after": "never-intermediate",
|
9
|
+
"scss/at-else-empty-line-before": "never",
|
10
|
+
"scss/dollar-variable-colon-space-after": "always",
|
11
|
+
"scss/dollar-variable-colon-space-before": "never",
|
12
|
+
"scss/dollar-variable-empty-line-before": "never",
|
13
|
+
"scss/double-slash-comment-empty-line-before": "never",
|
14
|
+
"scss/double-slash-comment-inline": "never",
|
15
|
+
"scss/double-slash-comment-whitespace-inside": "always",
|
16
|
+
"scss/declaration-nested-properties": "always",
|
17
|
+
"scss/media-feature-value-dollar-variable": "never",
|
18
|
+
"scss/selector-no-redundant-nesting-selector": true,
|
19
|
+
"order/properties-alphabetical-order": true,
|
20
|
+
"indentation": 2,
|
21
|
+
"string-quotes": "double",
|
22
|
+
"no-duplicate-selectors": true,
|
23
|
+
"color-hex-case": "upper",
|
24
|
+
"color-hex-length": "short",
|
25
|
+
"color-named": "never",
|
26
|
+
"selector-combinator-space-after": "always",
|
27
|
+
"selector-attribute-quotes": "always",
|
28
|
+
"selector-attribute-operator-space-before": "always",
|
29
|
+
"selector-attribute-operator-space-after": "always",
|
30
|
+
"selector-attribute-brackets-space-inside": "never",
|
31
|
+
"declaration-block-trailing-semicolon": "always",
|
32
|
+
"declaration-colon-space-before": "never",
|
33
|
+
"declaration-colon-space-after": "always-single-line",
|
34
|
+
"number-leading-zero": "never",
|
35
|
+
"function-url-quotes": "always",
|
36
|
+
"font-family-name-quotes": "always-where-recommended",
|
37
|
+
"comment-whitespace-inside": "always",
|
38
|
+
"comment-empty-line-before": "always",
|
39
|
+
"rule-empty-line-before": "always",
|
40
|
+
"selector-pseudo-element-colon-notation": "double",
|
41
|
+
"selector-pseudo-class-parentheses-space-inside": "never",
|
42
|
+
"media-feature-range-operator-space-before": "always",
|
43
|
+
"media-feature-range-operator-space-after": "always",
|
44
|
+
"media-feature-parentheses-space-inside": "never",
|
45
|
+
"media-feature-colon-space-before": "never",
|
46
|
+
"media-feature-colon-space-after": "always"
|
47
|
+
}
|
48
|
+
}
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## Version [0.1.0](https://github.com/chiefpansancolt/devise_materialize/releases/tag/0.1.0)
|
4
|
+
|
5
|
+
Initial Release
|
6
|
+
|
7
|
+
### Features Available
|
8
|
+
|
9
|
+
- Tabular view for Groupings
|
10
|
+
- File name searches
|
11
|
+
- Modal view of File Coverage from Click of Row
|
12
|
+
- Tile views for Stats in a group
|
13
|
+
- Clean Title of project
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at chiefpansancolt@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,132 @@
|
|
1
|
+
# Contributing to Simplecov Material
|
2
|
+
|
3
|
+
First and for most thank you for taking the time to look to contribute to
|
4
|
+
Simplecov Material, any help is apprciated to make Simplecov Material better
|
5
|
+
and stronger!
|
6
|
+
|
7
|
+
## Table of Contents
|
8
|
+
|
9
|
+
- [Code of Conduct](#code-of-conduct)
|
10
|
+
- [How can I Contribute](#how-can-i-contribute)
|
11
|
+
- [Reporting Bugs](#reporting-bugs)
|
12
|
+
- [Suggesting Enhancements](#suggesting-enhancements)
|
13
|
+
- [Code Contributions](#code-contributions)
|
14
|
+
- [Pull Requests](#pull-requests)
|
15
|
+
- [Additional Notes](#additional-notes)
|
16
|
+
- [Issue and Pull Request Labels](#issue-and-pull-request-labels)
|
17
|
+
|
18
|
+
## Code of Conduct
|
19
|
+
|
20
|
+
This project and everyone participating in it is governed by the [Simplecov
|
21
|
+
Material Code of Conduct](https://github.com/chiefpansancolt/simplecov-material/blob/master/CODE_OF_CONDUCT.md).
|
22
|
+
By participating, you are expected to uphold this code. Please report
|
23
|
+
unacceptable behavior to chiefpansancolt@gmail.com.
|
24
|
+
|
25
|
+
## How can I Contribute
|
26
|
+
|
27
|
+
### Reporting Bugs
|
28
|
+
|
29
|
+
#### Before submitting a bug report
|
30
|
+
|
31
|
+
This section guides you through submitting a bug report for Simplecov Material.
|
32
|
+
Following these guidelines helps maintainers and the community understand your
|
33
|
+
report 📝, reproduce the behavior 💻 💻, and find related reports 🔎.
|
34
|
+
|
35
|
+
Before creating bug reports, please check [this list](https://github.com/chiefpansancolt/simplecov-material/issues?q=is%3Aopen+is%3Aissue+label%3Abug)
|
36
|
+
as you might find out that you don't need to create one. When you are creating
|
37
|
+
a bug report, please include as many details as possible. Fill out the
|
38
|
+
[required template](https://github.com/chiefpansancolt/simplecov-material/blob/master/.github/ISSUE_TEMPLATE/bug_report.md)
|
39
|
+
, the information it asks for helps us resolve issues faster.
|
40
|
+
|
41
|
+
> Note: If you find a Closed issue that seems like it is the same thing that you're experiencing, open a new issue and include a link to the original issue in the body of your new one.
|
42
|
+
|
43
|
+
## Suggesting Enhancements
|
44
|
+
|
45
|
+
This section guides you through submitting an enhancement suggestion for
|
46
|
+
Simplecov Material, including completely new features and minor improvements to
|
47
|
+
existing functionality. Following these guidelines helps maintainers and the
|
48
|
+
community understand your suggestion 📝 and find related suggestions 🔎.
|
49
|
+
|
50
|
+
Before creating enhancement suggestions, please check [this list](https://github.com/chiefpansancolt/simplecov-material/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement)
|
51
|
+
as you might find out that you don't need to create one. When you are creating
|
52
|
+
an enhancement suggestion, please include as many details as possible. Fill in
|
53
|
+
the [template](https://github.com/chiefpansancolt/simplecov-material/blob/master/.github/ISSUE_TEMPLATE/feature-request.md)
|
54
|
+
, including the steps that you imagine you would take if the feature you're
|
55
|
+
requesting existed.
|
56
|
+
|
57
|
+
## Code Contributions
|
58
|
+
|
59
|
+
Looking to contribute to Simplecov? You can look for any tickets tagged with `help-wanted`
|
60
|
+
|
61
|
+
- [Help wanted issues](https://github.com/chiefpansancolt/simplecov-material/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22) - issues which could use help form the community to help complete
|
62
|
+
|
63
|
+
## Pull Requests
|
64
|
+
|
65
|
+
The process described here has several goals:
|
66
|
+
|
67
|
+
- Maintain Simplecov Material's quality
|
68
|
+
- Fix problems that are important to users
|
69
|
+
- Engage the community in working toward the best possible Simplecov Material Interaction
|
70
|
+
- Enable a sustainable system for Simplecov Material's maintainers to review contributions
|
71
|
+
|
72
|
+
Please follow these steps to have your contribution considered by the maintainers:
|
73
|
+
|
74
|
+
- Follow all instructions in [the template](https://github.com/chiefpansancolt/simplecov-material/blob/master/.github/PULL_REQUEST_TEMPLATE.md)
|
75
|
+
- After you submit your pull request, verify that all status checks are passing<details><summary>What if the status checks are failing?</summary>If a status check is failing, and you believe that the failure is unrelated to your change, please leave a comment on the pull request explaining why you believe the failure is unrelated. A maintainer will re-run the status check for you. If we conclude that the failure was a false positive, then we will open an issue to track that problem with our status check suite.</details>
|
76
|
+
|
77
|
+
While the prerequisites above must be satisfied prior to having your pull request reviewed, the reviewer(s) may ask you to complete additional design work, tests, or other changes before your pull request can be ultimately accepted.
|
78
|
+
|
79
|
+
## Additional Notes
|
80
|
+
|
81
|
+
### Issue and Pull Request Labels
|
82
|
+
|
83
|
+
This section lists the labels we use to help us track and manage issues and pull requests.
|
84
|
+
|
85
|
+
[GitHub search](https://help.github.com/articles/searching-issues/) makes it easy to use labels for finding groups of issues or pull requests you're interested in. For example, you might be interested in opening an Issue or perhaps opening a pull request. To help you find issues and pull requests, each label is listed with search links for finding open items with that label in Simplecov Material. We encourage you to read about [other search filters](https://help.github.com/articles/searching-issues/) which will help you write more focused queries.
|
86
|
+
|
87
|
+
#### Type of Issue and Issue State
|
88
|
+
|
89
|
+
| Label Name | Repo | Description |
|
90
|
+
| --- | --- | --- |
|
91
|
+
| `enhancement` | [search][search-simplecov-material-label-enhancement] | Feature requests. |
|
92
|
+
| `bug` | [search][search-simplecov-material-label-bug] | Confirmed bugs or reports that are very likely to be bugs. |
|
93
|
+
| `question` | [search][search-simplecov-material-label-question] | Questions more than bug reports or feature requests (e.g. how do I do X). |
|
94
|
+
| `feedback` | [search][search-simplecov-material-label-feedback] | General feedback more than bug reports or feature requests. |
|
95
|
+
| `help-wanted` | [search][search-simplecov-material-label-help-wanted] | The Simplecov Material team would appreciate help from the community in resolving these issues. |
|
96
|
+
| `more-information-needed` | [search][search-simplecov-material-label-more-information-needed] | More information needs to be collected about these problems or feature requests (e.g. steps to reproduce). |
|
97
|
+
| `needs-reproduction` | [search][search-simplecov-material-label-needs-reproduction] | Likely bugs, but haven't been reliably reproduced. |
|
98
|
+
| `blocked` | [search][search-simplecov-material-label-blocked] | Issues blocked on other issues. |
|
99
|
+
| `duplicate` | [search][search-simplecov-material-label-duplicate] | Issues which are duplicates of other issues, i.e. they have been reported before. |
|
100
|
+
| `wontfix` | [search][search-simplecov-material-label-wontfix] | The Simplecov Material team has decided not to fix these issues for now, either because they're working as intended or for some other reason. |
|
101
|
+
| `invalid` | [search][search-simplecov-material-label-invalid] | Issues which aren't valid (e.g. user errors). |
|
102
|
+
| `new` | [search][search-simplecov-material-label-new] | Tagged on Issues that are new and have not been reviewed. |
|
103
|
+
| `tech debt` | [search][search-simplecov-material-label-tech-debt] | Items to clean up / refactor / restructure |
|
104
|
+
|
105
|
+
#### Pull Request Labels
|
106
|
+
|
107
|
+
| Label Name | Repo | Description
|
108
|
+
| --- | --- | --- |
|
109
|
+
| `work-in-progress` | [search][search-simplecov-material-label-work-in-progress] | Pull Requests which are still being worked on, more changes will follow. |
|
110
|
+
| `needs-review` | [search][search-simplecov-material-label-needs-review] | Pull Requests which need code review, and approval from maintainers. |
|
111
|
+
| `under-review` | [search][search-simplecov-material-label-under-review] | Pull Requests being reviewed by maintainers. |
|
112
|
+
| `requires-changes` | [search][search-simplecov-material-label-requires-changes] | Pull Requests which need to be updated based on review comments and then reviewed again. |
|
113
|
+
| `needs-testing` | [search][search-simplecov-material-label-needs-testing] | Pull Requests which need manual testing. |
|
114
|
+
|
115
|
+
[search-simplecov-material-label-enhancement]: https://github.com/chiefpansancolt/simplecov-material/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement
|
116
|
+
[search-simplecov-material-label-bug]: https://github.com/chiefpansancolt/simplecov-material/issues?q=is%3Aopen+is%3Aissue+label%3Abug
|
117
|
+
[search-simplecov-material-label-question]: https://github.com/chiefpansancolt/simplecov-material/issues?q=is%3Aopen+is%3Aissue+label%3Aquestion
|
118
|
+
[search-simplecov-material-label-feedback]: https://github.com/chiefpansancolt/simplecov-material/issues?q=is%3Aopen+is%3Aissue+label%3Afeedback
|
119
|
+
[search-simplecov-material-label-help-wanted]: https://github.com/chiefpansancolt/simplecov-material/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22
|
120
|
+
[search-simplecov-material-label-more-information-needed]: https://github.com/chiefpansancolt/simplecov-material/issues?q=is%3Aopen+is%3Aissue+label%3A%22more+information+needed%22
|
121
|
+
[search-simplecov-material-label-needs-reproduction]: https://github.com/chiefpansancolt/simplecov-material/issues?q=is%3Aopen+is%3Aissue+label%3A%22needs+reproduction%22
|
122
|
+
[search-simplecov-material-label-blocked]: https://github.com/chiefpansancolt/simplecov-material/issues?q=is%3Aopen+is%3Aissue+label%3Ablocked
|
123
|
+
[search-simplecov-material-label-duplicate]: https://github.com/chiefpansancolt/simplecov-material/issues?q=is%3Aopen+is%3Aissue+label%3Aduplicate
|
124
|
+
[search-simplecov-material-label-wontfix]: https://github.com/chiefpansancolt/simplecov-material/issues?q=is%3Aopen+is%3Aissue+label%3Awontfix
|
125
|
+
[search-simplecov-material-label-invalid]: https://github.com/chiefpansancolt/simplecov-material/issues?q=is%3Aopen+is%3Aissue+label%3Ainvalid
|
126
|
+
[search-simplecov-material-label-new]: https://github.com/chiefpansancolt/simplecov-material/issues?q=is%3Aopen+is%3Aissue+label%3Anew
|
127
|
+
[search-simplecov-material-label-tech-debt]: https://github.com/chiefpansancolt/simplecov-material/issues?q=is%3Aopen+is%3Aissue+label%3A"tech+debt"
|
128
|
+
[search-simplecov-material-label-work-in-progress]: https://github.com/chiefpansancolt/simplecov-material/issues?q=is%3Aopen+is%3Aissue+label%3A"work+in+progress"
|
129
|
+
[search-simplecov-material-label-needs-review]: https://github.com/chiefpansancolt/simplecov-material/issues?q=is%3Aopen+is%3Aissue+label%3A"needs+review"
|
130
|
+
[search-simplecov-material-label-under-review]: https://github.com/chiefpansancolt/simplecov-material/issues?q=is%3Aopen+is%3Aissue+label%3A"under+review"
|
131
|
+
[search-simplecov-material-label-requires-changes]: https://github.com/chiefpansancolt/simplecov-material/issues?q=is%3Aopen+is%3Aissue+label%3A"requires+changes"
|
132
|
+
[search-simplecov-material-label-needs-testing]: https://github.com/chiefpansancolt/simplecov-material/issues?q=is%3Aopen+is%3Aissue+label%3A"needs+testing"
|
data/Gemfile
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
|
6
|
+
|
7
|
+
gemspec
|
8
|
+
|
9
|
+
gem "json"
|
10
|
+
gem "minitest"
|
11
|
+
gem "minitest-ci"
|
12
|
+
gem "mocha"
|
13
|
+
gem "pry"
|
14
|
+
gem "rake"
|
15
|
+
|
16
|
+
group :development do
|
17
|
+
gem "rubocop"
|
18
|
+
gem "rubocop-performance"
|
19
|
+
end
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2019 Christopher Pezza
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
# Simplecov Material
|
2
|
+
|
3
|
+
[](https://codeclimate.com/github/chiefpansancolt/simplecov-material/maintainability)
|
4
|
+
[](https://codeclimate.com/github/chiefpansancolt/simplecov-material/test_coverage)
|
5
|
+
[](https://circleci.com/gh/chiefpansancolt/simplecov-material)
|
6
|
+
|
7
|
+
> Note: To learn more about SimpleCov, check out the main repo at https://github.com/colszowka/simplecov
|
8
|
+
|
9
|
+
Generates a HTML Material Design report generated from Simplecov using ruby 2.2 or greater.
|
10
|
+
|
11
|
+
## Table of Contents
|
12
|
+
|
13
|
+
- [Installing](#installing)
|
14
|
+
- [Usage](#usage)
|
15
|
+
- [Change Log](#change-log)
|
16
|
+
- [Contributing](#contributing)
|
17
|
+
- [Development](#development)
|
18
|
+
- [License](#license)
|
19
|
+
|
20
|
+
|
21
|
+
## Installing
|
22
|
+
|
23
|
+
Add the below to your Gemfile to make Simplecov Material available as a formatter for your application
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
# ./Gemfile
|
27
|
+
|
28
|
+
group :test do
|
29
|
+
gem "simplecov"
|
30
|
+
gem "simplecov-material"
|
31
|
+
end
|
32
|
+
```
|
33
|
+
|
34
|
+
## Usage
|
35
|
+
|
36
|
+
To use Simplecov Material you will need to ensure your Formatter is set to use Simplecov Material.
|
37
|
+
|
38
|
+
In your helper ensure your line about formatter usage is one of the following.
|
39
|
+
|
40
|
+
**Single Formatter Usage:**
|
41
|
+
|
42
|
+
```ruby
|
43
|
+
SimpleCov.formatter = SimpleCov::Formatter::MaterialFormatter
|
44
|
+
```
|
45
|
+
|
46
|
+
**Multi Formatter Usage:**
|
47
|
+
|
48
|
+
```ruby
|
49
|
+
SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new([
|
50
|
+
SimpleCov::Formatter::HTMLFormatter,
|
51
|
+
SimpleCov::Formatter::MaterialFormatter
|
52
|
+
])
|
53
|
+
```
|
54
|
+
|
55
|
+
## Change Log
|
56
|
+
|
57
|
+
Check out the [Change Log](https://github.com/chiefpansancolt/simplecov-material/blob/master/CHANGELOG.md) for new breaking changes/features/bug fixes per release of a new version.
|
58
|
+
|
59
|
+
## Contributing
|
60
|
+
|
61
|
+
Bug Reports, Feature Requests, and Pull Requests are welcome on GitHub at https://github.com/chiefpansancolt/simplecov-material. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](https://github.com/chiefpansancolt/simplecov-material/blob/master/CODE_OF_CONDUCT.md) code of conduct.
|
62
|
+
|
63
|
+
To see more about Contributing check out this [document](https://github.com/chiefpansancolt/simplecov-material/blob/master/CONTRIBUTING.md).
|
64
|
+
|
65
|
+
- Fork Repo and create new branch
|
66
|
+
- Once all is changed and committed create a pull request.
|
67
|
+
|
68
|
+
**Ensure all merge conflicts are fixed and CI is passing.**
|
69
|
+
|
70
|
+
## Development
|
71
|
+
|
72
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `yarn test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
73
|
+
|
74
|
+
When working with SCSS or JS ensure to run `yarn build` to compile all SCSS and JS to the public folder. This will ensure you have the latest CSS and JS used when testing locally.
|
75
|
+
|
76
|
+
_**NOTE: Do not commit any changes made in public folder from compiling as this will be performed by the owner before building of a release.**_
|
77
|
+
|
78
|
+
To test locally run `yarn test` and a webpage will open after tests are complete and you will be able to see the page.
|
79
|
+
|
80
|
+
To install this gem onto your local machine, run `yarn gem:build`. Gems will be built/release by Owner.
|
81
|
+
|
82
|
+
## License
|
83
|
+
|
84
|
+
Simplecov Material is available as open source under the terms of the [MIT License](https://github.com/chiefpansancolt/simplecov-material/blob/master/LICENSE).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require "bundler/setup"
|
5
|
+
require "simplecov-material"
|
6
|
+
|
7
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
+
# with your gem easier. You can also use a different console, if you like.
|
9
|
+
|
10
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
|
+
require "pry"
|
12
|
+
Pry.start
|
data/bin/publish
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require "pathname"
|
5
|
+
require "fileutils"
|
6
|
+
require "json"
|
7
|
+
|
8
|
+
# path to your application root.
|
9
|
+
APP_ROOT = Pathname.new File.expand_path("..", __dir__)
|
10
|
+
MASTER_CHECK = <<~MASTER_CHECK
|
11
|
+
if [ $(git symbolic-ref --short -q HEAD) != 'master' ];
|
12
|
+
then exit 1;
|
13
|
+
fi
|
14
|
+
MASTER_CHECK
|
15
|
+
VERSION_TYPES = %w(major minor patch).freeze
|
16
|
+
|
17
|
+
def system!(*args)
|
18
|
+
system(*args) || abort("\n== Command #{args} failed ==")
|
19
|
+
end
|
20
|
+
|
21
|
+
abort("\n== Version Type incorrect ==") unless VERSION_TYPES.include?(ARGV[0])
|
22
|
+
|
23
|
+
abort("\n== Not on master") unless system(MASTER_CHECK)
|
24
|
+
|
25
|
+
current_version =
|
26
|
+
JSON.parse(File.read("package.json"))["version"].split(".").map(&:to_i)
|
27
|
+
|
28
|
+
case ARGV[0]
|
29
|
+
when "major"
|
30
|
+
current_version[0] += 1
|
31
|
+
current_version[1] = 0
|
32
|
+
current_version[2] = 0
|
33
|
+
when "minor"
|
34
|
+
current_version[1] += 1
|
35
|
+
current_version[2] = 0
|
36
|
+
when "patch"
|
37
|
+
current_version[2] += 1
|
38
|
+
end
|
39
|
+
|
40
|
+
joined_version = current_version.join(".")
|
41
|
+
|
42
|
+
FileUtils.chdir APP_ROOT do # rubocop:disable BlockLength
|
43
|
+
contents = <<~FILE
|
44
|
+
# frozen_string_literal: true
|
45
|
+
|
46
|
+
module SimpleCov
|
47
|
+
module Formatter
|
48
|
+
class MaterialFormatter
|
49
|
+
VERSION = "#{joined_version}"
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
FILE
|
54
|
+
|
55
|
+
package = JSON.parse(File.read("package.json"))
|
56
|
+
package["version"] = joined_version.to_s
|
57
|
+
|
58
|
+
puts "== Updating version in Version file to #{joined_version} =="
|
59
|
+
File.write("lib/simplecov-material/version.rb", contents)
|
60
|
+
|
61
|
+
puts "== Updated version in package.json file to #{joined_version} =="
|
62
|
+
File.open("package.json", "w") do |f|
|
63
|
+
f.write(JSON.pretty_generate(package))
|
64
|
+
end
|
65
|
+
|
66
|
+
# system! "git add lib/simplecov-material/version.rb"
|
67
|
+
# system! "git add package.json"
|
68
|
+
#
|
69
|
+
# puts "== Committing updated files =="
|
70
|
+
# system! "git commit -m 'Version bump to #{joined_version}'"
|
71
|
+
# system! "git push"
|
72
|
+
|
73
|
+
puts "== Building gem =="
|
74
|
+
system! "yarn gem:build"
|
75
|
+
|
76
|
+
puts "== Publishing gem =="
|
77
|
+
built_gem_path = "pkg/simplecov-material-#{joined_version}.gem"
|
78
|
+
github_host = "https://rubygems.pkg.github.com/chiefpansancolt"
|
79
|
+
|
80
|
+
system! "gem push --key github --host #{github_host} #{built_gem_path}"
|
81
|
+
system! "gem push #{built_gem_path}"
|
82
|
+
end
|