phantomjs 1.9.7.1 → 2.1.1.0

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: 9c560ed1497811063f421e1467840a1918321cac
4
- data.tar.gz: ee0d09837e8863c23b4feff85b76ad55fa83882c
3
+ metadata.gz: 202fe3e0c7c50f04c93980c3221663d41f0479d9
4
+ data.tar.gz: 13256faa4d93741c6d5bfc2eb1dc6bb2b2faa4c3
5
5
  SHA512:
6
- metadata.gz: c38be07431a39521e23299bf26b7e38204f4f909589405cb08ac5ba5d163bc3fd4100d880a68881d2f758f9fd9791dae80f346ef099d889c7854bb303bb29c5b
7
- data.tar.gz: 30384ae6f872cea83011587634d234ced6d9fb07ff05234781f933c857bead4e11fbef6a08b77248e3b3a1c32b6b70bb2cc1658388245e8d5260420652287195
6
+ metadata.gz: 34a78617c4aae022f70dc555debd559cbbec7efa54f1656c62f8b6ab45608b08b32b8b900c402a941ee7e810c820ddfa75344ef66ec81525e7d5ceea829f5204
7
+ data.tar.gz: a674f26d67b74eb8d46f1d57509a7f55e0eaa2a6ef206151fd998a492ed401341e1aacf224daf90a94906b6d967637c6850369fc3b3158869c327871a1dc0de6
data/.travis.yml CHANGED
@@ -5,8 +5,11 @@ rvm:
5
5
  - 1.9
6
6
  - 2.0
7
7
  - 2.1
8
+ - 2.2
8
9
  - jruby-19mode
9
10
  notifications:
10
11
  email:
11
12
  on_success: always
12
13
  on_failure: always
14
+ before_install:
15
+ - gem install bundler
@@ -98,7 +98,7 @@ module Phantomjs
98
98
  end
99
99
 
100
100
  def package_url
101
- 'https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2'
101
+ 'https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2'
102
102
  end
103
103
  end
104
104
  end
@@ -114,7 +114,7 @@ module Phantomjs
114
114
  end
115
115
 
116
116
  def package_url
117
- 'https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-i686.tar.bz2'
117
+ 'https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-i686.tar.bz2'
118
118
  end
119
119
  end
120
120
  end
@@ -130,7 +130,7 @@ module Phantomjs
130
130
  end
131
131
 
132
132
  def package_url
133
- 'https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-macosx.zip'
133
+ 'https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-macosx.zip'
134
134
  end
135
135
  end
136
136
  end
@@ -149,12 +149,12 @@ module Phantomjs
149
149
  if system_phantomjs_installed?
150
150
  system_phantomjs_path
151
151
  else
152
- File.expand_path File.join(Phantomjs.base_dir, platform, 'phantomjs.exe')
152
+ File.expand_path File.join(Phantomjs.base_dir, platform, 'bin', 'phantomjs.exe')
153
153
  end
154
154
  end
155
155
 
156
156
  def package_url
157
- 'https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-windows.zip'
157
+ 'https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-windows.zip'
158
158
  end
159
159
  end
160
160
  end
@@ -1,3 +1,3 @@
1
1
  module Phantomjs
2
- VERSION = "1.9.7.1"
2
+ VERSION = "2.1.1.0"
3
3
  end
data/phantomjs.gemspec CHANGED
@@ -9,11 +9,14 @@ Gem::Specification.new do |gem|
9
9
  gem.homepage = "https://github.com/colszowka/phantomjs-gem"
10
10
  gem.license = 'MIT'
11
11
 
12
- gem.add_development_dependency 'poltergeist'
13
- gem.add_development_dependency 'capybara', '~> 2.0.0'
14
- gem.add_development_dependency 'rspec', ">= 2.11.0"
12
+ gem.add_development_dependency 'poltergeist', '~> 1.5'
13
+ gem.add_development_dependency 'capybara', '~> 2.4'
14
+ gem.add_development_dependency 'rspec', "~> 2.99"
15
15
  gem.add_development_dependency 'simplecov'
16
16
  gem.add_development_dependency 'rake'
17
+ if RUBY_VERSION < '2'
18
+ gem.add_development_dependency "mime-types", "~> 2.6"
19
+ end
17
20
 
18
21
  gem.files = `git ls-files`.split($\)
19
22
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
@@ -163,7 +163,7 @@ describe Phantomjs::Platform do
163
163
  before(:each) { Phantomjs::Platform.stub(:system_phantomjs_version).and_return(nil) }
164
164
 
165
165
  it "returns the correct phantom js executable path for the platform" do
166
- Phantomjs.path.should =~ /win32\/phantomjs.exe$/
166
+ Phantomjs.path.should =~ /win32\/bin\/phantomjs.exe$/
167
167
  end
168
168
  end
169
169
 
data/spec/runner.js CHANGED
@@ -1,3 +1,5 @@
1
- console.log('bar ' + phantom.args[0]);
2
- console.log('bar ' + phantom.args[1]);
1
+ var system = require('system');
2
+
3
+ console.log('bar ' + system.args[1]);
4
+ console.log('bar ' + system.args[2]);
3
5
  phantom.exit();
metadata CHANGED
@@ -1,57 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phantomjs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.7.1
4
+ version: 2.1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christoph Olszowka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-27 00:00:00.000000000 Z
11
+ date: 2016-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: poltergeist
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '1.5'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '1.5'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: capybara
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 2.0.0
33
+ version: '2.4'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 2.0.0
40
+ version: '2.4'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 2.11.0
47
+ version: '2.99'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 2.11.0
54
+ version: '2.99'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: simplecov
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  version: '0'
126
126
  requirements: []
127
127
  rubyforge_project:
128
- rubygems_version: 2.2.2
128
+ rubygems_version: 2.5.1
129
129
  signing_key:
130
130
  specification_version: 4
131
131
  summary: Auto-install phantomjs on demand for current platform. Comes with poltergeist
@@ -135,4 +135,3 @@ test_files:
135
135
  - spec/platform_spec.rb
136
136
  - spec/runner.js
137
137
  - spec/spec_helper.rb
138
- has_rdoc: