rails_live_reload 0.3.3 → 0.3.4

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: aceaf0973158c274de7e8572a411ea88c7bfdd24b0cfcebb26f7499f3bc3d436
4
- data.tar.gz: 9d1cc878c89e323f9e5f0eec2ba98d716d18340d705cf3547efcc1c3b75f3533
3
+ metadata.gz: 9719946dc13f20a304dd1d9c70238c2219252bd2a4c1b012bdb66f5c8ed1f8f0
4
+ data.tar.gz: 843756b9a273ddd189eff2ac6f77b0e44535d4b261e098bb70a9c900bb2e9287
5
5
  SHA512:
6
- metadata.gz: dedfe054d3a67b70c2ee7ad8e719865eeed77d98e0437b07e56abaf48703cd06a83ec460a25c84cf067c8a6cce53164ec5918de1268d8877c68fd18fd4312b85
7
- data.tar.gz: 0653e1710da6837048395204355b60a6c2b4320c0809da7b5a3e886dafac191aa188de0588a869a105523c8954a2c3bdfbfb5720132f2ef5fe05db519300e98d
6
+ metadata.gz: 0bf3875244b09962a7da0a1269853215365a57b9ce22b29a09332e43a538b2483f96287480c345a455a7b3d83b63200cb3b2ea34e0cbfa015d8697ef154a446a
7
+ data.tar.gz: 54a32215cdb6ae7c7811f46a6b6452aa5e86d9470d4d01732c10469ea5354197e5539806c9d703a67da391a39471a1c78025c9b4d28266c97cd68db4cf60dade
@@ -49,7 +49,13 @@ module RailsLiveReload
49
49
  end
50
50
 
51
51
  def socket_path
52
- root_path.join('tmp/sockets/rails_live_reload.sock')
52
+ root_path.join('tmp/sockets/rails_live_reload.sock').then do |path|
53
+ break path if path.to_s.size <= 104 # 104 is the max length of a socket path
54
+
55
+ puts "Unable to create socket path inside the project, using /tmp instead"
56
+ app_name = ::Rails.application.class.name.split('::').first.underscore
57
+ Pathname.new("/tmp/rails_live_reload_#{app_name}.sock")
58
+ end
53
59
  end
54
60
  end
55
61
  end
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Rails Live Reload 0.3.3
2
+ Rails Live Reload 0.3.4
3
3
  Copyright © 2023 RailsJazz
4
4
  https://railsjazz.com
5
5
  */
@@ -1,3 +1,3 @@
1
1
  module RailsLiveReload
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_live_reload
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Kasyanchuk
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-04-09 00:00:00.000000000 Z
12
+ date: 2023-04-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties