Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
roktas committed May 21, 2024
0 parents commit 3cc13f7
Show file tree
Hide file tree
Showing 487 changed files with 98,285 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Lint
on: [push, pull_request, workflow_dispatch]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Ruby 🥁
uses: ruby/setup-ruby@v1
with: { bundler-cache: true }
- name: Lint 🔬
run: bundle exec rake lint
20 changes: 20 additions & 0 deletions .github/workflows/site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Site
on:
push: { branches: [ "main" ], paths: ["showcase/srv/**"] }
pull_request: { branches: [ "main" ], paths: ["showcase/srv/**"] }
workflow_dispatch:
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
site:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Deploy 🥁
uses: shalzz/[email protected]
env:
BUILD_DIR: showcase/srv
PAGES_BRANCH: site
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13 changes: 13 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Test
on: [push, pull_request, workflow_dispatch]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Ruby 🥁
uses: ruby/setup-ruby@v1
with: { bundler-cache: true }
- name: Unit 🔬
run: bundle exec rake test
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
*.old
.envrc
/.VSCodeCounter/
/.bundle/
/.local/
/coverage/
/pkg/
/vendor/
_/
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "showcase/srv/themes/adidoks"]
path = showcase/srv/themes/adidoks
url = https://github.com/aaranxu/adidoks.git
91 changes: 91 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
inherit_gem:
rubocop-rails-omakase: rubocop.yml

require:
- "rubocop-md"
- "rubocop-packaging"
- "rubocop-rake"

Layout/ExtraSpacing:
Exclude:
- "**/lib/sevgi/standard/**/*.rb"
- "**/test/**/*.rb"
Layout/HashAlignment:
Enabled: true
EnforcedHashRocketStyle: table
EnforcedColonStyle: table
Layout/LineLength:
Max: 140
Exclude:
- "**/test/**/*.rb"
Layout/MultilineArrayLineBreaks:
Exclude:
- "**/test/**/*.rb"
Layout/MultilineMethodArgumentLineBreaks:
Exclude:
- "**/test/**/*.rb"
Layout/MultilineOperationIndentation:
Enabled: false

Metrics/BlockLength:
Exclude:
- "**/test/**/*.rb"
- "*.gemspec"
- "**/srv/examples/**/*.sevgi"
Metrics/ClassLength:
Exclude:
- "**/test/**/*.rb"
- "**/srv/examples/**/*.sevgi"
Metrics/MethodLength:
Exclude:
- "**/test/**/*.rb"
- "**/srv/examples/**/*.sevgi"

Naming/MethodName:
Enabled: false

Minitest/UselessAssertion:
Exclude:
- "**/test/test_common.rb" # TODO: to avoid a bug

Rails/RefuteMethods:
Enabled: false

Style/AsciiComments:
Enabled: false
Style/ClassAndModuleChildren:
Exclude:
- "**/test/**/*.rb"
Style/Documentation:
Enabled: false
Style/LambdaCall:
Enabled: false
Style/MethodCallWithArgsParentheses:
Exclude:
- "**/test/**/*.rb"
- "**/srv/examples/**/*.sevgi"
Style/ParallelAssignment:
Enabled: false
Style/SymbolArray:
Exclude:
- "**/lib/sevgi/standard/**/*.rb"
- "**/test/**/*.rb"
Style/SymbolLiteral:
Exclude:
- "**/lib/sevgi/standard/**/*.rb"
- "**/test/**/*.rb"
Style/TrailingCommaInArguments:
Exclude:
- "**/test/**/*.rb"
Style/TrailingCommaInArrayLiteral:
Exclude:
- "**/test/**/*.rb"

AllCops:
NewCops: enable
Include:
- "**/srv/examples/**/*.sevgi"
Exclude:
- "vendor/**/*"
- "_/**/*"
- "**/_/**/*"
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.3.0
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Changelog
=========

This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

Unreleased
----------

Initial release.
29 changes: 29 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# frozen_string_literal: true

source "https://rubygems.org"

ruby File.read(File.expand_path(".ruby-version", __dir__)).strip

gemspec path: "external"

group :sevgi do
gem "sevgi-standard", path: "standard"
gem "sevgi-geometry", path: "geometry"
gem "sevgi-graphics", path: "graphics"
end

group :test, :development do
gem "bundler"
gem "minitest"
gem "minitest-focus", ">= 1.2.1"
gem "minitest-reporters", ">= 1.4.3"
gem "rake"
end

group :development do
gem "rubocop-md"
gem "rubocop-packaging"
gem "rubocop-rails-omakase"
gem "rubocop-rake"
gem "ruby-lsp"
end
140 changes: 140 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
PATH
remote: external
specs:
sevgi (0.1.0)
sevgi-geometry (= 0.1.0)
sevgi-graphics (= 0.1.0)
sevgi-standard (= 0.1.0)

PATH
remote: geometry
specs:
sevgi-geometry (0.1.0)

PATH
remote: graphics
specs:
sevgi-graphics (0.1.0)

PATH
remote: standard
specs:
sevgi-standard (0.1.0)

GEM
remote: https://rubygems.org/
specs:
activesupport (7.1.3.3)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
ansi (1.5.0)
ast (2.4.2)
base64 (0.2.0)
bigdecimal (3.1.8)
builder (3.2.4)
concurrent-ruby (1.2.3)
connection_pool (2.4.1)
drb (2.2.1)
i18n (1.14.5)
concurrent-ruby (~> 1.0)
json (2.7.2)
language_server-protocol (3.17.0.3)
minitest (5.23.0)
minitest-focus (1.4.0)
minitest (>= 4, < 6)
minitest-reporters (1.6.1)
ansi
builder
minitest (>= 5.0)
ruby-progressbar
mutex_m (0.2.0)
parallel (1.24.0)
parser (3.3.1.0)
ast (~> 2.4.1)
racc
prism (0.27.0)
racc (1.8.0)
rack (3.0.11)
rainbow (3.1.1)
rake (13.2.1)
regexp_parser (2.9.2)
rexml (3.2.8)
strscan (>= 3.0.9)
rubocop (1.63.5)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.31.3)
parser (>= 3.3.1.0)
rubocop-md (1.2.2)
rubocop (>= 1.0)
rubocop-minitest (0.35.0)
rubocop (>= 1.61, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-packaging (0.5.2)
rubocop (>= 1.33, < 2.0)
rubocop-performance (1.21.0)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-rails (2.25.0)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.33.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-rails-omakase (1.0.0)
rubocop
rubocop-minitest
rubocop-performance
rubocop-rails
rubocop-rake (0.6.0)
rubocop (~> 1.0)
ruby-lsp (0.16.6)
language_server-protocol (~> 3.17.0)
prism (>= 0.23.0, < 0.28)
sorbet-runtime (>= 0.5.10782)
ruby-progressbar (1.13.0)
sorbet-runtime (0.5.11385)
strscan (3.1.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.5.0)

PLATFORMS
ruby
x86_64-linux

DEPENDENCIES
bundler
minitest
minitest-focus (>= 1.2.1)
minitest-reporters (>= 1.4.3)
rake
rubocop-md
rubocop-packaging
rubocop-rails-omakase
rubocop-rake
ruby-lsp
sevgi!
sevgi-geometry!
sevgi-graphics!
sevgi-standard!

RUBY VERSION
ruby 3.3.0p0

BUNDLED WITH
2.5.10
Loading

0 comments on commit 3cc13f7

Please sign in to comment.