churn 0.0.31 → 0.0.32
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/churn/churn_calculator.rb +7 -3
- data/lib/churn/version.rb +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
@@ -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
|
data/lib/churn/version.rb
CHANGED
metadata
CHANGED