git_heat 0.0.1 → 0.1.0

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: 128f12f0f840e046ac9617df4b3ff18470ebbcd4
4
- data.tar.gz: 58ac0df4fbafd0c83fa56d35fa0b159b7b85b69f
3
+ metadata.gz: c51fd8f30762f4d67b4f35ab7f5959783078809d
4
+ data.tar.gz: 379c5c34ac554d7f1dfa961e984582c558d9fd95
5
5
  SHA512:
6
- metadata.gz: d32f98b2d12d2e863f16df32a50bf3fb7988565dbe5a487b22d4345d6ac036260ec391ec6c7331617ef6ff50f4baa6abef23e49aed52431d3235af5d4ea99c47
7
- data.tar.gz: d94de469bbbd22fa9d30c3b15886640b221e36c6e198bb0a6747f1aa2c999185f0174d59fe5153ec4733a9c4e4bda97dfdf15458cdb91d3513f324f4c4d561c2
6
+ metadata.gz: 93a76f7ac9d84db387f62553cac35e6cb2aa2e0cf39bc9cc2cce8c4f6e2f368d648af902cd74f621989b3a981bee6974e49bb5877af7e730e86895ab9954187f
7
+ data.tar.gz: 991d3780b9d53cbb781be933c4e901669327239741fe6914641276df321f6ec2a9f6e074e910e61fd8f1f11ed55ac09e40b20017a4ca81dd4a557583e9de1e57
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ *.gem
data/bin/git-heat CHANGED
@@ -4,15 +4,12 @@ require_relative '../lib/git_heat/git_stat'
4
4
  require_relative '../lib/git_heat/git_client'
5
5
  require_relative '../lib/git_heat/calculator'
6
6
 
7
- unless ARGV[0]
8
- puts "Usage git-heat GIT_REPO_PATH"
9
- exit
10
- end
7
+ dir = ARGV[0] || Dir.pwd
11
8
 
12
9
  begin
13
10
  puts(Calculator.new(Time.now).go(
14
11
  GitStat.new(
15
- GitClient.new(ARGV[0])
12
+ GitClient.new(dir)
16
13
  ).stats
17
14
  ).map do |a|
18
15
  a[0].to_s.ljust(100) + a[1].to_s
@@ -1,3 +1,3 @@
1
1
  module GitHeat
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_heat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serguei Filimonov
@@ -74,6 +74,7 @@ executables:
74
74
  extensions: []
75
75
  extra_rdoc_files: []
76
76
  files:
77
+ - .gitignore
77
78
  - Gemfile
78
79
  - Gemfile.lock
79
80
  - LICENSE.txt