Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maintenance 2024 05 #157

Merged
merged 57 commits into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
8933356
update project structure
copiousfreetime May 1, 2024
bfd6fce
move launchy to exe dir
copiousfreetime May 1, 2024
7cbdf98
fix changelog uri
copiousfreetime May 1, 2024
fffb504
update manifest
copiousfreetime May 1, 2024
0bec2d5
revert ruby level
copiousfreetime May 1, 2024
cbdba48
add linux platform
copiousfreetime May 1, 2024
98d29e9
add ruby platform
copiousfreetime May 1, 2024
2ecceef
update .gitignore
copiousfreetime May 1, 2024
5de7280
remove heel and add all the platforms
copiousfreetime May 1, 2024
d22bf9e
single to double quotes
copiousfreetime May 1, 2024
4595b0a
add frozen string literal
copiousfreetime May 1, 2024
85fb2ed
whitespace cleanup
copiousfreetime May 1, 2024
fbe3672
module/class documentation
copiousfreetime May 3, 2024
9ca065a
its okay for this method
copiousfreetime May 3, 2024
f317776
whitespace fixes
copiousfreetime May 3, 2024
0ad3263
hash alignments
copiousfreetime May 3, 2024
91b0fe7
use () to indicate assignment
copiousfreetime May 3, 2024
54afd30
because tests
copiousfreetime May 3, 2024
6e4b59e
explicit return is what we want here
copiousfreetime May 3, 2024
f2e9fed
call super
copiousfreetime May 3, 2024
8703e92
rescue standard error
copiousfreetime May 3, 2024
c3ed9df
unused params
copiousfreetime May 3, 2024
b154574
changed method length in config
copiousfreetime May 3, 2024
fa472cd
use names
copiousfreetime May 3, 2024
d5f4e24
exception variable names
copiousfreetime May 3, 2024
15e3deb
change match style
copiousfreetime May 3, 2024
4d10c2b
load file
copiousfreetime May 3, 2024
e4bbcb9
group accessors
copiousfreetime May 3, 2024
e836549
removing compact style
copiousfreetime May 3, 2024
518712e
don't use colon method call
copiousfreetime May 3, 2024
70074ca
use `` for execs
copiousfreetime May 3, 2024
be249b1
env fetch
copiousfreetime May 3, 2024
46a14f4
array literal
copiousfreetime May 3, 2024
647e57b
guard clauses
copiousfreetime May 3, 2024
8059f3b
its not 1.8 anymore
copiousfreetime May 3, 2024
9809cd9
if/then cleanup
copiousfreetime May 3, 2024
86cd99e
if nots
copiousfreetime May 3, 2024
2aea74f
change to stabbys
copiousfreetime May 3, 2024
b2a68d7
use number predicates
copiousfreetime May 3, 2024
ecde465
preferred delimiters
copiousfreetime May 3, 2024
9357dd0
redundant begin
copiousfreetime May 3, 2024
ec9561f
redundant regex
copiousfreetime May 3, 2024
3ad5f34
redundant self/retur
copiousfreetime May 3, 2024
4d53409
regex
copiousfreetime May 3, 2024
6fe9ee1
expand single line methods
copiousfreetime May 3, 2024
dc8c0d6
use global names
copiousfreetime May 3, 2024
a1f8472
string literal interpolation
copiousfreetime May 3, 2024
839cce7
symbol to proc
copiousfreetime May 3, 2024
81b20b1
trailing commas
copiousfreetime May 3, 2024
eb2f9d7
use array
copiousfreetime May 3, 2024
2731f8a
use empty?
copiousfreetime May 3, 2024
4d09848
reduce line length
copiousfreetime May 3, 2024
dba7ea3
customized rubocop
copiousfreetime May 3, 2024
f6dc4d3
no longer a valid test
copiousfreetime May 3, 2024
7dc80fe
add minitest focus
copiousfreetime May 3, 2024
4af7db8
remvoe unused
copiousfreetime May 3, 2024
ddfe50a
remove debug
copiousfreetime May 3, 2024
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
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