ghostbuster 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -18,7 +18,9 @@ namespace :test do
18
18
  end
19
19
  begin
20
20
  matcher.each{|m| out[m] or raise("Couldn't match for #{m.inspect}")}
21
- raise("There are a weird number of screenshots") unless Dir['*.png'].to_a.size == 15
21
+ real_size = Dir['*.png'].to_a.size
22
+ expected_size = 14
23
+ raise("There are a weird number of screenshots, expected #{expected_size}, got #{real_size}") unless expected_size == real_size
22
24
  exit
23
25
  rescue
24
26
  puts $!.message
@@ -1,3 +1,3 @@
1
1
  class Ghostbuster
2
- VERSION = '0.3.5'
2
+ VERSION = '0.3.6'
3
3
  end
data/lib/ghostbuster.rb CHANGED
@@ -15,8 +15,13 @@ class Ghostbuster
15
15
  def initialize(path)
16
16
  STDOUT.sync = true
17
17
  @path = path && File.exist?(path) ? path : '.'
18
- @dir = File.directory?(@path) ? @path : File.basename(@path)
19
- @file = File.directory?(@dir) ? File.join(@dir, 'Ghostfile') : @dir
18
+ if File.directory?(@path)
19
+ @dir = @path
20
+ @file = 'Ghostfile'
21
+ else
22
+ @dir = File.dirname(@path)
23
+ @file = File.basename(@path)
24
+ end
20
25
  @ghost_lib = File.expand_path(File.join(File.dirname(__FILE__), "ghostbuster.coffee"))
21
26
  end
22
27
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ghostbuster
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 5
10
- version: 0.3.5
9
+ - 6
10
+ version: 0.3.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Josh Hull
@@ -15,13 +15,10 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-05 00:00:00 -07:00
19
- default_executable:
18
+ date: 2011-10-15 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
- name: thin
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
21
+ version_requirements: &id001 !ruby/object:Gem::Requirement
25
22
  none: false
26
23
  requirements:
27
24
  - - ~>
@@ -32,12 +29,12 @@ dependencies:
32
29
  - 2
33
30
  - 11
34
31
  version: 1.2.11
32
+ requirement: *id001
35
33
  type: :development
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: rake
39
34
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
35
+ name: thin
36
+ - !ruby/object:Gem::Dependency
37
+ version_requirements: &id002 !ruby/object:Gem::Requirement
41
38
  none: false
42
39
  requirements:
43
40
  - - ~>
@@ -48,12 +45,12 @@ dependencies:
48
45
  - 8
49
46
  - 7
50
47
  version: 0.8.7
48
+ requirement: *id002
51
49
  type: :development
52
- version_requirements: *id002
53
- - !ruby/object:Gem::Dependency
54
- name: bundler
55
50
  prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
51
+ name: rake
52
+ - !ruby/object:Gem::Dependency
53
+ version_requirements: &id003 !ruby/object:Gem::Requirement
57
54
  none: false
58
55
  requirements:
59
56
  - - ~>
@@ -64,12 +61,12 @@ dependencies:
64
61
  - 0
65
62
  - 14
66
63
  version: 1.0.14
64
+ requirement: *id003
67
65
  type: :development
68
- version_requirements: *id003
69
- - !ruby/object:Gem::Dependency
70
- name: sinatra
71
66
  prerelease: false
72
- requirement: &id004 !ruby/object:Gem::Requirement
67
+ name: bundler
68
+ - !ruby/object:Gem::Dependency
69
+ version_requirements: &id004 !ruby/object:Gem::Requirement
73
70
  none: false
74
71
  requirements:
75
72
  - - ">="
@@ -78,8 +75,10 @@ dependencies:
78
75
  segments:
79
76
  - 0
80
77
  version: "0"
78
+ requirement: *id004
81
79
  type: :development
82
- version_requirements: *id004
80
+ prerelease: false
81
+ name: sinatra
83
82
  description: Integration testing ftw.
84
83
  email:
85
84
  - joshbuddy@gmail.com
@@ -128,7 +127,6 @@ files:
128
127
  - test/working_ghost/test_ghost.coffee
129
128
  - test/working_ghost/test_ghostmore.coffee
130
129
  - test/working_ghost/test_injs.js
131
- has_rdoc: true
132
130
  homepage: https://github.com/joshbuddy/ghostbuster
133
131
  licenses: []
134
132
 
@@ -158,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
156
  requirements: []
159
157
 
160
158
  rubyforge_project: ghostbuster
161
- rubygems_version: 1.6.2
159
+ rubygems_version: 1.8.10
162
160
  signing_key:
163
161
  specification_version: 3
164
162
  summary: Integration testing ftw