hasu 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hasu.rb +2 -2
- data/lib/hasu/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2626ba7b3bce85ad0d28a0e03c030f467ac125645433ec73ccfe33bc8e810aff
|
4
|
+
data.tar.gz: 29d5261508848eb357dea64142f8cefee1b025225edaa4c060686f71f45bf504
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f308311c2206f5903322c3e1f161d0519c73579b8b46a5f227bce19ac1477fc8d4bb5136e1297118c63f260abe405931707db234a18e0b1e5af12ed6a19745b
|
7
|
+
data.tar.gz: fb627249f8ac7386b4f843d3fcce21779c3f238f9043e29f5a636bf2ea5c93179357db6a8c16eb40a7e96be08bb9f32d1f862456cdccb7b37e4ebf9c97600005
|
data/lib/hasu.rb
CHANGED
@@ -7,7 +7,7 @@ module Hasu
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def self.load(path)
|
10
|
-
reloads[path] = File.
|
10
|
+
reloads[path] = File.exist?(path) ? File.mtime(path) : Time.now
|
11
11
|
begin
|
12
12
|
super
|
13
13
|
true
|
@@ -31,7 +31,7 @@ module Hasu
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def self.reload!
|
34
|
-
to_reload = reloads.select{|f,t| File.
|
34
|
+
to_reload = reloads.select{|f,t| File.exist?(f) && File.mtime(f) > t}
|
35
35
|
|
36
36
|
!to_reload.empty? && to_reload.all? do |file,_|
|
37
37
|
puts "Reloading #{file}"
|
data/lib/hasu/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hasu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Fairley
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gosu
|
@@ -79,7 +79,7 @@ homepage: https://github.com/michaelfairley/hasu
|
|
79
79
|
licenses:
|
80
80
|
- MIT
|
81
81
|
metadata: {}
|
82
|
-
post_install_message:
|
82
|
+
post_install_message:
|
83
83
|
rdoc_options: []
|
84
84
|
require_paths:
|
85
85
|
- lib
|
@@ -94,8 +94,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
94
|
- !ruby/object:Gem::Version
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
|
-
rubygems_version: 3.
|
98
|
-
signing_key:
|
97
|
+
rubygems_version: 3.2.3
|
98
|
+
signing_key:
|
99
99
|
specification_version: 4
|
100
100
|
summary: Prototype Gosu games with ease
|
101
101
|
test_files: []
|