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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -0
- data/lib/tor/libxul_checksums.yml +4 -0
- data/lib/tor/options.rb +1 -0
- data/lib/tor/torrc.rb +10 -2
- data/lib/tor/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6364e433d9dc6dae22726d13c881c445eecfe34d7ce3deaf6b7a6f018e2e12a5
|
|
4
|
+
data.tar.gz: 6cf4824e8b4b0bb836cfa4ee44be05da6efba6dbe880b91de71e93971234415a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f49bbbcc7edbc15b544d06f1d6d1aadc3dc0a37f2e7210fe6b55a567b8dbc177db450fb6047d62a57560e024750b81907ac4581a35264688a81e60d195b82ae8
|
|
7
|
+
data.tar.gz: e0e76fc9a1b113221cc735f2b0b785e9d6a062d42bc7938d1303d0161c5950a5efe253cf27f3c94004a71301d152e2cfd80c21117322d162cada0e6fbdedd3a9
|
data/CHANGELOG.md
CHANGED
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
|
-
|
|
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
|
-
|
|
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