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 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.7
1
+ 0.0.8
@@ -1,7 +1,7 @@
1
1
  require 'chronic'
2
+ require 'json'
2
3
  require 'sexp_processor'
3
4
  require 'ruby_parser'
4
- require 'json'
5
5
  require 'hirb'
6
6
  require 'fileutils'
7
7
 
@@ -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(['fake_file.rb'])
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(['fake_file.rb'])
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(['fake_file.rb'])
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.7
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