git_analysis 0.0.3 → 0.0.3.1

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: 08645a52eaadeb1867565675437d912c6f2e9902
4
- data.tar.gz: 8e05322c0bbbbb96e0938b3d57251056fabc677d
3
+ metadata.gz: 5b7afe8e787385cbfa4466fa4b1960c6530b94c5
4
+ data.tar.gz: f04eacb70e48d44eded6c92057eca80ba4fa54f1
5
5
  SHA512:
6
- metadata.gz: ca59b4804e69e9e5d01fef1b7841af885d1dd6046d5d445689a011eb25fed9c5d4343a5700a884ba337e92f225784afd9146719694a10d9a4604672c5faa5554
7
- data.tar.gz: 0f279e1d0a2e0683de45453e46939ae822c22af472dcfa7be94e0967f641d8984e0cefecb6fdd1f3c4bcfe4e3ca3a4147581bd75b8ad52c2871b63b8552c3bc0
6
+ metadata.gz: 289fba8c0c4a7b5dc24412dc9179255397a726c8b1d2d321a17018ade60a8b89bc42129347c7738ff57eacf4f0d3fa4d5519547db385fb2e3f717547069db3e1
7
+ data.tar.gz: 477da3f4e69799ef83f5b8972b9700c495b90219c747ffde9086ece3176df211ac94520ef17cbbbfe821a7ccfe6b3a128d46f9da136b09db0ed226f9bddf6dfb
data/.gitignore CHANGED
@@ -20,3 +20,4 @@ tmp
20
20
  *.o
21
21
  *.a
22
22
  mkmf.log
23
+ build/
data/.travis.yml ADDED
@@ -0,0 +1,33 @@
1
+ language: ruby
2
+ env:
3
+ global:
4
+ - GIT_COMMITTER_NAME='volanja'
5
+ - GIT_COMMITTER_EMAIL='volaaanja@gmail.com'
6
+ - GIT_AUTHOR_NAME='volanja'
7
+ - GIT_AUTHOR_EMAIL='volaaanja@gmail.com'
8
+ - secure: "Ib0fx9QCLMoZKZpZl9GNyLlNEomiLqBlWfHHGbc++6eo6l8n74xZW5KpQKlp9X7PWig+pmZJ44/Fp+iNpJvH30UaI18D5192pbaaqnnjWLtZuWZKh3FypmiwwIktVodvqpnCfEu6qcMTwpBhJmaQl8TnFZbEg3IQu+vFlk7y/Gk="
9
+
10
+ branches:
11
+ only:
12
+ - gh-pages-build
13
+
14
+ rvm: 2.0.0
15
+ script:
16
+ - cd ~/build/volanja
17
+ # /home/travis/build/volanja
18
+ - git clone --quiet -b gh-pages-build https://github.com/volanja/git_analysis.git gh-pages-build
19
+ - pushd gh-pages-build
20
+ - bundle exec middleman build
21
+ - ls -R
22
+ after_success:
23
+ - popd
24
+ # /home/travis/build/volanja
25
+ - git clone --quiet -b gh-pages https://github.com/volanja/git_analysis.git gh-pages
26
+ - rm -rf ./gh-pages/*
27
+ - cp -r ./gh-pages-build/build/* ./gh-pages/
28
+ - cd ./gh-pages
29
+ - ls -R
30
+ # /home/travis/build/volanja/gh-pages
31
+ - git add .
32
+ - git commit -a -m 'Update by travis'
33
+ - '[ $GH_TOKEN ] && git push --quiet https://$GH_TOKEN@github.com/volanja/git_analysis.git gh-pages 2> /dev/null'
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # GitAnalysis
2
+ [![Gem Version](https://badge.fury.io/rb/git_analysis.svg)](http://badge.fury.io/rb/git_analysis)
2
3
 
3
4
  Analysis Git-Project
4
5
 
data/git_analysis.gemspec CHANGED
@@ -21,12 +21,10 @@ Gem::Specification.new do |spec|
21
21
  spec.add_development_dependency 'bundler', '~> 1.6' ,'>= 1.6.2'
22
22
  spec.add_development_dependency 'rake', '~> 10.3', '>= 10.3.2'
23
23
  spec.add_development_dependency 'thor', '~> 0.19', '>= 0.19.1'
24
- spec.add_development_dependency 'ruport', '~> 1.6', '>= 1.6.3'
25
24
  spec.add_development_dependency 'rugged', '~> 0.21', '>= 0.21.0'
26
25
  spec.add_development_dependency 'oj', '~> 2.9', '>= 2.9.9'
27
26
 
28
27
  spec.add_runtime_dependency 'thor', '~> 0.19', '>= 0.19.1'
29
- spec.add_runtime_dependency 'ruport', '~> 1.6', '>= 1.6.3'
30
28
  spec.add_runtime_dependency 'rugged', '~> 0.21', '>= 0.21.0'
31
29
  spec.add_runtime_dependency 'oj', '~> 2.9', '>= 2.9.9'
32
30
  end
@@ -1,3 +1,3 @@
1
1
  module GitAnalysis
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.3.1"
3
3
  end
data/lib/git_analysis.rb CHANGED
@@ -13,7 +13,7 @@ module GitAnalysis
13
13
  total = 0
14
14
  repo.walk(repo.last_commit).each do |commit|
15
15
  # TODO more Faster
16
- domain = commit.author[:email].gsub(/\A[a-zA-Z0-9\_\-\.\+ ]+@/,"").rstrip
16
+ domain = commit.author[:email].gsub(/\A[a-zA-Z0-9\_\-\.\+ \,\@]+@/,"").rstrip
17
17
  count[:"#{domain}"] += 1
18
18
  total += 1
19
19
  end
@@ -37,7 +37,7 @@ module GitAnalysis
37
37
  count = Hash.new{|h,k| h[k] = Hash.new(0) }
38
38
  total = Hash.new(0)
39
39
  repo.walk(repo.last_commit).each do |commit|
40
- domain = commit.author[:email].gsub(/\A[a-zA-Z0-9\_\-\.\+ ]+@/,"").rstrip
40
+ domain = commit.author[:email].gsub(/\A[a-zA-Z0-9\_\-\.\+ \,\@]+@/,"").rstrip
41
41
  diff = commit_diff(repo, commit)
42
42
 
43
43
  count[:"#{domain}"][:"addition"] += diff[1].to_i
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_analysis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - volanja
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-06 00:00:00.000000000 Z
11
+ date: 2014-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -70,26 +70,6 @@ dependencies:
70
70
  - - '>='
71
71
  - !ruby/object:Gem::Version
72
72
  version: 0.19.1
73
- - !ruby/object:Gem::Dependency
74
- name: ruport
75
- requirement: !ruby/object:Gem::Requirement
76
- requirements:
77
- - - ~>
78
- - !ruby/object:Gem::Version
79
- version: '1.6'
80
- - - '>='
81
- - !ruby/object:Gem::Version
82
- version: 1.6.3
83
- type: :development
84
- prerelease: false
85
- version_requirements: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ~>
88
- - !ruby/object:Gem::Version
89
- version: '1.6'
90
- - - '>='
91
- - !ruby/object:Gem::Version
92
- version: 1.6.3
93
73
  - !ruby/object:Gem::Dependency
94
74
  name: rugged
95
75
  requirement: !ruby/object:Gem::Requirement
@@ -150,26 +130,6 @@ dependencies:
150
130
  - - '>='
151
131
  - !ruby/object:Gem::Version
152
132
  version: 0.19.1
153
- - !ruby/object:Gem::Dependency
154
- name: ruport
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - ~>
158
- - !ruby/object:Gem::Version
159
- version: '1.6'
160
- - - '>='
161
- - !ruby/object:Gem::Version
162
- version: 1.6.3
163
- type: :runtime
164
- prerelease: false
165
- version_requirements: !ruby/object:Gem::Requirement
166
- requirements:
167
- - - ~>
168
- - !ruby/object:Gem::Version
169
- version: '1.6'
170
- - - '>='
171
- - !ruby/object:Gem::Version
172
- version: 1.6.3
173
133
  - !ruby/object:Gem::Dependency
174
134
  name: rugged
175
135
  requirement: !ruby/object:Gem::Requirement
@@ -219,6 +179,7 @@ extensions: []
219
179
  extra_rdoc_files: []
220
180
  files:
221
181
  - .gitignore
182
+ - .travis.yml
222
183
  - Gemfile
223
184
  - LICENSE.txt
224
185
  - README.md