phantomjs2 2.0.0.1 → 2.0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/phantomjs/platform.rb +13 -5
- data/lib/phantomjs/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b8ae658cacc8427b275392d0b2b6d15c7f8b790
|
4
|
+
data.tar.gz: ac189ad9202d285d975cf95a56c4813ed986e5f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c9e8a774ae1e9e658f5f288e57645a5cc18f260e894e0624f276d903d12dad971c443048120ed72a339765986ce316025bf54355efa1693c26c28f4fc30cf4d
|
7
|
+
data.tar.gz: 06da16e616914585148565aa9b5b39850fad1fe32f73153243194dd7d5361342bac32c06982edb856e1047bdeec85c6fb97dc1a51106a2d251ff910dc7e32cbc
|
data/lib/phantomjs/platform.rb
CHANGED
@@ -68,9 +68,17 @@ module Phantomjs
|
|
68
68
|
# Find the phantomjs build we just extracted
|
69
69
|
extracted_dir = Dir['phantomjs*'].find { |path| File.directory?(path) }
|
70
70
|
|
71
|
-
|
72
|
-
|
73
|
-
|
71
|
+
if extracted_dir.nil?
|
72
|
+
# Move the executable file
|
73
|
+
FileUtils.mkdir_p File.join(Phantomjs.base_dir, platform, 'bin')
|
74
|
+
if FileUtils.mv 'phantomjs', File.join(Phantomjs.base_dir, platform, 'bin')
|
75
|
+
STDOUT.puts "\nSuccessfully installed phantomjs. Yay!"
|
76
|
+
end
|
77
|
+
else
|
78
|
+
# Move the extracted phantomjs build to $HOME/.phantomjs/version/platform
|
79
|
+
if FileUtils.mv extracted_dir, File.join(Phantomjs.base_dir, platform)
|
80
|
+
STDOUT.puts "\nSuccessfully installed phantomjs. Yay!"
|
81
|
+
end
|
74
82
|
end
|
75
83
|
|
76
84
|
# Clean up remaining files in tmp
|
@@ -110,7 +118,7 @@ module Phantomjs
|
|
110
118
|
end
|
111
119
|
|
112
120
|
def package_url
|
113
|
-
'https://github.com/
|
121
|
+
'https://github.com/eugene1g/phantomjs/releases/download/2.0.0-bin/phantomjs-2.0.0-ubuntu_x86_64.zip'
|
114
122
|
end
|
115
123
|
end
|
116
124
|
end
|
@@ -142,7 +150,7 @@ module Phantomjs
|
|
142
150
|
end
|
143
151
|
|
144
152
|
def package_url
|
145
|
-
'https://
|
153
|
+
'https://github.com/eugene1g/phantomjs/releases/download/2.0.0-bin/phantomjs-2.0.0-macosx.zip'
|
146
154
|
end
|
147
155
|
end
|
148
156
|
end
|
data/lib/phantomjs/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phantomjs2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.
|
4
|
+
version: 2.0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christoph Olszowka
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-07-
|
12
|
+
date: 2015-07-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: poltergeist
|