Skip to content

Commit b6f3649

Browse files
committed
feat: init
0 parents  commit b6f3649

File tree

16 files changed

+270
-0
lines changed

16 files changed

+270
-0
lines changed

.github/workflows/main.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Ruby
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
pull_request:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
name: Ruby ${{ matrix.ruby }}
14+
strategy:
15+
matrix:
16+
ruby:
17+
- "3.3.0"
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Set up Ruby
22+
uses: ruby/setup-ruby@v1
23+
with:
24+
ruby-version: ${{ matrix.ruby }}
25+
bundler-cache: true
26+
- name: Run the default task
27+
run: bundle exec rake

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/.bundle/
2+
/.yardoc
3+
/_yardoc/
4+
/coverage/
5+
/doc/
6+
/pkg/
7+
/spec/reports/
8+
/tmp/
9+
*.gem
10+
hidden

.rubocop.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
AllCops:
2+
TargetRubyVersion: 3.3.9
3+
NewCops: enable
4+
SuggestExtensions: false
5+
6+
Style/Documentation:
7+
Enabled: false
8+
9+
Bundler/OrderedGems:
10+
Enabled: false
11+
12+
Style/StringLiterals:
13+
EnforcedStyle: double_quotes
14+
15+
Style/FrozenStringLiteralComment:
16+
SafeAutoCorrect: true
17+
EnforcedStyle: always_true
18+
19+
Metrics/MethodLength:
20+
Enabled: false
21+
22+
Style/AccessorGrouping:
23+
Enabled: false
24+
25+
Metrics/AbcSize:
26+
Enabled: false
27+
28+
Metrics/CyclomaticComplexity:
29+
Enabled: false
30+
31+
Metrics/ParameterLists:
32+
Enabled: false
33+
34+
Metrics/ClassLength:
35+
Enabled: false
36+
37+
Style/HashSyntax:
38+
Enabled: false
39+
40+
Naming/FileName:
41+
Exclude:
42+
- "lib/fal.rb"

.ruby-version

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

Gemfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# frozen_string_literal: true
2+
3+
source "https://rubygems.org"
4+
5+
gemspec
6+
7+
gem "minitest", "~> 5.0"
8+
gem "rake", "~> 13.0"
9+
gem "rubocop", "~> 1.21"

Gemfile.lock

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
PATH
2+
remote: .
3+
specs:
4+
replicate-client (0.1.10)
5+
faraday (>= 1)
6+
7+
GEM
8+
remote: https://rubygems.org/
9+
specs:
10+
ast (2.4.2)
11+
faraday (2.10.1)
12+
faraday-net_http (>= 2.0, < 3.2)
13+
logger
14+
faraday-net_http (3.1.1)
15+
net-http
16+
json (2.7.2)
17+
language_server-protocol (3.17.0.3)
18+
logger (1.6.0)
19+
minitest (5.23.1)
20+
net-http (0.4.1)
21+
uri
22+
parallel (1.24.0)
23+
parser (3.3.1.0)
24+
ast (~> 2.4.1)
25+
racc
26+
racc (1.8.0)
27+
rainbow (3.1.1)
28+
rake (13.2.1)
29+
regexp_parser (2.9.2)
30+
rexml (3.2.8)
31+
strscan (>= 3.0.9)
32+
rubocop (1.64.0)
33+
json (~> 2.3)
34+
language_server-protocol (>= 3.17.0)
35+
parallel (~> 1.10)
36+
parser (>= 3.3.0.2)
37+
rainbow (>= 2.2.2, < 4.0)
38+
regexp_parser (>= 1.8, < 3.0)
39+
rexml (>= 3.2.5, < 4.0)
40+
rubocop-ast (>= 1.31.1, < 2.0)
41+
ruby-progressbar (~> 1.7)
42+
unicode-display_width (>= 2.4.0, < 3.0)
43+
rubocop-ast (1.31.3)
44+
parser (>= 3.3.1.0)
45+
ruby-progressbar (1.13.0)
46+
strscan (3.1.0)
47+
unicode-display_width (2.5.0)
48+
uri (0.13.0)
49+
50+
PLATFORMS
51+
ruby
52+
x86_64-darwin-23
53+
54+
DEPENDENCIES
55+
minitest (~> 5.0)
56+
rake (~> 13.0)
57+
replicate-client!
58+
rubocop (~> 1.21)
59+
60+
BUNDLED WITH
61+
2.5.7

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 851 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 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.

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Fal
2+
3+
## Installation
4+
5+
Install the gem and add to the application"s Gemfile by executing:
6+
7+
$ bundle add fal
8+
9+
If bundler is not being used to manage dependencies, install the gem by executing:
10+
11+
$ gem install fal

Rakefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# frozen_string_literal: true
2+
3+
require "bundler/gem_tasks"
4+
require "rake/testtask"
5+
6+
Rake::TestTask.new(:test) do |t|
7+
t.libs << "test"
8+
t.libs << "lib"
9+
t.test_files = FileList["test/**/*_test.rb"]
10+
end
11+
12+
require "rubocop/rake_task"
13+
14+
RuboCop::RakeTask.new
15+
16+
task default: %i[test rubocop]

bin/console

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
4+
require "bundler/setup"
5+
require "fal"
6+
require "irb"
7+
8+
IRB.start(__FILE__)

0 commit comments

Comments
 (0)