jasmine-phantom 0.0.9 → 0.0.11

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.
@@ -17,8 +17,8 @@ and run `bundle install`.
17
17
 
18
18
  Then run `bundle exec rake jasmine` and check `http://localhost:8888/` to make sure your jasmine specs are passing.
19
19
 
20
- Download and install the appropriate [PhantomJS](http://code.google.com/p/phantomjs/downloads/list) for your platform.
21
- Make sure to add the directory with the `phantomjs` executable to your `PATH`.
20
+ This gem uses https://github.com/colszowka/phantomjs-gem to automatically download an appropriate PhantomJS instance
21
+ to the machine.
22
22
 
23
23
  Finally, run `bundle exec rake jasmine:phantom:ci` and you should see output similar to:
24
24
 
@@ -26,5 +26,6 @@ Gem::Specification.new do |s|
26
26
  # specify any dependencies here; for example:
27
27
  s.add_runtime_dependency "jasmine", '>= 1.2.0'
28
28
  s.add_runtime_dependency "posix-spawn"
29
+ s.add_runtime_dependency "phantomjs"
29
30
  s.add_development_dependency "rake", '>= 0.8'
30
31
  end
@@ -1,4 +1,5 @@
1
1
  require 'jasmine-phantom/server'
2
+ require 'phantomjs'
2
3
 
3
4
  namespace :jasmine do
4
5
  namespace :phantom do
@@ -15,7 +16,7 @@ namespace :jasmine do
15
16
  port = Jasmine::Phantom::Server.start
16
17
  script = File.join File.dirname(__FILE__), 'run-jasmine.js'
17
18
 
18
- pid = POSIX::Spawn.spawn("phantomjs", script, "http://localhost:#{port}")
19
+ pid = POSIX::Spawn.spawn(Phantomjs.path, script, "http://localhost:#{port}")
19
20
 
20
21
  begin
21
22
  Thread.pass
@@ -1,5 +1,5 @@
1
1
  module Jasmine
2
2
  module Phantom
3
- VERSION = "0.0.9"
3
+ VERSION = "0.0.11"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jasmine-phantom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-26 00:00:00.000000000 Z
12
+ date: 2014-06-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jasmine
@@ -43,6 +43,22 @@ dependencies:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: phantomjs
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
46
62
  - !ruby/object:Gem::Dependency
47
63
  name: rake
48
64
  requirement: !ruby/object:Gem::Requirement