brand.dev 0.32.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: 231e73050b4bf5b28b8b6dde0138d2a99a456f06f5f7c4f1d14ef176bf8d3ba3
4
- data.tar.gz: 1852c03bc8de20f23a6236a39c81eba70fec994a89e8b5e8036e8feefa2d3035
3
+ metadata.gz: a450ae13563d6601ceab30a27faa2bbfbe62cc2d6d914811d30fe21a7be10f13
4
+ data.tar.gz: 0034f678697c4cd1f98a9375ecbcf5743641cf09ccec08e7c5eea206518b59bc
5
5
  SHA512:
6
- metadata.gz: f77e137daa87328e193805f16d716ad2de3f094a15543b98fbd747728ea783fb7a8a83d45dbc478ab0fb024db236af25e1a839d818eeb3de69dcf534dabcc48a
7
- data.tar.gz: f79e1ed1dc918a14789353d5b499ec815ba5f62f1a1b4a4e8cddc853775faabbc6d3682b79fa234df2c8984006f0d7b62b5e5c6e2274d58ab67a72d275b9595d
6
+ metadata.gz: 7a3b8885a9a335c243535290d67f355a39164fcb7440c4589108eee358ad6b0e5fa19f7b694aa3cc23eb2f8ecb76ce123383215c9b4a56417746f94446d22aea
7
+ data.tar.gz: cb4cfa168fc1f9c81dd636b1f678c7440ee8da25fceb85617bd04a5870c8eec25fcbb444290b83825d76ee886f6d9df7bb5fec3cfe7c7877f3a781a435411d8e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
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
+
22
+ ## 1.0.0 (2026-03-25)
23
+
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)
25
+
26
+ ### Features
27
+
28
+ * **api:** api update ([e10b343](https://github.com/context-dot-dev/deprecated-brand-ruby-sdk/commit/e10b3438772d9bc37350370bf7bf0e7e9a1cf1e4))
29
+ * **api:** manual updates ([a8fd0cb](https://github.com/context-dot-dev/deprecated-brand-ruby-sdk/commit/a8fd0cb9fb3e922ff1075202a205e3663beb7cb4))
30
+
3
31
  ## 0.32.0 (2026-03-25)
4
32
 
5
33
  Full Changelog: [v0.31.0...v0.32.0](https://github.com/context-dot-dev/deprecated-brand-ruby-sdk/compare/v0.31.0...v0.32.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", "~> 0.32.0"
29
+ gem "brand.dev", "~> 1.1.0"
30
30
  ```
31
31
 
32
32
  <!-- x-release-please-end -->
data/SECURITY.md CHANGED
@@ -20,7 +20,7 @@ or products provided by Brand Dev, please follow the respective company's securi
20
20
 
21
21
  ### Brand Dev Terms and Policies
22
22
 
23
- Please contact hello@context.dev for any questions or concerns regarding the security of our services.
23
+ Please contact yahia@context.dev for any questions or concerns regarding the security of our services.
24
24
 
25
25
  ---
26
26
 
@@ -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
@@ -530,8 +530,7 @@ module BrandDev
530
530
  )
531
531
  end
532
532
 
533
- # Scrapes the given URL and returns the raw HTML content of the page. Uses
534
- # automatic proxy escalation to handle blocked sites.
533
+ # Scrapes the given URL and returns the raw HTML content of the page.
535
534
  #
536
535
  # @overload web_scrape_html(url:, request_options: {})
537
536
  #
@@ -582,11 +581,10 @@ module BrandDev
582
581
  # Some parameter documentations has been truncated, see
583
582
  # {BrandDev::Models::BrandWebScrapeMdParams} for more details.
584
583
  #
585
- # Scrapes the given URL, converts the HTML content to GitHub Flavored Markdown
586
- # (GFM), and returns the result. Uses automatic proxy escalation to handle blocked
587
- # sites.
584
+ # Scrapes the given URL, converts the HTML content to Markdown, and returns the
585
+ # result.
588
586
  #
589
- # @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: {})
590
588
  #
591
589
  # @param url [String] Full URL to scrape and convert to markdown (must include http:// or https:// pro
592
590
  #
@@ -596,6 +594,8 @@ module BrandDev
596
594
  #
597
595
  # @param shorten_base64_images [Boolean] Shorten base64-encoded image data in the Markdown output
598
596
  #
597
+ # @param use_main_content_only [Boolean] Extract only the main content of the page, excluding headers, footers, sidebars,
598
+ #
599
599
  # @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}, nil]
600
600
  #
601
601
  # @return [BrandDev::Models::BrandWebScrapeMdResponse]
@@ -610,7 +610,8 @@ module BrandDev
610
610
  query: query.transform_keys(
611
611
  include_images: "includeImages",
612
612
  include_links: "includeLinks",
613
- shorten_base64_images: "shortenBase64Images"
613
+ shorten_base64_images: "shortenBase64Images",
614
+ use_main_content_only: "useMainContentOnly"
614
615
  ),
615
616
  model: BrandDev::Models::BrandWebScrapeMdResponse,
616
617
  options: options
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BrandDev
4
- VERSION = "0.32.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
  )
@@ -466,8 +466,7 @@ module BrandDev
466
466
  )
467
467
  end
468
468
 
469
- # Scrapes the given URL and returns the raw HTML content of the page. Uses
470
- # automatic proxy escalation to handle blocked sites.
469
+ # Scrapes the given URL and returns the raw HTML content of the page.
471
470
  sig do
472
471
  params(
473
472
  url: String,
@@ -497,15 +496,15 @@ module BrandDev
497
496
  )
498
497
  end
499
498
 
500
- # Scrapes the given URL, converts the HTML content to GitHub Flavored Markdown
501
- # (GFM), and returns the result. Uses automatic proxy escalation to handle blocked
502
- # sites.
499
+ # Scrapes the given URL, converts the HTML content to Markdown, and returns the
500
+ # result.
503
501
  sig do
504
502
  params(
505
503
  url: String,
506
504
  include_images: T::Boolean,
507
505
  include_links: T::Boolean,
508
506
  shorten_base64_images: T::Boolean,
507
+ use_main_content_only: T::Boolean,
509
508
  request_options: BrandDev::RequestOptions::OrHash
510
509
  ).returns(BrandDev::Models::BrandWebScrapeMdResponse)
511
510
  end
@@ -519,6 +518,9 @@ module BrandDev
519
518
  include_links: nil,
520
519
  # Shorten base64-encoded image data in the Markdown output
521
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,
522
524
  request_options: {}
523
525
  )
524
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: 0.32.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
@@ -39,7 +39,7 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  description:
42
- email: hello@context.dev
42
+ email: yahia@context.dev
43
43
  executables: []
44
44
  extensions: []
45
45
  extra_rdoc_files: