chromate-rb 0.0.5.pre → 0.0.7.pre
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/bot_browser/downloader.rb +14 -1
- data/lib/bot_browser/installer.rb +3 -3
- data/lib/chromate/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: 8d464b5bb1ce1f0f397d2a1fbf5e3d24a635591a4e48a54058bb7454434950d0
|
4
|
+
data.tar.gz: 326a5f2ed0bd76120e4de1056bf51c95c3b6438b8fc97855c31e8d8b4c26bf84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9bd0e471443ef01c0b74df378be3415b4c7c39fa9a76e61c6f1fc182565733dffa10946d1bb095b4129531c9e9eaa9f65af32fe29aa87e3136a6f68d33441c2
|
7
|
+
data.tar.gz: fa1013c490698eac75e6aa00eb588d0f0234f14eb29b79dadc0a07bd02521f11e8cd939aaaf2b9a5218ca86732fe16397ab1d294e9fd39eb08f4186321256c1f
|
@@ -12,7 +12,7 @@ module BotBrowser
|
|
12
12
|
version ||= versions.keys.first
|
13
13
|
profile ||= profiles[version].keys.first
|
14
14
|
version = version.to_sym
|
15
|
-
binary_path = download_file(versions[version][platform], "/tmp/botbrowser_#{version}_#{platform}
|
15
|
+
binary_path = download_file(versions[version][platform], "/tmp/botbrowser_#{version}_#{platform}.#{extension(platform)}")
|
16
16
|
profile_path = download_file(profiles[version][profile], "/tmp/botbrowser_#{version}_#{platform}.json")
|
17
17
|
|
18
18
|
[binary_path, profile_path]
|
@@ -25,6 +25,19 @@ module BotBrowser
|
|
25
25
|
path
|
26
26
|
end
|
27
27
|
|
28
|
+
def extension(platform)
|
29
|
+
case platform
|
30
|
+
when :mac
|
31
|
+
'dmg'
|
32
|
+
when :linux
|
33
|
+
'deb'
|
34
|
+
when :windows
|
35
|
+
'7z'
|
36
|
+
else
|
37
|
+
raise 'Unsupported platform'
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
28
41
|
def versions
|
29
42
|
{
|
30
43
|
v132: {
|
@@ -86,10 +86,10 @@ module BotBrowser
|
|
86
86
|
end
|
87
87
|
|
88
88
|
def install_binary_linux(binary_path)
|
89
|
-
Chromate::Binary.run('
|
90
|
-
Chromate::Binary.run('
|
89
|
+
Chromate::Binary.run('dpkg', ['-i', binary_path])
|
90
|
+
Chromate::Binary.run('apt-get', ['install', '-f'])
|
91
91
|
|
92
|
-
'/usr/bin/chromium'
|
92
|
+
'/usr/bin/chromium-browser'
|
93
93
|
end
|
94
94
|
|
95
95
|
def install_binary_windows(binary_path)
|
data/lib/chromate/version.rb
CHANGED