code_statistics 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.6
1
+ 0.1.7
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{code_statistics}
8
- s.version = "0.1.6"
8
+ s.version = "0.1.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dan Mayer"]
12
- s.date = %q{2009-10-29}
12
+ s.date = %q{2009-11-02}
13
13
  s.description = %q{"This is a port of the rails 'rake stats' method so it can be made more robust and work for non rails projects. New features may eventually be added as well."}
14
14
  s.email = %q{dan@devver.net}
15
15
  s.extra_rdoc_files = [
@@ -20,6 +20,13 @@ module CodeStatistics
20
20
  @pairs << %w(Specs spec)
21
21
  add_test_type("Specs")
22
22
  end
23
+ if local_file_exists?(directory, 'test') &&
24
+ (!local_file_exists?(directory, 'test/unit') &&
25
+ !local_file_exists?(directory, 'test/functional') &&
26
+ !local_file_exists?(directory, 'test/integration'))
27
+ @pairs << %w(Tests test)
28
+ add_test_type("Tests")
29
+ end
23
30
  @statistics = calculate_statistics
24
31
  @total = calculate_total if pairs.length > 1
25
32
  end
@@ -51,7 +58,7 @@ module CodeStatistics
51
58
  end
52
59
 
53
60
  def add_test_type(test_type)
54
- @specs_found = true
61
+ @specs_found = true if test_type.match(/spec/i)
55
62
  @test_types << test_type
56
63
  end
57
64
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: code_statistics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
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: 2009-10-29 00:00:00 -04:00
12
+ date: 2009-11-02 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency