ethon-impersonate 0.17.1 → 0.17.7

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: 0430cd7fec076154789d8b569194e71add0ffba025a7954b54ff624de5b4dcd9
4
- data.tar.gz: 50d1205864ec48123b93e32b17694c965b0744d8315a5f51937c7a6637c9855d
3
+ metadata.gz: 2f26819264a2d32e0d051b9a30ea90030da1a28b2b23aba9fc78ed36e7d8af14
4
+ data.tar.gz: b020bb5e6793ee08576ee1a4845fdf5f67af960da9d061594b05e5beacdc946a
5
5
  SHA512:
6
- metadata.gz: 5864b1d62b5ee25ceb2de6a407c6ba3d0ef6481624e0cca4025491a18064fff13c10b24b53701d47e311f0e4f4dc04f5126088a55f5ec25e7246bb11cea41af9
7
- data.tar.gz: a37c4d41ae499aac093fb2b607901471cafab9193e2fabda57cf0892898f7653f258e2fb0ab293431668e5192d25d7e1c1c2660cb3c5c8caf98b6c737aa0c2df
6
+ metadata.gz: ec8d43b2a66163bfc30b163e197b11b94ffb4ed053edef0feb9628f74f573daf7ccc6ba0b7969b4c3a69a760b0d8f7613b5c0dd21fa2c22d6a12b5e69ad4b751
7
+ data.tar.gz: af54989ef3a10d0d6ec390133e16fee1b5466450b14a61625571a6fce868574840c39b0968a1477c4516e28337af9a4b84411aac8fad474466b9678b5fa34bbc
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
21
21
  s.add_dependency("ffi", ["~> 1.15"])
22
22
 
23
23
  s.files = Dir.chdir(__dir__) do
24
- `git ls-files -z`.split("\x0") + Dir.glob("ext/**/*")
24
+ `git ls-files -z`.split("\x0")
25
25
  end.reject { |file| file.start_with?(*%w[. Gemfile Guardfile Rakefile profile spec scripts]) || file.end_with?(".gitignore") }
26
26
 
27
27
  s.require_path = "lib"
@@ -8,12 +8,6 @@ module EthonImpersonate
8
8
  callback :progress_callback, [:pointer, :long_long, :long_long, :long_long, :long_long], :int
9
9
  ffi_lib_flags :now, :global
10
10
 
11
- ffi_lib [
12
- ENV['CURL_IMPERSONATE_PATH'],
13
- "libcurl-impersonate-chrome",
14
- "libcurl-impersonate-chrome.4.dylib",
15
- File.expand_path('../../../../ext/libcurl-impersonate-chrome', __FILE__),
16
- File.expand_path('../../../../ext/libcurl-impersonate-chrome.4.dylib', __FILE__),
17
- ]
11
+ ffi_lib EthonImpersonate::Impersonate::Settings.ffi_libs
18
12
  end
19
13
  end
@@ -18,15 +18,20 @@ module EthonImpersonate
18
18
  }.freeze
19
19
 
20
20
  LIB_PLATFORM_RELEASE_MAP = {
21
- "aarch64-linux" => "libcurl-impersonate-v#{LIB_VERSION}.aarch64-linux-gnu.tar.gz",
22
- "arm-linux" => "libcurl-impersonate-v#{LIB_VERSION}.arm-linux-gnueabihf.tar.gz",
21
+ # "aarch64-linux" => "libcurl-impersonate-v#{LIB_VERSION}.aarch64-linux-gnu.tar.gz",
22
+ # "arm-linux" => "libcurl-impersonate-v#{LIB_VERSION}.arm-linux-gnueabihf.tar.gz",
23
23
  "aarch64-darwin" => "libcurl-impersonate-v#{LIB_VERSION}.arm64-macos.tar.gz",
24
- "i386-linux" => "libcurl-impersonate-v#{LIB_VERSION}.i386-linux-gnu.tar.gz",
25
- "i686-windows" => "libcurl-impersonate-v#{LIB_VERSION}.i686-win32.tar.gz",
26
- "riscv64-linux" => "libcurl-impersonate-v#{LIB_VERSION}.riscv64-linux-gnu.tar.gz",
24
+ # "i386-linux" => "libcurl-impersonate-v#{LIB_VERSION}.i386-linux-gnu.tar.gz",
25
+ # "i686-windows" => "libcurl-impersonate-v#{LIB_VERSION}.i686-win32.tar.gz",
26
+ # "riscv64-linux" => "libcurl-impersonate-v#{LIB_VERSION}.riscv64-linux-gnu.tar.gz",
27
27
  "x86_64-linux" => "libcurl-impersonate-v#{LIB_VERSION}.x86_64-linux-gnu.tar.gz",
28
- "x86_64-darwin" => "libcurl-impersonate-v#{LIB_VERSION}.x86_64-macos.tar.gz",
29
- "x86_64-windows" => "libcurl-impersonate-v#{LIB_VERSION}.x86_64-win32.tar.gz",
28
+ # "x86_64-darwin" => "libcurl-impersonate-v#{LIB_VERSION}.x86_64-macos.tar.gz",
29
+ # "x86_64-windows" => "libcurl-impersonate-v#{LIB_VERSION}.x86_64-win32.tar.gz",
30
+ }.freeze
31
+
32
+ GEM_PLATFORMS_MAP = {
33
+ "aarch64-darwin" => ["arm64-darwin-24"],
34
+ "x86_64-windows" => ["x64-mingw32"],
30
35
  }.freeze
31
36
 
32
37
  def self.ffi_libs
@@ -43,10 +48,6 @@ module EthonImpersonate
43
48
  libraries += lib_names
44
49
  libraries += lib_names.map { |lib_name| File.join(LIB_EXT_PATH, lib_name) }
45
50
 
46
- # if FFI::Platform::OS == "windows"
47
- # libraries << File.join(LIB_EXT_PATH, "bin", LIB_OS_FULL_NAME_MAP[FFI::Platform::OS])
48
- # end
49
-
50
51
  libraries
51
52
  end
52
53
 
@@ -2,5 +2,5 @@
2
2
  module EthonImpersonate
3
3
 
4
4
  # EthonImpersonate version.
5
- VERSION = "0.17.1"
5
+ VERSION = "0.17.7"
6
6
  end
@@ -12,13 +12,13 @@ rescue LoadError
12
12
  end
13
13
  require 'tempfile'
14
14
 
15
+ require 'ethon_impersonate/impersonate'
15
16
  require 'ethon_impersonate/libc'
16
17
  require 'ethon_impersonate/curl'
17
18
  require 'ethon_impersonate/easy'
18
19
  require 'ethon_impersonate/errors'
19
20
  require 'ethon_impersonate/loggable'
20
21
  require 'ethon_impersonate/multi'
21
- require 'ethon_impersonate/impersonate'
22
22
  require 'ethon_impersonate/version'
23
23
 
24
24
  # EthonImpersonate is a very simple curl-impersonate wrapper.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ethon-impersonate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.1
4
+ version: 0.17.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Sojevic
@@ -38,7 +38,6 @@ files:
38
38
  - config/puma.rb
39
39
  - ethon-impersonate.gemspec
40
40
  - lib/ethon-impersonate.rb
41
- - lib/ethon/impersonate.rb
42
41
  - lib/ethon_impersonate.rb
43
42
  - lib/ethon_impersonate/curl.rb
44
43
  - lib/ethon_impersonate/curls/classes.rb
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
- require 'ethon/impersonate/fingerprints'
3
- require 'ethon/impersonate/targets'
4
- require 'ethon/impersonate/tls'
5
-
6
- module Ethon
7
- module Impersonate
8
- end
9
- end