churn 0.0.31 → 0.0.32

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- churn (0.0.31)
4
+ churn (0.0.32)
5
5
  chronic (>= 0.2.3)
6
6
  hirb
7
7
  json_pure
@@ -117,7 +117,7 @@ module Churn
117
117
 
118
118
  private
119
119
 
120
- def collect_items(collection, match)
120
+ def self.collect_items(collection, match)
121
121
  collection.map {|item| (item.delete(match) || {}).merge(item) }
122
122
  end
123
123
 
@@ -129,14 +129,18 @@ module Churn
129
129
  /.*\.rb/
130
130
  end
131
131
 
132
- def display_array(array, options={})
132
+ def self.display_array(array, options={})
133
133
  array ? Hirb::Helpers::AutoTable.render(array, options.merge(:description=>false)) + "\n" : ''
134
134
  end
135
135
 
136
- def seperator
136
+ def self.seperator
137
137
  "*"*70+"\n"
138
138
  end
139
139
 
140
+ def seperator
141
+ ChurnCalculator.seperator
142
+ end
143
+
140
144
  def self.git?
141
145
  system("git branch")
142
146
  end
@@ -1,3 +1,3 @@
1
1
  module Churn
2
- VERSION = "0.0.31"
2
+ VERSION = "0.0.32"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: churn
3
3
  version: !ruby/object:Gem::Version
4
- hash: 33
4
+ hash: 95
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 31
10
- version: 0.0.31
9
+ - 32
10
+ version: 0.0.32
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dan Mayer