arsenic 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +7 -0
  2. data/.gem_release.yml +3 -0
  3. data/.github/CODEOWNERS +1 -0
  4. data/.github/FUNDING.yml +12 -0
  5. data/.github/ISSUE_TEMPLATE/bug_report.md +40 -0
  6. data/.github/ISSUE_TEMPLATE/feature_request.md +19 -0
  7. data/.github/PULL_REQUEST_TEMPLATE.md +23 -0
  8. data/.github/workflows/linters.yml +34 -0
  9. data/.github/workflows/tests.yml +34 -0
  10. data/.gitignore +11 -0
  11. data/.rspec +3 -0
  12. data/.standard.yml +9 -0
  13. data/CODE_OF_CONDUCT.md +74 -0
  14. data/Gemfile +10 -0
  15. data/Gemfile.lock +72 -0
  16. data/LICENSE.txt +21 -0
  17. data/README.md +42 -0
  18. data/Rakefile +6 -0
  19. data/arsenic.gemspec +32 -0
  20. data/bin/console +14 -0
  21. data/bin/format +3 -0
  22. data/bin/rspec +29 -0
  23. data/bin/setup +8 -0
  24. data/bin/standardrb +29 -0
  25. data/exe/arsenic +13 -0
  26. data/lib/arsenic.rb +100 -0
  27. data/lib/arsenic/templates/newgem/.gem_release.yml.tt +3 -0
  28. data/lib/arsenic/templates/newgem/.github/ISSUE_TEMPLATE/bug_report.md.tt +24 -0
  29. data/lib/arsenic/templates/newgem/.github/ISSUE_TEMPLATE/feature_request.md +23 -0
  30. data/lib/arsenic/templates/newgem/.github/PULL_REQUEST_TEMPLATE.md +23 -0
  31. data/lib/arsenic/templates/newgem/.github/workflows/docs-lint.yml.tt +72 -0
  32. data/lib/arsenic/templates/newgem/.github/workflows/rspec-jruby.yml.tt +35 -0
  33. data/lib/arsenic/templates/newgem/.github/workflows/rspec.yml.tt +61 -0
  34. data/lib/arsenic/templates/newgem/.github/workflows/rubocop.yml.tt +21 -0
  35. data/lib/arsenic/templates/newgem/.gitignore +43 -0
  36. data/lib/arsenic/templates/newgem/.mdlrc +1 -0
  37. data/lib/arsenic/templates/newgem/.rubocop-md.yml +16 -0
  38. data/lib/arsenic/templates/newgem/.rubocop.yml +29 -0
  39. data/lib/arsenic/templates/newgem/Gemfile.tt +19 -0
  40. data/lib/arsenic/templates/newgem/LICENSE.txt +22 -0
  41. data/lib/arsenic/templates/newgem/README.md +43 -0
  42. data/lib/arsenic/templates/newgem/RELEASING.md.tt +43 -0
  43. data/lib/arsenic/templates/newgem/Rakefile +20 -0
  44. data/lib/arsenic/templates/newgem/gemfiles/jruby.gemfile +5 -0
  45. data/lib/arsenic/templates/newgem/gemfiles/rails5.gemfile +5 -0
  46. data/lib/arsenic/templates/newgem/gemfiles/rails6.gemfile +5 -0
  47. data/lib/arsenic/templates/newgem/gemfiles/railsmaster.gemfile +6 -0
  48. data/lib/arsenic/templates/newgem/gemfiles/rubocop.gemfile +4 -0
  49. data/lib/arsenic/templates/newgem/lefthook.yml +18 -0
  50. data/lib/arsenic/templates/newgem/lib/dir/railtie.rb.tt +6 -0
  51. data/lib/arsenic/templates/newgem/lib/dir/version.rb.tt +5 -0
  52. data/lib/arsenic/templates/newgem/lib/name.rb.tt +6 -0
  53. data/lib/arsenic/templates/newgem/newgem.gemspec.tt +34 -0
  54. data/lib/arsenic/templates/newgem/spec/spec_helper.rb.tt +30 -0
  55. data/lib/arsenic/version.rb +3 -0
  56. metadata +103 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: bf3e564f9909ed05a00bad821e4c8dbae0d6f2b44e9f815ff239681e71e3a291
4
+ data.tar.gz: 81dbab59d9edc4c67b5bb2c3eeb682c388c7e5525e427b699800c214816d7032
5
+ SHA512:
6
+ metadata.gz: 964bb3ac671b9f64ea6ee2dd8841ff526fef5f31084f194e8f2edf4a21b7f9a4bf36bdb04057ca1965a8092059bc8641f2606b47c6b85ff51ae86e29dae1dd1e
7
+ data.tar.gz: 3eada8da432f164e0b138ea9b0b9d3f0bda8e2157c3ad06ef69e5c1fcc9d66d78352db53f59b2ecaee04abd1d57c767c021b816b8b03b0dffd38693be97e3581
@@ -0,0 +1,3 @@
1
+ bump:
2
+ file: lib/arsenic/version.rb
3
+ message: "chore(release): :bookmark: Bump %{name} to %{version} [nodoc]"
@@ -0,0 +1 @@
1
+ @username @andrewmcodes
@@ -0,0 +1,12 @@
1
+ # These are supported funding model platforms
2
+
3
+ github: andrewmcodes
4
+ # patreon: # Replace with a single Patreon username
5
+ # open_collective: # Replace with a single Open Collective username
6
+ # ko_fi: # Replace with a single Ko-fi username
7
+ # tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8
+ # community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9
+ # liberapay: # Replace with a single Liberapay username
10
+ # issuehunt: # Replace with a single IssueHunt username
11
+ # otechie: # Replace with a single Otechie username
12
+ # custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
@@ -0,0 +1,40 @@
1
+ ---
2
+ name: Bug report
3
+ about: Create a report to help us improve
4
+ title: your_title
5
+ labels: bug
6
+ assignees: andrewmcodes
7
+ ---
8
+
9
+ **Describe the bug**
10
+ A clear and concise description of what the bug is.
11
+
12
+ **To Reproduce**
13
+ Steps to reproduce the behavior:
14
+
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
+
28
+ - OS: [e.g. iOS]
29
+ - Browser [e.g. chrome, safari]
30
+ - Version [e.g. 22]
31
+
32
+ **Smartphone (please complete the following information):**
33
+
34
+ - Device: [e.g. iPhone6]
35
+ - OS: [e.g. iOS8.1]
36
+ - Version [e.g. 22]
37
+ - Browser [e.g. stock browser, safari]
38
+
39
+ **Additional context**
40
+ Add any other context about the problem here.
@@ -0,0 +1,19 @@
1
+ ---
2
+ name: Feature request
3
+ about: Suggest an idea for this project
4
+ title: Feature Request
5
+ labels: feature
6
+ assignees: andrewmcodes
7
+ ---
8
+
9
+ **Is your feature request related to a problem? Please describe.**
10
+ A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
11
+
12
+ **Describe the solution you'd like**
13
+ A clear and concise description of what you want to happen.
14
+
15
+ **Describe alternatives you've considered**
16
+ A clear and concise description of any alternative solutions or features you've considered.
17
+
18
+ **Additional context**
19
+ Add any other context or screenshots about the feature request here.
@@ -0,0 +1,23 @@
1
+ <!--
2
+ First of all, thanks for contributing!
3
+
4
+ If it's a typo fix or minor documentation update feel free to skip the rest of this template!
5
+ -->
6
+
7
+ ## What is the purpose of this pull request?
8
+
9
+ <!--
10
+ If it's a bug fix, then link it to the issue, for example:
11
+
12
+ Fixes #xxx
13
+ -->
14
+
15
+ ## What changes did you make? (overview)
16
+
17
+ ## Is there anything you'd like reviewers to focus on?
18
+
19
+ ## Checklist
20
+
21
+ - [ ] I've added tests for this change
22
+ - [ ] I've added a Changelog entry
23
+ - [ ] I've updated a documentation
@@ -0,0 +1,34 @@
1
+ name: Linters
2
+
3
+ on:
4
+ pull_request:
5
+ branches:
6
+ - "*"
7
+ push:
8
+ branches:
9
+ - main
10
+
11
+ jobs:
12
+ standardrb:
13
+ name: StandardRB Check Action
14
+ runs-on: ubuntu-latest
15
+ if: "!contains(github.event.head_commit.message, 'ci skip')"
16
+ steps:
17
+ - uses: actions/checkout@v2
18
+ - name: Set up Ruby 2.7
19
+ uses: ruby/setup-ruby@v1
20
+ with:
21
+ ruby-version: 2.7.1
22
+ - name: Cache gems
23
+ uses: actions/cache@v1
24
+ with:
25
+ path: vendor/bundle
26
+ key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
27
+ restore-keys: |
28
+ ${{ runner.os }}-gems-
29
+ - name: Install gems
30
+ run: |
31
+ bundle config path vendor/bundle
32
+ bundle install --jobs 4 --retry 3
33
+ - name: Run StandardRB
34
+ run: bin/standardrb --no-fix
@@ -0,0 +1,34 @@
1
+ name: Tests
2
+
3
+ on:
4
+ pull_request:
5
+ branches:
6
+ - "*"
7
+ push:
8
+ branches:
9
+ - main
10
+
11
+ jobs:
12
+ tests:
13
+ name: Rspec Tests
14
+ runs-on: ubuntu-latest
15
+ if: "!contains(github.event.head_commit.message, 'ci skip')"
16
+ steps:
17
+ - uses: actions/checkout@v2
18
+ - name: Set up Ruby 2.7
19
+ uses: ruby/setup-ruby@v1
20
+ with:
21
+ ruby-version: 2.7.1
22
+ - name: Cache gems
23
+ uses: actions/cache@v1
24
+ with:
25
+ path: vendor/bundle
26
+ key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
27
+ restore-keys: |
28
+ ${{ runner.os }}-gems-
29
+ - name: Install gems
30
+ run: |
31
+ bundle config path vendor/bundle
32
+ bundle install --jobs 4 --retry 3
33
+ - name: Run Rspec
34
+ run: bin/rspec
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,9 @@
1
+ fix: true
2
+ parallel: true
3
+ format: progress
4
+ ignore:
5
+ - "node_modules/**/*"
6
+ - "tmp/**/*"
7
+ - "vendor/**/*"
8
+ - "spec/**/*":
9
+ - Standard/SemanticBlocks
@@ -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 andrewmcodes@protonmail.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 [https://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: https://contributor-covenant.org
74
+ [version]: https://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in arsenic.gemspec
4
+ gemspec
5
+
6
+ gem "rake", "~> 12.0"
7
+ gem "rspec", "~> 3.0"
8
+ gem "thor"
9
+ gem "pry-byebug"
10
+ gem "standard"
@@ -0,0 +1,72 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ arsenic (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ ast (2.4.1)
10
+ byebug (11.1.3)
11
+ coderay (1.1.3)
12
+ diff-lcs (1.4.4)
13
+ method_source (1.0.0)
14
+ parallel (1.19.2)
15
+ parser (2.7.1.4)
16
+ ast (~> 2.4.1)
17
+ pry (0.13.1)
18
+ coderay (~> 1.1)
19
+ method_source (~> 1.0)
20
+ pry-byebug (3.9.0)
21
+ byebug (~> 11.0)
22
+ pry (~> 0.13.0)
23
+ rainbow (3.0.0)
24
+ rake (12.3.3)
25
+ regexp_parser (1.7.1)
26
+ rexml (3.2.4)
27
+ rspec (3.9.0)
28
+ rspec-core (~> 3.9.0)
29
+ rspec-expectations (~> 3.9.0)
30
+ rspec-mocks (~> 3.9.0)
31
+ rspec-core (3.9.2)
32
+ rspec-support (~> 3.9.3)
33
+ rspec-expectations (3.9.2)
34
+ diff-lcs (>= 1.2.0, < 2.0)
35
+ rspec-support (~> 3.9.0)
36
+ rspec-mocks (3.9.1)
37
+ diff-lcs (>= 1.2.0, < 2.0)
38
+ rspec-support (~> 3.9.0)
39
+ rspec-support (3.9.3)
40
+ rubocop (0.90.0)
41
+ parallel (~> 1.10)
42
+ parser (>= 2.7.1.1)
43
+ rainbow (>= 2.2.2, < 4.0)
44
+ regexp_parser (>= 1.7)
45
+ rexml
46
+ rubocop-ast (>= 0.3.0, < 1.0)
47
+ ruby-progressbar (~> 1.7)
48
+ unicode-display_width (>= 1.4.0, < 2.0)
49
+ rubocop-ast (0.3.0)
50
+ parser (>= 2.7.1.4)
51
+ rubocop-performance (1.8.0)
52
+ rubocop (>= 0.87.0)
53
+ ruby-progressbar (1.10.1)
54
+ standard (0.6.0)
55
+ rubocop (~> 0.90)
56
+ rubocop-performance (~> 1.8.0)
57
+ thor (1.0.1)
58
+ unicode-display_width (1.7.0)
59
+
60
+ PLATFORMS
61
+ ruby
62
+
63
+ DEPENDENCIES
64
+ arsenic!
65
+ pry-byebug
66
+ rake (~> 12.0)
67
+ rspec (~> 3.0)
68
+ standard
69
+ thor
70
+
71
+ BUNDLED WITH
72
+ 2.1.4
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Andrew Mason
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
13
+ all 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
21
+ THE SOFTWARE.
@@ -0,0 +1,42 @@
1
+ # [WIP] Arsenic
2
+
3
+ The motto of this codebase is currently:
4
+
5
+ > Make it work.
6
+
7
+ Recommended: https://gemcheck.evilmartians.io
8
+
9
+ ## Installation
10
+
11
+ ```sh
12
+ gem install arsenic
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ ```sh
18
+ arsenic my_new_gem
19
+ ```
20
+
21
+ ## Alternatives
22
+
23
+ - **forked from** [palkan/new-gem-generator](https://github.com/palkan/new-gem-generator)
24
+ - [gemsmith](https://github.com/bkuhlmann/gemsmith)
25
+
26
+ ## Development
27
+
28
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
29
+
30
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
31
+
32
+ ## Contributing
33
+
34
+ Bug reports and pull requests are welcome on GitHub at https://github.com/andrewmcodes/arsenic. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/andrewmcodes/arsenic/blob/master/CODE_OF_CONDUCT.md).
35
+
36
+ ## License
37
+
38
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
39
+
40
+ ## Code of Conduct
41
+
42
+ Everyone interacting in the Arsenic project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/andrewmcodes/arsenic/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task default: :spec