guard-jasmine 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,7 +12,7 @@ waitFor = (testFx, onReady, timeOutMillis=3000) ->
12
12
  condition = (if typeof testFx is 'string' then eval testFx else testFx())
13
13
  else
14
14
  if not condition
15
- console.log "JasmineResult: #{ JSON.stringify { error: "Timeout requesting Jasmine test runner!" } }"
15
+ console.log JSON.stringify { error: "Timeout requesting Jasmine test runner!" }
16
16
  phantom.exit(1)
17
17
  else
18
18
  if typeof onReady is 'string' then eval onReady else onReady()
@@ -23,7 +23,7 @@ waitFor = (testFx, onReady, timeOutMillis=3000) ->
23
23
  # Check arguments of the script.
24
24
  #
25
25
  if phantom.args.length isnt 1
26
- console.log "JasmineResult: #{ JSON.stringify { error: "Wrong usage of PhantomJS script!" } }"
26
+ console.log JSON.stringify { error: "Wrong usage of PhantomJS script!" }
27
27
  phantom.exit()
28
28
  else
29
29
  url = phantom.args[0]
@@ -33,7 +33,8 @@ page = new WebPage()
33
33
  # Output the Jasmine test runner result as JSON object.
34
34
  # Ignore all other calls to console.log
35
35
  #
36
- page.onConsoleMessage = (msg) -> console.log(RegExp.$1) if /^JasmineResult: (.*)$/.test(msg)
36
+ page.onConsoleMessage = (msg) ->
37
+ console.log(RegExp.$1) if /^JasmineResult: ([\s\S]*)$/.test(msg)
37
38
 
38
39
  # Open web page and run the Jasmine test runner
39
40
  #
@@ -46,7 +47,9 @@ page.open url, (status) ->
46
47
 
47
48
  else
48
49
  # Wait until the Jasmine test is run
49
- waitFor -> page.evaluate -> if document.body.querySelector '.finished-at' then true else false
50
+ waitFor ->
51
+ page.evaluate ->
52
+ if document.body.querySelector '.finished-at' then true else false
50
53
  , ->
51
54
  # Jasmine test runner has finished, extract the result from the DOM
52
55
  page.evaluate ->
@@ -1,6 +1,6 @@
1
1
  module Guard
2
2
  module JasmineVersion
3
3
  # Guard::Jasmine version that is used for the Gem specification
4
- VERSION = '0.2.1'
4
+ VERSION = '0.2.2'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,135 +1,184 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: guard-jasmine
3
- version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.2.1
3
+ version: !ruby/object:Gem::Version
4
+ hash: 19
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 2
9
+ - 2
10
+ version: 0.2.2
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Michael Kessler
9
- autorequire:
14
+ autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2011-09-08 00:00:00.000000000 +02:00
13
- default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2011-09-08 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
16
21
  name: guard
17
- version_requirements: &2422 !ruby/object:Gem::Requirement
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0.4'
22
- none: false
23
- requirement: *2422
24
22
  prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 0
31
+ - 4
32
+ version: "0.4"
25
33
  type: :runtime
26
- - !ruby/object:Gem::Dependency
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
27
36
  name: multi_json
28
- version_requirements: &2440 !ruby/object:Gem::Requirement
29
- requirements:
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
30
41
  - - ~>
31
- - !ruby/object:Gem::Version
42
+ - !ruby/object:Gem::Version
43
+ hash: 17
44
+ segments:
45
+ - 1
46
+ - 0
47
+ - 3
32
48
  version: 1.0.3
33
- none: false
34
- requirement: *2440
35
- prerelease: false
36
49
  type: :runtime
37
- - !ruby/object:Gem::Dependency
50
+ version_requirements: *id002
51
+ - !ruby/object:Gem::Dependency
38
52
  name: bundler
39
- version_requirements: &2456 !ruby/object:Gem::Requirement
40
- requirements:
41
- - - ~>
42
- - !ruby/object:Gem::Version
43
- version: '1.0'
44
- none: false
45
- requirement: *2456
46
53
  prerelease: false
54
+ requirement: &id003 !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ~>
58
+ - !ruby/object:Gem::Version
59
+ hash: 15
60
+ segments:
61
+ - 1
62
+ - 0
63
+ version: "1.0"
47
64
  type: :development
48
- - !ruby/object:Gem::Dependency
65
+ version_requirements: *id003
66
+ - !ruby/object:Gem::Dependency
49
67
  name: guard-rspec
50
- version_requirements: &2474 !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ~>
53
- - !ruby/object:Gem::Version
54
- version: '0.4'
55
- none: false
56
- requirement: *2474
57
68
  prerelease: false
69
+ requirement: &id004 !ruby/object:Gem::Requirement
70
+ none: false
71
+ requirements:
72
+ - - ~>
73
+ - !ruby/object:Gem::Version
74
+ hash: 3
75
+ segments:
76
+ - 0
77
+ - 4
78
+ version: "0.4"
58
79
  type: :development
59
- - !ruby/object:Gem::Dependency
80
+ version_requirements: *id004
81
+ - !ruby/object:Gem::Dependency
60
82
  name: rspec
61
- version_requirements: &2490 !ruby/object:Gem::Requirement
62
- requirements:
63
- - - ~>
64
- - !ruby/object:Gem::Version
65
- version: '2.6'
66
- none: false
67
- requirement: *2490
68
83
  prerelease: false
84
+ requirement: &id005 !ruby/object:Gem::Requirement
85
+ none: false
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ hash: 15
90
+ segments:
91
+ - 2
92
+ - 6
93
+ version: "2.6"
69
94
  type: :development
70
- - !ruby/object:Gem::Dependency
95
+ version_requirements: *id005
96
+ - !ruby/object:Gem::Dependency
71
97
  name: yard
72
- version_requirements: &2506 !ruby/object:Gem::Requirement
73
- requirements:
98
+ prerelease: false
99
+ requirement: &id006 !ruby/object:Gem::Requirement
100
+ none: false
101
+ requirements:
74
102
  - - ~>
75
- - !ruby/object:Gem::Version
103
+ - !ruby/object:Gem::Version
104
+ hash: 7
105
+ segments:
106
+ - 0
107
+ - 7
108
+ - 2
76
109
  version: 0.7.2
77
- none: false
78
- requirement: *2506
79
- prerelease: false
80
110
  type: :development
81
- - !ruby/object:Gem::Dependency
111
+ version_requirements: *id006
112
+ - !ruby/object:Gem::Dependency
82
113
  name: kramdown
83
- version_requirements: &2522 !ruby/object:Gem::Requirement
84
- requirements:
114
+ prerelease: false
115
+ requirement: &id007 !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
85
118
  - - ~>
86
- - !ruby/object:Gem::Version
119
+ - !ruby/object:Gem::Version
120
+ hash: 45
121
+ segments:
122
+ - 0
123
+ - 13
124
+ - 3
87
125
  version: 0.13.3
88
- none: false
89
- requirement: *2522
90
- prerelease: false
91
126
  type: :development
127
+ version_requirements: *id007
92
128
  description: Guard::Jasmine automatically tests your Jasmine specs on PhantomJS
93
- email:
129
+ email:
94
130
  - michi@netzpiraten.ch
95
131
  executables: []
132
+
96
133
  extensions: []
134
+
97
135
  extra_rdoc_files: []
98
- files:
99
- - lib/guard/jasmine.rb
136
+
137
+ files:
100
138
  - lib/guard/jasmine/formatter.rb
101
139
  - lib/guard/jasmine/inspector.rb
102
- - lib/guard/jasmine/runner.rb
103
- - lib/guard/jasmine/version.rb
104
140
  - lib/guard/jasmine/phantomjs/run-jasmine.coffee
141
+ - lib/guard/jasmine/runner.rb
105
142
  - lib/guard/jasmine/templates/Guardfile
143
+ - lib/guard/jasmine/version.rb
144
+ - lib/guard/jasmine.rb
106
145
  - LICENSE.MIT
107
146
  - LICENSE.BSD
108
147
  - README.md
109
- has_rdoc: true
110
148
  homepage: http://github.com/netzpirat/guard-jasmine
111
149
  licenses: []
112
- post_install_message:
150
+
151
+ post_install_message:
113
152
  rdoc_options: []
114
- require_paths:
153
+
154
+ require_paths:
115
155
  - lib
116
- required_ruby_version: !ruby/object:Gem::Requirement
117
- requirements:
118
- - - ! '>='
119
- - !ruby/object:Gem::Version
120
- version: '0'
156
+ required_ruby_version: !ruby/object:Gem::Requirement
121
157
  none: false
122
- required_rubygems_version: !ruby/object:Gem::Requirement
123
- requirements:
124
- - - ! '>='
125
- - !ruby/object:Gem::Version
126
- version: 1.3.6
158
+ requirements:
159
+ - - ">="
160
+ - !ruby/object:Gem::Version
161
+ hash: 3
162
+ segments:
163
+ - 0
164
+ version: "0"
165
+ required_rubygems_version: !ruby/object:Gem::Requirement
127
166
  none: false
167
+ requirements:
168
+ - - ">="
169
+ - !ruby/object:Gem::Version
170
+ hash: 23
171
+ segments:
172
+ - 1
173
+ - 3
174
+ - 6
175
+ version: 1.3.6
128
176
  requirements: []
177
+
129
178
  rubyforge_project: guard-jasmine
130
- rubygems_version: 1.5.1
131
- signing_key:
179
+ rubygems_version: 1.8.6
180
+ signing_key:
132
181
  specification_version: 3
133
182
  summary: Guard gem for headless testing with Jasmine
134
183
  test_files: []
135
- ...
184
+