automatic_release_gem 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 1f3915636c31ab0c629d3ce06cdbebf17a6c6f767423512cf927708a94fae0ca
4
+ data.tar.gz: 6c4b083b0eb41bbb7ff5ceb2a6d28616fdfaf8daa4cfb37ec8d050ad1a92f774
5
+ SHA512:
6
+ metadata.gz: 62407c4211d577b782193624d2c13c540d4311bd370e7fb89946287b549d15c76f46ae3ea471c409ea5e2de1033a5f251aa6bc3eb1063e2bf70a9c3f0afdf509
7
+ data.tar.gz: e34c0db4ed47668102eee690d33f98354e9c0702ff7cb69bc1fda4ad0db8147d45bf83e1a7e92dbfa3ead4e32af84eb431b6bbc30f7e691c0ca35772789fd51a
@@ -0,0 +1,40 @@
1
+ ---
2
+ name: Bug report
3
+ about: Create a report to help us improve
4
+ title: ''
5
+ labels: bug
6
+ assignees: ''
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
+ - Browser [e.g. stock browser, safari]
37
+ - Version [e.g. 22]
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: ''
5
+ labels: enhancement
6
+ assignees: ''
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,40 @@
1
+ ---
2
+ name: Security vulnerability
3
+ about: Create a report to help us improve our security
4
+ title: ''
5
+ labels: vulnerability
6
+ assignees: ''
7
+ ---
8
+
9
+ **Describe the vulnerability**
10
+ A clear and concise description of what the vulnerability 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
+ - Browser [e.g. stock browser, safari]
37
+ - Version [e.g. 22]
38
+
39
+ **Additional context**
40
+ Add any other context about the problem here.
@@ -0,0 +1,32 @@
1
+ <!--- Provide a general summary of your changes in the Title above -->
2
+
3
+ ## Description
4
+
5
+ Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
6
+
7
+ Fixes # (issue)
8
+
9
+ ## Types of changes
10
+
11
+ <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
12
+
13
+ - [ ] Bug fix (non-breaking change which fixes an issue)
14
+ - [ ] New feature (non-breaking change which adds functionality)
15
+ - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
16
+ - [ ] This change requires a documentation update
17
+
18
+ ## How Has This Been Tested?
19
+
20
+ Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.
21
+
22
+ ## Screenshots (if appropriate):
23
+
24
+ ## Checklist:
25
+
26
+ - [ ] I have read the [CONTRIBUTING](../CONTRIBUTING.md) document
27
+ - [ ] I have performed a self-review of my own code
28
+ - [ ] My changes generate no new warnings
29
+ - [ ] My changes work in Chrome, Edge, and Firefox
30
+ - [ ] I have made corresponding changes to the documentation (if appropriate)
31
+ - [ ] I have added tests that prove my fix is effective or that my feature works
32
+ - [ ] All new and existing tests passed
@@ -0,0 +1,22 @@
1
+ name: Publish Gem
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ tags:
8
+ - v*
9
+ jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
+
13
+ steps:
14
+ - uses: actions/checkout@v1
15
+
16
+ - name: Release Gem
17
+ if: contains(github.ref, 'refs/tags/v')
18
+ uses: cadwallion/publish-rubygems-action@master
19
+ env:
20
+ GITHUB_TOKEN: ${{secrets.BUNDLE_GITHUB__COM}}
21
+ RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_BUMP_RELEASE}}
22
+ RELEASE_COMMAND: bundle exec rake release
@@ -0,0 +1,38 @@
1
+ name: Ruby
2
+
3
+ on:
4
+ pull_request:
5
+
6
+ push:
7
+ branches:
8
+ - master
9
+
10
+ jobs:
11
+ build:
12
+ runs-on: ubuntu-latest
13
+ strategy:
14
+ matrix:
15
+ ruby: [ '2.5', '2.6', '2.7', '3.0' ]
16
+
17
+ steps:
18
+ - uses: actions/checkout@v2
19
+
20
+ - name: Set up Ruby
21
+ uses: ruby/setup-ruby@v1
22
+ with:
23
+ ruby-version: ${{ matrix.ruby }}
24
+
25
+ - name: Install dependencies
26
+ run: |
27
+ gem install bundler
28
+ bundle install --jobs 4 --retry 3
29
+
30
+ - name: Run tests with RSpec
31
+ env:
32
+ RAILS_ENV: test
33
+ run: bundle exec rspec
34
+
35
+ - name: Run Rubocop
36
+ env:
37
+ RAILS_ENV: test
38
+ run: bundle exec rubocop --config .rubocop.yml
data/.gitignore ADDED
@@ -0,0 +1,38 @@
1
+ *.gem
2
+ /.config
3
+ /coverage/
4
+ /InstalledFiles
5
+ /pkg/
6
+ /spec/reports/
7
+ /spec/examples.txt
8
+ /tmp/
9
+
10
+ # Used by dotenv library to load environment variables.
11
+ .env
12
+
13
+ # rspec failure tracking
14
+ .rspec_status
15
+
16
+ # Ignore Byebug command history file.
17
+ .byebug_history
18
+
19
+ ## Documentation cache and generated files:
20
+ /.yardoc/
21
+ /_yardoc/
22
+ /doc/
23
+ /rdoc/
24
+
25
+ ## Environment normalization:
26
+ /.bundle/
27
+ /vendor/bundle
28
+ /lib/bundler/man/
29
+
30
+ # Gemfile.lock
31
+ .ruby-gemset
32
+ .tool-versions
33
+
34
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
35
+ .rvmrc
36
+
37
+ # Used by RuboCop. Remote config files pulled in from inherit_from directive.
38
+ # .rubocop-https?--*
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,58 @@
1
+ require:
2
+ - rubocop-performance
3
+ - rubocop-rake
4
+ - rubocop-rspec
5
+
6
+ AllCops:
7
+ NewCops: enable
8
+ TargetRubyVersion: 3.0
9
+ Exclude:
10
+ - 'Rakefile'
11
+ - 'bin/**/*'
12
+ - 'vendor/**/*'
13
+ UseCache: false
14
+
15
+ Gemspec/RequiredRubyVersion:
16
+ Enabled: false
17
+
18
+ Layout/DotPosition:
19
+ EnforcedStyle: trailing
20
+
21
+ Layout/LineLength:
22
+ Max: 100
23
+
24
+ Layout/SpaceAroundMethodCallOperator:
25
+ Enabled: true
26
+
27
+ Lint/RaiseException:
28
+ Enabled: true
29
+
30
+ Lint/StructNewOverride:
31
+ Enabled: true
32
+
33
+ Metrics/BlockLength:
34
+ IgnoredMethods: ['describe', 'context', 'feature', 'scenario', 'let']
35
+
36
+ RSpec/ExampleLength:
37
+ Enabled: false
38
+
39
+ RSpec/MultipleExpectations:
40
+ Enabled: false
41
+
42
+ Style/ClassAndModuleChildren:
43
+ EnforcedStyle: compact
44
+
45
+ Style/Documentation:
46
+ Enabled: false
47
+
48
+ Style/ExponentialNotation:
49
+ Enabled: false
50
+
51
+ Style/HashEachMethods:
52
+ Enabled: true
53
+
54
+ Style/HashTransformKeys:
55
+ Enabled: true
56
+
57
+ Style/HashTransformValues:
58
+ Enabled: true
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.0.0
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## automatic_release_gem 0.0.1 (Feb 05, 2021)
2
+
3
+ * The first version of the gem was created.
4
+
5
+ *Marcelo Toledo*
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at marcelotoledo5000@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,110 @@
1
+ # How to Contribute
2
+
3
+ :+1::tada: First off, thanks for taking the time to contribute! :tada::+1:
4
+
5
+ The following is a set of guidelines for contributing to Gem. Please take a moment to review this document in order to make the contribution process straightforward and effective for everyone involved.
6
+
7
+ ### Table Of Contents
8
+
9
+ - [Code of Conduct](#code-of-conduct)
10
+ - [Issues](#issues)
11
+ - [Your First Contribution](#your-first-contribution)
12
+ - [Pull Requests](#pull-requests)
13
+ - [Setup](#setup)
14
+ - [Styleguides](#styleguides)
15
+ - [Releasing](#releasing)
16
+
17
+ ## Code of Conduct
18
+
19
+ We adopted a Code of Conduct that we expect project participants to adhere to. Please read [the full text](CODE_OF_CONDUCT.md) so that you can understand what actions will and will not be tolerated.
20
+
21
+ ## Issues
22
+
23
+ A great way to contribute to the project is to send a detailed report when you encounter an issue. We always appreciate a well-written, thorough bug report, and will thank you for it!
24
+
25
+ These is the location to report or find an issue [here on Github](https://github.com/marcelotoledo5000/automatic_release_gem/issues).
26
+
27
+ Check that our issue database doesn't already include that problem or suggestion before submitting an issue. If you find a match, you can use the "subscribe" button to get notified on updates. Do not leave random "+1" or "I have this too" comments, as they only clutter the discussion, and don't help resolving it. However, if you have ways to reproduce the issue or have additional information that may help resolving the issue, please leave a comment.
28
+
29
+ ### Security Issues
30
+
31
+ If you discover a potential point of failure, please bring it to their attention immediately, create a issue.
32
+
33
+ ## Your First Contribution
34
+
35
+ First of all, you will need to create an [issue](#issues) for the feature or bugfix that you want to work on. When you open a new issue, there will be a template that will be automatically added to the text of the issue, which you would need to fill in. Doing this will help us to understand better what the ticket is about.
36
+
37
+ Unsure where to begin contributing? You can start by looking through these issues:
38
+
39
+ - [Good first issues](https://github.com/marcelotoledo5000/automatic_release_gem/issues?q=is%3Aissue+is%3Aopen+sort%3Acomments-desc+label%3A%22good+first+issue%22) - issues which should only require a few lines of code, and a test or two.
40
+ - [Bug issues](https://github.com/marcelotoledo5000/automatic_release_gem/issues?q=is%3Aissue+is%3Aopen+sort%3Acomments-desc+label%3Abug) - issues which should be an error.
41
+
42
+ ### Making Changes
43
+
44
+ - We adopted [Github Flow](https://guides.github.com/introduction/flow/).
45
+ - Assigns the issue to you. Let everyone know that you took that issue to settle.
46
+ - Fork the repo and create your branch from master. A guide on how to fork a repository: https://help.github.com/articles/fork-a-repo/
47
+ - Make commits of logical and atomic units.
48
+ - Submit a pull request.
49
+
50
+ ## Pull Requests
51
+
52
+ After getting some feedback, push to your fork and submit a pull request. We may suggest some changes, improvements or implementation alternatives.
53
+
54
+ In case you've got a small change in most of the cases, your pull request would be accepted quicker :wink:.
55
+
56
+ Please follow these steps to have your contribution considered by the maintainers:
57
+
58
+ 1. Follow all instructions in [the template](.github/PULL_REQUEST_TEMPLATE.md)
59
+ 2. Follow the [styleguides](#styleguides)
60
+ 3. After you submit your pull request, verify that all [status checks](https://help.github.com/articles/about-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>
61
+
62
+ 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.
63
+
64
+ ### Code review guidelines
65
+
66
+ It’s important that every piece of code is reviewed by at least one core contributor familiar with that codebase. Here are some things we look for:
67
+
68
+ 1. **Required CI checks pass.** This is a prerequisite for the review, and it is the PR author's responsibility. As long as the tests don’t pass, the PR won't get reviewed.
69
+ 2. **Simplicity.** Is this the simplest way to achieve the intended goal? If there are too many files, redundant functions, or complex lines of code, suggest a simpler way to do the same thing. In particular, avoid implementing an overly general solution when a simple, small, and pragmatic fix will do.
70
+ 3. **Testing.** Do the tests ensure this code won’t break when other stuff changes around it? When it does break, will the tests added help us identify which part of the library has the problem? Did we cover an appropriate set of edge cases? Look at the test coverage report if there is one. Are all significant code paths in the new code exercised at least once?
71
+ 4. **No unnecessary or unrelated changes.** PRs shouldn’t come with random formatting changes, especially in unrelated parts of the code. If there is some refactoring that needs to be done, it should be in a separate PR from a bug fix or feature, if possible.
72
+ 5. **Code has appropriate comments.** Code should be commented, or written in a clear “self-documenting” way.
73
+
74
+ ## Setup
75
+
76
+ You need ruby 2.6.6+ _(if you need other versions we recommend the [asdf](https://github.com/asdf-vm/asdf))_
77
+
78
+ ```bash
79
+ git clone git@github.com:marcelotoledo5000/automatic_release_gem.git # bonus: use your own fork for this step
80
+ cd automatic_release_gem
81
+ bundle install # install dependencies
82
+ ```
83
+
84
+ ## Styleguides
85
+
86
+ ### Language
87
+
88
+ The development language is English. All comments and documentation should be written in English, so we can share our knowledge with developers around the world.
89
+
90
+ ### Commit Message
91
+
92
+ We adopted [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/#summary). This improves the readability of the git history.
93
+
94
+ - Use the present tense ("add xyz" not "added xyz").
95
+ - Use the imperative mood ("move cursor to..." not "Moves cursor to...").
96
+
97
+ ### Linter
98
+
99
+ We use [rubocop](https://rubocop.org/) to guarantee the same code format in the project.
100
+
101
+ - `bundle exec robucop -a` will automatically format files with rubocop.
102
+ - Your code will be automatically formatted when you run the command.
103
+
104
+ ### Testing
105
+
106
+ The code that is written needs to be tested to ensure that it achieves the desired behavior. Tests either fall into a unit test or an integration test.
107
+
108
+ - We use [Rspec](https://rspec.info/) as our official framework test.
109
+ - Use [better specs](https://www.betterspecs.org/) on your tests.
110
+ - All source files must be 100% coverage with tests.
data/Gemfile ADDED
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ gemspec
6
+
7
+ gem 'rake', '~> 13.0'
8
+
9
+ group :development, :test do
10
+ gem 'pry-byebug', '~> 3.9'
11
+ gem 'rspec', '~> 3.10'
12
+ gem 'rubocop', '~> 1.9', require: false
13
+ gem 'rubocop-performance', require: false
14
+ gem 'rubocop-rake', require: false
15
+ gem 'rubocop-rspec', require: false
16
+ gem 'simplecov'
17
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,84 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ automatic_release_gem (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ ast (2.4.2)
10
+ byebug (11.1.3)
11
+ coderay (1.1.3)
12
+ diff-lcs (1.4.4)
13
+ docile (1.3.5)
14
+ method_source (1.0.0)
15
+ parallel (1.20.1)
16
+ parser (3.0.0.0)
17
+ ast (~> 2.4.1)
18
+ pry (0.13.1)
19
+ coderay (~> 1.1)
20
+ method_source (~> 1.0)
21
+ pry-byebug (3.9.0)
22
+ byebug (~> 11.0)
23
+ pry (~> 0.13.0)
24
+ rainbow (3.0.0)
25
+ rake (13.0.3)
26
+ regexp_parser (2.0.3)
27
+ rexml (3.2.4)
28
+ rspec (3.10.0)
29
+ rspec-core (~> 3.10.0)
30
+ rspec-expectations (~> 3.10.0)
31
+ rspec-mocks (~> 3.10.0)
32
+ rspec-core (3.10.1)
33
+ rspec-support (~> 3.10.0)
34
+ rspec-expectations (3.10.1)
35
+ diff-lcs (>= 1.2.0, < 2.0)
36
+ rspec-support (~> 3.10.0)
37
+ rspec-mocks (3.10.2)
38
+ diff-lcs (>= 1.2.0, < 2.0)
39
+ rspec-support (~> 3.10.0)
40
+ rspec-support (3.10.2)
41
+ rubocop (1.9.1)
42
+ parallel (~> 1.10)
43
+ parser (>= 3.0.0.0)
44
+ rainbow (>= 2.2.2, < 4.0)
45
+ regexp_parser (>= 1.8, < 3.0)
46
+ rexml
47
+ rubocop-ast (>= 1.2.0, < 2.0)
48
+ ruby-progressbar (~> 1.7)
49
+ unicode-display_width (>= 1.4.0, < 3.0)
50
+ rubocop-ast (1.4.1)
51
+ parser (>= 2.7.1.5)
52
+ rubocop-performance (1.9.2)
53
+ rubocop (>= 0.90.0, < 2.0)
54
+ rubocop-ast (>= 0.4.0)
55
+ rubocop-rake (0.5.1)
56
+ rubocop
57
+ rubocop-rspec (2.2.0)
58
+ rubocop (~> 1.0)
59
+ rubocop-ast (>= 1.1.0)
60
+ ruby-progressbar (1.11.0)
61
+ simplecov (0.21.2)
62
+ docile (~> 1.1)
63
+ simplecov-html (~> 0.11)
64
+ simplecov_json_formatter (~> 0.1)
65
+ simplecov-html (0.12.3)
66
+ simplecov_json_formatter (0.1.2)
67
+ unicode-display_width (2.0.0)
68
+
69
+ PLATFORMS
70
+ x86_64-linux
71
+
72
+ DEPENDENCIES
73
+ automatic_release_gem!
74
+ pry-byebug (~> 3.9)
75
+ rake (~> 13.0)
76
+ rspec (~> 3.10)
77
+ rubocop (~> 1.9)
78
+ rubocop-performance
79
+ rubocop-rake
80
+ rubocop-rspec
81
+ simplecov
82
+
83
+ BUNDLED WITH
84
+ 2.2.7
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 Marcelo Toledo
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,43 @@
1
+ # AutomaticReleaseGem
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/automatic_release_gem`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'automatic_release_gem'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install automatic_release_gem
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ 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.
30
+
31
+ 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 the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/marcelotoledo5000/automatic_release_gem. 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/marcelotoledo5000/automatic_release_gem/blob/master/CODE_OF_CONDUCT.md).
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
40
+
41
+ ## Code of Conduct
42
+
43
+ Everyone interacting in the AutomaticReleaseGem project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/marcelotoledo5000/automatic_release_gem/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require 'rubocop/rake_task'
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'lib/automatic_release_gem/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'automatic_release_gem'
7
+ spec.version = AutomaticReleaseGem::VERSION
8
+ spec.authors = ['Marcelo Toledo']
9
+ spec.email = ['marcelotoledo5000@gmail.com']
10
+
11
+ spec.summary = 'To test automatic publication of a gem by GitHub-Actions.'
12
+ spec.description = 'To test automatic publication of a gem by GitHub-Actions.'
13
+ spec.homepage = 'https://github.com/marcelotoledo5000/automatic_release_gem'
14
+ spec.license = 'MIT'
15
+ spec.required_ruby_version = Gem::Requirement.new('>= 2.5.3')
16
+
17
+ # spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
18
+
19
+ spec.metadata['homepage_uri'] = spec.homepage
20
+ spec.metadata['source_code_uri'] = 'https://github.com/marcelotoledo5000/automatic_release_gem'
21
+ spec.metadata['changelog_uri'] = 'https://github.com/marcelotoledo5000/automatic_release_gem/blob/master/CHANGELOG.md'
22
+
23
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
24
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
25
+ end
26
+
27
+ spec.bindir = 'exe'
28
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
29
+ spec.require_paths = ['lib']
30
+
31
+ # Uncomment to register a new dependency of your gem
32
+ # spec.add_dependency 'example-gem', '~> 1.0'
33
+ end
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'automatic_release_gem'
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
13
+
14
+ require 'irb'
15
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'automatic_release_gem/version'
4
+
5
+ module AutomaticReleaseGem
6
+ class << self
7
+ def my_usefull_method
8
+ true
9
+ end
10
+ end
11
+
12
+ class Error < StandardError; end
13
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module AutomaticReleaseGem
4
+ VERSION = '0.1.0'
5
+ end
metadata ADDED
@@ -0,0 +1,69 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: automatic_release_gem
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Marcelo Toledo
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2021-02-05 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: To test automatic publication of a gem by GitHub-Actions.
14
+ email:
15
+ - marcelotoledo5000@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - ".github/ISSUE_TEMPLATE/bug_report.md"
21
+ - ".github/ISSUE_TEMPLATE/feature_request.md"
22
+ - ".github/ISSUE_TEMPLATE/security_vulnerability.md"
23
+ - ".github/PULL_REQUEST_TEMPLATE.md"
24
+ - ".github/workflows/publish_release.yml"
25
+ - ".github/workflows/ruby.yml"
26
+ - ".gitignore"
27
+ - ".rspec"
28
+ - ".rubocop.yml"
29
+ - ".ruby-version"
30
+ - CHANGELOG.md
31
+ - CODE_OF_CONDUCT.md
32
+ - CONTRIBUTING.md
33
+ - Gemfile
34
+ - Gemfile.lock
35
+ - LICENSE
36
+ - README.md
37
+ - Rakefile
38
+ - automatic_release_gem.gemspec
39
+ - bin/console
40
+ - bin/setup
41
+ - lib/automatic_release_gem.rb
42
+ - lib/automatic_release_gem/version.rb
43
+ homepage: https://github.com/marcelotoledo5000/automatic_release_gem
44
+ licenses:
45
+ - MIT
46
+ metadata:
47
+ homepage_uri: https://github.com/marcelotoledo5000/automatic_release_gem
48
+ source_code_uri: https://github.com/marcelotoledo5000/automatic_release_gem
49
+ changelog_uri: https://github.com/marcelotoledo5000/automatic_release_gem/blob/master/CHANGELOG.md
50
+ post_install_message:
51
+ rdoc_options: []
52
+ require_paths:
53
+ - lib
54
+ required_ruby_version: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ version: 2.5.3
59
+ required_rubygems_version: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
64
+ requirements: []
65
+ rubygems_version: 3.2.3
66
+ signing_key:
67
+ specification_version: 4
68
+ summary: To test automatic publication of a gem by GitHub-Actions.
69
+ test_files: []