git-delta 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -7,6 +7,7 @@ It sums the net change for each commit and output the sum of positive and negati
7
7
  $ git-delta
8
8
  123 - 100 = 23
9
9
 
10
+ The commits that made net contributions totalled 123 extra lines. The commits that made net code reductions removed a total of 100 lines.
10
11
  Net lines added: 23
11
12
 
12
13
  ## Installation
@@ -22,6 +23,8 @@ Net lines added: 23
22
23
  $ git-delta -v
23
24
  $ git-delta -rails
24
25
 
26
+ Other options starting with `-` are passed on to `git`.
27
+
25
28
  ## Contributing
26
29
 
27
30
  1. Fork it
@@ -2,8 +2,11 @@ require_relative "../git-delta"
2
2
 
3
3
  class Git::Delta::Runner
4
4
  def run(argv = ARGV)
5
- if ARGV.delete('-rails')
5
+ case ARGV.first
6
+ when '-rails'
6
7
  rails
8
+ when '-h', '--help'
9
+ puts "This is just a quick script, check the readme or the source code"
7
10
  else
8
11
  Git::Delta::Reporter.new(*parse_arg(argv)).filter_out(exclude).report(@verbose)
9
12
  end
@@ -1,5 +1,5 @@
1
1
  module Git
2
2
  module Delta
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-delta
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-08-18 00:00:00.000000000 Z
12
+ date: 2012-08-19 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Calculate the number of lines added/subtracted in a git directory
15
15
  email: