guard-jasmine 0.9.10 → 0.9.11
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/guard/jasmine/cli.rb +2 -2
- data/lib/guard/jasmine/server.rb +1 -6
- data/lib/guard/jasmine/task.rb +13 -1
- data/lib/guard/jasmine/util.rb +3 -3
- data/lib/guard/jasmine/version.rb +1 -1
- metadata +22 -22
data/README.md
CHANGED
@@ -356,7 +356,7 @@ Options:
|
|
356
356
|
-p, [--port=N] # Server port to use
|
357
357
|
# Default: 8888
|
358
358
|
-u, [--url=URL] # The url of the Jasmine test runner
|
359
|
-
# Default: http://
|
359
|
+
# Default: http://localhost:8888/jasmine
|
360
360
|
-b, [--bin=BIN] # The location of the PhantomJS binary
|
361
361
|
# Default: /usr/local/bin/phantomjs
|
362
362
|
-t, [--timeout=N] # The maximum time in milliseconds to wait for the spec runner to finish
|
data/lib/guard/jasmine/cli.rb
CHANGED
@@ -37,7 +37,7 @@ module Guard
|
|
37
37
|
method_option :url,
|
38
38
|
:type => :string,
|
39
39
|
:aliases => '-u',
|
40
|
-
:default => 'http://
|
40
|
+
:default => 'http://localhost:8888/jasmine',
|
41
41
|
:desc => 'The url of the Jasmine test runner'
|
42
42
|
|
43
43
|
method_option :bin,
|
@@ -116,7 +116,7 @@ module Guard
|
|
116
116
|
# @see Guard::Jasmine::VERSION
|
117
117
|
#
|
118
118
|
def version
|
119
|
-
::Guard::UI.info "Guard::Jasmine version #{ ::Guard::JasmineVersion }"
|
119
|
+
::Guard::UI.info "Guard::Jasmine version #{ ::Guard::JasmineVersion::VERSION }"
|
120
120
|
end
|
121
121
|
|
122
122
|
end
|
data/lib/guard/jasmine/server.rb
CHANGED
data/lib/guard/jasmine/task.rb
CHANGED
@@ -33,7 +33,19 @@ module Guard
|
|
33
33
|
namespace :guard do
|
34
34
|
desc 'Run all Jasmine specs'
|
35
35
|
task(name) do
|
36
|
-
|
36
|
+
begin
|
37
|
+
Guard::Jasmine::CLI.start(options.split)
|
38
|
+
|
39
|
+
rescue SystemExit => e
|
40
|
+
case e.status
|
41
|
+
when 0
|
42
|
+
ok 'All specs have passed'
|
43
|
+
when 1
|
44
|
+
fail 'Some specs have failed'
|
45
|
+
when 2
|
46
|
+
fail "The spec couldn't be run: #{ e.message }'"
|
47
|
+
end
|
48
|
+
end
|
37
49
|
end
|
38
50
|
end
|
39
51
|
end
|
data/lib/guard/jasmine/util.rb
CHANGED
@@ -23,14 +23,14 @@ module Guard
|
|
23
23
|
if response.code.to_i == 200
|
24
24
|
::Guard::Jasmine::Formatter.info "Jasmine test runner is available at #{ url }"
|
25
25
|
else
|
26
|
-
::Guard::Jasmine::Formatter.error "Jasmine test runner isn't available at #{ url }"
|
26
|
+
::Guard::Jasmine::Formatter.error "Jasmine test runner isn't available at #{ url } (#{ response.code })"
|
27
27
|
end
|
28
28
|
|
29
29
|
response.code.to_i == 200
|
30
30
|
end
|
31
31
|
|
32
|
-
rescue
|
33
|
-
::Guard::Jasmine::Formatter.error "Jasmine test runner isn't available at #{ url }"
|
32
|
+
rescue Exception => e
|
33
|
+
::Guard::Jasmine::Formatter.error "Jasmine test runner isn't available at #{ url }: #{ e.message }"
|
34
34
|
|
35
35
|
false
|
36
36
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-jasmine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.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: 2012-02-
|
12
|
+
date: 2012-02-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard
|
16
|
-
requirement: &
|
16
|
+
requirement: &70340714596480 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.8.3
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70340714596480
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: multi_json
|
27
|
-
requirement: &
|
27
|
+
requirement: &70340714591220 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70340714591220
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: childprocess
|
38
|
-
requirement: &
|
38
|
+
requirement: &70340714605920 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70340714605920
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: thor
|
49
|
-
requirement: &
|
49
|
+
requirement: &70340714605180 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70340714605180
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: bundler
|
60
|
-
requirement: &
|
60
|
+
requirement: &70340714603880 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70340714603880
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: guard-rspec
|
71
|
-
requirement: &
|
71
|
+
requirement: &70340714600720 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70340714600720
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: rspec
|
82
|
-
requirement: &
|
82
|
+
requirement: &70340714622880 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70340714622880
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: yard
|
93
|
-
requirement: &
|
93
|
+
requirement: &70340714621600 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: '0'
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *70340714621600
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: redcarpet
|
104
|
-
requirement: &
|
104
|
+
requirement: &70340714620600 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ! '>='
|
@@ -109,10 +109,10 @@ dependencies:
|
|
109
109
|
version: '0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *70340714620600
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: pry
|
115
|
-
requirement: &
|
115
|
+
requirement: &70340714618040 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ! '>='
|
@@ -120,7 +120,7 @@ dependencies:
|
|
120
120
|
version: '0'
|
121
121
|
type: :development
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *70340714618040
|
124
124
|
description: Guard::Jasmine automatically tests your Jasmine specs on PhantomJS
|
125
125
|
email:
|
126
126
|
- michi@netzpiraten.ch
|