hotwire-livereload 0.1.1 → 0.1.2

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
2
  SHA256:
3
- metadata.gz: 757248475a762e66a83a9fa3197d20d7a85d022d231777354452b484b3ce881a
4
- data.tar.gz: ad896fa7edfe33574afe3b20640330b406d7c45473d3b20476e828489826dd4f
3
+ metadata.gz: 5bcabf2d518f67b06afa47b3b462f6d190b35ee3cfe2690148b599a0c28ba94e
4
+ data.tar.gz: 87d3401bddb1a879fb40b73aaef596ff0f17ba019e421411e9a0a3ce4b6562a2
5
5
  SHA512:
6
- metadata.gz: cb6075bb64a45a75a6a284df02c058f40ce97d79aa88e02f442bf87e90e5f2441ed45e3b30efff27b5d765cd8987707a279717e0c37574e9738180da896e9d23
7
- data.tar.gz: 0c2ffb6cbb134f97152e029877a4a010a7e366ea1462ffd4bc3eff9dada8c7dd5cfd2f8b916f9b74dafdd4ca0c9e650a45b345ebd73ce451e4f9aa602eedea74
6
+ metadata.gz: a517e60ba65450c6346e6c574ff047f12a8dd09c1b8ebaed16cb393ddaba254490869c829f022c7cc929b6d00c4c32bf0f86c3d2b0e986ac608fcad471107995
7
+ data.tar.gz: 544f51ca80f96bd73d30ee582acaecf1e734e44d4132d5a1a415bb11b1f87dbc969e0885663c961554e3635a2c72080e03a6952b6abdf4f6f4e435e075f472e5
@@ -35,10 +35,12 @@ module Hotwire
35
35
  config_path = Hotwire::Livereload::Engine.root.join("config", "livereload_cable.yml")
36
36
  cable = Hotwire::Livereload::Engine.cable
37
37
 
38
- cable.cable = app.config_for(config_path).with_indifferent_access
39
- cable.mount_path = "/cable"
40
- cable.connection_class = -> { Hotwire::Livereload::Connection }
41
- cable.logger ||= Rails.logger
38
+ if Rails.env.development?
39
+ cable.cable = app.config_for(config_path).with_indifferent_access
40
+ cable.mount_path = "/cable"
41
+ cable.connection_class = -> { Hotwire::Livereload::Connection }
42
+ cable.logger ||= Rails.logger
43
+ end
42
44
  end
43
45
 
44
46
  config.after_initialize do |app|
@@ -1,5 +1,5 @@
1
1
  module Hotwire
2
2
  module Livereload
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hotwire-livereload
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kirill Platonov