guard-jasmine 2.1.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 12c271a333b0412865d54f16da8376dbb478abbc
4
- data.tar.gz: d07623663f5f1e48c537730e0db93b3283a2d24f
2
+ SHA256:
3
+ metadata.gz: 8843325ef860fa29f512b1b018e3a38250d6d6bac6883bc1ae6319d9d3f62ea4
4
+ data.tar.gz: 3a5143103a913b440c7a0f35246fd5f61939340f6e614ea9dfdc8daadfba87f0
5
5
  SHA512:
6
- metadata.gz: bfe42393a0ac67853b9fec568f60538bb92512edc0fcca210a19e323b445ff9771fac363368728236d74999b32a22a1915f57b02ba2ab64dee575bf60f3498bd
7
- data.tar.gz: 20a4cc2b18881720e2befda1a6a9e32108131b6217b22825bff5fc23ac1fe7133a7f94966909d7dff6d2b781905ff95e476e4d9b219427b976f34c6c66c5d3fd
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]: http://pivotal.github.com/jasmine/
754
- [the Jasmine Gem]: https://github.com/pivotal/jasmine-gem
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
@@ -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
 
@@ -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, "JASMINE_PORT=#{port}"])
130
+ execute(options, ['rake', task])
131
131
  end
132
132
 
133
133
  # Builds a child process with the given command and arguments
@@ -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 = '2.1.0'.freeze
4
+ VERSION = '3.0.0'.freeze
5
5
  end
6
6
  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: 2.1.0
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: 2016-08-19 00:00:00.000000000 Z
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: '2.4'
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: '2.4'
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.5.1
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