guard-jasmine 1.9.0 → 1.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/guard/jasmine/cli.rb +6 -1
- data/lib/guard/jasmine/runner.rb +1 -1
- data/lib/guard/jasmine/server.rb +3 -3
- data/lib/guard/jasmine/version.rb +1 -1
- metadata +2 -2
data/lib/guard/jasmine/cli.rb
CHANGED
@@ -45,6 +45,11 @@ module Guard
|
|
45
45
|
:default => 15,
|
46
46
|
:desc => 'The number of seconds to wait for the Jasmine spec server'
|
47
47
|
|
48
|
+
method_option :rackup_config,
|
49
|
+
:type => :string,
|
50
|
+
:aliases => '-c',
|
51
|
+
:desc => 'The rackup config to use (jasminerice only)'
|
52
|
+
|
48
53
|
method_option :bin,
|
49
54
|
:type => :string,
|
50
55
|
:aliases => '-b',
|
@@ -118,7 +123,7 @@ module Guard
|
|
118
123
|
runner_options[:max_error_notify] = 0
|
119
124
|
|
120
125
|
if CLI.phantomjs_bin_valid?(runner_options[:phantomjs_bin])
|
121
|
-
::Guard::Jasmine::Server.start(runner_options
|
126
|
+
::Guard::Jasmine::Server.start(runner_options) unless runner_options[:server] == :none
|
122
127
|
|
123
128
|
if CLI.runner_available?(runner_options)
|
124
129
|
result = ::Guard::Jasmine::Runner.run(paths, runner_options)
|
data/lib/guard/jasmine/runner.rb
CHANGED
@@ -19,7 +19,7 @@ module Guard
|
|
19
19
|
# @option options [String] :jasmine_url the url of the Jasmine test runner
|
20
20
|
# @option options [String] :phantomjs_bin the location of the PhantomJS binary
|
21
21
|
# @option options [Integer] :timeout the maximum time in milliseconds to wait for the spec runner to finish
|
22
|
-
# @option options [String] :
|
22
|
+
# @option options [String] :rackup_config custom rackup config to use
|
23
23
|
# @option options [Boolean] :notification show notifications
|
24
24
|
# @option options [Boolean] :hide_success hide success message notification
|
25
25
|
# @option options [Integer] :max_error_notify maximum error notifications to show
|
data/lib/guard/jasmine/server.rb
CHANGED
@@ -21,6 +21,7 @@ module Guard
|
|
21
21
|
# @option options [String] server the server to use
|
22
22
|
# @option options [Number] port the server port
|
23
23
|
# @option options [String] server_env the Rails environment
|
24
|
+
# @option options [Number] server_timeoout the server start timeout
|
24
25
|
# @option options [String] spec_dir the spec directory
|
25
26
|
# @option options [String] rackup_config custom rackup config to use (i.e. spec/dummy/config.ru for mountable engines)
|
26
27
|
#
|
@@ -32,7 +33,7 @@ module Guard
|
|
32
33
|
|
33
34
|
case server
|
34
35
|
when :webrick, :mongrel, :thin, :unicorn
|
35
|
-
start_rack_server(options)
|
36
|
+
start_rack_server(server, options)
|
36
37
|
when :jasmine_gem
|
37
38
|
start_rake_server(port, 'jasmine')
|
38
39
|
else
|
@@ -63,8 +64,7 @@ module Guard
|
|
63
64
|
# @option options [Number] port the server port
|
64
65
|
# @option options [String] rackup_config custom rackup config to use (i.e. spec/dummy/config.ru for mountable engines)
|
65
66
|
#
|
66
|
-
def start_rack_server(options)
|
67
|
-
server = options[:server]
|
67
|
+
def start_rack_server(server, options)
|
68
68
|
environment = options[:server_env]
|
69
69
|
port = options[:port]
|
70
70
|
rackup_config = options[:rackup_config]
|
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: 1.9.
|
4
|
+
version: 1.9.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -139,7 +139,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
139
139
|
version: '0'
|
140
140
|
segments:
|
141
141
|
- 0
|
142
|
-
hash:
|
142
|
+
hash: -1884025275092843425
|
143
143
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
144
144
|
none: false
|
145
145
|
requirements:
|