guard-jasmine 2.1.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/README.md +24 -2
- data/lib/guard/jasmine.rb +3 -0
- data/lib/guard/jasmine/server.rb +1 -1
- data/lib/guard/jasmine/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8843325ef860fa29f512b1b018e3a38250d6d6bac6883bc1ae6319d9d3f62ea4
|
4
|
+
data.tar.gz: 3a5143103a913b440c7a0f35246fd5f61939340f6e614ea9dfdc8daadfba87f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 338f83be1c3ccc7eb0a3290e398f9bf6f4a42b22d3917e1f947a40d0a4c2af2a3f1f8307bda43ad344da88fcc74cb73fff853a64b797671673b2687a16dc45ef
|
7
|
+
data.tar.gz: 7579f0dd1588de2caeb80e464d5f808b7fe9737ce338177d70a372eda4c3b5dbed9664cb58cc473fcf3879eaa17d24dd96a751534c1c11b6ee84aff672551faa
|
data/README.md
CHANGED
@@ -620,6 +620,28 @@ Given your configuration, you could also need to set:
|
|
620
620
|
|
621
621
|
* the server url in the command line: `bundle exec guard-jasmine -u http://localhost:8888/`
|
622
622
|
|
623
|
+
|
624
|
+
## Notes
|
625
|
+
|
626
|
+
Rails 5 ships with a puma configuration that may conflict with Guard Jasmine if they're both running concurrently.
|
627
|
+
|
628
|
+
To work around this, the `tmp_restart` plugin in config/puma.rb needs to be disabled for development mode.
|
629
|
+
|
630
|
+
```ruby
|
631
|
+
# Allow puma to be restarted by `rails restart` command.
|
632
|
+
plugin :tmp_restart
|
633
|
+
```
|
634
|
+
|
635
|
+
To:
|
636
|
+
|
637
|
+
```ruby
|
638
|
+
# Allow puma to be restarted by `rails restart` command.
|
639
|
+
plugin :tmp_restart unless ENV['RAILS_ENV'] == 'development'
|
640
|
+
```
|
641
|
+
|
642
|
+
Thanks to `quolpr` for investigating and suggesting the fix in: https://github.com/guard/guard-jasmine/issues/199#issuecomment-292648860
|
643
|
+
|
644
|
+
|
623
645
|
## Alternatives
|
624
646
|
|
625
647
|
There are many ways to get your Jasmine specs run within a headless environment. If Guard::Jasmine isn't for you,
|
@@ -750,8 +772,8 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
750
772
|
[Jasminerice]: https://github.com/bradphelan/jasminerice
|
751
773
|
[jasmine-rails]: https://github.com/searls/jasmine-rails
|
752
774
|
[Pivotal Labs]: http://pivotallabs.com/
|
753
|
-
[Jasmine]:
|
754
|
-
[the Jasmine Gem]: https://github.com/
|
775
|
+
[Jasmine]: https://jasmine.github.io/
|
776
|
+
[the Jasmine Gem]: https://github.com/jasmine/jasmine-gem
|
755
777
|
[Jeremy Ashkenas]: https://twitter.com/#!/jashkenas
|
756
778
|
[CoffeeScript]: http://coffeescript.org/
|
757
779
|
[Rails 3.1 asset pipeline]: http://guides.rubyonrails.org/asset_pipeline.html
|
data/lib/guard/jasmine.rb
CHANGED
@@ -103,6 +103,9 @@ module Guard
|
|
103
103
|
|
104
104
|
self.last_run_failed = false
|
105
105
|
self.last_failed_paths = []
|
106
|
+
::Jasmine.configure do |config|
|
107
|
+
config.server_port = options[:port] if options[:port]
|
108
|
+
end
|
106
109
|
@runner = Runner.new(options.merge(run_all_options))
|
107
110
|
end
|
108
111
|
|
data/lib/guard/jasmine/server.rb
CHANGED
@@ -127,7 +127,7 @@ module Guard
|
|
127
127
|
#
|
128
128
|
def start_rake_server(port, task, options)
|
129
129
|
Compat::UI.info "Guard::Jasmine starts Jasmine Gem test server on port #{port}."
|
130
|
-
execute(options, ['rake', task
|
130
|
+
execute(options, ['rake', task])
|
131
131
|
end
|
132
132
|
|
133
133
|
# Builds a child process with the given command and arguments
|
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:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Kessler
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-06-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard
|
@@ -45,14 +45,14 @@ dependencies:
|
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '
|
48
|
+
version: '3.1'
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: '
|
55
|
+
version: '3.1'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: multi_json
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -175,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
175
175
|
version: 1.3.6
|
176
176
|
requirements: []
|
177
177
|
rubyforge_project: guard-jasmine
|
178
|
-
rubygems_version: 2.
|
178
|
+
rubygems_version: 2.7.3
|
179
179
|
signing_key:
|
180
180
|
specification_version: 4
|
181
181
|
summary: Guard gem for headless testing with Jasmine
|