brand.dev 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ad2c410bc6a4dba1388e8de6188f14672a5bdf8c9c63fdb9fbb53728219d2913
4
- data.tar.gz: 32a0fa5ae7f7344dc3cc0fef343b860dae4ba985dfe98235a69119e7576167a5
3
+ metadata.gz: a450ae13563d6601ceab30a27faa2bbfbe62cc2d6d914811d30fe21a7be10f13
4
+ data.tar.gz: 0034f678697c4cd1f98a9375ecbcf5743641cf09ccec08e7c5eea206518b59bc
5
5
  SHA512:
6
- metadata.gz: bd2e3fd908c4071730ddbdf7a7a8ee330700aa30cd27d1a0f373151a0d09b03b5b96313bb24082bdfc79cedc697183181e909a678cf5d35e366d7be968a6d8c5
7
- data.tar.gz: 38b50a3a3e45f4ec1003ddd9cd8b41b456700f768837307c2da330415a4ff2b4f26f69a4bef99fabc4f89cb32e27be0ddd2c2f3f61604b3453860d20d41e589a
6
+ metadata.gz: 7a3b8885a9a335c243535290d67f355a39164fcb7440c4589108eee358ad6b0e5fa19f7b694aa3cc23eb2f8ecb76ce123383215c9b4a56417746f94446d22aea
7
+ data.tar.gz: cb4cfa168fc1f9c81dd636b1f678c7440ee8da25fceb85617bd04a5870c8eec25fcbb444290b83825d76ee886f6d9df7bb5fec3cfe7c7877f3a781a435411d8e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
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
+
3
22
  ## 1.0.0 (2026-03-25)
4
23
 
5
24
  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)
data/README.md CHANGED
@@ -26,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application
26
26
  <!-- x-release-please-start-version -->
27
27
 
28
28
  ```ruby
29
- gem "brand.dev", "~> 1.0.0"
29
+ gem "brand.dev", "~> 1.1.0"
30
30
  ```
31
31
 
32
32
  <!-- x-release-please-end -->
@@ -571,8 +571,7 @@ module BrandDev
571
571
  y << "Content-Disposition: form-data"
572
572
 
573
573
  unless key.nil?
574
- name = ERB::Util.url_encode(key.to_s)
575
- y << "; name=\"#{name}\""
574
+ y << "; name=\"#{key}\""
576
575
  end
577
576
 
578
577
  case val
@@ -75,6 +75,10 @@ module BrandDev
75
75
  LINK = :link
76
76
  SOURCE = :source
77
77
  VIDEO = :video
78
+ CSS = :css
79
+ OBJECT = :object
80
+ META = :meta
81
+ BACKGROUND = :background
78
82
 
79
83
  # @!method self.values
80
84
  # @return [Array<Symbol>]
@@ -32,7 +32,14 @@ module BrandDev
32
32
  # @return [Boolean, nil]
33
33
  optional :shorten_base64_images, BrandDev::Internal::Type::Boolean
34
34
 
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: {})
36
43
  # Some parameter documentations has been truncated, see
37
44
  # {BrandDev::Models::BrandWebScrapeMdParams} for more details.
38
45
  #
@@ -44,6 +51,8 @@ module BrandDev
44
51
  #
45
52
  # @param shorten_base64_images [Boolean] Shorten base64-encoded image data in the Markdown output
46
53
  #
54
+ # @param use_main_content_only [Boolean] Extract only the main content of the page, excluding headers, footers, sidebars,
55
+ #
47
56
  # @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}]
48
57
  end
49
58
  end
@@ -584,7 +584,7 @@ module BrandDev
584
584
  # Scrapes the given URL, converts the HTML content to Markdown, and returns the
585
585
  # result.
586
586
  #
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: {})
588
588
  #
589
589
  # @param url [String] Full URL to scrape and convert to markdown (must include http:// or https:// pro
590
590
  #
@@ -594,6 +594,8 @@ module BrandDev
594
594
  #
595
595
  # @param shorten_base64_images [Boolean] Shorten base64-encoded image data in the Markdown output
596
596
  #
597
+ # @param use_main_content_only [Boolean] Extract only the main content of the page, excluding headers, footers, sidebars,
598
+ #
597
599
  # @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}, nil]
598
600
  #
599
601
  # @return [BrandDev::Models::BrandWebScrapeMdResponse]
@@ -608,7 +610,8 @@ module BrandDev
608
610
  query: query.transform_keys(
609
611
  include_images: "includeImages",
610
612
  include_links: "includeLinks",
611
- shorten_base64_images: "shortenBase64Images"
613
+ shorten_base64_images: "shortenBase64Images",
614
+ use_main_content_only: "useMainContentOnly"
612
615
  ),
613
616
  model: BrandDev::Models::BrandWebScrapeMdResponse,
614
617
  options: options
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BrandDev
4
- VERSION = "1.0.0"
4
+ VERSION = "1.1.0"
5
5
  end
@@ -172,6 +172,26 @@ module BrandDev
172
172
  :video,
173
173
  BrandDev::Models::BrandWebScrapeImagesResponse::Image::Element::TaggedSymbol
174
174
  )
175
+ CSS =
176
+ T.let(
177
+ :css,
178
+ BrandDev::Models::BrandWebScrapeImagesResponse::Image::Element::TaggedSymbol
179
+ )
180
+ OBJECT =
181
+ T.let(
182
+ :object,
183
+ BrandDev::Models::BrandWebScrapeImagesResponse::Image::Element::TaggedSymbol
184
+ )
185
+ META =
186
+ T.let(
187
+ :meta,
188
+ BrandDev::Models::BrandWebScrapeImagesResponse::Image::Element::TaggedSymbol
189
+ )
190
+ BACKGROUND =
191
+ T.let(
192
+ :background,
193
+ BrandDev::Models::BrandWebScrapeImagesResponse::Image::Element::TaggedSymbol
194
+ )
175
195
 
176
196
  sig do
177
197
  override.returns(
@@ -37,12 +37,21 @@ module BrandDev
37
37
  sig { params(shorten_base64_images: T::Boolean).void }
38
38
  attr_writer :shorten_base64_images
39
39
 
40
+ # Extract only the main content of the page, excluding headers, footers, sidebars,
41
+ # and navigation
42
+ sig { returns(T.nilable(T::Boolean)) }
43
+ attr_reader :use_main_content_only
44
+
45
+ sig { params(use_main_content_only: T::Boolean).void }
46
+ attr_writer :use_main_content_only
47
+
40
48
  sig do
41
49
  params(
42
50
  url: String,
43
51
  include_images: T::Boolean,
44
52
  include_links: T::Boolean,
45
53
  shorten_base64_images: T::Boolean,
54
+ use_main_content_only: T::Boolean,
46
55
  request_options: BrandDev::RequestOptions::OrHash
47
56
  ).returns(T.attached_class)
48
57
  end
@@ -56,6 +65,9 @@ module BrandDev
56
65
  include_links: nil,
57
66
  # Shorten base64-encoded image data in the Markdown output
58
67
  shorten_base64_images: nil,
68
+ # Extract only the main content of the page, excluding headers, footers, sidebars,
69
+ # and navigation
70
+ use_main_content_only: nil,
59
71
  request_options: {}
60
72
  )
61
73
  end
@@ -67,6 +79,7 @@ module BrandDev
67
79
  include_images: T::Boolean,
68
80
  include_links: T::Boolean,
69
81
  shorten_base64_images: T::Boolean,
82
+ use_main_content_only: T::Boolean,
70
83
  request_options: BrandDev::RequestOptions
71
84
  }
72
85
  )
@@ -504,6 +504,7 @@ module BrandDev
504
504
  include_images: T::Boolean,
505
505
  include_links: T::Boolean,
506
506
  shorten_base64_images: T::Boolean,
507
+ use_main_content_only: T::Boolean,
507
508
  request_options: BrandDev::RequestOptions::OrHash
508
509
  ).returns(BrandDev::Models::BrandWebScrapeMdResponse)
509
510
  end
@@ -517,6 +518,9 @@ module BrandDev
517
518
  include_links: nil,
518
519
  # Shorten base64-encoded image data in the Markdown output
519
520
  shorten_base64_images: nil,
521
+ # Extract only the main content of the page, excluding headers, footers, sidebars,
522
+ # and navigation
523
+ use_main_content_only: nil,
520
524
  request_options: {}
521
525
  )
522
526
  end
@@ -57,7 +57,16 @@ module BrandDev
57
57
  type: BrandDev::Models::BrandWebScrapeImagesResponse::Image::type_
58
58
  }
59
59
 
60
- type element = :img | :svg | :link | :source | :video
60
+ type element =
61
+ :img
62
+ | :svg
63
+ | :link
64
+ | :source
65
+ | :video
66
+ | :css
67
+ | :object
68
+ | :meta
69
+ | :background
61
70
 
62
71
  module Element
63
72
  extend BrandDev::Internal::Type::Enum
@@ -67,6 +76,10 @@ module BrandDev
67
76
  LINK: :link
68
77
  SOURCE: :source
69
78
  VIDEO: :video
79
+ CSS: :css
80
+ OBJECT: :object
81
+ META: :meta
82
+ BACKGROUND: :background
70
83
 
71
84
  def self?.values: -> ::Array[BrandDev::Models::BrandWebScrapeImagesResponse::Image::element]
72
85
  end
@@ -5,7 +5,8 @@ module BrandDev
5
5
  url: String,
6
6
  include_images: bool,
7
7
  include_links: bool,
8
- :shorten_base64_images => bool
8
+ :shorten_base64_images => bool,
9
+ use_main_content_only: bool
9
10
  }
10
11
  & BrandDev::Internal::Type::request_parameters
11
12
 
@@ -27,11 +28,16 @@ module BrandDev
27
28
 
28
29
  def shorten_base64_images=: (bool) -> bool
29
30
 
31
+ attr_reader use_main_content_only: bool?
32
+
33
+ def use_main_content_only=: (bool) -> bool
34
+
30
35
  def initialize: (
31
36
  url: String,
32
37
  ?include_images: bool,
33
38
  ?include_links: bool,
34
39
  ?shorten_base64_images: bool,
40
+ ?use_main_content_only: bool,
35
41
  ?request_options: BrandDev::request_opts
36
42
  ) -> void
37
43
 
@@ -40,6 +46,7 @@ module BrandDev
40
46
  include_images: bool,
41
47
  include_links: bool,
42
48
  :shorten_base64_images => bool,
49
+ use_main_content_only: bool,
43
50
  request_options: BrandDev::RequestOptions
44
51
  }
45
52
  end
@@ -138,6 +138,7 @@ module BrandDev
138
138
  ?include_images: bool,
139
139
  ?include_links: bool,
140
140
  ?shorten_base64_images: bool,
141
+ ?use_main_content_only: bool,
141
142
  ?request_options: BrandDev::request_opts
142
143
  ) -> BrandDev::Models::BrandWebScrapeMdResponse
143
144
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brand.dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brand Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-03-25 00:00:00.000000000 Z
11
+ date: 2026-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi