spec_converter 0.0.4 → 0.5

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG ADDED
@@ -0,0 +1,5 @@
1
+ v0.5. converting to echoe for gem-ing
2
+
3
+ v0.0.4. added history.txt to track things -- is there some way to do this easily and automatically via trac change logs? ; added conversion for ActionController::TestCase ; added conversion for ActiveSupport::TestCase ; move from rubyforge project spec-converter to thinkrelevance package spec_converter
4
+
5
+ v0.0.3. added more assert -> should conversions
@@ -1,6 +1,6 @@
1
- Manifest.txt
2
1
  README.txt
3
- Rakefile
2
+ CHANGELOG
4
3
  bin/spec_converter
5
4
  lib/spec_converter.rb
6
- test/spec_converter_test.rb
5
+ test/spec_converter_test.rb
6
+ Manifest
data/README.txt CHANGED
@@ -17,7 +17,7 @@ Assuming your project is at ~/work/project/:
17
17
 
18
18
  == URLS:
19
19
  * test/spec: http://rubyforge.org/projects/test-spec
20
- * trac: http://opensource.thinkrelevance.com/wiki/spec-converter
20
+ * trac: http://opensource.thinkrelevance.com/wiki/spec_converter
21
21
  * svn trunk: https://opensource.thinkrelevance.com/svn/spec_converter/trunk
22
22
  * rdoc: http://thinkrelevance.rubyforge.org/spec_converter/
23
23
 
@@ -0,0 +1,88 @@
1
+
2
+ # Gem::Specification for Spec_converter-0.5
3
+ # Originally generated by Echoe
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = %q{spec_converter}
7
+ s.version = "0.5"
8
+
9
+ s.specification_version = 2 if s.respond_to? :specification_version=
10
+
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.authors = ["Relevance"]
13
+ s.date = %q{2008-04-17}
14
+ s.default_executable = %q{spec_converter}
15
+ s.description = %q{Convert your tests to test/spec specs. See http://opensource.thinkrelevance.com/wiki/spec_converter for details.}
16
+ s.email = %q{opensource@thinkrelevance.com}
17
+ s.executables = ["spec_converter"]
18
+ s.extra_rdoc_files = ["README.txt", "CHANGELOG", "bin/spec_converter", "lib/spec_converter.rb"]
19
+ s.files = ["README.txt", "CHANGELOG", "bin/spec_converter", "lib/spec_converter.rb", "test/spec_converter_test.rb", "Manifest", "spec_converter.gemspec"]
20
+ s.has_rdoc = true
21
+ s.homepage = %q{http://opensource.thinkrelevance.com/wiki/spec_converter}
22
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Spec_converter", "--main", "README.txt"]
23
+ s.require_paths = ["lib"]
24
+ s.rubyforge_project = %q{thinkrelevance}
25
+ s.rubygems_version = %q{1.0.1}
26
+ s.summary = %q{Convert your tests to test/spec specs}
27
+ s.test_files = ["test/spec_converter_test.rb"]
28
+ end
29
+
30
+
31
+ # # Original Rakefile source (requires the Echoe gem):
32
+ #
33
+ # require 'rake'
34
+ # require 'rake/testtask'
35
+ # require 'rubygems'
36
+ # require 'lib/spec_converter'
37
+ # require 'rcov/rcovtask'
38
+ # require 'echoe'
39
+ #
40
+ # Echoe.new("spec_converter") do |p|
41
+ # p.rubyforge_name = "thinkrelevance"
42
+ # p.description = "Convert your tests to test/spec specs. See http://opensource.thinkrelevance.com/wiki/spec_converter for details."
43
+ # p.name = 'spec_converter'
44
+ # p.summary = "Convert your tests to test/spec specs"
45
+ # p.author = "Relevance"
46
+ # p.email = "opensource@thinkrelevance.com"
47
+ # p.url = "http://opensource.thinkrelevance.com/wiki/spec_converter"
48
+ # end
49
+ #
50
+ # desc 'Default: run unit tests.'
51
+ # task :default => :test
52
+ #
53
+ # desc 'Default for CruiseControl'
54
+ # task :cruise => ['test', 'test:flog']
55
+ #
56
+ # desc 'Test for flog failure'
57
+ # namespace :test do
58
+ # task :flog do
59
+ # threshold = (ENV['FLOG_THRESHOLD'] || 120).to_i
60
+ # dirs = %w(lib tasks test)
61
+ # result = IO.popen("flog #{dirs.join(' ')} 2>/dev/null | grep \"(\" | grep -v \"main#none\" | head -n 1").readlines.join('')
62
+ # result =~ /\((.*)\)/
63
+ # flog = $1.to_i
64
+ # result =~ /^(.*):/
65
+ # method = $1
66
+ # if flog > threshold
67
+ # raise "FLOG failed for #{method} with score of #{flog} (threshold is #{threshold})."
68
+ # end
69
+ # puts "FLOG passed, with highest score being #{flog} for #{method}."
70
+ # end
71
+ # end
72
+ #
73
+ # desc 'Run all tests.'
74
+ # Rake::TestTask.new(:test) do |t|
75
+ # t.libs << 'lib'
76
+ # t.pattern = 'test/**/*_test.rb'
77
+ # t.verbose = true
78
+ # end
79
+ #
80
+ # Rcov::RcovTask.new("rcov") do |t|
81
+ # rcov_output = "tmp/coverage"
82
+ # FileUtils.mkdir_p rcov_output unless File.exist? rcov_output
83
+ # t.libs << "lib"
84
+ # t.test_files = FileList["test/**/*_test.rb"]
85
+ # t.output_dir = "#{rcov_output}/"
86
+ # t.verbose = true
87
+ # t.rcov_opts = ["-x", "^/Library", "--sort coverage"]
88
+ # end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spec_converter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: "0.5"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Relevance
@@ -9,38 +9,37 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-02-15 00:00:00 -05:00
12
+ date: 2008-04-17 00:00:00 -04:00
13
13
  default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: hoe
17
- version_requirement:
18
- version_requirements: !ruby/object:Gem::Requirement
19
- requirements:
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 1.5.0
23
- version:
24
- description: Convert your tests to test/spec specs. See http://opensource.thinkrelevance.com/wiki/spec-converter for details.
14
+ dependencies: []
15
+
16
+ description: Convert your tests to test/spec specs. See http://opensource.thinkrelevance.com/wiki/spec_converter for details.
25
17
  email: opensource@thinkrelevance.com
26
18
  executables:
27
19
  - spec_converter
28
20
  extensions: []
29
21
 
30
22
  extra_rdoc_files:
31
- - Manifest.txt
32
23
  - README.txt
24
+ - CHANGELOG
25
+ - bin/spec_converter
26
+ - lib/spec_converter.rb
33
27
  files:
34
- - Manifest.txt
35
28
  - README.txt
36
- - Rakefile
29
+ - CHANGELOG
37
30
  - bin/spec_converter
38
31
  - lib/spec_converter.rb
39
32
  - test/spec_converter_test.rb
33
+ - Manifest
34
+ - spec_converter.gemspec
40
35
  has_rdoc: true
41
- homepage: http://opensource.thinkrelevance.com/wiki/spec-converter
36
+ homepage: http://opensource.thinkrelevance.com/wiki/spec_converter
42
37
  post_install_message:
43
38
  rdoc_options:
39
+ - --line-numbers
40
+ - --inline-source
41
+ - --title
42
+ - Spec_converter
44
43
  - --main
45
44
  - README.txt
46
45
  require_paths:
@@ -64,5 +63,5 @@ rubygems_version: 1.0.1
64
63
  signing_key:
65
64
  specification_version: 2
66
65
  summary: Convert your tests to test/spec specs
67
- test_files: []
68
-
66
+ test_files:
67
+ - test/spec_converter_test.rb
data/Rakefile DELETED
@@ -1,57 +0,0 @@
1
- require 'rake'
2
- require 'rake/testtask'
3
- require 'rubygems'
4
- require 'hoe'
5
- require 'lib/spec_converter'
6
- require 'rcov/rcovtask'
7
-
8
- Hoe.new('spec_converter', SpecConverter::VERSION) do |p|
9
- p.rubyforge_name = "thinkrelevance"
10
- p.description = "Convert your tests to test/spec specs. See http://opensource.thinkrelevance.com/wiki/spec-converter for details."
11
- p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
12
- p.name = 'spec_converter'
13
- p.summary = "Convert your tests to test/spec specs"
14
- p.author = "Relevance"
15
- p.email = "opensource@thinkrelevance.com"
16
- p.url = "http://opensource.thinkrelevance.com/wiki/spec-converter"
17
- end
18
-
19
- desc 'Default: run unit tests.'
20
- task :default => :test
21
-
22
- desc 'Default for CruiseControl'
23
- task :cruise => ['test', 'test:flog']
24
-
25
- desc 'Test for flog failure'
26
- namespace :test do
27
- task :flog do
28
- threshold = (ENV['FLOG_THRESHOLD'] || 120).to_i
29
- dirs = %w(lib tasks test)
30
- result = IO.popen("flog #{dirs.join(' ')} 2>/dev/null | grep \"(\" | grep -v \"main#none\" | head -n 1").readlines.join('')
31
- result =~ /\((.*)\)/
32
- flog = $1.to_i
33
- result =~ /^(.*):/
34
- method = $1
35
- if flog > threshold
36
- raise "FLOG failed for #{method} with score of #{flog} (threshold is #{threshold})."
37
- end
38
- puts "FLOG passed, with highest score being #{flog} for #{method}."
39
- end
40
- end
41
-
42
- desc 'Run all tests.'
43
- Rake::TestTask.new(:test) do |t|
44
- t.libs << 'lib'
45
- t.pattern = 'test/**/*_test.rb'
46
- t.verbose = true
47
- end
48
-
49
- Rcov::RcovTask.new("rcov") do |t|
50
- rcov_output = "tmp/coverage"
51
- FileUtils.mkdir_p rcov_output unless File.exist? rcov_output
52
- t.libs << "lib"
53
- t.test_files = FileList["test/**/*_test.rb"]
54
- t.output_dir = "#{rcov_output}/"
55
- t.verbose = true
56
- t.rcov_opts = ["-x", "^/Library", "--sort coverage"]
57
- end