guard-notifier-git_auto_commit 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ require 'guard/notifier'
3
3
  module Guard
4
4
  module Notifier
5
5
  module GitAutoCommit
6
- VERSION = "0.1.0"
6
+ VERSION = "0.1.1"
7
7
 
8
8
  extend self
9
9
 
@@ -35,6 +35,13 @@ module Guard
35
35
  fd.write commit_message
36
36
  fd.close
37
37
  end
38
+
39
+ # notify untracked files
40
+ untracked_files = `git ls-files --exclude-standard --others`.split("\n")
41
+ unless untracked_files.select { |path|
42
+ ! File.basename(path).match(/^\.|~$/) }.empty?
43
+ warn "\e[35mYou have untracked file\e[0m"
44
+ end
38
45
  end
39
46
  end
40
47
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-notifier-git_auto_commit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-27 00:00:00.000000000 Z
12
+ date: 2012-08-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard
@@ -72,7 +72,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
72
72
  version: '0'
73
73
  segments:
74
74
  - 0
75
- hash: 648880847
75
+ hash: 43669117
76
76
  required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  none: false
78
78
  requirements:
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  version: '0'
82
82
  segments:
83
83
  - 0
84
- hash: 648880847
84
+ hash: 43669117
85
85
  requirements: []
86
86
  rubyforge_project:
87
87
  rubygems_version: 1.8.24