devise_materialize 1.1.1 → 1.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 +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
data/CHANGELOG.md
CHANGED
@@ -1,25 +1,35 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
-
##
|
3
|
+
## [1.2.0](https://github.com/chiefpansancolt/devise_materialize/releases/tag/1.2.0)
|
4
4
|
|
5
|
-
|
6
|
-
|
5
|
+
### Features
|
6
|
+
|
7
|
+
- Update CI testing from 2.2-2.6 Ruby versions
|
8
|
+
|
9
|
+
### Bugs
|
7
10
|
|
8
|
-
|
9
|
-
- N/A
|
11
|
+
- Update Rails support upto 7 (#4) - Thanks @cgibsonmm for the assist!
|
10
12
|
|
13
|
+
## [v1.1.1](https://github.com/chiefpansancolt/devise_materialize/releases/tag/v1.1.1)
|
11
14
|
|
12
|
-
|
15
|
+
### Features
|
16
|
+
|
17
|
+
- Enable Circleci testing for 2.2, 2.3, 2.4, and 2.5
|
18
|
+
|
19
|
+
## [v1.1.0](https://github.com/chiefpansancolt/devise_materialize/releases/tag/v1.1.0)
|
20
|
+
|
21
|
+
### Features
|
13
22
|
|
14
|
-
#### Features
|
15
23
|
- Touch up Repo with various items (#2)
|
16
24
|
|
17
|
-
|
25
|
+
### Bugs
|
26
|
+
|
18
27
|
- Fix ERB markup (#1)
|
19
28
|
|
20
|
-
## v1.0.0
|
29
|
+
## [v1.0.0](https://github.com/chiefpansancolt/devise_materialize/releases/tag/v1.0.0)
|
30
|
+
|
31
|
+
### Features
|
21
32
|
|
22
|
-
#### Features
|
23
33
|
- Generate Materialize Views for Devise in multiple formats
|
24
34
|
|
25
35
|
Formats Supported:
|
data/CODE_OF_CONDUCT.md
CHANGED
@@ -22,14 +22,11 @@ include:
|
|
22
22
|
|
23
23
|
Examples of unacceptable behavior by participants include:
|
24
24
|
|
25
|
-
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
-
advances
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
|
27
26
|
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
27
|
* Public or private harassment
|
29
|
-
* Publishing others' private information, such as a physical or electronic
|
30
|
-
|
31
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
-
professional setting
|
28
|
+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
|
29
|
+
* Other conduct which could reasonably be considered inappropriate in a professional setting
|
33
30
|
|
34
31
|
## Our Responsibilities
|
35
32
|
|
@@ -55,7 +52,7 @@ further defined and clarified by project maintainers.
|
|
55
52
|
## Enforcement
|
56
53
|
|
57
54
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
-
reported by contacting the project team at
|
55
|
+
reported by contacting the project team at chiefpansancolt@gmail.com. All
|
59
56
|
complaints will be reviewed and investigated and will result in a response that
|
60
57
|
is deemed necessary and appropriate to the circumstances. The project team is
|
61
58
|
obligated to maintain confidentiality with regard to the reporter of an incident.
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,132 @@
|
|
1
|
+
# Contributing to Devise Materialize
|
2
|
+
|
3
|
+
First and for most thank you for taking the time to look to contribute to
|
4
|
+
Devise Materialize, any help is apprciated to make Devise Materialize 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/devise_materialize/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 Devise Materialize.
|
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/devise_materialize/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/devise_materialize/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
|
+
Devise Materialize, 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/devise_materialize/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/devise_materialize/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/devise_materialize/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 Devise Materialize's quality
|
68
|
+
- Fix problems that are important to users
|
69
|
+
- Engage the community in working toward the best possible Devise Materialize Interaction
|
70
|
+
- Enable a sustainable system for Devise Materialize'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/devise_materialize/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 Devise Materialize. 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-devise-materialize-label-enhancement] | Feature requests. |
|
92
|
+
| `bug` | [search][search-devise-materialize-label-bug] | Confirmed bugs or reports that are very likely to be bugs. |
|
93
|
+
| `question` | [search][search-devise-materialize-label-question] | Questions more than bug reports or feature requests (e.g. how do I do X). |
|
94
|
+
| `feedback` | [search][search-devise-materialize-label-feedback] | General feedback more than bug reports or feature requests. |
|
95
|
+
| `help-wanted` | [search][search-devise-materialize-label-help-wanted] | The Devise Materialize team would appreciate help from the community in resolving these issues. |
|
96
|
+
| `more-information-needed` | [search][search-devise-materialize-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-devise-materialize-label-needs-reproduction] | Likely bugs, but haven't been reliably reproduced. |
|
98
|
+
| `blocked` | [search][search-devise-materialize-label-blocked] | Issues blocked on other issues. |
|
99
|
+
| `duplicate` | [search][search-devise-materialize-label-duplicate] | Issues which are duplicates of other issues, i.e. they have been reported before. |
|
100
|
+
| `wontfix` | [search][search-devise-materialize-label-wontfix] | The Devise Materialize 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-devise-materialize-label-invalid] | Issues which aren't valid (e.g. user errors). |
|
102
|
+
| `new` | [search][search-devise-materialize-label-new] | Tagged on Issues that are new and have not been reviewed. |
|
103
|
+
| `tech debt` | [search][search-devise-materialize-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-devise-materialize-label-work-in-progress] | Pull Requests which are still being worked on, more changes will follow. |
|
110
|
+
| `needs-review` | [search][search-devise-materialize-label-needs-review] | Pull Requests which need code review, and approval from maintainers. |
|
111
|
+
| `under-review` | [search][search-devise-materialize-label-under-review] | Pull Requests being reviewed by maintainers. |
|
112
|
+
| `requires-changes` | [search][search-devise-materialize-label-requires-changes] | Pull Requests which need to be updated based on review comments and then reviewed again. |
|
113
|
+
| `needs-testing` | [search][search-devise-materialize-label-needs-testing] | Pull Requests which need manual testing. |
|
114
|
+
|
115
|
+
[search-devise-materialize-label-enhancement]: https://github.com/chiefpansancolt/devise_materialize/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement
|
116
|
+
[search-devise-materialize-label-bug]: https://github.com/chiefpansancolt/devise_materialize/issues?q=is%3Aopen+is%3Aissue+label%3Abug
|
117
|
+
[search-devise-materialize-label-question]: https://github.com/chiefpansancolt/devise_materialize/issues?q=is%3Aopen+is%3Aissue+label%3Aquestion
|
118
|
+
[search-devise-materialize-label-feedback]: https://github.com/chiefpansancolt/devise_materialize/issues?q=is%3Aopen+is%3Aissue+label%3Afeedback
|
119
|
+
[search-devise-materialize-label-help-wanted]: https://github.com/chiefpansancolt/devise_materialize/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22
|
120
|
+
[search-devise-materialize-label-more-information-needed]: https://github.com/chiefpansancolt/devise_materialize/issues?q=is%3Aopen+is%3Aissue+label%3A%22more+information+needed%22
|
121
|
+
[search-devise-materialize-label-needs-reproduction]: https://github.com/chiefpansancolt/devise_materialize/issues?q=is%3Aopen+is%3Aissue+label%3A%22needs+reproduction%22
|
122
|
+
[search-devise-materialize-label-blocked]: https://github.com/chiefpansancolt/devise_materialize/issues?q=is%3Aopen+is%3Aissue+label%3Ablocked
|
123
|
+
[search-devise-materialize-label-duplicate]: https://github.com/chiefpansancolt/devise_materialize/issues?q=is%3Aopen+is%3Aissue+label%3Aduplicate
|
124
|
+
[search-devise-materialize-label-wontfix]: https://github.com/chiefpansancolt/devise_materialize/issues?q=is%3Aopen+is%3Aissue+label%3Awontfix
|
125
|
+
[search-devise-materialize-label-invalid]: https://github.com/chiefpansancolt/devise_materialize/issues?q=is%3Aopen+is%3Aissue+label%3Ainvalid
|
126
|
+
[search-devise-materialize-label-new]: https://github.com/chiefpansancolt/devise_materialize/issues?q=is%3Aopen+is%3Aissue+label%3Anew
|
127
|
+
[search-devise-materialize-label-tech-debt]: https://github.com/chiefpansancolt/devise_materialize/issues?q=is%3Aopen+is%3Aissue+label%3A"tech+debt"
|
128
|
+
[search-devise-materialize-label-work-in-progress]: https://github.com/chiefpansancolt/devise_materialize/issues?q=is%3Aopen+is%3Aissue+label%3A"work+in+progress"
|
129
|
+
[search-devise-materialize-label-needs-review]: https://github.com/chiefpansancolt/devise_materialize/issues?q=is%3Aopen+is%3Aissue+label%3A"needs+review"
|
130
|
+
[search-devise-materialize-label-under-review]: https://github.com/chiefpansancolt/devise_materialize/issues?q=is%3Aopen+is%3Aissue+label%3A"under+review"
|
131
|
+
[search-devise-materialize-label-requires-changes]: https://github.com/chiefpansancolt/devise_materialize/issues?q=is%3Aopen+is%3Aissue+label%3A"requires+changes"
|
132
|
+
[search-devise-materialize-label-needs-testing]: https://github.com/chiefpansancolt/devise_materialize/issues?q=is%3Aopen+is%3Aissue+label%3A"needs+testing"
|
data/Gemfile
CHANGED
@@ -2,14 +2,19 @@
|
|
2
2
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
|
5
|
+
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
|
6
|
+
|
5
7
|
gemspec
|
6
8
|
|
9
|
+
gem "mdl"
|
7
10
|
gem "rails"
|
8
11
|
gem "rubocop"
|
9
|
-
gem "
|
12
|
+
gem "rubocop-performance"
|
10
13
|
gem "yard"
|
11
14
|
|
12
15
|
group :test do
|
13
|
-
gem "
|
16
|
+
gem "minitest"
|
14
17
|
gem "minitest-ci"
|
18
|
+
gem "simplecov"
|
19
|
+
gem "simplecov-material"
|
15
20
|
end
|
data/README.md
CHANGED
@@ -1,11 +1,9 @@
|
|
1
1
|
# Devise Materialize
|
2
2
|
|
3
|
-
[](https://rubygems.org/gems/devise_materialize)
|
8
|
-
|
3
|
+
[](https://circleci.com/gh/chiefpansancolt/devise_materialize)
|
4
|
+
[](https://codeclimate.com/github/chiefpansancolt/devise_materialize/maintainability)
|
5
|
+
[](https://codeclimate.com/github/chiefpansancolt/devise_materialize/test_coverage)
|
6
|
+
[](https://badge.fury.io/rb/devise_materialize)
|
9
7
|
|
10
8
|
Devise Materialize gem is here to generate you devise view in a materialize styled format with or w/o simple_form.
|
11
9
|
This gem is not intended to live forever in your gemfile. It must be in your gemfile to load the resources needed from the generator.
|
@@ -30,7 +28,7 @@ gem "slim"
|
|
30
28
|
# Required if using Simple Form
|
31
29
|
gem "simple_form"
|
32
30
|
|
33
|
-
gem "devise_materialize", "~>1.
|
31
|
+
gem "devise_materialize", "~>1.2.0"
|
34
32
|
```
|
35
33
|
|
36
34
|
## Usage
|
@@ -46,38 +44,42 @@ gem "devise_materialize", "~>1.1.1"
|
|
46
44
|
### Basic Usage
|
47
45
|
|
48
46
|
```bash
|
49
|
-
|
47
|
+
> rails g devise_materialize:install
|
50
48
|
```
|
49
|
+
|
51
50
|
This will generate the basic views of devise based on defaults
|
52
51
|
|
53
52
|
### Parameters Defined
|
54
53
|
|
55
|
-
If you plan to use simple form using this gem [simple_form_materialize](https://github.com/
|
54
|
+
If you plan to use simple form using this gem [simple_form_materialize](https://github.com/chiefpansancolt/simple_form_materialize) to install a config file with all wrappers defined as used in this gem.
|
56
55
|
|
57
56
|
```bash
|
58
|
-
|
57
|
+
> rails g devise_materialize:install Users --form-engine simple_form --view-engine haml
|
59
58
|
```
|
59
|
+
|
60
60
|
This will generate the views in simple form usage and HAML syntax
|
61
61
|
|
62
62
|
## Change Log
|
63
63
|
|
64
|
-
Check out the [Change Log](https://github.com/
|
64
|
+
Check out the [Change Log](https://github.com/chiefpansancolt/devise_materialize/blob/master/CHANGELOG.md) for new features/bug fixes per release of a new version.
|
65
65
|
|
66
66
|
## Development
|
67
67
|
|
68
68
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
69
69
|
|
70
|
-
To install this gem onto your local machine, run `bundle exec rake build`.
|
70
|
+
To install this gem onto your local machine, run `bundle exec rake build`. Gems will be built/release by Owner.
|
71
71
|
|
72
72
|
## Contributing
|
73
73
|
|
74
|
-
Bug
|
74
|
+
Bug Reports, Feature Requests, and Pull Requests are welcome on GitHub at [https://github.com/chiefpansancolt/devise_materialize](https://github.com/chiefpansancolt/devise_materialize). 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/devise_materialize/blob/master/CODE_OF_CONDUCT.md) code of conduct.
|
75
|
+
|
76
|
+
To see more about Contributing check out this [document](https://github.com/chiefpansancolt/devise_materialize/blob/master/CONTRIBUTING.md).
|
75
77
|
|
76
|
-
|
77
|
-
|
78
|
+
- Fork Repo and create new branch
|
79
|
+
- Once all is changed and committed create a pull request.
|
78
80
|
|
79
81
|
**Ensure all merge conflicts are fixed and CI is passing.**
|
80
82
|
|
81
83
|
## License
|
82
84
|
|
83
|
-
|
85
|
+
Devise Materialize is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/_config.yml
CHANGED
@@ -1 +1 @@
|
|
1
|
-
theme: jekyll-theme-
|
1
|
+
theme: jekyll-theme-architect
|
data/bin/console
CHANGED
data/bin/publish
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require "pathname"
|
5
|
+
require "fileutils"
|
6
|
+
require_relative "../lib/devise_materialize/version"
|
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 = DeviseMaterialize::VERSION.split(".").map(&:to_i)
|
26
|
+
|
27
|
+
case ARGV[0]
|
28
|
+
when "major"
|
29
|
+
current_version[0] += 1
|
30
|
+
current_version[1] = 0
|
31
|
+
current_version[2] = 0
|
32
|
+
when "minor"
|
33
|
+
current_version[1] += 1
|
34
|
+
current_version[2] = 0
|
35
|
+
when "patch"
|
36
|
+
current_version[2] += 1
|
37
|
+
end
|
38
|
+
|
39
|
+
joined_version = current_version.join(".")
|
40
|
+
|
41
|
+
FileUtils.chdir APP_ROOT do
|
42
|
+
contents = <<~FILE
|
43
|
+
# frozen_string_literal: true
|
44
|
+
|
45
|
+
module DeviseMaterialize
|
46
|
+
VERSION = "#{joined_version}"
|
47
|
+
end
|
48
|
+
FILE
|
49
|
+
|
50
|
+
puts "== Updating version in Version file to #{joined_version} =="
|
51
|
+
File.write("lib/devise_materialize/version.rb", contents)
|
52
|
+
|
53
|
+
system! "git add lib/devise_materialize/version.rb"
|
54
|
+
|
55
|
+
puts "== Committing updated files =="
|
56
|
+
system! "git commit -m 'Version bump to #{joined_version}'"
|
57
|
+
system! "git push"
|
58
|
+
|
59
|
+
puts "== Building gem =="
|
60
|
+
system! "bundle exec rake build"
|
61
|
+
|
62
|
+
puts "== Publishing gem =="
|
63
|
+
built_gem_path = "pkg/devise_materialize-#{joined_version}.gem"
|
64
|
+
github_host = "https://rubygems.pkg.github.com/chiefpansancolt"
|
65
|
+
|
66
|
+
system! "gem push --key github --host #{github_host} #{built_gem_path}"
|
67
|
+
system! "gem push #{built_gem_path}"
|
68
|
+
end
|
data/bin/setup
CHANGED
data/devise_materialize.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
lib = File.expand_path("
|
3
|
+
lib = File.expand_path("lib", __dir__)
|
4
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
5
|
require "devise_materialize/version"
|
6
6
|
|
@@ -9,21 +9,21 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.version = DeviseMaterialize::VERSION
|
10
10
|
spec.platform = Gem::Platform::RUBY
|
11
11
|
spec.authors = ["Christopher Pezza"]
|
12
|
-
spec.email = ["
|
12
|
+
spec.email = ["chiefpansancolt@gmail.com"]
|
13
13
|
|
14
14
|
spec.summary = "Generator for Materialize styled Devise Views"
|
15
|
-
spec.description =
|
16
|
-
|
17
|
-
|
18
|
-
spec.homepage = "https://github.
|
15
|
+
spec.description = %q(This Gem provides a generator for Materialize styled
|
16
|
+
Devise Views in HAML, SLIM, and ERB format with
|
17
|
+
standard Form or simple form functionality)
|
18
|
+
spec.homepage = "https://chiefpansancolt.github.io/devise_materialize/"
|
19
19
|
spec.license = "MIT"
|
20
20
|
|
21
21
|
spec.files = `git ls-files`.split("\n")
|
22
22
|
spec.test_files = `git ls-files -- test/*`.split("\n")
|
23
23
|
spec.require_paths = ["lib"]
|
24
24
|
|
25
|
-
spec.required_ruby_version = ">= 2.
|
25
|
+
spec.required_ruby_version = ">= 2.3"
|
26
26
|
spec.required_rubygems_version = "> 1.3.1"
|
27
27
|
|
28
|
-
spec.add_dependency
|
28
|
+
spec.add_dependency "railties", ">= 4.1.0", "< 7.0.0"
|
29
29
|
end
|
@@ -4,14 +4,14 @@ require "rails/generators"
|
|
4
4
|
|
5
5
|
module DeviseMaterialize
|
6
6
|
class InstallGenerator < Rails::Generators::Base
|
7
|
-
source_root File.expand_path("
|
7
|
+
source_root File.expand_path("../templates", __dir__)
|
8
8
|
|
9
9
|
desc "Creates a Devise Materialize Styled Views"
|
10
10
|
argument :namespace, type: :string, default: "Devise"
|
11
11
|
class_option :form_engine, type: :string, default: "default", aliases: "-f"
|
12
12
|
class_option :view_engine, type: :string, default: "erb", aliases: "-v"
|
13
13
|
|
14
|
-
def generate_views
|
14
|
+
def generate_views # rubocop:disable AbcSize
|
15
15
|
puts "Generating Views..."
|
16
16
|
directory "#{options.view_engine.downcase}/#{options.form_engine}/mailer",
|
17
17
|
"app/views/#{scope}/mailer"
|