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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 93ffbc2137a6851480df988eb0fc5f132de08696
4
- data.tar.gz: 3be19fde14a1b706edd7d7ed1ca25e0d104fc0f8
3
+ metadata.gz: 3b8ae658cacc8427b275392d0b2b6d15c7f8b790
4
+ data.tar.gz: ac189ad9202d285d975cf95a56c4813ed986e5f3
5
5
  SHA512:
6
- metadata.gz: 7d3b11e86eb356dd0fc1f7d36062f262b789c8feabb8616dd6235ff68579faf7911cf03f61330d7a08023c5fdf295e24b6462627d73af24ade5e254da38a744a
7
- data.tar.gz: 35d468a8ecbf34e0773b85bd590404b84bda72b24cdd539a1203c8d6ee5ca792a7e9e26d778755d0b2bd4ae639b851bff19d31f7fc78b1806b515410c89fb65b
6
+ metadata.gz: 2c9e8a774ae1e9e658f5f288e57645a5cc18f260e894e0624f276d903d12dad971c443048120ed72a339765986ce316025bf54355efa1693c26c28f4fc30cf4d
7
+ data.tar.gz: 06da16e616914585148565aa9b5b39850fad1fe32f73153243194dd7d5361342bac32c06982edb856e1047bdeec85c6fb97dc1a51106a2d251ff910dc7e32cbc
@@ -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
- # Move the extracted phantomjs build to $HOME/.phantomjs/version/platform
72
- if FileUtils.mv extracted_dir, File.join(Phantomjs.base_dir, platform)
73
- STDOUT.puts "\nSuccessfully installed phantomjs. Yay!"
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/bprodoehl/phantomjs/releases/download/v2.0.0-20150528/phantomjs-2.0.0-20150528-u1404-x86_64.zip'
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://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.0.0-macosx.zip'
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
@@ -1,3 +1,3 @@
1
1
  module Phantomjs
2
- VERSION = '2.0.0.1'
2
+ VERSION = '2.0.0.2'
3
3
  end
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.1
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-22 00:00:00.000000000 Z
12
+ date: 2015-07-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: poltergeist