Skip to content

Commit 87dc18b

Browse files
Initial commit.
0 parents  commit 87dc18b

File tree

14 files changed

+395
-0
lines changed

14 files changed

+395
-0
lines changed

.env.sample

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
TEST_KEY_CODE="your-test-key-code-here"

.github/FUNDING.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
github: [BrunoBernardino]
2+
custom: [
3+
'https://paypal.me/brunobernardino',
4+
'https://gist.github.com/BrunoBernardino/ff5b54c13dd96ac7f9fee6fbfd825b09',
5+
]

.github/workflows/tests.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Run Tests
2+
3+
on: [push]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: ruby/setup-ruby@v1
11+
with:
12+
ruby-version: '.ruby-version'
13+
- env:
14+
TEST_KEY_CODE: ${{ secrets.TEST_KEY_CODE }}
15+
run: |
16+
make install
17+
make test

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.env
2+
*.gem

.rubocop.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
plugins: rubocop-rspec
2+
3+
AllCops:
4+
NewCops: enable
5+
6+
RSpec/MultipleExpectations:
7+
Enabled: false
8+
9+
RSpec/ExampleLength:
10+
Enabled: false
11+
12+
RSpec/MethodLength:
13+
Enabled: false
14+
15+
RSpec/Metrics/AbcSize:
16+
Enabled: false
17+
18+
RSpec/SpecFilePathFormat:
19+
Enabled: false
20+
21+
Style/Documentation:
22+
Enabled: false

.ruby-version

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

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+
gem 'json', '~> 2.10', require: true
6+
gem 'net-http', '~> 0.6.0', require: true
7+
gem 'uri', '~> 1.0', require: true
8+
9+
gem 'rspec', '~> 3.13', require: false
10+
gem 'rubocop', '~> 1.73', require: false
11+
gem 'rubocop-rspec', '~> 3.5', require: false

Gemfile.lock

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
ast (2.4.2)
5+
diff-lcs (1.6.0)
6+
json (2.10.1)
7+
language_server-protocol (3.17.0.4)
8+
lint_roller (1.1.0)
9+
net-http (0.6.0)
10+
uri
11+
parallel (1.26.3)
12+
parser (3.3.7.1)
13+
ast (~> 2.4.1)
14+
racc
15+
racc (1.8.1)
16+
rainbow (3.1.1)
17+
regexp_parser (2.10.0)
18+
rspec (3.13.0)
19+
rspec-core (~> 3.13.0)
20+
rspec-expectations (~> 3.13.0)
21+
rspec-mocks (~> 3.13.0)
22+
rspec-core (3.13.3)
23+
rspec-support (~> 3.13.0)
24+
rspec-expectations (3.13.3)
25+
diff-lcs (>= 1.2.0, < 2.0)
26+
rspec-support (~> 3.13.0)
27+
rspec-mocks (3.13.2)
28+
diff-lcs (>= 1.2.0, < 2.0)
29+
rspec-support (~> 3.13.0)
30+
rspec-support (3.13.2)
31+
rubocop (1.73.2)
32+
json (~> 2.3)
33+
language_server-protocol (~> 3.17.0.2)
34+
lint_roller (~> 1.1.0)
35+
parallel (~> 1.10)
36+
parser (>= 3.3.0.2)
37+
rainbow (>= 2.2.2, < 4.0)
38+
regexp_parser (>= 2.9.3, < 3.0)
39+
rubocop-ast (>= 1.38.0, < 2.0)
40+
ruby-progressbar (~> 1.7)
41+
unicode-display_width (>= 2.4.0, < 4.0)
42+
rubocop-ast (1.38.1)
43+
parser (>= 3.3.1.0)
44+
rubocop-rspec (3.5.0)
45+
lint_roller (~> 1.1)
46+
rubocop (~> 1.72, >= 1.72.1)
47+
ruby-progressbar (1.13.0)
48+
unicode-display_width (3.1.4)
49+
unicode-emoji (~> 4.0, >= 4.0.4)
50+
unicode-emoji (4.0.4)
51+
uri (1.0.3)
52+
53+
PLATFORMS
54+
arm64-darwin-24
55+
ruby
56+
57+
DEPENDENCIES
58+
json (~> 2.10)
59+
net-http (~> 0.6.0)
60+
rspec (~> 3.13)
61+
rubocop (~> 1.73)
62+
rubocop-rspec (~> 3.5)
63+
uri (~> 1.0)
64+
65+
BUNDLED WITH
66+
2.6.2

LICENSE

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
ISC License
2+
3+
Copyright (c) 2025 Safelyx
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Makefile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.PHONY: install
2+
install:
3+
bundle install
4+
5+
.PHONY: format
6+
format:
7+
bundle exec rubocop -A
8+
9+
.PHONY: test
10+
test:
11+
bundle exec rubocop
12+
bundle exec rspec
13+
14+
.PHONY: build
15+
build:
16+
gem build safelyx.gemspec
17+
18+
.PHONY: publish
19+
publish:
20+
gem build safelyx.gemspec
21+
gem push safelyx-0.*.gem
22+
rm safelyx-0.*.gem

0 commit comments

Comments
 (0)