git_stats 1.0.12 → 1.0.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2fdf7c3f12067e71e3eddbd26ece408572f6d0bf
4
- data.tar.gz: 79b20aeae19c213893f447432a34bd81bb89880e
3
+ metadata.gz: fdf6acaebd3fce0aec44b46e2434c0e5d978a0aa
4
+ data.tar.gz: 01568a5bfcba85be69a55838c885b318c6aeb113
5
5
  SHA512:
6
- metadata.gz: 3286e2ccc323720aa0532f0112d77ff103136646ac14f64e425c7787e3c9b67bc91eee7e0f23e22cfe15a0d0ca02796a61f9e7aa8fab0fae5cc23f4aa9194a7d
7
- data.tar.gz: 87b139080a6f5420c7267cc858d73ba4494c745e40b60e599fe2ac2f763a615b08e28d67f89c235c7f85bad73a6b3891ec3148c7b3542035fedf7129edb4d1bb
6
+ metadata.gz: 5a6389f8e2e955b57eb7a4ef25637f99374a0e0f5eeaea1d8824f92d57a7fdc91ca0191976da15a0327850a50347386d811d97ac65574bbf8db6b26143bc6038
7
+ data.tar.gz: cdbec24c61f9f579e56c65dcbbfbe7a2d0dc6d2c3d8f94928f1b146751e379d104e28a9dd0aec1b0a0595561dc8d61bfcea0e087760fcc750f9ae575afed5f8a
@@ -26,4 +26,5 @@ Gem::Specification.new do |gem|
26
26
  gem.add_dependency('lazy_high_charts', '>= 1.4')
27
27
  gem.add_dependency('i18n')
28
28
  gem.add_dependency('thor')
29
+ gem.add_dependency('json_pure')
29
30
  end
@@ -6,11 +6,11 @@ class GitStats::CLI < Thor
6
6
  option :path, :aliases => :p, :default => '.', :desc => 'Path to repository from which statistics should be generated.'
7
7
  option :out_path, :aliases => :o, :default => './git_stats', :desc => 'Output path where statistics should be written.'
8
8
  option :language, :aliases => :l, :default => 'en', :desc => 'Language of written statistics.'
9
- option :from, :aliases => :f, :desc => 'Commit from where statistics should start.'
10
- option :to, :aliases => :t, :default => 'HEAD', :desc => 'Commit where statistics should stop.'
9
+ option :first_commit_sha, :aliases => :f, :desc => 'Commit from where statistics should start.'
10
+ option :last_commit_sha, :aliases => :t, :default => 'HEAD', :desc => 'Commit where statistics should stop.'
11
11
  option :silent, :aliases => :s, :type => :boolean, :desc => 'Silent mode. Don\'t output anything.'
12
12
  option :tree, :aliases => :d, :default => '.', :desc => 'Tree where statistics should be generated.'
13
- option :comment, :aliases => :c, :default => '//', :desc => 'The string which is used for comments.'
13
+ option :comment_string, :aliases => :c, :default => '//', :desc => 'The string which is used for comments.'
14
14
 
15
15
  desc 'generate', 'Generates the statistics of a repository'
16
16
  def generate
@@ -35,6 +35,10 @@ module GitStats
35
35
  @comment_string ||= '//'
36
36
  end
37
37
 
38
+ def tree
39
+ @tree ||= Tree.new(repo: self, relative_path: @tree_path)
40
+ end
41
+
38
42
  def authors
39
43
  @authors ||= run_and_parse("git shortlog -se #{commit_range} #{tree_path}").map do |author|
40
44
  Author.new(repo: self, name: author[:name], email: author[:email])
@@ -115,10 +119,6 @@ module GitStats
115
119
  @project_version ||= run("git rev-parse --short #{commit_range}").strip
116
120
  end
117
121
 
118
- def tree
119
- @tree ||= Tree.new(repo: self, relative_path: @tree_path)
120
- end
121
-
122
122
  def project_name
123
123
  @project_name ||= (File.expand_path(File.join(path, tree_path)).sub(File.dirname(File.expand_path(path))+File::SEPARATOR,"") || File.basename(path))
124
124
  end
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module GitStats
3
- VERSION = "1.0.12"
3
+ VERSION = "1.0.13"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_stats
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.12
4
+ version: 1.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomasz Gieniusz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-22 00:00:00.000000000 Z
11
+ date: 2014-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: json_pure
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
111
125
  description: Git history statistics generator
112
126
  email:
113
127
  - tomasz.gieniusz@gmail.com