ghostbuster 0.3.10 → 0.3.11
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/bin/setup-ghostbuster +4 -4
- data/lib/ghostbuster.coffee +2 -2
- data/lib/ghostbuster/runner.rb +1 -1
- data/lib/ghostbuster/version.rb +1 -1
- metadata +11 -11
data/Rakefile
CHANGED
@@ -19,7 +19,7 @@ namespace :test do
|
|
19
19
|
begin
|
20
20
|
matcher.each{|m| out[m] or raise("Couldn't match for #{m.inspect}")}
|
21
21
|
real_size = Dir['*.png'].to_a.size
|
22
|
-
expected_size =
|
22
|
+
expected_size = 23
|
23
23
|
raise("There are a weird number of screenshots, expected #{expected_size}, got #{real_size}") unless expected_size == real_size
|
24
24
|
exit
|
25
25
|
rescue
|
data/bin/setup-ghostbuster
CHANGED
@@ -5,20 +5,20 @@ when /darwin/
|
|
5
5
|
require 'fileutils'
|
6
6
|
root = File.expand_path(File.join(ENV['HOME'], '.ghostbuster'))
|
7
7
|
cache = File.expand_path(File.join(root, 'cache'))
|
8
|
-
unless File.exist?(File.join(root, 'version')) && File.read(File.join(root, 'version')) == '
|
8
|
+
unless File.exist?(File.join(root, 'version')) && File.read(File.join(root, 'version')) == '3'
|
9
9
|
puts "Creating ghostbuster directory in your home"
|
10
10
|
FileUtils.rm_rf(root)
|
11
11
|
FileUtils.mkdir_p(root)
|
12
12
|
FileUtils.mkdir_p(cache)
|
13
|
-
phantom_url = "http://phantomjs.googlecode.com/files/phantomjs-1.
|
13
|
+
phantom_url = "http://phantomjs.googlecode.com/files/phantomjs-1.5.0-macosx-static.zip"
|
14
14
|
unless File.exist?(File.join(cache, File.basename(phantom_url)))
|
15
15
|
Dir.chdir(cache) do
|
16
16
|
puts "Downloading and installing phantom.js"
|
17
17
|
system("curl #{phantom_url} -O") or raise("Unable to download from #{phantom_url}")
|
18
18
|
system("unzip #{File.basename(phantom_url)}") or raise("Unable to unzip archive")
|
19
19
|
end
|
20
|
-
File.exist?("#{cache}/phantomjs-1.
|
21
|
-
system("ln -s #{cache}/phantomjs-1.
|
20
|
+
File.exist?("#{cache}/phantomjs-1.5.0/bin/phantomjs") or raise("Unable to copy phantomjs from your disk image")
|
21
|
+
system("ln -s #{cache}/phantomjs-1.5.0/bin/phantomjs #{root}/phantomjs") or raise("Unable to copy phantomjs from your disk image")
|
22
22
|
File.open("#{root}/version", 'w') {|f| f << '2' }
|
23
23
|
puts "Done installing!"
|
24
24
|
end
|
data/lib/ghostbuster.coffee
CHANGED
@@ -435,7 +435,7 @@ class TestSuite
|
|
435
435
|
@failure += failure
|
436
436
|
@pending += pending
|
437
437
|
run: ->
|
438
|
-
if phantom.version.major == 1 and phantom.version.minor ==
|
438
|
+
if phantom.version.major == 1 and phantom.version.minor == 5
|
439
439
|
@screenshots = @args[0] == 'true'
|
440
440
|
@screenshot_x = @args[1]
|
441
441
|
@screenshot_y = @args[2]
|
@@ -464,7 +464,7 @@ class TestSuite
|
|
464
464
|
console.log "Unable to load #{testFile}"
|
465
465
|
runNextTest()
|
466
466
|
else
|
467
|
-
console.log "Phantom version must be 1.
|
467
|
+
console.log "Phantom version must be 1.5.x"
|
468
468
|
phantom.exit 1
|
469
469
|
|
470
470
|
if phantom.args.length == 0
|
data/lib/ghostbuster/runner.rb
CHANGED
data/lib/ghostbuster/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ghostbuster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2012-04-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thin
|
16
|
-
requirement: &
|
16
|
+
requirement: &70288163403060 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 1.2.11
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70288163403060
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rake
|
27
|
-
requirement: &
|
27
|
+
requirement: &70288163402160 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 0.8.7
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70288163402160
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: bundler
|
38
|
-
requirement: &
|
38
|
+
requirement: &70288163401320 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 1.0.14
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70288163401320
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: sinatra
|
49
|
-
requirement: &
|
49
|
+
requirement: &70288163400620 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70288163400620
|
58
58
|
description: Integration testing ftw.
|
59
59
|
email:
|
60
60
|
- joshbuddy@gmail.com
|
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
121
|
version: '0'
|
122
122
|
requirements: []
|
123
123
|
rubyforge_project: ghostbuster
|
124
|
-
rubygems_version: 1.8.
|
124
|
+
rubygems_version: 1.8.15
|
125
125
|
signing_key:
|
126
126
|
specification_version: 3
|
127
127
|
summary: Integration testing ftw
|