context.dev 1.0.0 → 1.2.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.
@@ -57,7 +57,16 @@ module ContextDev
57
57
  type: ContextDev::Models::WebWebScrapeImagesResponse::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 ContextDev::Internal::Type::Enum
@@ -67,6 +76,10 @@ module ContextDev
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[ContextDev::Models::WebWebScrapeImagesResponse::Image::element]
72
85
  end
@@ -5,7 +5,8 @@ module ContextDev
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
  & ContextDev::Internal::Type::request_parameters
11
12
 
@@ -27,11 +28,16 @@ module ContextDev
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: ContextDev::request_opts
36
42
  ) -> void
37
43
 
@@ -40,6 +46,7 @@ module ContextDev
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: ContextDev::RequestOptions
44
51
  }
45
52
  end
@@ -10,7 +10,6 @@ module ContextDev
10
10
  def extract_styleguide: (
11
11
  ?direct_url: String,
12
12
  ?domain: String,
13
- ?prioritize: ContextDev::Models::StyleExtractStyleguideParams::prioritize,
14
13
  ?timeout_ms: Integer,
15
14
  ?request_options: ContextDev::request_opts
16
15
  ) -> ContextDev::Models::StyleExtractStyleguideResponse
@@ -24,6 +24,7 @@ module ContextDev
24
24
  ?include_images: bool,
25
25
  ?include_links: bool,
26
26
  ?shorten_base64_images: bool,
27
+ ?use_main_content_only: bool,
27
28
  ?request_options: ContextDev::request_opts
28
29
  ) -> ContextDev::Models::WebWebScrapeMdResponse
29
30
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: context.dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Context 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-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi