churn 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/lib/churn/churn_calculator.rb +1 -1
- data/test/unit/churn_calculator_test.rb +3 -3
- metadata +11 -1
data/Rakefile
CHANGED
@@ -13,6 +13,7 @@ begin
|
|
13
13
|
gem.authors = ["Dan Mayer"]
|
14
14
|
gem.add_development_dependency "thoughtbot-shoulda"
|
15
15
|
gem.add_development_dependency "devver-construct"
|
16
|
+
gem.add_development_dependency "mocha", '~> 0.9.5'
|
16
17
|
gem.add_dependency "main"
|
17
18
|
gem.add_dependency "json"
|
18
19
|
gem.add_dependency "chronic", '~> 0.2.3'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.8
|
@@ -39,7 +39,7 @@ class ChurnCalculatorTest < Test::Unit::TestCase
|
|
39
39
|
|
40
40
|
churn.stubs(:parse_log_for_changes).returns([['less.rb',1]])
|
41
41
|
churn.stubs(:parse_log_for_revision_changes).returns(['first'])
|
42
|
-
churn.stubs(:parse_logs_for_updated_files).returns(
|
42
|
+
churn.stubs(:parse_logs_for_updated_files).returns({'fake_file.rb'=>[]})
|
43
43
|
report = churn.report(false)
|
44
44
|
assert_equal ["fake_file.rb"], report[:churn][:changed_files]
|
45
45
|
end
|
@@ -52,7 +52,7 @@ class ChurnCalculatorTest < Test::Unit::TestCase
|
|
52
52
|
|
53
53
|
churn.stubs(:parse_log_for_changes).returns([['less.rb',1]])
|
54
54
|
churn.stubs(:parse_log_for_revision_changes).returns(['first'])
|
55
|
-
churn.stubs(:parse_logs_for_updated_files).returns(
|
55
|
+
churn.stubs(:parse_logs_for_updated_files).returns({'fake_file.rb'=>[]})
|
56
56
|
klasses = [{"klass"=>"LocationMapping", "file"=>"lib/churn/location_mapping.rb"}]
|
57
57
|
methods = [{"klass"=>"LocationMapping", "method"=>"LocationMapping#process_class", "file"=>"lib/churn/location_mapping.rb"}]
|
58
58
|
churn.stubs(:get_changes).returns([klasses,methods])
|
@@ -69,7 +69,7 @@ class ChurnCalculatorTest < Test::Unit::TestCase
|
|
69
69
|
|
70
70
|
churn.stubs(:parse_log_for_changes).returns([['less.rb',1]])
|
71
71
|
churn.stubs(:parse_log_for_revision_changes).returns(['first'])
|
72
|
-
churn.stubs(:parse_logs_for_updated_files).returns(
|
72
|
+
churn.stubs(:parse_logs_for_updated_files).returns({'fake_file.rb'=>[]})
|
73
73
|
klasses = [{"klass"=>"LocationMapping", "file"=>"lib/churn/location_mapping.rb"}]
|
74
74
|
methods = [{"klass"=>"LocationMapping", "method"=>"LocationMapping#process_class", "file"=>"lib/churn/location_mapping.rb"}]
|
75
75
|
churn.stubs(:get_changes).returns([klasses,methods])
|
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.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Mayer
|
@@ -32,6 +32,16 @@ dependencies:
|
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: "0"
|
34
34
|
version:
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: mocha
|
37
|
+
type: :development
|
38
|
+
version_requirement:
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ~>
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 0.9.5
|
44
|
+
version:
|
35
45
|
- !ruby/object:Gem::Dependency
|
36
46
|
name: main
|
37
47
|
type: :runtime
|