Skip to content
Draft
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: 1 addition & 1 deletion .github/actions/check/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ runs:

- name: Run RuboCop
shell: bash
run: bundle exec rubocop --parallel
run: bundle exec rubocop

- name: Build contract tests
if: ${{ inputs.flaky != 'true' }}
Expand Down
3 changes: 2 additions & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ runs:
- uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
with:
ruby-version: ${{ inputs.version }}
bundler: 2
# The Gemfile cooldown needs Bundler 4, which requires Ruby 3.2 or later.
bundler: ${{ startsWith(inputs.version, 'jruby-9') && '2' || '4.0.19' }}

- name: Install dependencies
if: ${{ inputs.install-dependencies == 'true' }}
Expand Down
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ We encourage pull requests and other contributions from the community. Before su

This SDK is built with [Bundler](https://bundler.io/). To install Bundler, run `gem install bundler`. You might need `sudo` to execute the command successfully.

The `Gemfile` declares a [cooldown](https://blog.rubygems.org/2026/06/03/cooldown-let-new-gems-be-vetted.html), so dependencies only resolve to versions that have been published for at least seven days. `ld-eventsource` is exempt, because we publish it ourselves and generally want to build against a release immediately. Cooldown requires Bundler 4.0.13 or later; older versions ignore the setting and resolve to the newest matching version. Pass `--cooldown 0` to reach a version inside the window, for instance when a security fix has just been released.

To install the runtime dependencies:

```
Expand Down
8 changes: 7 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
source "https://rubygems.org"
source "https://rubygems.org", cooldown: 7

gemspec

# Cooldown is configured per source, so exempting our own libraries from it
# requires a second remote for the same registry.
source "https://index.rubygems.org", cooldown: 0 do
gem "ld-eventsource"
end
Loading