Skip to content

Commit 8c1e964

Browse files
authored
Merge pull request #319 from EasyPost/webhook_params
fix: webhook update params
2 parents 1dd7074 + ac27c57 commit 8c1e964

13 files changed

Lines changed: 106 additions & 78 deletions

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
rubyversion: ['2.6', '2.7', '3.0', '3.1', '3.2', '3.3']
14+
rubyversion: ['2.6', '2.7', '3.0', '3.1', '3.2', '3.3', '3.4']
1515
steps:
1616
- uses: actions/checkout@v4
1717
- uses: ruby/setup-ruby@v1
@@ -35,7 +35,7 @@ jobs:
3535
- uses: actions/checkout@v4
3636
- uses: ruby/setup-ruby@v1
3737
with:
38-
ruby-version: '3.3'
38+
ruby-version: '3.4'
3939
rubygems: '3.3.0'
4040
bundler-cache: true
4141
- name: Install Dependencies
@@ -51,7 +51,7 @@ jobs:
5151
- uses: actions/checkout@v4
5252
- uses: ruby/setup-ruby@v1
5353
with:
54-
ruby-version: '3.3'
54+
ruby-version: '3.4'
5555
rubygems: '3.3.0'
5656
bundler-cache: true
5757
- name: Install Dependencies

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v4
1313
- uses: ruby/setup-ruby@v1
1414
with:
15-
ruby-version: '3.3'
15+
ruby-version: '3.4'
1616
rubygems: '3.3.0'
1717
bundler-cache: true
1818
- name: Build Package

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# CHANGELOG
22

3-
## Next Release
3+
## Next Release (minor)
44

5+
- Adds Ruby 3.4 support
6+
- Corrects the HTTP verb for updating a brand from `GET` to `PATCH`
57
- Removes the deprecated `create_list` tracker endpoint function as it is no longer available via API
68

79
## v6.4.1 (2024-08-09)

easypost.gemspec

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,13 @@ Gem::Specification.new do |spec|
2121
spec.require_paths = ['lib']
2222
spec.required_ruby_version = '>= 2.6'
2323

24+
spec.add_development_dependency 'abbrev', '~> 0.1'
25+
spec.add_development_dependency 'benchmark', '~> 0.4'
26+
spec.add_development_dependency 'bigdecimal', '~> 3'
2427
spec.add_development_dependency 'brakeman', '~> 5.4'
2528
spec.add_development_dependency 'faraday', '~> 2.7.5' # used for integration tests
29+
spec.add_development_dependency 'logger', '~> 1'
30+
spec.add_development_dependency 'ostruct', '~> 0.6'
2631
spec.add_development_dependency 'pry', '~> 0.14'
2732
spec.add_development_dependency 'rake', '~> 13.0'
2833
spec.add_development_dependency 'rdoc', '~> 6.9'

examples

Submodule examples updated 170 files

lib/easypost/services/user.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def api_keys(id)
7474
# Update the Brand of a User.
7575
def update_brand(id, params = {})
7676
wrapped_params = { brand: params }
77-
response = @client.make_request(:get, "users/#{id}/brand", wrapped_params)
77+
response = @client.make_request(:patch, "users/#{id}/brand", wrapped_params)
7878

7979
EasyPost::InternalUtilities::Json.convert_json_to_object(response, EasyPost::Models::Brand)
8080
end

spec/cassettes/user/EasyPost_Services_User_update_brand_updates_the_authenticated_user_s_brand.yml

Lines changed: 26 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/cassettes/webhook/EasyPost_Services_Webhook_create_creates_a_webhook.yml

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/cassettes/webhook/EasyPost_Services_Webhook_update_updates_a_webhook.yml

Lines changed: 27 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)