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
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.24.0"
".": "0.25.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 16
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-f6fec0ae4fa4572aefa111e660f98f6acfb6149c22cbd413bd3defad6c100478.yml
openapi_spec_hash: a82bf07982eae3814e8a60eb368e0ce5
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-98ef96cef5b06ad7a29dadba48258da7d9ea0a2b3938dc9e714ae06eb9afa1a3.yml
openapi_spec_hash: 9e957a30999dff7d4ada925e437bd202
config_hash: c3aaaa9794dba44d524c06591ab17894
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## 0.25.0 (2026-02-22)

Full Changelog: [v0.24.0...v0.25.0](https://github.com/brand-dot-dev/ruby-sdk/compare/v0.24.0...v0.25.0)

### Features

* **api:** api update ([a8001da](https://github.com/brand-dot-dev/ruby-sdk/commit/a8001da388a5bf764a6fe19b7df7bc3572ae3dce))


### Chores

* **internal:** remove mock server code ([106d37c](https://github.com/brand-dot-dev/ruby-sdk/commit/106d37c53f7459910a897b4f675b97a003b73f7c))
* update mock server docs ([e60e130](https://github.com/brand-dot-dev/ruby-sdk/commit/e60e13027cec2ae0282f1ca4c4785d3586efe304))

## 0.24.0 (2026-02-09)

Full Changelog: [v0.23.0...v0.24.0](https://github.com/brand-dot-dev/ruby-sdk/compare/v0.23.0...v0.24.0)
Expand Down
6 changes: 0 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,6 @@ $ bundle exec rake

## Running tests

Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests.

```bash
$ npx prism mock path/to/your/openapi.yml
```

```bash
$ bundle exec rake test
```
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:
brand.dev (0.24.0)
brand.dev (0.25.0)
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 @@ -26,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application
<!-- x-release-please-start-version -->

```ruby
gem "brand.dev", "~> 0.24.0"
gem "brand.dev", "~> 0.25.0"
```

<!-- x-release-please-end -->
Expand Down
10 changes: 9 additions & 1 deletion lib/brand_dev/models/brand_ai_product_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ class Product < BrandDev::Internal::Type::BaseModel
# @return [Array<String>]
required :features, BrandDev::Internal::Type::ArrayOf[String]

# @!attribute images
# URLs to product images on the page (up to 7)
#
# @return [Array<String>]
required :images, BrandDev::Internal::Type::ArrayOf[String]

# @!attribute name
# Name of the product
#
Expand Down Expand Up @@ -122,13 +128,15 @@ class Product < BrandDev::Internal::Type::BaseModel
# @return [String, nil]
optional :url, String, nil?: true

# @!method initialize(description:, features:, name:, tags:, target_audience:, billing_frequency: nil, category: nil, currency: nil, image_url: nil, price: nil, pricing_model: nil, url: nil)
# @!method initialize(description:, features:, images:, name:, tags:, target_audience:, billing_frequency: nil, category: nil, currency: nil, image_url: nil, price: nil, pricing_model: nil, url: nil)
# The extracted product data, or null if not a product page
#
# @param description [String] Description of the product
#
# @param features [Array<String>] List of product features
#
# @param images [Array<String>] URLs to product images on the page (up to 7)
#
# @param name [String] Name of the product
#
# @param tags [Array<String>] Tags associated with the product
Expand Down
10 changes: 9 additions & 1 deletion lib/brand_dev/models/brand_ai_products_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ class Product < BrandDev::Internal::Type::BaseModel
# @return [Array<String>]
required :features, BrandDev::Internal::Type::ArrayOf[String]

# @!attribute images
# URLs to product images on the page (up to 7)
#
# @return [Array<String>]
required :images, BrandDev::Internal::Type::ArrayOf[String]

# @!attribute name
# Name of the product
#
Expand Down Expand Up @@ -91,11 +97,13 @@ class Product < BrandDev::Internal::Type::BaseModel
# @return [String, nil]
optional :url, String, nil?: true

# @!method initialize(description:, features:, name:, tags:, target_audience:, billing_frequency: nil, category: nil, currency: nil, image_url: nil, price: nil, pricing_model: nil, url: nil)
# @!method initialize(description:, features:, images:, name:, tags:, target_audience:, billing_frequency: nil, category: nil, currency: nil, image_url: nil, price: nil, pricing_model: nil, url: nil)
# @param description [String] Description of the product
#
# @param features [Array<String>] List of product features
#
# @param images [Array<String>] URLs to product images on the page (up to 7)
#
# @param name [String] Name of the product
#
# @param tags [Array<String>] Tags associated with the product
Expand Down
2 changes: 1 addition & 1 deletion lib/brand_dev/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module BrandDev
VERSION = "0.24.0"
VERSION = "0.25.0"
end
8 changes: 8 additions & 0 deletions rbi/brand_dev/models/brand_ai_product_response.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ module BrandDev
sig { returns(T::Array[String]) }
attr_accessor :features

# URLs to product images on the page (up to 7)
sig { returns(T::Array[String]) }
attr_accessor :images

# Name of the product
sig { returns(String) }
attr_accessor :name
Expand Down Expand Up @@ -195,6 +199,7 @@ module BrandDev
params(
description: String,
features: T::Array[String],
images: T::Array[String],
name: String,
tags: T::Array[String],
target_audience: T::Array[String],
Expand All @@ -218,6 +223,8 @@ module BrandDev
description:,
# List of product features
features:,
# URLs to product images on the page (up to 7)
images:,
# Name of the product
name:,
# Tags associated with the product
Expand Down Expand Up @@ -246,6 +253,7 @@ module BrandDev
{
description: String,
features: T::Array[String],
images: T::Array[String],
name: String,
tags: T::Array[String],
target_audience: T::Array[String],
Expand Down
8 changes: 8 additions & 0 deletions rbi/brand_dev/models/brand_ai_products_response.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ module BrandDev
sig { returns(T::Array[String]) }
attr_accessor :features

# URLs to product images on the page (up to 7)
sig { returns(T::Array[String]) }
attr_accessor :images

# Name of the product
sig { returns(String) }
attr_accessor :name
Expand Down Expand Up @@ -125,6 +129,7 @@ module BrandDev
params(
description: String,
features: T::Array[String],
images: T::Array[String],
name: String,
tags: T::Array[String],
target_audience: T::Array[String],
Expand All @@ -148,6 +153,8 @@ module BrandDev
description:,
# List of product features
features:,
# URLs to product images on the page (up to 7)
images:,
# Name of the product
name:,
# Tags associated with the product
Expand Down Expand Up @@ -176,6 +183,7 @@ module BrandDev
{
description: String,
features: T::Array[String],
images: T::Array[String],
name: String,
tags: T::Array[String],
target_audience: T::Array[String],
Expand Down
41 changes: 0 additions & 41 deletions scripts/mock

This file was deleted.

46 changes: 0 additions & 46 deletions scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -4,53 +4,7 @@ set -e

cd -- "$(dirname -- "$0")/.."

RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
NC='\033[0m' # No Color

function prism_is_running() {
curl --silent "http://localhost:4010" >/dev/null 2>&1
}

kill_server_on_port() {
pids=$(lsof -t -i tcp:"$1" || echo "")
if [ "$pids" != "" ]; then
kill "$pids"
echo "Stopped $pids."
fi
}

function is_overriding_api_base_url() {
[ -n "$TEST_API_BASE_URL" ]
}

if ! is_overriding_api_base_url && ! prism_is_running ; then
# When we exit this script, make sure to kill the background mock server process
trap 'kill_server_on_port 4010' EXIT

# Start the dev server
./scripts/mock --daemon
fi

if is_overriding_api_base_url ; then
echo -e "${GREEN}✔ Running tests against ${TEST_API_BASE_URL}${NC}"
echo
elif ! prism_is_running ; then
echo -e "${RED}ERROR:${NC} The test suite will not run without a mock Prism server"
echo -e "running against your OpenAPI spec."
echo
echo -e "To run the server, pass in the path or url of your OpenAPI"
echo -e "spec to the prism command:"
echo
echo -e " \$ ${YELLOW}npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock path/to/your.openapi.yml${NC}"
echo

exit 1
else
echo -e "${GREEN}✔ Mock prism server is running with your OpenAPI spec${NC}"
echo
fi

echo "==> Running tests"
bundle exec rake test "$@"
5 changes: 5 additions & 0 deletions sig/brand_dev/models/brand_ai_product_response.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ module BrandDev
{
description: String,
features: ::Array[String],
images: ::Array[String],
name: String,
tags: ::Array[String],
target_audience: ::Array[String],
Expand All @@ -62,6 +63,8 @@ module BrandDev

attr_accessor features: ::Array[String]

attr_accessor images: ::Array[String]

attr_accessor name: String

attr_accessor tags: ::Array[String]
Expand All @@ -85,6 +88,7 @@ module BrandDev
def initialize: (
description: String,
features: ::Array[String],
images: ::Array[String],
name: String,
tags: ::Array[String],
target_audience: ::Array[String],
Expand All @@ -100,6 +104,7 @@ module BrandDev
def to_hash: -> {
description: String,
features: ::Array[String],
images: ::Array[String],
name: String,
tags: ::Array[String],
target_audience: ::Array[String],
Expand Down
5 changes: 5 additions & 0 deletions sig/brand_dev/models/brand_ai_products_response.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ module BrandDev
{
description: String,
features: ::Array[String],
images: ::Array[String],
name: String,
tags: ::Array[String],
target_audience: ::Array[String],
Expand All @@ -39,6 +40,8 @@ module BrandDev

attr_accessor features: ::Array[String]

attr_accessor images: ::Array[String]

attr_accessor name: String

attr_accessor tags: ::Array[String]
Expand All @@ -62,6 +65,7 @@ module BrandDev
def initialize: (
description: String,
features: ::Array[String],
images: ::Array[String],
name: String,
tags: ::Array[String],
target_audience: ::Array[String],
Expand All @@ -77,6 +81,7 @@ module BrandDev
def to_hash: -> {
description: String,
features: ::Array[String],
images: ::Array[String],
name: String,
tags: ::Array[String],
target_audience: ::Array[String],
Expand Down
Loading
Loading