From 1e2d69e80f0550dc26aea92609f1a355f5335270 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 16 Jan 2026 18:32:34 +0000 Subject: [PATCH 1/3] chore(internal): update `actions/checkout` version --- .github/workflows/ci.yml | 4 ++-- .github/workflows/publish-gem.yml | 2 +- .github/workflows/release-doctor.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index adb71c87..30fd65e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: if: github.event_name == 'push' || github.event.pull_request.head.repo.fork steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: @@ -36,7 +36,7 @@ jobs: runs-on: ${{ github.repository == 'stainless-sdks/imagekit-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} if: github.event_name == 'push' || github.event.pull_request.head.repo.fork steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: diff --git a/.github/workflows/publish-gem.yml b/.github/workflows/publish-gem.yml index a3de9dee..642e1eb0 100644 --- a/.github/workflows/publish-gem.yml +++ b/.github/workflows/publish-gem.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml index 9d9c1e66..26014cca 100644 --- a/.github/workflows/release-doctor.yml +++ b/.github/workflows/release-doctor.yml @@ -12,7 +12,7 @@ jobs: if: github.repository == 'imagekit-developer/imagekit-ruby' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next') steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Check release environment run: | From 1ebdd2dff81b620d7d7dd7dea842424790b503f4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 20 Jan 2026 06:11:22 +0000 Subject: [PATCH 2/3] fix: vocab field is required --- .stats.yml | 4 ++-- lib/imagekitio/models/extension_config.rb | 20 ++++++++--------- lib/imagekitio/models/extensions.rb | 20 ++++++++--------- rbi/imagekitio/models/extension_config.rbi | 25 ++++++++++++---------- rbi/imagekitio/models/extensions.rbi | 25 ++++++++++++---------- sig/imagekitio/models/extension_config.rbs | 16 ++++++++------ sig/imagekitio/models/extensions.rbs | 16 ++++++++------ 7 files changed, 68 insertions(+), 58 deletions(-) diff --git a/.stats.yml b/.stats.yml index dc3fb535..751099cf 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 47 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-c028a7584d3508f268ce5c5b824b50af88eaa140620dd03a1b35f409f510603c.yml -openapi_spec_hash: f9b780b2398a87678a13355e48cd515f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-84f0d75048a9268981a84800b4190e3691997ce57dcfc0876f38a5b3fce6bacd.yml +openapi_spec_hash: 35607d4e850c8a60524223ff632c83bb config_hash: aeb6eb949d73382270bbd8bbf2e4cf2a diff --git a/lib/imagekitio/models/extension_config.rb b/lib/imagekitio/models/extension_config.rb index 5b862865..a8e7f03b 100644 --- a/lib/imagekitio/models/extension_config.rb +++ b/lib/imagekitio/models/extension_config.rb @@ -173,13 +173,6 @@ class SelectTags < Imagekitio::Internal::Type::BaseModel # @return [Symbol, :select_tags] required :type, const: :select_tags - # @!attribute vocabulary - # Array of possible tag values. Combined length of all strings must not exceed 500 - # characters. Cannot contain the `%` character. - # - # @return [Array] - required :vocabulary, Imagekitio::Internal::Type::ArrayOf[String] - # @!attribute max_selections # Maximum number of tags to select from the vocabulary. # @@ -192,19 +185,26 @@ class SelectTags < Imagekitio::Internal::Type::BaseModel # @return [Integer, nil] optional :min_selections, Integer - # @!method initialize(instruction:, vocabulary:, max_selections: nil, min_selections: nil, type: :select_tags) + # @!attribute vocabulary + # Array of possible tag values. Combined length of all strings must not exceed 500 + # characters. Cannot contain the `%` character. + # + # @return [Array, nil] + optional :vocabulary, Imagekitio::Internal::Type::ArrayOf[String] + + # @!method initialize(instruction:, max_selections: nil, min_selections: nil, vocabulary: nil, type: :select_tags) # Some parameter documentations has been truncated, see # {Imagekitio::Models::ExtensionConfig::AITasks::Task::SelectTags} for more # details. # # @param instruction [String] The question or instruction for the AI to analyze the image. # - # @param vocabulary [Array] Array of possible tag values. Combined length of all strings must not exceed 500 - # # @param max_selections [Integer] Maximum number of tags to select from the vocabulary. # # @param min_selections [Integer] Minimum number of tags to select from the vocabulary. # + # @param vocabulary [Array] Array of possible tag values. Combined length of all strings must not exceed 500 + # # @param type [Symbol, :select_tags] Task type that analyzes the image and adds matching tags from a vocabulary. end diff --git a/lib/imagekitio/models/extensions.rb b/lib/imagekitio/models/extensions.rb index 10c21ee1..387fe338 100644 --- a/lib/imagekitio/models/extensions.rb +++ b/lib/imagekitio/models/extensions.rb @@ -173,13 +173,6 @@ class SelectTags < Imagekitio::Internal::Type::BaseModel # @return [Symbol, :select_tags] required :type, const: :select_tags - # @!attribute vocabulary - # Array of possible tag values. Combined length of all strings must not exceed 500 - # characters. Cannot contain the `%` character. - # - # @return [Array] - required :vocabulary, Imagekitio::Internal::Type::ArrayOf[String] - # @!attribute max_selections # Maximum number of tags to select from the vocabulary. # @@ -192,18 +185,25 @@ class SelectTags < Imagekitio::Internal::Type::BaseModel # @return [Integer, nil] optional :min_selections, Integer - # @!method initialize(instruction:, vocabulary:, max_selections: nil, min_selections: nil, type: :select_tags) + # @!attribute vocabulary + # Array of possible tag values. Combined length of all strings must not exceed 500 + # characters. Cannot contain the `%` character. + # + # @return [Array, nil] + optional :vocabulary, Imagekitio::Internal::Type::ArrayOf[String] + + # @!method initialize(instruction:, max_selections: nil, min_selections: nil, vocabulary: nil, type: :select_tags) # Some parameter documentations has been truncated, see # {Imagekitio::Models::ExtensionItem::AITasks::Task::SelectTags} for more details. # # @param instruction [String] The question or instruction for the AI to analyze the image. # - # @param vocabulary [Array] Array of possible tag values. Combined length of all strings must not exceed 500 - # # @param max_selections [Integer] Maximum number of tags to select from the vocabulary. # # @param min_selections [Integer] Minimum number of tags to select from the vocabulary. # + # @param vocabulary [Array] Array of possible tag values. Combined length of all strings must not exceed 500 + # # @param type [Symbol, :select_tags] Task type that analyzes the image and adds matching tags from a vocabulary. end diff --git a/rbi/imagekitio/models/extension_config.rbi b/rbi/imagekitio/models/extension_config.rbi index e83e8fe8..3b5a3b57 100644 --- a/rbi/imagekitio/models/extension_config.rbi +++ b/rbi/imagekitio/models/extension_config.rbi @@ -360,11 +360,6 @@ module Imagekitio sig { returns(Symbol) } attr_accessor :type - # Array of possible tag values. Combined length of all strings must not exceed 500 - # characters. Cannot contain the `%` character. - sig { returns(T::Array[String]) } - attr_accessor :vocabulary - # Maximum number of tags to select from the vocabulary. sig { returns(T.nilable(Integer)) } attr_reader :max_selections @@ -379,25 +374,33 @@ module Imagekitio sig { params(min_selections: Integer).void } attr_writer :min_selections + # Array of possible tag values. Combined length of all strings must not exceed 500 + # characters. Cannot contain the `%` character. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :vocabulary + + sig { params(vocabulary: T::Array[String]).void } + attr_writer :vocabulary + sig do params( instruction: String, - vocabulary: T::Array[String], max_selections: Integer, min_selections: Integer, + vocabulary: T::Array[String], type: Symbol ).returns(T.attached_class) end def self.new( # The question or instruction for the AI to analyze the image. instruction:, - # Array of possible tag values. Combined length of all strings must not exceed 500 - # characters. Cannot contain the `%` character. - vocabulary:, # Maximum number of tags to select from the vocabulary. max_selections: nil, # Minimum number of tags to select from the vocabulary. min_selections: nil, + # Array of possible tag values. Combined length of all strings must not exceed 500 + # characters. Cannot contain the `%` character. + vocabulary: nil, # Task type that analyzes the image and adds matching tags from a vocabulary. type: :select_tags ) @@ -408,9 +411,9 @@ module Imagekitio { instruction: String, type: Symbol, - vocabulary: T::Array[String], max_selections: Integer, - min_selections: Integer + min_selections: Integer, + vocabulary: T::Array[String] } ) end diff --git a/rbi/imagekitio/models/extensions.rbi b/rbi/imagekitio/models/extensions.rbi index 8940a325..bc56a557 100644 --- a/rbi/imagekitio/models/extensions.rbi +++ b/rbi/imagekitio/models/extensions.rbi @@ -357,11 +357,6 @@ module Imagekitio sig { returns(Symbol) } attr_accessor :type - # Array of possible tag values. Combined length of all strings must not exceed 500 - # characters. Cannot contain the `%` character. - sig { returns(T::Array[String]) } - attr_accessor :vocabulary - # Maximum number of tags to select from the vocabulary. sig { returns(T.nilable(Integer)) } attr_reader :max_selections @@ -376,25 +371,33 @@ module Imagekitio sig { params(min_selections: Integer).void } attr_writer :min_selections + # Array of possible tag values. Combined length of all strings must not exceed 500 + # characters. Cannot contain the `%` character. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :vocabulary + + sig { params(vocabulary: T::Array[String]).void } + attr_writer :vocabulary + sig do params( instruction: String, - vocabulary: T::Array[String], max_selections: Integer, min_selections: Integer, + vocabulary: T::Array[String], type: Symbol ).returns(T.attached_class) end def self.new( # The question or instruction for the AI to analyze the image. instruction:, - # Array of possible tag values. Combined length of all strings must not exceed 500 - # characters. Cannot contain the `%` character. - vocabulary:, # Maximum number of tags to select from the vocabulary. max_selections: nil, # Minimum number of tags to select from the vocabulary. min_selections: nil, + # Array of possible tag values. Combined length of all strings must not exceed 500 + # characters. Cannot contain the `%` character. + vocabulary: nil, # Task type that analyzes the image and adds matching tags from a vocabulary. type: :select_tags ) @@ -405,9 +408,9 @@ module Imagekitio { instruction: String, type: Symbol, - vocabulary: T::Array[String], max_selections: Integer, - min_selections: Integer + min_selections: Integer, + vocabulary: T::Array[String] } ) end diff --git a/sig/imagekitio/models/extension_config.rbs b/sig/imagekitio/models/extension_config.rbs index 6d73816f..5e964400 100644 --- a/sig/imagekitio/models/extension_config.rbs +++ b/sig/imagekitio/models/extension_config.rbs @@ -156,9 +156,9 @@ module Imagekitio { instruction: String, type: :select_tags, - vocabulary: ::Array[String], max_selections: Integer, - min_selections: Integer + min_selections: Integer, + vocabulary: ::Array[String] } class SelectTags < Imagekitio::Internal::Type::BaseModel @@ -166,8 +166,6 @@ module Imagekitio attr_accessor type: :select_tags - attr_accessor vocabulary: ::Array[String] - attr_reader max_selections: Integer? def max_selections=: (Integer) -> Integer @@ -176,20 +174,24 @@ module Imagekitio def min_selections=: (Integer) -> Integer + attr_reader vocabulary: ::Array[String]? + + def vocabulary=: (::Array[String]) -> ::Array[String] + def initialize: ( instruction: String, - vocabulary: ::Array[String], ?max_selections: Integer, ?min_selections: Integer, + ?vocabulary: ::Array[String], ?type: :select_tags ) -> void def to_hash: -> { instruction: String, type: :select_tags, - vocabulary: ::Array[String], max_selections: Integer, - min_selections: Integer + min_selections: Integer, + vocabulary: ::Array[String] } end diff --git a/sig/imagekitio/models/extensions.rbs b/sig/imagekitio/models/extensions.rbs index 746d0bf7..2d382c31 100644 --- a/sig/imagekitio/models/extensions.rbs +++ b/sig/imagekitio/models/extensions.rbs @@ -157,9 +157,9 @@ module Imagekitio { instruction: String, type: :select_tags, - vocabulary: ::Array[String], max_selections: Integer, - min_selections: Integer + min_selections: Integer, + vocabulary: ::Array[String] } class SelectTags < Imagekitio::Internal::Type::BaseModel @@ -167,8 +167,6 @@ module Imagekitio attr_accessor type: :select_tags - attr_accessor vocabulary: ::Array[String] - attr_reader max_selections: Integer? def max_selections=: (Integer) -> Integer @@ -177,20 +175,24 @@ module Imagekitio def min_selections=: (Integer) -> Integer + attr_reader vocabulary: ::Array[String]? + + def vocabulary=: (::Array[String]) -> ::Array[String] + def initialize: ( instruction: String, - vocabulary: ::Array[String], ?max_selections: Integer, ?min_selections: Integer, + ?vocabulary: ::Array[String], ?type: :select_tags ) -> void def to_hash: -> { instruction: String, type: :select_tags, - vocabulary: ::Array[String], max_selections: Integer, - min_selections: Integer + min_selections: Integer, + vocabulary: ::Array[String] } end From 496a9a1e556116269cc5a40bb14510b6e1b40be2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 20 Jan 2026 06:11:42 +0000 Subject: [PATCH 3/3] release: 4.1.1 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 13 +++++++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/imagekitio/version.rb | 2 +- 5 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 3b4c2d4b..3c9ae23b 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "4.1.0" + ".": "4.1.1" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f66ad03..245f062b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 4.1.1 (2026-01-20) + +Full Changelog: [v4.1.0...v4.1.1](https://github.com/imagekit-developer/imagekit-ruby/compare/v4.1.0...v4.1.1) + +### Bug Fixes + +* vocab field is required ([1ebdd2d](https://github.com/imagekit-developer/imagekit-ruby/commit/1ebdd2dff81b620d7d7dd7dea842424790b503f4)) + + +### Chores + +* **internal:** update `actions/checkout` version ([1e2d69e](https://github.com/imagekit-developer/imagekit-ruby/commit/1e2d69e80f0550dc26aea92609f1a355f5335270)) + ## 4.1.0 (2026-01-16) Full Changelog: [v4.0.0...v4.1.0](https://github.com/imagekit-developer/imagekit-ruby/compare/v4.0.0...v4.1.0) diff --git a/Gemfile.lock b/Gemfile.lock index 57454eae..c5194c04 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - imagekitio (4.1.0) + imagekitio (4.1.1) cgi connection_pool diff --git a/README.md b/README.md index bc9c97f2..a91657a2 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "imagekitio", "~> 4.1.0" +gem "imagekitio", "~> 4.1.1" ``` diff --git a/lib/imagekitio/version.rb b/lib/imagekitio/version.rb index c63ab70a..525d87cc 100644 --- a/lib/imagekitio/version.rb +++ b/lib/imagekitio/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Imagekitio - VERSION = "4.1.0" + VERSION = "4.1.1" end