Skip to content

Releases: ryz310/my_api_client

v1.3.1 (Jun 10, 2025)

10 Jun 13:57
e4832d9

Choose a tag to compare

Misc

  • #1096 Stubs instance_reader and instance_writer on the class_attribute (@ryz310)

v1.3.0 (Jun 10, 2025)

10 Jun 13:25
76ff0ea

Choose a tag to compare

Feature

  • #1093 Allow to use instance writer in the logger (@ryz310)

Dependabot

Misc

v1.2.0 (Sep 06, 2024)

06 Sep 08:35
e1aec90

Choose a tag to compare

Feature

  • #1048 Support lazy evaluation for request headers and body parameters (@ryz310)
    The API client allows lazy evaluation for request headers and body parameters.
    For example, a time-limited token can be issued immediately before the request.

    class ExampleApiClient < MyApiClient::Base
      def get_users
        get 'users', headers: headers, query: { key: 'value' }
      end
    
      private
    
      def headers
        lambda do
          new_access_token = issue_new_access_token!
          {
            'Content-Type': 'application/json;charset=UTF-8',
            'Authorization': "Bearer #{new_access_token}",
          }
        end
      end
    end

Misc

  • #1049 Update supporting ruby and rails versions (@ryz310)
    Support Ruby 3.3, Rails 7.1 and 7.2
    End of supporting Ruby 3.0 👋

Dependabot

v1.1.0 (Jan 09, 2024)

09 Jan 03:39
d2cf046

Choose a tag to compare

Bugfix

Dependabot

  • #965 Bump faraday from 2.7.12 to 2.8.1 (@ryz310)
  • #972 Bump rubocop-performance from 1.19.1 to 1.20.2 (@ryz310)

v1.0.0 (Dec 07, 2023) 🎉

07 Dec 08:05
9f9020a

Choose a tag to compare

Feature

  • #955 Enable Dynamic URL Generation for #pageable_get via Proc Objects (@ryz310)
# Example of using a Proc with pageable_get
pget 'api/example', headers:, query:, paging: ->(response) {
  # Custom logic to generate the next URL
}

Dependabot

v0.27.0 (Nov 13, 2023)

13 Nov 01:30
d97de36

Choose a tag to compare

Feature

api_clinet = ExampleApiClient.new(access_token: 'access_token')

# You can retrieve sawyer response with return value
api_clinet.get_users #=> #<Sawyer::Resource>

# You can retrieve sawyer response with block
api_clinet.get_users do |response|
  response #=> #<Sawyer::Response>
  response.headers #=> #<Hash>
  response.data #=> #<Sawyer::Resource>
end

Breaking Change

  • #931 End of support for ruby 2.7 and rails 6.0 (@ryz310)

Dependabot

Misc

v0.26.0 (Jul 04, 2023)

04 Jul 03:59
e47cec4

Choose a tag to compare

Bugfix

  • #914 Fix error that generating api client failed on Rails 7 (@ryz310)

Dependabot

v0.25.0 (Feb 12, 2023)

12 Feb 10:19
2b3b739

Choose a tag to compare

Breaking Change

  • #864 Support Ruby 3.2 and drop support for Rails 5.2 (@ryz310)

Rubocop Challenge

  • #809 Style/RedundantConstantBase-20221208233100 (@ryz310)
  • #812 Lint/RedundantCopDisableDirective-20221211233112 (@ryz310)
  • #862 Performance/StringInclude-20230206233100 (@ryz310)

Dependabot

v0.24.0 (Nov 07, 2022)

07 Nov 14:01
0d91c36

Choose a tag to compare

Feature

  • #792 Support response header error handling (@okumud)

Rubocop Challenge

Dependabot

  • #758 ryz310/dependabot/bundler/rubocop-performance-1.14.3 (@ryz310)
  • #772 Bump pry-byebug from 3.10.0 to 3.10.1 (@ryz310)
  • #773 Bump webmock from 3.17.1 to 3.18.1 (@ryz310)
  • #775 Bump activesupport from 7.0.3.1 to 7.0.4 (@ryz310)
  • #778 Bump rspec_junit_formatter from 0.5.1 to 0.6.0 (@ryz310)
  • #780 Bump faraday from 2.5.2 to 2.6.0 (@ryz310)
  • #791 Bump rspec from 3.11.0 to 3.12.0 (@ryz310)

Misc

v0.23.0 (Jun 08, 2022)

08 Jun 15:10
5ac8e48

Choose a tag to compare

Feature

  • #731 Allow the error class to be initialized with no arguments (@ryz310)

Breaking Change

  • #711 Bump up ruby version (@ryz310)
    • Support Ruby 3.1
    • End of support Ruby 2.6

Rubocop Challenge

  • #698 RSpec/VerifiedDoubleReference-20220419233100 (@ryz310)
  • #700 Style/FetchEnvVar-20220421233101 (@ryz310)
  • #728 Re-generate .rubocop_todo.yml with RuboCop v1.30.1 (@ryz310)

Dependabot