phantomjs 1.8.1.1 → 1.9.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8730b0e0d716a7241a907fc3c2e41a248764f6bb
4
+ data.tar.gz: 2eb110aa0ba2d286f9f793bd4835813039f4cf99
5
+ SHA512:
6
+ metadata.gz: 8d7909fa3988af6b45e5fbdc35e7fe29a2c5fec47ab024cd7847fcf45f4c493ca338e6eb527f6413e9795078858953c569dc32325029446dde8bba4c36506bb9
7
+ data.tar.gz: d7e1696fc5980e60762e91f309661e40eab631a72e37ccf8ba10448c1ab84a17406eedbe381f6fa1a5cafeee9e0d3f6ee55d37812c1f844a80bdf9e4587f2fc3
data/LICENSE CHANGED
@@ -3,7 +3,7 @@ into a Ruby gem. You can find the license information for PhantomJS
3
3
  inside phantomjs/LICENSE.BSD and further information at
4
4
  http://http://phantomjs.org/
5
5
 
6
- Copyright (c) 2012 Christoph Olszowka
6
+ Copyright (c) 2013 Christoph Olszowka
7
7
 
8
8
  MIT License
9
9
 
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Phantomjs as a Rubygem
2
2
 
3
+ [![Build Status](https://travis-ci.org/colszowka/phantomjs-gem.png?branch=master)](https://travis-ci.org/colszowka/phantomjs-gem)
4
+
3
5
  **DISCLAIMER: Alpha status, YMMV!**
4
6
 
5
7
  I am lazy as hell, and wanted to be able to install [PhantomJS](http://phantomjs.org) via Rubygems/Bundler
@@ -33,11 +35,15 @@ on OS X. They should be installed already.
33
35
  Add this to your `Gemfile`:
34
36
 
35
37
  group :test do
38
+ gem 'poltergeist'
36
39
  gem 'phantomjs', :require => 'phantomjs/poltergeist'
37
40
  end
38
41
 
39
42
  This will automatically require (and install) phantomjs and configure Capybara in the same way as noted below for
40
- manual setup
43
+ manual setup.
44
+
45
+ Note that you need to add poltergeist as a dependency explicitly since it is not a dependency of this gem in order
46
+ to avoid forcing users to install poltergeist if the just want to use phantomjs itself.
41
47
 
42
48
  ### Manual setup
43
49
 
@@ -71,7 +77,7 @@ three packages over, so tread with caution please :)
71
77
 
72
78
  ## Copyright
73
79
 
74
- (c) 2012 Christoph Olszowka
80
+ (c) 2013 Christoph Olszowka
75
81
 
76
82
  Note that this project merely simplifies the installation of the entirely separate PhantomJS project
77
83
  via a Ruby gem. You can find the license information for PhantomJS at http://http://phantomjs.org/
@@ -23,7 +23,7 @@ module Phantomjs
23
23
  end
24
24
 
25
25
  def system_phantomjs_version
26
- `phantomjs --version`.delete("\n")
26
+ `phantomjs --version`.delete("\n") if system_phantomjs_path.length > 4.2
27
27
  rescue
28
28
  end
29
29
 
@@ -94,7 +94,7 @@ module Phantomjs
94
94
  end
95
95
 
96
96
  def package_url
97
- 'http://phantomjs.googlecode.com/files/phantomjs-1.8.1-linux-x86_64.tar.bz2'
97
+ 'http://phantomjs.googlecode.com/files/phantomjs-1.9.2-linux-x86_64.tar.bz2'
98
98
  end
99
99
  end
100
100
  end
@@ -110,7 +110,7 @@ module Phantomjs
110
110
  end
111
111
 
112
112
  def package_url
113
- 'http://phantomjs.googlecode.com/files/phantomjs-1.8.1-linux-i686.tar.bz2'
113
+ 'http://phantomjs.googlecode.com/files/phantomjs-1.9.2-linux-i686.tar.bz2'
114
114
  end
115
115
  end
116
116
  end
@@ -126,7 +126,7 @@ module Phantomjs
126
126
  end
127
127
 
128
128
  def package_url
129
- 'http://phantomjs.googlecode.com/files/phantomjs-1.8.1-macosx.zip'
129
+ 'http://phantomjs.googlecode.com/files/phantomjs-1.9.2-macosx.zip'
130
130
  end
131
131
  end
132
132
  end
@@ -1,6 +1,12 @@
1
1
  # encoding: utf-8
2
2
  require 'phantomjs'
3
- require 'capybara/poltergeist'
3
+
4
+ begin
5
+ require 'capybara/poltergeist'
6
+ rescue => LoadError
7
+ raise "Poltergeist support requires the poltergeist gem to be available."
8
+ end
9
+
4
10
  Phantomjs.path # Force install on require
5
11
  Capybara.register_driver :poltergeist do |app|
6
12
  Capybara::Poltergeist::Driver.new(app, :phantomjs => Phantomjs.path)
@@ -1,3 +1,3 @@
1
1
  module Phantomjs
2
- VERSION = "1.8.1.1"
2
+ VERSION = "1.9.2.0"
3
3
  end
@@ -8,8 +8,7 @@ Gem::Specification.new do |gem|
8
8
  gem.summary = %q{Auto-install phantomjs on demand for current platform. Comes with poltergeist integration.}
9
9
  gem.homepage = "https://github.com/colszowka/phantomjs-gem"
10
10
 
11
- gem.add_runtime_dependency 'poltergeist'
12
-
11
+ gem.add_development_dependency 'poltergeist'
13
12
  gem.add_development_dependency 'rspec', ">= 2.11.0"
14
13
  gem.add_development_dependency 'simplecov'
15
14
  gem.add_development_dependency 'rake'
@@ -4,7 +4,6 @@ require 'bundler/setup'
4
4
 
5
5
  require 'phantomjs'
6
6
  require 'capybara/rspec'
7
- require 'capybara/poltergeist'
8
7
 
9
8
  Phantomjs.implode!
10
9
 
metadata CHANGED
@@ -1,78 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phantomjs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.1.1
5
- prerelease:
4
+ version: 1.9.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Christoph Olszowka
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-03-20 00:00:00.000000000 Z
11
+ date: 2013-11-01 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: poltergeist
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
- type: :runtime
20
+ type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rspec
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: 2.11.0
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: 2.11.0
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: simplecov
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rake
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - '>='
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - '>='
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  description: Auto-install phantomjs on demand for current platform. Comes with poltergeist
@@ -102,33 +93,26 @@ files:
102
93
  - spec/spec_helper.rb
103
94
  homepage: https://github.com/colszowka/phantomjs-gem
104
95
  licenses: []
96
+ metadata: {}
105
97
  post_install_message:
106
98
  rdoc_options: []
107
99
  require_paths:
108
100
  - lib
109
101
  required_ruby_version: !ruby/object:Gem::Requirement
110
- none: false
111
102
  requirements:
112
- - - ! '>='
103
+ - - '>='
113
104
  - !ruby/object:Gem::Version
114
105
  version: '0'
115
- segments:
116
- - 0
117
- hash: -4562338984157151972
118
106
  required_rubygems_version: !ruby/object:Gem::Requirement
119
- none: false
120
107
  requirements:
121
- - - ! '>='
108
+ - - '>='
122
109
  - !ruby/object:Gem::Version
123
110
  version: '0'
124
- segments:
125
- - 0
126
- hash: -4562338984157151972
127
111
  requirements: []
128
112
  rubyforge_project:
129
- rubygems_version: 1.8.25
113
+ rubygems_version: 2.0.3
130
114
  signing_key:
131
- specification_version: 3
115
+ specification_version: 4
132
116
  summary: Auto-install phantomjs on demand for current platform. Comes with poltergeist
133
117
  integration.
134
118
  test_files: