Skip to content

Commit 2c9f16a

Browse files
authored
Merge pull request #60 from context-dot-dev/release-please--branches--main--changes--next
release: 1.1.0
2 parents 15810b5 + 079b365 commit 2c9f16a

17 files changed

Lines changed: 106 additions & 15 deletions

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ jobs:
2424
runs-on: ${{ github.repository == 'stainless-sdks/brand.dev-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
2525
if: |-
2626
github.repository == 'stainless-sdks/brand.dev-ruby' &&
27-
(github.event_name == 'push' || github.event.pull_request.head.repo.fork) &&
28-
(github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
27+
(github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
2928
steps:
3029
- uses: actions/checkout@v6
3130
- name: Set up Ruby

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.0.0"
2+
".": "1.1.0"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 20
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-fb4ca438793aa469ccc6d74266351ce4ad23b90521c62690755940dc7758225b.yml
3-
openapi_spec_hash: caaf8fcba98e886cef121c2845ecbc57
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-c91b0567307b069c250d073074b7c861b64e632a8380b24925e15d981846bb43.yml
3+
openapi_spec_hash: e479aa097b1283c2acf19d6360787449
44
config_hash: 91cf2dcefb99c39eb9cd3e98e15d6011

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# Changelog
22

3+
## 1.1.0 (2026-03-28)
4+
5+
Full Changelog: [v1.0.0...v1.1.0](https://github.com/context-dot-dev/deprecated-brand-ruby-sdk/compare/v1.0.0...v1.1.0)
6+
7+
### Features
8+
9+
* **api:** api update ([03558d9](https://github.com/context-dot-dev/deprecated-brand-ruby-sdk/commit/03558d9514387f8e11a927a53a78d97bf38d966a))
10+
* **api:** api update ([f1e52c1](https://github.com/context-dot-dev/deprecated-brand-ruby-sdk/commit/f1e52c1ea2bcc9535493849a5ac5243313e1541b))
11+
12+
13+
### Bug Fixes
14+
15+
* **internal:** correct multipart form field name encoding ([6455f42](https://github.com/context-dot-dev/deprecated-brand-ruby-sdk/commit/6455f428805bd7af12d6d18a54ff64c54cabfbb3))
16+
17+
18+
### Chores
19+
20+
* **ci:** support opting out of skipping builds on metadata-only commits ([efb0a18](https://github.com/context-dot-dev/deprecated-brand-ruby-sdk/commit/efb0a181cf5eef3650a352c3c97b32eb888bdc81))
21+
322
## 1.0.0 (2026-03-25)
423

524
Full Changelog: [v0.32.0...v1.0.0](https://github.com/context-dot-dev/deprecated-brand-ruby-sdk/compare/v0.32.0...v1.0.0)

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ GIT
1111
PATH
1212
remote: .
1313
specs:
14-
brand.dev (1.0.0)
14+
brand.dev (1.1.0)
1515
cgi
1616
connection_pool
1717

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application
2626
<!-- x-release-please-start-version -->
2727

2828
```ruby
29-
gem "brand.dev", "~> 1.0.0"
29+
gem "brand.dev", "~> 1.1.0"
3030
```
3131

3232
<!-- x-release-please-end -->

lib/brand_dev/internal/util.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,8 +571,7 @@ def encode_query_params(query)
571571
y << "Content-Disposition: form-data"
572572

573573
unless key.nil?
574-
name = ERB::Util.url_encode(key.to_s)
575-
y << "; name=\"#{name}\""
574+
y << "; name=\"#{key}\""
576575
end
577576

578577
case val

lib/brand_dev/models/brand_web_scrape_images_response.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ module Element
7575
LINK = :link
7676
SOURCE = :source
7777
VIDEO = :video
78+
CSS = :css
79+
OBJECT = :object
80+
META = :meta
81+
BACKGROUND = :background
7882

7983
# @!method self.values
8084
# @return [Array<Symbol>]

lib/brand_dev/models/brand_web_scrape_md_params.rb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,14 @@ class BrandWebScrapeMdParams < BrandDev::Internal::Type::BaseModel
3232
# @return [Boolean, nil]
3333
optional :shorten_base64_images, BrandDev::Internal::Type::Boolean
3434

35-
# @!method initialize(url:, include_images: nil, include_links: nil, shorten_base64_images: nil, request_options: {})
35+
# @!attribute use_main_content_only
36+
# Extract only the main content of the page, excluding headers, footers, sidebars,
37+
# and navigation
38+
#
39+
# @return [Boolean, nil]
40+
optional :use_main_content_only, BrandDev::Internal::Type::Boolean
41+
42+
# @!method initialize(url:, include_images: nil, include_links: nil, shorten_base64_images: nil, use_main_content_only: nil, request_options: {})
3643
# Some parameter documentations has been truncated, see
3744
# {BrandDev::Models::BrandWebScrapeMdParams} for more details.
3845
#
@@ -44,6 +51,8 @@ class BrandWebScrapeMdParams < BrandDev::Internal::Type::BaseModel
4451
#
4552
# @param shorten_base64_images [Boolean] Shorten base64-encoded image data in the Markdown output
4653
#
54+
# @param use_main_content_only [Boolean] Extract only the main content of the page, excluding headers, footers, sidebars,
55+
#
4756
# @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}]
4857
end
4958
end

lib/brand_dev/resources/brand.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ def web_scrape_images(params)
584584
# Scrapes the given URL, converts the HTML content to Markdown, and returns the
585585
# result.
586586
#
587-
# @overload web_scrape_md(url:, include_images: nil, include_links: nil, shorten_base64_images: nil, request_options: {})
587+
# @overload web_scrape_md(url:, include_images: nil, include_links: nil, shorten_base64_images: nil, use_main_content_only: nil, request_options: {})
588588
#
589589
# @param url [String] Full URL to scrape and convert to markdown (must include http:// or https:// pro
590590
#
@@ -594,6 +594,8 @@ def web_scrape_images(params)
594594
#
595595
# @param shorten_base64_images [Boolean] Shorten base64-encoded image data in the Markdown output
596596
#
597+
# @param use_main_content_only [Boolean] Extract only the main content of the page, excluding headers, footers, sidebars,
598+
#
597599
# @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}, nil]
598600
#
599601
# @return [BrandDev::Models::BrandWebScrapeMdResponse]
@@ -608,7 +610,8 @@ def web_scrape_md(params)
608610
query: query.transform_keys(
609611
include_images: "includeImages",
610612
include_links: "includeLinks",
611-
shorten_base64_images: "shortenBase64Images"
613+
shorten_base64_images: "shortenBase64Images",
614+
use_main_content_only: "useMainContentOnly"
612615
),
613616
model: BrandDev::Models::BrandWebScrapeMdResponse,
614617
options: options

0 commit comments

Comments
 (0)