dev 2.0.112 → 2.0.113

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/commands/add.rb +8 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e2d9b4695bc5046333a814ac46848c464ffe1b86
4
- data.tar.gz: 76c5b0bdc370e791855a29da7e0d97413c45a418
3
+ metadata.gz: ccb9bc0b85aafd06be87e4fdf48d54d5e3f4cf64
4
+ data.tar.gz: db9cbab50daaafa07f33f0f8fa2fae5be14f301e
5
5
  SHA512:
6
- metadata.gz: 4b3876851b336be7462aa146e05acac66d2e7b68cbd51032eb0810707c7ea09c5e851903da8a13630f8758d8105e175c202bcf5e33aa079cfecae823cba8c528
7
- data.tar.gz: 0a32b55a19fbe14e7110fd0636f090d502cf219caf02e9f94d915f399124b9d3495d8d2f5cef35b9369a9957d59c34746ba6dc32c9212027ea258a827aafd0fa
6
+ metadata.gz: ea4fe8edcd156d64af38a7eda16a63d95f187bc561a80bf91856f131dc7f671ae1a7dcfe03b3b9c8702c9f13234a08f6cda68d099264ddc12b8e1cfb127710aa
7
+ data.tar.gz: a0afd78c4b073f327a3194619e89ad71f958c198d4972b22801853dff7d8fcb081931f5fb66febef7b999bee3b8343cd7cf6928064c1c5960b61592d13d319b4
data/lib/commands/add.rb CHANGED
@@ -20,8 +20,14 @@ class Add < Array
20
20
  end
21
21
  if(File.exists?('.git'))
22
22
  SOURCE.each{|f|
23
- status=`git status #{f}`
24
- add "git add #{f} -v" if status.include?('untracked') || status.include?('modified:')
23
+ status=`git status #{f} --short`
24
+ #if status.include?('untracked') || status.include?('modified:')
25
+ if status.include?('??') || status.include?(' M ')
26
+ puts "git add #{f} -v"
27
+ add "git add #{f} -v"
28
+ else
29
+ puts status
30
+ end
25
31
  }
26
32
  end
27
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.112
4
+ version: 2.0.113
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow