Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
env:
BUNDLE_WITHOUT: 'gtk:vscode:profanity'
name: Publish Updates
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/rspec_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ concurrency:
jobs:
test:
runs-on: ubuntu-latest
env:
BUNDLE_WITHOUT: 'gtk:vscode:profanity'
strategy:
matrix:
ruby: ['2.7']
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/rubocop_syntax_checker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ on:
jobs:
rubocop:
runs-on: ubuntu-latest
env:
BUNDLE_WITHOUT: 'gtk:vscode:profanity'
strategy:
matrix:
ruby: ['3.3']
ruby: ['4.0']
name: Run Rubocop on Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.2
with:
fetch-depth: 0

Expand All @@ -31,7 +33,7 @@ jobs:
**/*.lic
**/*.rb

- uses: ruby/setup-ruby@d5126b9b3579e429dd52e51e68624dda2e05be25 # v1.267.0
- uses: ruby/setup-ruby@708024e6c902387ab41de36e1669e43b5ee7085e # v1.283.0
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/ruby_syntax_checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ on:
jobs:
check_syntax:
runs-on: ubuntu-latest
env:
BUNDLE_WITHOUT: 'gtk:vscode:profanity'
strategy:
matrix:
ruby: ['3.3']
ruby: ['4.0']
name: Run tests on Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.2
with:
fetch-depth: 0

Expand All @@ -30,12 +32,12 @@ jobs:
files: |
**/*.lic
**/*.rb
- uses: ruby/setup-ruby@d5126b9b3579e429dd52e51e68624dda2e05be25 # v1.267.0

- uses: ruby/setup-ruby@708024e6c902387ab41de36e1669e43b5ee7085e # v1.283.0
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Run Ruby syntax check on changed scripts
run: |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
Expand Down
5 changes: 4 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
AllCops:
SuggestExtensions: false
TargetRubyVersion: 3.3
TargetRubyVersion: 4.0
NewCops: disable
Include:
- '**/*.lic'
Expand All @@ -27,6 +27,9 @@ Layout/HeredocIndentation:
Layout/LineLength:
Enabled: false

Lint/MissingSuper:
AllowedParentClasses: [Object, BaseObject, GameBase::Game]

Metrics/AbcSize:
Enabled: false

Expand Down
87 changes: 84 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,93 @@
return true if ENV['NETLIFY']
=begin
When building Gemfile.lock file, please add additional platforms to the file via the following command:

source 'https://rubygems.org'
bundle lock \
--add-platform aarch64-linux \
--add-platform aarch64-linux-gnu \
--add-platform aarch64-linux-musl \
--add-platform arm-linux \
--add-platform arm-linux-gnu \
--add-platform arm-linux-musl \
--add-platform arm64-darwin \
--add-platform x64-mingw \
--add-platform x64-mingw-ucrt \
--add-platform x86-darwin \
--add-platform x86-linux \
--add-platform x86-linux-gnu \
--add-platform x86-linux-musl \
--add-platform x86-mingw \
--add-platform x86-mingw-ucrt \
--add-platform x86_64-darwin \
--add-platform x86_64-linux \
--add-platform x86_64-linux-gnu \
--add-platform x86_64-linux-musl

This ensures that the lock file can be used by all platforms that are able to support it.
=end

source "https://rubygems.org"

git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }

group :development do
gem "rspec"
gem "rubocop"
gem "guard"
gem "guard-rspec"
gem "webmock"
gem "rack"
gem 'rubocop'
end

group :vscode do
gem "rbs"
gem "prism"
gem "sorbet-runtime"
gem "ruby-lsp"
end

group :gtk do
gem "gtk3"
end

group :profanity do
gem "curses"
end

gem "ascii_charts"
gem "base64"
gem "benchmark"
gem "concurrent-ruby"
gem "digest"
gem "drb"
gem "ffi"
gem "fiddle"
gem "fileutils"
gem "json"
gem "kramdown"
gem "logger"
gem "openssl"
gem "open-uri"
gem "os"
gem "ostruct"
gem "rake"
gem "redis"
gem "resolv"
gem "rexml"
gem "sequel"
gem "set"
gem "tempfile"
gem "terminal-table"
gem "time"
gem "tmpdir"
gem "tzinfo"
gem "tzinfo-data"
gem "webrick"
gem "win32ole", platforms: :windows
gem "yaml"
gem "zlib"

if Gem.win_platform?
gem "sqlite3", platforms: :windows, force_ruby_platform: true
else
gem "sqlite3"
end
14 changes: 7 additions & 7 deletions scripts/noop.lic
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
=begin
A simple script to allow for learning elanthia-online integration
with Github + CI environments.
A simple script to allow for learning elanthia-online integration
with Github + CI environments.

author: elanthia-online
game: Gemstone
tags: testing
version: 1.0
author: elanthia-online
game: Gemstone
tags: testing
version: 1.0

To help contribute: https://github.com/elanthia-online/scripts
To help contribute: https://github.com/elanthia-online/scripts
=end

exit
Loading