selenium_chrome_helper 0.1.6 → 0.1.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 +4 -4
- data/lib/selenium_chrome_helper/version.rb +1 -1
- data/lib/tasks/install.rake +12 -0
- 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: 7e2c6036630870a945ef7a84793c16714e759d94559d3cd3b0f1955c552d1abc
|
4
|
+
data.tar.gz: 16466d851db87a8c81bf49dae35d669abcbafb610217c01c06e73897889f7021
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 751cbf3daab36bfedb7176fabeb7672d64acf88e99a5c79672640395c633ab938b87883665cb1d7d86592411f15021155a2cc5589fbe8110f21044c37c2a905c
|
7
|
+
data.tar.gz: 0433ff00eb1ab2690c23c35a73160f8bc63db9c37e8c7d154400e54829e28c40f804f9a40a3f58d4311048fb12a6e8cce4f81d9bfe3ae093e30b2dc3f2504f10
|
data/lib/tasks/install.rake
CHANGED
@@ -78,6 +78,7 @@ namespace :chrome do
|
|
78
78
|
create_entry_directory(entry_path)
|
79
79
|
extract_entry(entry, entry_path)
|
80
80
|
make_executable_if_chromedriver(entry, entry_path)
|
81
|
+
make_executable_if_chrome(entry, entry_path)
|
81
82
|
end
|
82
83
|
|
83
84
|
def create_entry_directory(entry_path)
|
@@ -93,5 +94,16 @@ namespace :chrome do
|
|
93
94
|
|
94
95
|
FileUtils.chmod('+x', entry_path)
|
95
96
|
end
|
97
|
+
|
98
|
+
def make_executable_if_chrome
|
99
|
+
return unless RUBY_PLATFORM =~ /darwin/
|
100
|
+
|
101
|
+
FileUtils.chmod('+x', entry_path) if entry.name.end_with?('MacOS/Google Chrome for Testing')
|
102
|
+
|
103
|
+
return unless entry.name.include?('Google Chrome for Testing.app')
|
104
|
+
|
105
|
+
app_bundle_root = entry_path[/.*Google Chrome for Testing\.app/]
|
106
|
+
system('xattr', '-d', 'com.apple.quarantine', app_bundle_root) if app_bundle_root && File.exist?(app_bundle_root)
|
107
|
+
end
|
96
108
|
end
|
97
109
|
# rubocop:enable Metrics/BlockLength, Security/Open
|