code_statistics 0.1.7 → 0.1.8

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.7
1
+ 0.1.8
@@ -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.7"
8
+ s.version = "0.1.8"
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-11-02}
12
+ s.date = %q{2009-11-04}
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 = [
@@ -9,6 +9,8 @@ module CodeStatistics
9
9
  @test_types = []
10
10
  directory = Dir.pwd
11
11
  @specs_found = false
12
+ #todo for both spec and test look through top level add any directory seperately
13
+ #get rid of the hard coded test/units / etc in this file and the rakefile.
12
14
  add_test_type("Model specs") if local_file_exists?(directory, 'spec/models')
13
15
  add_test_type("View specs") if local_file_exists?(directory, 'spec/views')
14
16
  add_test_type("Controller specs") if local_file_exists?(directory, 'spec/controllers')
@@ -16,6 +18,8 @@ module CodeStatistics
16
18
  add_test_type("Library specs") if local_file_exists?(directory, 'spec/lib')
17
19
  add_test_type("Routing specs") if local_file_exists?(directory, 'spec/routing')
18
20
  add_test_type("Integration specs") if local_file_exists?(directory, 'spec/integration')
21
+ add_test_type("Public specs") if local_file_exists?(directory, 'spec/public')
22
+ add_test_type("Semipublic specs") if local_file_exists?(directory, 'spec/semipublic')
19
23
  if @specs_found==false && local_file_exists?(directory, 'spec')
20
24
  @pairs << %w(Specs spec)
21
25
  add_test_type("Specs")
@@ -1,3 +1,5 @@
1
+ #todo for both spec and test look through top level add any directory seperately
2
+ #get rid of the hard coded test/units / etc in this file and the lib file.
1
3
  STATS_DIRECTORIES = [
2
4
  %w(Controllers app/controllers),
3
5
  %w(Helpers app/helpers),
@@ -13,7 +15,9 @@ STATS_DIRECTORIES = [
13
15
  %w(Helper\ specs spec/helpers),
14
16
  %w(Library\ specs spec/lib),
15
17
  %w(Routing\ specs spec/routing),
16
- %w(Integration\ specs spec/integration)
18
+ %w(Integration\ specs spec/integration),
19
+ %w(Public\ specs spec/public),
20
+ %w(Semipublic\ specs spec/semipublic)
17
21
  ].collect { |name, dir| [ name, "#{Dir.pwd}/#{dir}" ] }.select { |name, dir| File.directory?(dir) }
18
22
 
19
23
  desc "Report code statistics (KLOCs, etc) from the application"
@@ -1,4 +1,5 @@
1
- require 'test_helper'
1
+ #require 'test_helper'
2
+ require File.expand_path("test_helper", File.dirname(__FILE__))
2
3
 
3
4
  class CodeStatisticsTest < Test::Unit::TestCase
4
5
  should "probably rename this file and start testing for real" do
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.7
4
+ version: 0.1.8
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-11-02 00:00:00 -05:00
12
+ date: 2009-11-04 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency