Skip to content
Open
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
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,14 @@ on:
- sdk-release/**
- feature/**

permissions: {}

jobs:
build:
name: Build
runs-on: ubuntu-22.04
permissions:
contents: read

steps:
- uses: extractions/setup-just@v2
Expand All @@ -44,6 +48,8 @@ jobs:
name: Test (${{ matrix.ruby-version }})
# this version of jruby isn't available in the new latest (24.04) so we have to pin (or update jruby)
runs-on: ubuntu-22.04
permissions:
contents: read
strategy:
matrix:
# following https://docs.stripe.com/sdks/versioning?lang=ruby#stripe-sdk-language-version-support-policy
Expand All @@ -69,6 +75,8 @@ jobs:
endsWith(github.actor, '-stripe')
needs: [build, test]
runs-on: ubuntu-22.04
permissions:
contents: read
steps:
- name: Download all workflow run artifacts
uses: actions/download-artifact@v4
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
types:
- auto_merge_enabled

permissions: {}

jobs:
require_merge_commit_on_merge_script_pr:
name: Merge script PRs must create merge commits
Expand Down
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5abe0e44caedb3474ee672265284096ec89e0fa3
4ec19847e2d6cb16e17bd2ad2aee2bf48d86013c
4 changes: 2 additions & 2 deletions test/stripe/util_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -240,15 +240,15 @@ class UtilTest < Test::Unit::TestCase
resource2 = Stripe::Charge.construct_from(id: "ch_456", object: "charge")
input = [resource1, "string", resource2]
result = Util.objects_to_ids(input, :v1)
assert_equal ["ch_123", "string", "ch_456"], result
assert_equal %w[ch_123 string ch_456], result
end

should "process arrays with v2 semantics" do
resource1 = Stripe::Charge.construct_from(id: "ch_123", object: "charge")
resource2 = Stripe::Charge.construct_from(id: "ch_456", object: "charge")
input = [resource1, "string", resource2]
result = Util.objects_to_ids(input, :v2)
assert_equal ["ch_123", "string", "ch_456"], result
assert_equal %w[ch_123 string ch_456], result
end

should "handle complex nested structures with v1 semantics" do
Expand Down