hasu 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/lib/hasu.rb +2 -2
  3. data/lib/hasu/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjQ4MjE2NzIzMDFjYjgzZGI2MTNkMmY2ZDJjNzJhOTNmNjVmM2M0Nw==
4
+ ZTU5ZjlmMjlkMDU3ZDlmZTU0MDBhNjM4Y2I5ODQ3NDdlYzU0YTQ5Nw==
5
5
  data.tar.gz: !binary |-
6
- ZWZhNDc0MGEzNzg3Yzk4NWQwYjYzZjRmMzE0OWQ5OWU5M2ZlMmVkMQ==
6
+ MWVjZDkyODJkYTVhZDYxZGQ5NDUxNzU1OGI0N2FlNzExNGViODA5Mg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- OThkYzg0ZGVkYjVhNjI0ODQ4ZTA2ZDc3ZTc0MzRiNWRmMDZhN2JkN2I5OWZl
10
- MGIzMjkzNDVmNzFhOTkxNDc2MDNmOTA5ZGEwODRhODJhYTliMjNmYTYyMDFj
11
- NjU0Yzk5ZmZhNjA1NmE3YWI2ZTI1M2FlYjFiYWFkZDVkNGY3MDk=
9
+ N2U3MGZlMjQ2Y2EzM2RmNDE0YTYzMDg5OWQxZDUyYzYyYWUzMWM5M2FmN2Iz
10
+ YzUxOTc4MGRmZGI0YjhjOTZmMmNkMWQ5ZjkyZmFjMjE3MGNjNDc0YjQ0ODc0
11
+ ZWRkYTQxNmFiMDhjM2NkYjc3MGE5NzI0YTQ1ZTQ1NWI0NmM1YzI=
12
12
  data.tar.gz: !binary |-
13
- MDczZWZhN2IyZDBjN2VhODY3ZGNiOTA2YjkzNzE5NDk0YmY3NWE1MmFhZTNi
14
- NzBmYzdiZjJkY2I2OWNiZmI5NmM3OTNlODlkMTFhZGZmODE5NTIxZTFiN2Zh
15
- ZWZlYTYyNGMwYzRlNDhmZTgwNDM3YWI0N2E4ZTdjMmFlYTE5ODU=
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
@@ -1,3 +1,3 @@
1
1
  module Hasu
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hasu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Fairley