Skip to content

fix(gemspec): add rake to development dependencies#4

Merged
doris-xiao-bybit merged 1 commit into
mainfrom
fix/publish-add-rake-dep
Jul 22, 2026
Merged

fix(gemspec): add rake to development dependencies#4
doris-xiao-bybit merged 1 commit into
mainfrom
fix/publish-add-rake-dep

Conversation

@doris-xiao-bybit

Copy link
Copy Markdown
Collaborator

The rubygems/release-gem@v1 action (used by our publish workflow for OIDC trusted publishing) runs bundle exec rake release internally. Rakefile already loads bundler/gem_tasks — which provides the release task — but the rake gem itself was not declared as a development dependency, so bundle install did not pull it into the bundle. Result:

can't find executable rake for gem rake.
rake is not currently included in the bundle

Adding rake ~> 13.0 as a development dependency fixes this and also enables local devs to run bundle exec rake spec / rake rubocop without a separate gem install.

Verified complete chain for bundle exec rake release on CI:

  • rake dev dep: NOW PRESENT
  • Rakefile: exists, require 'bundler/gem_tasks'
  • s.version = Bybit::VERSION: pulls from lib/bybit/version.rb ✓
  • rubygems.org trusted publisher: configured for bybit-exchange/bybit.ruby.api + publish.yml, no environment ✓
  • Ruby 3.3.5 + bundler 2.5.x: aligned with .ruby-version ✓
  • Git identity + OIDC creds: set up by release-gem action before rake ✓

The rubygems/release-gem@v1 action (used by our publish workflow for OIDC
trusted publishing) runs `bundle exec rake release` internally. Rakefile
already loads bundler/gem_tasks — which provides the `release` task — but
the rake gem itself was not declared as a development dependency, so
`bundle install` did not pull it into the bundle. Result:

    can't find executable rake for gem rake.
    rake is not currently included in the bundle

Adding rake ~> 13.0 as a development dependency fixes this and also
enables local devs to run `bundle exec rake spec` / `rake rubocop`
without a separate gem install.

Verified complete chain for `bundle exec rake release` on CI:
- rake dev dep: NOW PRESENT
- Rakefile: exists, `require 'bundler/gem_tasks'` ✓
- s.version = Bybit::VERSION: pulls from lib/bybit/version.rb ✓
- rubygems.org trusted publisher: configured for
  bybit-exchange/bybit.ruby.api + publish.yml, no environment ✓
- Ruby 3.3.5 + bundler 2.5.x: aligned with .ruby-version ✓
- Git identity + OIDC creds: set up by release-gem action before rake ✓

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@doris-xiao-bybit
doris-xiao-bybit merged commit 8c61ac7 into main Jul 22, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant