selenium_tor 2.4.0 → 2.4.1

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: f286a9ec3a4254f5dde3620fb7bfbc3a01b44cefcdecbc1b328063121311dd3e
4
- data.tar.gz: 7afacf1a8f950a963801793b89da250145a5eb562a4bd5aa720aa54e21fd892a
3
+ metadata.gz: 6364e433d9dc6dae22726d13c881c445eecfe34d7ce3deaf6b7a6f018e2e12a5
4
+ data.tar.gz: 6cf4824e8b4b0bb836cfa4ee44be05da6efba6dbe880b91de71e93971234415a
5
5
  SHA512:
6
- metadata.gz: 735e4acd13a71084fad1dd72348c690942e4f2bbe517a69e24af06f51a4451569e4cb2c75ad162dfd7927640902ce83ca6387b0531a540bf3a8f7ad41da04737
7
- data.tar.gz: e87c7db4bc1e5519ab4a31c492dfb9dd50e0c8e392ac9bd06a8c00e078037295a6b3bdac44241ca9ec312c00725d6bc9b5b739d720bd3e44e3dd57e4f3ef48f5
6
+ metadata.gz: f49bbbcc7edbc15b544d06f1d6d1aadc3dc0a37f2e7210fe6b55a567b8dbc177db450fb6047d62a57560e024750b81907ac4581a35264688a81e60d195b82ae8
7
+ data.tar.gz: e0e76fc9a1b113221cc735f2b0b785e9d6a062d42bc7938d1303d0161c5950a5efe253cf27f3c94004a71301d152e2cfd80c21117322d162cada0e6fbdedd3a9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## master (unreleased)
2
2
 
3
+ ## [2.4.1] - 2026-03-12
4
+
5
+ * add Tor::TBB_TOR_GEOIP_DIR const for changed tor geoip files location in 16.0a4 (see tor-browser-build bug 40892)
6
+
3
7
  ## [2.4.0] - 2026-02-26
4
8
 
5
9
  * remove unecessary fonts directory
data/README.md CHANGED
@@ -133,6 +133,7 @@ Tor = Selenium::WebDriver::Tor
133
133
  Tor::TBB_DIR # path to the TBB root directory
134
134
  Tor::TBB_BROWSER_DIR # path to the 'Browser' directory in the above
135
135
  Tor::TBB_BINARY_PATH # path to the firefox binary
136
+ Tor::TBB_TOR_GEOIP_DIR # path to the geoip files directory in 16.0a4+
136
137
  Tor::TBB_TOR_BINARY_PATH # path to the bundled tor binary
137
138
  Tor::TBB_PROFILE_DIR # path to the default profile directory
138
139
  Tor::TBB_EXTENSIONS_DIR # path to the 'extensions' directory in the above
@@ -1,4 +1,8 @@
1
1
  ---
2
+ 16.0a4:
3
+ unpatched_libxul: 432205c32f39e9d78c2b525d4f8158cb1489bef85f9fdad6961b9c7493cb9a3a
4
+ patched_libxul: 61ee89195b06b6ed01581cf34a23bc324da3817ea703f8ad57f984664888c579
5
+ patch_checksum: 6d3b0755bee95bbfc8d3e4164699fd8e76c10807c67e5f23ea370e47cc50577c
2
6
  16.0a3:
3
7
  unpatched_libxul: a187365b3f57776ea04a4bba4b23f51fe43f2900d87d2569ddfcf7fe4685fbda
4
8
  patched_libxul: 9d485988ce3ad967f31a9a71025fcdf155ded283733455290a45991c19e869a1
data/lib/tor/options.rb CHANGED
@@ -15,6 +15,7 @@ module Selenium
15
15
  Tor::TBB_BROWSER_DIR = File.join Tor::TBB_DIR, 'Browser'
16
16
  Tor::TBB_LIBXUL = File.join Tor::TBB_BROWSER_DIR, 'libxul.so'
17
17
  Tor::TBB_BINARY_PATH = File.join Tor::TBB_BROWSER_DIR, 'firefox'
18
+ Tor::TBB_TOR_GEOIP_DIR = File.join Tor::TBB_BROWSER_DIR, *%w[TorBrowser Tor] # since 16.0a4
18
19
  Tor::TBB_TOR_BINARY_PATH = File.join Tor::TBB_BROWSER_DIR, *%w[TorBrowser Tor tor]
19
20
  Tor::TBB_TOR_DATA_DIR = File.join Tor::TBB_BROWSER_DIR, *%w[TorBrowser Data Tor]
20
21
  Tor::TBB_PROFILE_DIR = File.join Tor::TBB_BROWSER_DIR, *%w[TorBrowser Data Browser profile.default]
data/lib/tor/torrc.rb CHANGED
@@ -11,6 +11,8 @@ module Selenium
11
11
  FIXED_CONFIG_KEYS = %w[DataDirectory GeoIPFile GeoIPv6File SocksPort].freeze
12
12
  INVALID_OPTION_REGEX = %r{\[warn\] Failed to parse/validate config: (.*).$}
13
13
 
14
+ GEOIP_LOCATION_CHANGE_VER = Gem::Version.new '16.0a4'
15
+
14
16
  attr_reader :path
15
17
 
16
18
  def initialize(data_dir)
@@ -43,11 +45,17 @@ module Selenium
43
45
  end
44
46
 
45
47
  def geoip_file
46
- File.join(TBB_TOR_DATA_DIR, 'geoip')
48
+ # DEPRECATE after 16 stable
49
+ return File.join(TBB_TOR_DATA_DIR, 'geoip') if Gem::Version.new(Tor::TBB_VERSION) < GEOIP_LOCATION_CHANGE_VER
50
+
51
+ File.join(TBB_TOR_GEOIP_DIR, 'geoip')
47
52
  end
48
53
 
49
54
  def geoip6_file
50
- File.join(TBB_TOR_DATA_DIR, 'geoip6')
55
+ # DEPRECATE after 16 stable
56
+ return File.join(TBB_TOR_DATA_DIR, 'geoip6') if Gem::Version.new(Tor::TBB_VERSION) < GEOIP_LOCATION_CHANGE_VER
57
+
58
+ File.join(TBB_TOR_GEOIP_DIR, 'geoip6')
51
59
  end
52
60
 
53
61
  def validate_torrc_options(hash)
data/lib/tor/version.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  module Selenium
4
4
  module WebDriver
5
5
  module Tor
6
- VERSION = '2.4.0'
6
+ VERSION = '2.4.1'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selenium_tor
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - MatzFan