Skip to content

Commit

Permalink
Merge pull request #157 from copiousfreetime/maintenance-2024-05
Browse files Browse the repository at this point in the history
Maintenance 2024 05
  • Loading branch information
copiousfreetime authored May 3, 2024
2 parents e3eda37 + ddfe50a commit 5ecd5a3
Show file tree
Hide file tree
Showing 39 changed files with 1,097 additions and 762 deletions.
31 changes: 22 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
*.gem
*.rbc
*.log
/.config/
/coverage/
/pkg/
/test/tmp/
/test/version_tmp/
/tmp/
/log/

# documentation
/doc/

# editor
*~
*.swo
*.swp
doc/
coverage/
pkg/
.rvmrc
.DS_Store
.gem
.byebug_history
vendor/
*.swo

# environment normalization
/.gem/
/.bundle/
/vendor/bundle/
/lib/bundler/man/
104 changes: 104 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
require:
- rubocop-md
- rubocop-minitest
- rubocop-packaging
- rubocop-performance
- rubocop-rake
- rubocop-thread_safety

AllCops:
NewCops: enable
Exclude:
- 'coverage/**/*'
- 'doc/**/*'
- 'pkg/**/*'
- 'tmp/**/*'
- '*.gemspec'
- 'vendor/bundle/**/*'

Layout/ExtraSpacing:
AllowBeforeTrailingComments: true

Layout/LineLength:
Max: 175

Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: space

Lint/DuplicateBranch:
IgnoreLiteralBranches: true
IgnoreConstantBranches: true

Metrics/AbcSize:
CountRepeatedAttributes: false
Max: 25
Exclude:
- 'spec/**/*'
- 'tasks/**/*'

Metrics/BlockLength:
CountAsOne:
- heredoc
Max: 30
Exclude:
- 'spec/**/*'
- 'tasks/**/*'

Metrics/ClassLength:
Max: 175
CountAsOne:
- heredoc
- array

Metrics/ModuleLength:
Max: 175
CountAsOne:
- heredoc
- array

Metrics/CyclomaticComplexity:
Max: 10

Metrics/MethodLength:
Max: 30
CountAsOne:
- heredoc
- array
Exclude:
- 'spec/**/*'

Metrics/ParameterLists:
CountKeywordArgs: false

Naming/PredicateName:
Enabled: false

Style/Documentation:
Exclude:
- 'spec/**/*'

Style/StringLiterals:
Enabled: true
EnforcedStyle: double_quotes
ConsistentQuotesInMultiline: false

Style/SafeNavigation:
Enabled: false

# this gem outputs to stderr on purpose
Style/StderrPuts:
Enabled: false

Style/TernaryParentheses:
EnforcedStyle: require_parentheses_when_complex

Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: consistent_comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: consistent_comma
Style/TrivialAccessors:
Exclude:
- lib/launchy.rb

ThreadSafety/InstanceVariableInClassMethod:
Enabled: false
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.0
3.3.1
39 changes: 19 additions & 20 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,49 +28,48 @@ blocks:
matrix:
- env_var: RUBY_VERSION
values:
- 3.0.6
- 3.1.4
- 3.2.3
- 3.3.0
- 3.0.7
- 3.1.5
- 3.2.4
- 3.3.1
- jruby-9.4.5.0
- truffleruby-23.1.2
- truffleruby-24.0.1
commands:
- source .semaphore/ensure-ruby-version.sh
- source .semaphore/ensure-bundle.sh
- mkdir -p tmp/test-results/
- bundle exec rake rubocop
- export TEST_RESULTS_FILE=tmp/test-results/${RUBY_VERSION}.xml
- A="--junit --junit-filename=${TEST_RESULTS_FILE}" bundle exec rake test
- name: Run tests in macOS environment

- name: Run MacOS Tests
dependencies: []
task:
prologue:
commands:
- checkout
- git -C ${HOME}/.rbenv/plugins/ruby-build pull
epilogue:
always:
commands:
- test-results publish --name ${RUBY_VERSION} ${TEST_RESULTS_FILE}

agent:
machine:
type: a1-standard-4
os_image: macos-xcode14
prologue:
commands:
- checkout
- git -C ${HOME}/.rbenv/plugins/ruby-build pull
jobs:
- name: macos matrix test
matrix:
- env_var: RUBY_VERSION
values:
- 3.0.6
- 3.1.4
- 3.2.3
- 3.3.0
- 3.0.7
- 3.1.5
- 3.2.4
- 3.3.1
commands:
- source .semaphore/ensure-ruby-version.sh
- source .semaphore/ensure-bundle.sh
- mkdir -p tmp/test-results/
- bundle exec rake rubocop
- export TEST_RESULTS_FILE=tmp/test-results/${RUBY_VERSION}.xml
- A="--junit --junit-filename=${TEST_RESULTS_FILE}" bundle exec rake test
- bundle exec rake test


after_pipeline:
task:
Expand Down
26 changes: 24 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
# DO NOT EDIT - This file is automatically generated
# Make changes to Manifest.txt and/or Rakefile and regenerate
# frozen_string_literal: true

source "https://rubygems.org"

gemspec

# gem "debug", "~> 1.0", require: false

gem "minitest", "~> 5.11"
gem "minitest-focus", "~> 1.2"
gem "minitest-junit", "~> 1.0"

gem "rake"
gem "rdoc", "~> 6.3", require: false
gem "reek", require: false

gem "rubocop", "~> 1.63", require: false
gem "rubocop-minitest", "~> 0.35", require: false
gem "rubocop-packaging", "~> 0.5", require: false
gem "rubocop-performance", "~> 1.21", require: false
gem "rubocop-rake", "~> 0.6", require: false
gem "rubocop-thread_safety", "~> 0.5", require: false

gem "rubocop-md", "~> 1.2", require: false

gem "simplecov", "~> 0.22", require: false
107 changes: 99 additions & 8 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,41 +10,132 @@ GEM
specs:
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
ast (2.4.2)
bigdecimal (3.1.7)
bigdecimal (3.1.7-java)
builder (3.2.4)
childprocess (5.0.0)
concurrent-ruby (1.2.3)
docile (1.4.0)
dry-configurable (1.1.0)
dry-core (~> 1.0, < 2)
zeitwerk (~> 2.6)
dry-core (1.0.1)
concurrent-ruby (~> 1.0)
zeitwerk (~> 2.6)
dry-inflector (1.0.0)
dry-initializer (3.1.1)
dry-logic (1.5.0)
concurrent-ruby (~> 1.0)
dry-core (~> 1.0, < 2)
zeitwerk (~> 2.6)
dry-schema (1.13.3)
concurrent-ruby (~> 1.0)
dry-configurable (~> 1.0, >= 1.0.1)
dry-core (~> 1.0, < 2)
dry-initializer (~> 3.0)
dry-logic (>= 1.4, < 2)
dry-types (>= 1.7, < 2)
zeitwerk (~> 2.6)
dry-types (1.7.2)
bigdecimal (~> 3.0)
concurrent-ruby (~> 1.0)
dry-core (~> 1.0)
dry-inflector (~> 1.0)
dry-logic (~> 1.4)
zeitwerk (~> 2.6)
jar-dependencies (0.4.1)
minitest (5.21.2)
json (2.7.2)
json (2.7.2-java)
language_server-protocol (3.17.0.3)
minitest (5.22.3)
minitest-focus (1.4.0)
minitest (>= 4, < 6)
minitest-junit (1.1.0)
builder (~> 3.2)
minitest (~> 5.11)
parallel (1.24.0)
parser (3.3.1.0)
ast (~> 2.4.1)
racc
psych (5.1.2)
stringio
psych (5.1.2-java)
jar-dependencies (>= 0.1.7)
public_suffix (5.0.4)
rake (13.1.0)
rdoc (6.6.2)
public_suffix (5.0.5)
racc (1.7.3)
racc (1.7.3-java)
rainbow (3.1.1)
rake (13.2.1)
rdoc (6.6.3.1)
psych (>= 4.0.0)
reek (6.3.0)
dry-schema (~> 1.13.0)
parser (~> 3.3.0)
rainbow (>= 2.0, < 4.0)
rexml (~> 3.1)
regexp_parser (2.9.0)
rexml (3.2.6)
rubocop (1.63.4)
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-rake (0.6.0)
rubocop (~> 1.0)
rubocop-thread_safety (0.5.1)
rubocop (>= 0.90.0)
ruby-progressbar (1.13.0)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.4)
stringio (3.1.0)
unicode-display_width (2.5.0)
zeitwerk (2.6.13)

PLATFORMS
arm64-darwin-23
java
ruby
x86_64-linux

DEPENDENCIES
launchy!
minitest (~> 5.21)
minitest (~> 5.11)
minitest-focus (~> 1.2)
minitest-junit (~> 1.0)
rake (~> 13.0)
rdoc (~> 6.6)
rake
rdoc (~> 6.3)
reek
rubocop (~> 1.63)
rubocop-md (~> 1.2)
rubocop-minitest (~> 0.35)
rubocop-packaging (~> 0.5)
rubocop-performance (~> 1.21)
rubocop-rake (~> 0.6)
rubocop-thread_safety (~> 0.5)
simplecov (~> 0.22)

BUNDLED WITH
2.5.5
2.5.9
File renamed without changes.
Loading

0 comments on commit 5ecd5a3

Please sign in to comment.