ethon-impersonate 0.17.8 → 0.17.9

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: faf4063ffef5d654237a729dcfe824cd39f8eb9a3676713af3d9e21cabda69ff
4
- data.tar.gz: d9286ae02e692e4d4e4b481124f5f1ad26d082a82180c755f76b7db085b5591d
3
+ metadata.gz: 5b9bfbd46e50a7a596c16474685e5ccf8f6a5078272153f438530f7043562f0e
4
+ data.tar.gz: bfb4479da4bc9c2a71558d203eac92271fde3595a2e4100b2c8248a485f3db47
5
5
  SHA512:
6
- metadata.gz: 8bdc519d0c3984a413e24c0f6115dfc6f5dc4d6914137e5cca2b824b3662a0995aad352648a608eed482a55eb53917c094761894d58a9f78e9620e24257358fe
7
- data.tar.gz: 877e0684558bab742fd117ac2dd573732da3fbcfc9faa704d97a473fe731660a7759a5d5cf5b911507feec0b476ceb75ad87aec416c56feccdadbf8c18ea0650
6
+ metadata.gz: 02621abff9b277d5023c63109c03bb859edde03c5f4cdca1b2224e3ee559c51efaf37179147d2fce81a3d471ece5d64aaa7ec746640f790a7fb3efcfa7fca3df
7
+ data.tar.gz: f9ec9d68338ac0471a66c45751e83f6c1580833e15fe4451a2d5f1e00632af1d2863e1a956359e3889d9c149479a9d20157310f2cb2047512d48ebce25aea472
data/CHANGELOG.md CHANGED
@@ -2,7 +2,19 @@
2
2
 
3
3
  ## Master
4
4
 
5
- [Full Changelog](https://github.com/dsojevic/ethon-impersonate/compare/v0.16.0...master)
5
+ [Full Changelog](https://github.com/dsojevic/ethon-impersonate/compare/v0.17.9...master)
6
+
7
+ ## 0.17.9
8
+
9
+ [Full Changelog](https://github.com/dsojevic/ethon-impersonate/compare/v0.17.8...v0.17.9)
10
+
11
+ * Bumped [`curl-impersonate`](https://github.com/lexiforest/curl-impersonate) to `v1.0.0`
12
+
13
+ ## 0.17.8
14
+
15
+ [Full Changelog](https://github.com/dsojevic/ethon-impersonate/compare/v0.16.0...v0.17.8)
16
+
17
+ * Added basic support for [`curl-impersonate`](https://github.com/lexiforest/curl-impersonate) @ `v1.0.0rc1`
6
18
 
7
19
  ## 0.16.0
8
20
 
@@ -25,7 +25,11 @@ module EthonImpersonate
25
25
  headers ||= {}
26
26
  header_list = nil
27
27
  headers.each do |k, v|
28
- header_list = Curl.slist_append(header_list, compose_header(k,v))
28
+ v_list = v.is_a?(Array) ? v : [v]
29
+
30
+ v_list.each do |v_item|
31
+ header_list = Curl.slist_append(header_list, compose_header(k,v_item))
32
+ end
29
33
  end
30
34
  Curl.set_option(:httpheader, header_list, handle)
31
35
 
@@ -6,7 +6,7 @@ require "ffi/platform"
6
6
  module EthonImpersonate
7
7
  module Impersonate
8
8
  module Settings
9
- LIB_VERSION = "1.0.0rc1"
9
+ LIB_VERSION = "1.0.0"
10
10
  LIB_EXT_PATH = File.expand_path("../../ext/", File.dirname(__dir__))
11
11
 
12
12
  LIB_DOWNLOAD_BASE_URL = "https://github.com/lexiforest/curl-impersonate/releases/download/v#{LIB_VERSION}/"
@@ -21,6 +21,7 @@ module EthonImpersonate
21
21
  "chrome124",
22
22
  "chrome131",
23
23
  "chrome133a",
24
+ "chrome136",
24
25
  ].freeze
25
26
 
26
27
  CHROME_TARGETS = [
@@ -39,15 +40,17 @@ module EthonImpersonate
39
40
  ].freeze
40
41
 
41
42
  SAFARI_MOBILE_TARGETS = [
42
- "safari17_2_ios",
43
- "safari18_0_ios",
43
+ "safari172_ios",
44
+ "safari180_ios",
45
+ "safari184_ios",
44
46
  ].freeze
45
47
 
46
48
  SAFARI_DESKTOP_TARGETS = [
47
- "safari15_3",
48
- "safari15_5",
49
- "safari17_0",
50
- "safari18_0",
49
+ "safari153",
50
+ "safari155",
51
+ "safari170",
52
+ "safari180",
53
+ "safari184",
51
54
  ].freeze
52
55
 
53
56
  SAFARI_TARGETS = [
@@ -55,11 +58,16 @@ module EthonImpersonate
55
58
  *SAFARI_DESKTOP_TARGETS,
56
59
  ].freeze
57
60
 
61
+ TOR_TARGETS = [
62
+ "tor145",
63
+ ].freeze
64
+
58
65
  ALL_TARGETS = [
59
- *EDGE_TARGETS,
60
66
  *CHROME_TARGETS,
61
- *SAFARI_TARGETS,
67
+ *EDGE_TARGETS,
62
68
  *FIREFOX_TARGETS,
69
+ *SAFARI_TARGETS,
70
+ *TOR_TARGETS,
63
71
  ].freeze
64
72
 
65
73
  ALIASES = {
@@ -69,6 +77,7 @@ module EthonImpersonate
69
77
  "firefox" => FIREFOX_TARGETS.last,
70
78
  "safari" => SAFARI_DESKTOP_TARGETS.last,
71
79
  "safari_ios" => SAFARI_MOBILE_TARGETS.last,
80
+ "tor" => TOR_TARGETS.last,
72
81
  }.freeze
73
82
 
74
83
  BROWSERS = [
@@ -76,6 +85,7 @@ module EthonImpersonate
76
85
  *EDGE_TARGETS,
77
86
  *FIREFOX_TARGETS,
78
87
  *SAFARI_TARGETS,
88
+ *TOR_TARGETS,
79
89
  *ALIASES.keys,
80
90
  ].freeze
81
91
 
@@ -2,5 +2,5 @@
2
2
  module EthonImpersonate
3
3
 
4
4
  # EthonImpersonate version.
5
- VERSION = "0.17.8"
5
+ VERSION = "0.17.9"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ethon-impersonate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.8
4
+ version: 0.17.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Sojevic
8
8
  - Hans Hasselberg
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-17 00:00:00.000000000 Z
11
+ date: 2025-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi