churn 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/churn/churn_calculator.rb +1 -1
- data/lib/churn/churn_history.rb +9 -5
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.9
|
data/lib/churn/churn_history.rb
CHANGED
@@ -11,11 +11,15 @@ module Churn
|
|
11
11
|
#load revision data from scratch folder if it exists
|
12
12
|
filename = "tmp/#{revision}.json"
|
13
13
|
if File.exists?(filename)
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
14
|
+
begin
|
15
|
+
json_data = File.read(filename)
|
16
|
+
data = JSON.parse(json_data)
|
17
|
+
changed_files = data['churn']['changed_files']
|
18
|
+
changed_classes = data['churn']['changed_classes']
|
19
|
+
changed_methods = data['churn']['changed_methods']
|
20
|
+
rescue JSON::ParserError
|
21
|
+
#leave all of the objects nil
|
22
|
+
end
|
19
23
|
end
|
20
24
|
[changed_files, changed_classes, changed_methods]
|
21
25
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: churn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Mayer
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-01-
|
12
|
+
date: 2010-01-19 00:00:00 -05:00
|
13
13
|
default_executable: churn
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|