HostileGit 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/HostileGit.rb +2 -6
- data/lib/HostileGit/version.rb +1 -1
- data/spec/hostileGit_spec.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
|
+
MWQ5NzdmOGZkMDJhYmMyMWZiOTAwOGMzYzMxODc4MjQ4MDUzZjUxYw==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
NTBhZDJlY2NkYzZmMGJkMjZjMzg1MDdmNDE0Y2NiMjg4Y2NhNGU1YQ==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
YmRlYWUyOWViY2IyOGMwNjc3OGFkMjZiNDY2NTI2MzUxOTY4Yjc1NzQ4NjRm
|
|
10
|
+
ZTU2OGQ1ZGNmOWQyYjBhOTUzZjkzNWQwZTFjZTc2MzhiMTMwZTQ1ZjBkNDg1
|
|
11
|
+
NWUxNGJkOGVkMzkzNjY0MmNjYzJiNTQ4ZjM4ZWYyN2U0Yzg0MWM=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
OGRkZGVkMWI5ZGU2NGVhNzlhMTE0MTk2ZmVmYmU1MDNkZmQ1M2NiZGZlYjg3
|
|
14
|
+
ODZmZjRiOTdjMWU0ZDcxZmVhYzM3ZjdhYjdiNjc5NmMxOTIwOTBhYTM4MDdh
|
|
15
|
+
ZmVhZjhkZDZkYzA0NzdkNmZhYjJmZDAwYWJlMDY3MDI3NTAyNDI=
|
data/lib/HostileGit.rb
CHANGED
|
@@ -23,9 +23,7 @@ module HostileGit
|
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
def check_and_reset
|
|
26
|
-
|
|
27
|
-
reset!
|
|
28
|
-
end
|
|
26
|
+
reset! unless commited?
|
|
29
27
|
end
|
|
30
28
|
|
|
31
29
|
def initial_timeout
|
|
@@ -34,9 +32,7 @@ module HostileGit
|
|
|
34
32
|
|
|
35
33
|
def start_being_hostile
|
|
36
34
|
listener = Listen.to(Dir.pwd) do |modified, added, removed|
|
|
37
|
-
|
|
38
|
-
check_and_reset
|
|
39
|
-
end
|
|
35
|
+
check_and_reset if initial_timeout
|
|
40
36
|
end
|
|
41
37
|
listener.start # not blocking
|
|
42
38
|
sleep
|
data/lib/HostileGit/version.rb
CHANGED
data/spec/hostileGit_spec.rb
CHANGED