camping 3.1.2 → 3.1.3

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: e1aa24f1bf87479fdf76924e8a0ac6a72b308eebce898efad48e2a23879b5f45
4
- data.tar.gz: 6779a418c8f44829aa14cfdb5633925a8479ab91c8d1bff0640b7dd7f6de5634
3
+ metadata.gz: bf72576fffe27b262b298dbd9355a0e801ea962c532a63010e60e72564092c77
4
+ data.tar.gz: caa65f8d4585a2b99a6ddbf3699065512b7ffee4f84a6f7a03c31d2871542bd6
5
5
  SHA512:
6
- metadata.gz: d68c77354dce8e339a0cd5371d31a99f775380f176bbac8edab4e36c5cff3d07224bad49f918c34b546f7bf57fa553b2bbc38945d82a0c482de7cf3b0292939e
7
- data.tar.gz: 23fd9016b59844b38a9331a3cac4505d398cf350a27e310551d0a7f69eb4e950dad74ed487e53b71c7528e0bafb1310abe003a2dd68241ad5a73fce822dfaf03
6
+ metadata.gz: 9094ac07b30d28d2a2e8f955793959142c00db8f1880e60adb2ff02152f0f401b336a7ccb2e5228e396a5fc2f0ead7f78597dadaeca304d3e489f0c74746f28e
7
+ data.tar.gz: 1f789d875289e0632734ffb04b4765c454f050fd0efd96f8603a52cde615e452bd5dcc27f6a338a2efe86fa0fef03183f819567785a45208bdf1700aabd2722d
@@ -52,8 +52,12 @@ module Camping
52
52
  # setup Zeit for this reloader
53
53
  setup_zeit(@zeit)
54
54
 
55
+ dirs = [@root]
56
+ dirs << "#{@root}/apps" if Dir.exist? "#{@root}/apps"
57
+ dirs << "#{@root}/lib" if Dir.exist? "#{@root}/lib"
58
+
55
59
  # setup recursive listener on the apps and lib directories from the source script.
56
- @listener = Listen.to("#{@root}/apps", "#{@root}/lib", "#{@root}") do |modified, added, removed|
60
+ @listener = Listen.to(*dirs) do |modified, added, removed|
57
61
  @mtime = Time.now
58
62
  reload!
59
63
  end
@@ -1,5 +1,5 @@
1
1
  module Camping
2
- VERSION = "3.1.2"
2
+ VERSION = "3.1.3"
3
3
  def self.version
4
4
  VERSION
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: camping
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.2
4
+ version: 3.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - why the lucky stiff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-23 00:00:00.000000000 Z
11
+ date: 2023-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mab