Skip to content

Commit 37a7a4b

Browse files
committed
Initial commit
0 parents  commit 37a7a4b

20 files changed

+660
-0
lines changed

.github/workflows/main.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Ruby
2+
3+
on: push
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
name: Ruby ${{ matrix.ruby }}
9+
strategy:
10+
matrix:
11+
ruby:
12+
- '2.7.6'
13+
- '3.0.4'
14+
- '3.1.2'
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Set up Ruby
19+
uses: ruby/setup-ruby@v1
20+
with:
21+
ruby-version: ${{ matrix.ruby }}
22+
bundler-cache: true
23+
- name: Lint
24+
run: bundle exec rubocop
25+
- name: Test
26+
run: bundle exec rspec

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

.rspec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--format documentation
2+
--color
3+
--require spec_helper

.rubocop.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
require: rubocop-rspec
2+
3+
AllCops:
4+
TargetRubyVersion: 2.7
5+
NewCops: enable
6+
7+
Layout/LineLength:
8+
Max: 120
9+
10+
Naming/MethodParameterName:
11+
MinNameLength: 2
12+
13+
RSpec/MultipleExpectations:
14+
Max: 4
15+
16+
RSpec/NestedGroups:
17+
Max: 4
18+
19+
Style/Documentation:
20+
Enabled: false
21+
22+
Style/StringLiterals:
23+
Enabled: true
24+
EnforcedStyle: single_quotes
25+
26+
Style/StringLiteralsInInterpolation:
27+
Enabled: true
28+
EnforcedStyle: double_quotes

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.7.6

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## [1.0.0] - 2022-10-07
2+
3+
- Initial release

CODE_OF_CONDUCT.md

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
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 advances of any kind
22+
* Trolling, insulting or derogatory comments, and personal or political attacks
23+
* Public or private harassment
24+
* Publishing others' private information, such as a physical or email address, without their explicit permission
25+
* Other conduct which could reasonably be considered inappropriate in a professional setting
26+
27+
## Enforcement Responsibilities
28+
29+
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.
30+
31+
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.
32+
33+
## Scope
34+
35+
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.
36+
37+
## Enforcement
38+
39+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [email protected]. All complaints will be reviewed and investigated promptly and fairly.
40+
41+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
42+
43+
## Enforcement Guidelines
44+
45+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
46+
47+
### 1. Correction
48+
49+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
50+
51+
**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.
52+
53+
### 2. Warning
54+
55+
**Community Impact**: A violation through a single incident or series of actions.
56+
57+
**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.
58+
59+
### 3. Temporary Ban
60+
61+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
62+
63+
**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.
64+
65+
### 4. Permanent Ban
66+
67+
**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.
68+
69+
**Consequence**: A permanent ban from any sort of public interaction within the community.
70+
71+
## Attribution
72+
73+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
74+
available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
75+
76+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
77+
78+
[homepage]: https://www.contributor-covenant.org
79+
80+
For answers to common questions about this code of conduct, see the FAQ at
81+
https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.

Gemfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# frozen_string_literal: true
2+
3+
source 'https://rubygems.org'
4+
5+
gemspec
6+
7+
gem 'mail'
8+
gem 'rake', '~> 13.0'
9+
gem 'rspec', '~> 3.0'
10+
gem 'rubocop', '~> 1.21'
11+
gem 'rubocop-rspec', require: false

Gemfile.lock

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
PATH
2+
remote: .
3+
specs:
4+
actionmailer-balancer (1.0.0)
5+
actionmailer (> 4.0, < 8.0)
6+
7+
GEM
8+
remote: https://rubygems.org/
9+
specs:
10+
actionmailer (7.0.4)
11+
actionpack (= 7.0.4)
12+
actionview (= 7.0.4)
13+
activejob (= 7.0.4)
14+
activesupport (= 7.0.4)
15+
mail (~> 2.5, >= 2.5.4)
16+
net-imap
17+
net-pop
18+
net-smtp
19+
rails-dom-testing (~> 2.0)
20+
actionpack (7.0.4)
21+
actionview (= 7.0.4)
22+
activesupport (= 7.0.4)
23+
rack (~> 2.0, >= 2.2.0)
24+
rack-test (>= 0.6.3)
25+
rails-dom-testing (~> 2.0)
26+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
27+
actionview (7.0.4)
28+
activesupport (= 7.0.4)
29+
builder (~> 3.1)
30+
erubi (~> 1.4)
31+
rails-dom-testing (~> 2.0)
32+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
33+
activejob (7.0.4)
34+
activesupport (= 7.0.4)
35+
globalid (>= 0.3.6)
36+
activesupport (7.0.4)
37+
concurrent-ruby (~> 1.0, >= 1.0.2)
38+
i18n (>= 1.6, < 2)
39+
minitest (>= 5.1)
40+
tzinfo (~> 2.0)
41+
ast (2.4.2)
42+
builder (3.2.4)
43+
concurrent-ruby (1.1.10)
44+
crass (1.0.6)
45+
diff-lcs (1.5.0)
46+
erubi (1.11.0)
47+
globalid (1.0.0)
48+
activesupport (>= 5.0)
49+
i18n (1.12.0)
50+
concurrent-ruby (~> 1.0)
51+
json (2.6.2)
52+
loofah (2.19.0)
53+
crass (~> 1.0.2)
54+
nokogiri (>= 1.5.9)
55+
mail (2.7.1)
56+
mini_mime (>= 0.1.1)
57+
mini_mime (1.1.2)
58+
mini_portile2 (2.8.0)
59+
minitest (5.16.3)
60+
net-imap (0.3.1)
61+
net-protocol
62+
net-pop (0.1.2)
63+
net-protocol
64+
net-protocol (0.1.3)
65+
timeout
66+
net-smtp (0.3.2)
67+
net-protocol
68+
nokogiri (1.13.8)
69+
mini_portile2 (~> 2.8.0)
70+
racc (~> 1.4)
71+
parallel (1.22.1)
72+
parser (3.1.2.1)
73+
ast (~> 2.4.1)
74+
racc (1.6.0)
75+
rack (2.2.4)
76+
rack-test (2.0.2)
77+
rack (>= 1.3)
78+
rails-dom-testing (2.0.3)
79+
activesupport (>= 4.2.0)
80+
nokogiri (>= 1.6)
81+
rails-html-sanitizer (1.4.3)
82+
loofah (~> 2.3)
83+
rainbow (3.1.1)
84+
rake (13.0.6)
85+
regexp_parser (2.6.0)
86+
rexml (3.2.5)
87+
rspec (3.11.0)
88+
rspec-core (~> 3.11.0)
89+
rspec-expectations (~> 3.11.0)
90+
rspec-mocks (~> 3.11.0)
91+
rspec-core (3.11.0)
92+
rspec-support (~> 3.11.0)
93+
rspec-expectations (3.11.1)
94+
diff-lcs (>= 1.2.0, < 2.0)
95+
rspec-support (~> 3.11.0)
96+
rspec-mocks (3.11.1)
97+
diff-lcs (>= 1.2.0, < 2.0)
98+
rspec-support (~> 3.11.0)
99+
rspec-support (3.11.1)
100+
rubocop (1.36.0)
101+
json (~> 2.3)
102+
parallel (~> 1.10)
103+
parser (>= 3.1.2.1)
104+
rainbow (>= 2.2.2, < 4.0)
105+
regexp_parser (>= 1.8, < 3.0)
106+
rexml (>= 3.2.5, < 4.0)
107+
rubocop-ast (>= 1.20.1, < 2.0)
108+
ruby-progressbar (~> 1.7)
109+
unicode-display_width (>= 1.4.0, < 3.0)
110+
rubocop-ast (1.21.0)
111+
parser (>= 3.1.1.0)
112+
rubocop-rspec (2.13.2)
113+
rubocop (~> 1.33)
114+
ruby-progressbar (1.11.0)
115+
timeout (0.3.0)
116+
tzinfo (2.0.5)
117+
concurrent-ruby (~> 1.0)
118+
unicode-display_width (2.3.0)
119+
120+
PLATFORMS
121+
ruby
122+
x86_64-darwin-20
123+
124+
DEPENDENCIES
125+
actionmailer-balancer!
126+
mail
127+
rake (~> 13.0)
128+
rspec (~> 3.0)
129+
rubocop (~> 1.21)
130+
rubocop-rspec
131+
132+
BUNDLED WITH
133+
2.2.15

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2022 Railsware Products Studio, Inc.
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 commit comments

Comments
 (0)