Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-gem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "4.1.0"
".": "4.1.1"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GIT
PATH
remote: .
specs:
imagekitio (4.1.0)
imagekitio (4.1.1)
cgi
connection_pool

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ To use this gem, install via Bundler by adding the following to your application
<!-- x-release-please-start-version -->

```ruby
gem "imagekitio", "~> 4.1.0"
gem "imagekitio", "~> 4.1.1"
```

<!-- x-release-please-end -->
Expand Down
20 changes: 10 additions & 10 deletions lib/imagekitio/models/extension_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>]
required :vocabulary, Imagekitio::Internal::Type::ArrayOf[String]

# @!attribute max_selections
# Maximum number of tags to select from the vocabulary.
#
Expand All @@ -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<String>, 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<String>] 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<String>] 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

Expand Down
20 changes: 10 additions & 10 deletions lib/imagekitio/models/extensions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>]
required :vocabulary, Imagekitio::Internal::Type::ArrayOf[String]

# @!attribute max_selections
# Maximum number of tags to select from the vocabulary.
#
Expand All @@ -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<String>, 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<String>] 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<String>] 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

Expand Down
2 changes: 1 addition & 1 deletion lib/imagekitio/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Imagekitio
VERSION = "4.1.0"
VERSION = "4.1.1"
end
25 changes: 14 additions & 11 deletions rbi/imagekitio/models/extension_config.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
)
Expand All @@ -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
Expand Down
25 changes: 14 additions & 11 deletions rbi/imagekitio/models/extensions.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
)
Expand All @@ -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
Expand Down
16 changes: 9 additions & 7 deletions sig/imagekitio/models/extension_config.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -156,18 +156,16 @@ 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
attr_accessor instruction: String

attr_accessor type: :select_tags

attr_accessor vocabulary: ::Array[String]

attr_reader max_selections: Integer?

def max_selections=: (Integer) -> Integer
Expand All @@ -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

Expand Down
Loading
Loading