selenium_tor 2.2.1 → 2.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d8329102a7b230a47fe7e81f837020e998eb2e8da05ce2db085a6246b0aaa7e
4
- data.tar.gz: 2ec3cc3341b49d74e85b0d8da0de4ddee2a56f900c41b142bf21dd7ceca541cf
3
+ metadata.gz: 0c4afffc8d47d738f3b7681fb5cd7a912462d110ae5b550081f306435ab1a78a
4
+ data.tar.gz: b17ac5d81b86d3e7df1f040205745906372f8299ac0672e6b65451c38f1842a7
5
5
  SHA512:
6
- metadata.gz: 414a8b5ef9efd574aa72e507b97f4118ce1bc7ec9bbcd0b01307e9af3f90baf7dfebd4d07df5f3921629187d8247c680abca540e455cf37860ed6ad1a6ce6c1b
7
- data.tar.gz: 647240fb7faf4f1ee702a77ac2d47c334f8aaf272e30661f57c78076edcdb6bc5a8bb2d5ef20449455169ac17ff34b6dc4c43ce54a13035651344d54a226a4c6
6
+ metadata.gz: fb50836ee804e2d3e6da25007b678974c02107b951972c9a91c03a0970c07f7e628a31b1a4da290ec613bbac6a65a75cd4d4186fc5e9ba4d004cb382f90aa4be
7
+ data.tar.gz: 70db8894e6728cf891d1e7f2f280486e10357867054f2eaa286ea3f51cd6e2b9de4e63d3e29212b51f7a9c7a09467057a63c5568878583c64369d875dfa27efb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  ## master (unreleased)
2
2
 
3
+ ## [2.3.0] - 2025-10-29
4
+
5
+ * add fonts dir
6
+ * add ability to pick up libxul.so checksums from repo for newer browsers
7
+ * drop support for Tor Browser < 15.0
8
+
9
+ ## [2.2.2] - 2025-10-24
10
+
11
+ * support 14.5.8 & 15.0a4
12
+
3
13
  ## [2.2.1] - 2025-09-25
4
14
 
5
15
  ### Bug fixes
data/README.md CHANGED
@@ -45,7 +45,7 @@ If bundler is not being used to manage dependencies, install the gem by executin
45
45
 
46
46
  ## Dependencies and configuration
47
47
 
48
- [Tor Browser](https://www.torproject.org/download). Tests are conducted with the latest stable ('release') and alpha versions of Tor Browser. Support for older versions is periodically dropped - see the CHANGELOG.
48
+ [Tor Browser](https://www.torproject.org/download). The latest latest stable ('release') version of Tor Browser is supported. The latest alpha release is also supported if it is newer than the latest stable release. Support for older versions is periodically dropped - see the CHANGELOG.
49
49
 
50
50
  As with Firefox browser, `geckodriver` needs to be installed and in your PATH. [Selenium Manager](https://www.selenium.dev/documentation/selenium_manager) is disabled for security reasons, so you are responsible for ensuring the correct (latest) version of geckodriver is installed.
51
51
 
data/fonts/Jigmo.ttf ADDED
Binary file
data/fonts/Jigmo2.ttf ADDED
Binary file
data/fonts/Jigmo3.ttf ADDED
Binary file
data/lib/tor/driver.rb CHANGED
@@ -31,9 +31,6 @@ module Selenium
31
31
 
32
32
  LOCALHOST_PORT_REGEXP = /127\.0\.0\.1:(\d+)/
33
33
 
34
- NOTO_COLOR_EMOJI = 'NotoColorEmoji.ttf'
35
- FONTS_NOTO_COLOR_EMOJI_PATH = File.expand_path(File.join('..', '..', 'fonts', NOTO_COLOR_EMOJI), __dir__)
36
-
37
34
  attr_reader :tor_process
38
35
 
39
36
  def initialize(options: nil, **)
@@ -43,7 +40,6 @@ module Selenium
43
40
  add_torrc_path_to_options
44
41
  @instance = DriverDelegate.new(options: @options, **)
45
42
  install_extensions @instance
46
- noto_color_emoji_font # to remove in 15 stable
47
43
  pid = create_tor_process_and_start_tor(@options.tor_opts)
48
44
  @instance.pref[PREF_SOCKS_PORT] = socks_port(pid)
49
45
  super(@instance)
@@ -107,14 +103,6 @@ module Selenium
107
103
  str = `netstat -tnlp 2>/dev/null|grep #{pid}/tor` # net-tools dep
108
104
  str.match(LOCALHOST_PORT_REGEXP)[1].to_i
109
105
  end
110
-
111
- def noto_color_emoji_font
112
- if Tor::TBB_VERSION.to_i < 15
113
- FileUtils.rm FONTS_NOTO_COLOR_EMOJI_PATH rescue Errno::ENOENT # rubocop:disable Style/RescueModifier
114
- else
115
- FileUtils.cp File.expand_path(File.join('..', '..', NOTO_COLOR_EMOJI), __dir__), FONTS_NOTO_COLOR_EMOJI_PATH
116
- end
117
- end
118
106
  end
119
107
  end
120
108
  end
@@ -1,4 +1,12 @@
1
1
  ---
2
+ !!str 15.0:
3
+ unpatched_libxul: 26f036483a287cd983e2d902509488ee0417852acfe604bdae20426af06cb40f
4
+ patched_libxul: 38404fadd00e469dbae95981a7999d5204113a4bec0229ff193cf05a0363f364
5
+ patch_checksum: 034dddcfe79e532b602d36d5adb1c3e30478ee61382a7a15796db0460144500a
6
+ 15.0a4:
7
+ unpatched_libxul: e9ec4b3e3b7aa515b97f30f360a7f59f7451626670a12cb04502992d1d40741f
8
+ patched_libxul: da516b25fc9873cfbc2d53a3ef7eff12d3c61fa43cb36069d75afc28aabc0505
9
+ patch_checksum: c7f50cd731f7a9fbff2b77ddca8e473f3b367e75fbfb9ecdcb9881645f82afe6
2
10
  15.0a3:
3
11
  unpatched_libxul: 8088a4549fe3d3f8fb0c7460333b1ffc12255810d2d43eb3c01c5f3b090f16c0
4
12
  patched_libxul: 26c7e4ae0a8d63ede3f7b683985d30a7e4d5ef2f57b8c915935551f5801d1008
@@ -11,6 +19,10 @@
11
19
  unpatched_libxul: f45088cb17883e14410687ca2fb09a68e45bef699f105641dbe9fd0fdb0f9d09
12
20
  patched_libxul: 7b5c745180d2d89e2c80b12debb18789758e4618dfee66ff0cd3b41fc922abc4
13
21
  patch_checksum: 459744d0a0bcd7b83f019d746b79066d21ec55e59657df126eb76921d7686ae4
22
+ 14.5.8:
23
+ unpatched_libxul: aa940620540bebbe1a4f419aa9bf3c2a1ca4c8b9a823311058628e499605577c
24
+ patched_libxul: 6616c498dfc0c48e9a97c3985cad6d3c667b60d03e19f99d66ba9cba604df5e7
25
+ patch_checksum: f543f40dcab15a4cb4005afc2bfc0df9a0f57668d8ec40b506cc54b6eb28126c
14
26
  14.5.7:
15
27
  unpatched_libxul: d470f31ce92df0da3a5dde7ba9a223e9a021aa03e9678a40892635bab91cf4a3
16
28
  patched_libxul: cc55cfdbfadcbd68c689b87a0a50a1f90dc2eb912ef783e7dd65f6f7431c6cba
@@ -70,14 +70,14 @@ module Selenium
70
70
  end
71
71
 
72
72
  def libxul_checksums
73
- @libxul_checksums ||= local_checksums&.merge repo_checksums
74
- raise Tor::LibxulPatchableError, NO_PATCH_MSG unless @libxul_checksums
73
+ @libxul_checksums ||= repo_checksums.merge local_checksums
74
+ raise Tor::LibxulPatchableError, NO_PATCH_MSG if @libxul_checksums.empty?
75
75
 
76
76
  @libxul_checksums
77
77
  end
78
78
 
79
79
  def local_checksums
80
- YAML.load_file(File.join(__dir__, 'libxul_checksums.yml'))[Tor::TBB_VERSION]
80
+ YAML.load_file(File.join(__dir__, 'libxul_checksums.yml'))[Tor::TBB_VERSION] || {}
81
81
  end
82
82
 
83
83
  def repo_checksums
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.2.1'
6
+ VERSION = '2.3.0'
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.2.1
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - MatzFan
@@ -29,14 +29,14 @@ dependencies:
29
29
  requirements:
30
30
  - - "~>"
31
31
  - !ruby/object:Gem::Version
32
- version: '4.35'
32
+ version: '4.38'
33
33
  type: :runtime
34
34
  prerelease: false
35
35
  version_requirements: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '4.35'
39
+ version: '4.38'
40
40
  description: An extension for Selenium::WebDriver that automates Tor Browser
41
41
  executables: []
42
42
  extensions: []
@@ -48,7 +48,6 @@ files:
48
48
  - CHANGELOG.md
49
49
  - Guardfile
50
50
  - LICENSE.txt
51
- - NotoColorEmoji.ttf
52
51
  - README.md
53
52
  - Rakefile
54
53
  - fonts/000_README.txt
@@ -60,6 +59,10 @@ files:
60
59
  - fonts/Cousine-BoldItalic.ttf
61
60
  - fonts/Cousine-Italic.ttf
62
61
  - fonts/Cousine-Regular.ttf
62
+ - fonts/Jigmo.ttf
63
+ - fonts/Jigmo2.ttf
64
+ - fonts/Jigmo3.ttf
65
+ - fonts/NotoColorEmoji.ttf
63
66
  - fonts/NotoNaskhArabic-Regular.ttf
64
67
  - fonts/NotoSansAdlam-Regular.ttf
65
68
  - fonts/NotoSansArmenian-Regular.ttf
@@ -87,9 +90,7 @@ files:
87
90
  - fonts/NotoSansHanifiRohingya-Regular.ttf
88
91
  - fonts/NotoSansHanunoo-Regular.ttf
89
92
  - fonts/NotoSansHebrew-Regular.ttf
90
- - fonts/NotoSansJP-Regular.otf
91
93
  - fonts/NotoSansJavanese-Regular.ttf
92
- - fonts/NotoSansKR-Regular.otf
93
94
  - fonts/NotoSansKannada-Regular.ttf
94
95
  - fonts/NotoSansKayahLi-Regular.ttf
95
96
  - fonts/NotoSansKhmer-Regular.ttf
@@ -122,7 +123,6 @@ files:
122
123
  - fonts/NotoSansPauCinHau-Regular.ttf
123
124
  - fonts/NotoSansRejang-Regular.ttf
124
125
  - fonts/NotoSansRunic-Regular.ttf
125
- - fonts/NotoSansSC-Regular.otf
126
126
  - fonts/NotoSansSamaritan-Regular.ttf
127
127
  - fonts/NotoSansSaurashtra-Regular.ttf
128
128
  - fonts/NotoSansSharada-Regular.ttf
@@ -135,7 +135,6 @@ files:
135
135
  - fonts/NotoSansSymbols-Regular.ttf
136
136
  - fonts/NotoSansSymbols2-Regular.ttf
137
137
  - fonts/NotoSansSyriac-Regular.ttf
138
- - fonts/NotoSansTC-Regular.otf
139
138
  - fonts/NotoSansTagalog-Regular.ttf
140
139
  - fonts/NotoSansTagbanwa-Regular.ttf
141
140
  - fonts/NotoSansTaiLe-Regular.ttf
@@ -235,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
235
234
  - !ruby/object:Gem::Version
236
235
  version: '0'
237
236
  requirements: []
238
- rubygems_version: 3.7.1
237
+ rubygems_version: 3.7.0.dev
239
238
  specification_version: 4
240
239
  summary: Selenium extension for Tor Browser
241
240
  test_files: []
Binary file
Binary file
Binary file
Binary file
File without changes