hangover 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,6 +29,10 @@ class Repository
29
29
  # TODO: get name of repo from repo dir
30
30
  p "Initializing new hangover repo at #{@repository}"
31
31
  init
32
+ File.open("#{@repository}/info/exclude", "w") do |f|
33
+ f.puts NAME
34
+ f.puts ".git"
35
+ end
32
36
  add
33
37
  commit_a("Initial commit")
34
38
  end
@@ -1,3 +1,3 @@
1
1
  module Hangover
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
data/lib/hangover.rb CHANGED
@@ -21,6 +21,8 @@ class Hangover
21
21
 
22
22
  WatchDir.new(@base_dir).on_change do |dir|
23
23
  repository = Repository.find(dir)
24
+ next if repository.nil?
25
+
24
26
  diff = repository.diff
25
27
  next if diff.blank?
26
28
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 4
9
- version: 0.0.4
8
+ - 5
9
+ version: 0.0.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Norman Timmler