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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjA3ZDk4MTA2OGNhMDBiYTYyM2M5ZjkyNzQ2ZjUyNzM1NjYxMDVmZg==
4
+ MWQ5NzdmOGZkMDJhYmMyMWZiOTAwOGMzYzMxODc4MjQ4MDUzZjUxYw==
5
5
  data.tar.gz: !binary |-
6
- MzdlNDEyYzMyYzRlMGQzNjQ1ZTkxZjA4M2Y3ODM4YjA1M2Y1YWZkMw==
6
+ NTBhZDJlY2NkYzZmMGJkMjZjMzg1MDdmNDE0Y2NiMjg4Y2NhNGU1YQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjU2MDI0ODY4NTk3MjgwN2ZhMzE1N2RjZWFmODgxZTFiY2MzNWQ0ZDI2MDRl
10
- Y2Y3OGJiMjE4MmFlZDEzNjA5MWRhZWQyNTM0NGE3ODI2MGEwMjVhMjQ0N2Ix
11
- MmM3YmFmYzVkNTRkOGUyYzA0ODg4NzAzMDUxYTZiNDRkMWFiNjM=
9
+ YmRlYWUyOWViY2IyOGMwNjc3OGFkMjZiNDY2NTI2MzUxOTY4Yjc1NzQ4NjRm
10
+ ZTU2OGQ1ZGNmOWQyYjBhOTUzZjkzNWQwZTFjZTc2MzhiMTMwZTQ1ZjBkNDg1
11
+ NWUxNGJkOGVkMzkzNjY0MmNjYzJiNTQ4ZjM4ZWYyN2U0Yzg0MWM=
12
12
  data.tar.gz: !binary |-
13
- MGVhNDVhMDRkNzY2MGY1MzFjYWVmMDZiNGE3OTA1OTQ2MmJmM2VlYjAwYjI1
14
- ZjQxOWU5ZDEzMjdjZDBlNjFhZDNkYjk3ZjVkYjc2YTU1Nzg0ODc3ZmZiZmQx
15
- ODg0ZmQ5MTQ2MjQ1NzZhZmZjMDQ0NDljYTVkYmRiMjMwOWIyM2Q=
13
+ OGRkZGVkMWI5ZGU2NGVhNzlhMTE0MTk2ZmVmYmU1MDNkZmQ1M2NiZGZlYjg3
14
+ ODZmZjRiOTdjMWU0ZDcxZmVhYzM3ZjdhYjdiNjc5NmMxOTIwOTBhYTM4MDdh
15
+ ZmVhZjhkZDZkYzA0NzdkNmZhYjJmZDAwYWJlMDY3MDI3NTAyNDI=
@@ -23,9 +23,7 @@ module HostileGit
23
23
  end
24
24
 
25
25
  def check_and_reset
26
- if !commited?
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
- if initial_timeout
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
@@ -1,3 +1,3 @@
1
1
  module HostileGit
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe HostileGit do
3
+ describe "HostileGit" do
4
4
 
5
5
  before (:each) do
6
6
  @hostile = HostileGit::Hostility.new()
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: HostileGit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Whatisinternet