hasu 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/hasu.rb +2 -2
- data/lib/hasu/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTU5ZjlmMjlkMDU3ZDlmZTU0MDBhNjM4Y2I5ODQ3NDdlYzU0YTQ5Nw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MWVjZDkyODJkYTVhZDYxZGQ5NDUxNzU1OGI0N2FlNzExNGViODA5Mg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
N2U3MGZlMjQ2Y2EzM2RmNDE0YTYzMDg5OWQxZDUyYzYyYWUzMWM5M2FmN2Iz
|
10
|
+
YzUxOTc4MGRmZGI0YjhjOTZmMmNkMWQ5ZjkyZmFjMjE3MGNjNDc0YjQ0ODc0
|
11
|
+
ZWRkYTQxNmFiMDhjM2NkYjc3MGE5NzI0YTQ1ZTQ1NWI0NmM1YzI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTliYTQyMmY2Zjc2YzVjYWRmODNkYzVjOGY4ZmE5ODNkM2ZkNjRlZDdmZTlm
|
14
|
+
MGQyYzg0NDAzMjgwYzhiNGVmODQyMjE2MjA3NDFkZjk2NTZhNDg5YzY1NDc4
|
15
|
+
ZTk0NDVhODJiOTFhMzhjOGRkYWVlNDM5MTRlNzE2NWNiMmU0ZDk=
|
data/lib/hasu.rb
CHANGED
@@ -6,7 +6,7 @@ module Hasu
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def self.load(path)
|
9
|
-
reloads[path] = File.mtime(path)
|
9
|
+
reloads[path] = File.exists?(path) ? File.mtime(path) : 0
|
10
10
|
begin
|
11
11
|
super
|
12
12
|
true
|
@@ -37,7 +37,7 @@ module Hasu
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def self.reload!
|
40
|
-
to_reload = reloads.select{|f,t| File.mtime(f) > t}
|
40
|
+
to_reload = reloads.select{|f,t| File.exists?(f) && File.mtime(f) > t}
|
41
41
|
|
42
42
|
!to_reload.empty? && to_reload.all? do |file,_|
|
43
43
|
puts "Reloading #{file}"
|
data/lib/hasu/version.rb
CHANGED