spec_converter 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ pkg
data/README.rdoc CHANGED
@@ -17,15 +17,14 @@ 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
21
20
  * git clone url: git://github.com/relevance/spec_converter.git
22
- * rdoc: http://thinkrelevance.rubyforge.org/spec_converter/
21
+ * rdoc: http://thinkrelevance.rubyforge.org/spec_converter/
23
22
 
24
23
  == LICENSE:
25
24
 
26
25
  (The MIT License)
27
26
 
28
- Copyright (c) 2007-08 Relevance
27
+ Copyright (c) 2007-09 Relevance
29
28
 
30
29
  Permission is hereby granted, free of charge, to any person obtaining
31
30
  a copy of this software and associated documentation files (the
data/Rakefile ADDED
@@ -0,0 +1,48 @@
1
+ require 'rake'
2
+
3
+ begin
4
+ require 'jeweler'
5
+ Jeweler::Tasks.new do |gem|
6
+ gem.name = "spec_converter"
7
+ gem.summary = "Convert your tests to test/spec specs. See http://github.com/relevance/spec_converter/ for details."
8
+ gem.email = "rsanheim@gmail.com"
9
+ gem.homepage = "http://github.com/relevance/spec_converter"
10
+ gem.authors = ["Relevance"]
11
+ gem.add_development_dependency "mocha", ">= 0.9.0"
12
+ gem.add_development_dependency "micronaut", ">= 0.3.0"
13
+ end
14
+ Jeweler::GemcutterTasks.new
15
+ rescue LoadError
16
+ puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
17
+ end
18
+
19
+ require 'micronaut/rake_task'
20
+ Micronaut::RakeTask.new(:examples) do |examples|
21
+ examples.pattern = 'examples/**/*_example.rb'
22
+ examples.ruby_opts << '-Ilib -Iexamples'
23
+ end
24
+
25
+ Micronaut::RakeTask.new(:rcov) do |examples|
26
+ examples.pattern = 'examples/**/*_example.rb'
27
+ examples.rcov_opts = '-Ilib -Iexamples'
28
+ examples.rcov = true
29
+ end
30
+
31
+ task :default => [:check_dependencies, :examples]
32
+
33
+ begin
34
+ %w{sdoc sdoc-helpers rdiscount}.each { |name| gem name }
35
+ require 'sdoc_helpers'
36
+ rescue LoadError => ex
37
+ puts "sdoc support not enabled:"
38
+ puts ex.inspect
39
+ end
40
+
41
+ require 'rake/rdoctask'
42
+ Rake::RDocTask.new do |rdoc|
43
+ version = File.exist?('VERSION') ? File.read('VERSION') : ''
44
+ rdoc.rdoc_dir = 'rdoc'
45
+ rdoc.title = "chatterbox #{version}"
46
+ rdoc.rdoc_files.include('README*')
47
+ rdoc.rdoc_files.include('lib/**/*.rb')
48
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.5.2
data/bin/spec_converter CHANGED
File without changes
@@ -1,9 +1,17 @@
1
1
  require 'rubygems'
2
- require 'test/spec'
2
+ gem "micronaut"
3
+ require 'micronaut'
3
4
  require 'mocha'
4
5
  require 'tempfile'
6
+
5
7
  require File.dirname(__FILE__) + '/../lib/spec_converter'
6
8
 
9
+ Micronaut.configure do |config|
10
+ config.mock_with :mocha
11
+ config.color_enabled = true
12
+ config.formatter = :documentation
13
+ end
14
+
7
15
  describe "converting from test/spec old style to new style names" do
8
16
  before do
9
17
  @converter = SpecConverter.new
@@ -200,4 +208,4 @@ describe "converting things in batch" do
200
208
  File.stubs(:directory?).with("test").returns(true)
201
209
  @converter.convert
202
210
  end
203
- end
211
+ end
@@ -0,0 +1,55 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{spec_convertor}
8
+ s.version = "0.5.2"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Relevance"]
12
+ s.date = %q{2009-10-09}
13
+ s.default_executable = %q{spec_converter}
14
+ s.email = %q{rsanheim@gmail.com}
15
+ s.executables = ["spec_converter"]
16
+ s.extra_rdoc_files = [
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".gitignore",
21
+ "CHANGELOG",
22
+ "Manifest",
23
+ "README.rdoc",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "bin/spec_converter",
27
+ "examples/spec_converter_example.rb",
28
+ "lib/spec_converter.rb",
29
+ "spec_convertor.gemspec"
30
+ ]
31
+ s.homepage = %q{http://github.com/relevance/spec_converter}
32
+ s.rdoc_options = ["--charset=UTF-8"]
33
+ s.require_paths = ["lib"]
34
+ s.rubygems_version = %q{1.3.5}
35
+ s.summary = %q{Convert your tests to test/spec specs. See http://github.com/relevance/spec_converter/ for details.}
36
+ s.test_files = [
37
+ "examples/spec_converter_example.rb"
38
+ ]
39
+
40
+ if s.respond_to? :specification_version then
41
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
42
+ s.specification_version = 3
43
+
44
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
45
+ s.add_development_dependency(%q<mocha>, [">= 0.9.0"])
46
+ s.add_development_dependency(%q<micronaut>, [">= 0.3.0"])
47
+ else
48
+ s.add_dependency(%q<mocha>, [">= 0.9.0"])
49
+ s.add_dependency(%q<micronaut>, [">= 0.3.0"])
50
+ end
51
+ else
52
+ s.add_dependency(%q<mocha>, [">= 0.9.0"])
53
+ s.add_dependency(%q<micronaut>, [">= 0.3.0"])
54
+ end
55
+ 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.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Relevance
@@ -9,39 +9,55 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-04-17 00:00:00 -04:00
13
- default_executable:
14
- dependencies: []
15
-
16
- description: Convert your tests to test/spec specs. See http://opensource.thinkrelevance.com/wiki/spec_converter for details.
17
- email: opensource@thinkrelevance.com
12
+ date: 2009-10-09 00:00:00 -04:00
13
+ default_executable: spec_converter
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: mocha
17
+ type: :development
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 0.9.0
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: micronaut
27
+ type: :development
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 0.3.0
34
+ version:
35
+ description:
36
+ email: rsanheim@gmail.com
18
37
  executables:
19
38
  - spec_converter
20
39
  extensions: []
21
40
 
22
41
  extra_rdoc_files:
23
42
  - README.rdoc
24
- - CHANGELOG
25
- - bin/spec_converter
26
- - lib/spec_converter.rb
27
43
  files:
28
- - README.rdoc
44
+ - .gitignore
29
45
  - CHANGELOG
46
+ - Manifest
47
+ - README.rdoc
48
+ - Rakefile
49
+ - VERSION
30
50
  - bin/spec_converter
51
+ - examples/spec_converter_example.rb
31
52
  - lib/spec_converter.rb
32
- - test/spec_converter_test.rb
33
- - Manifest
34
- - spec_converter.gemspec
53
+ - spec_convertor.gemspec
35
54
  has_rdoc: true
36
- homepage: http://opensource.thinkrelevance.com/wiki/spec_converter
55
+ homepage: http://github.com/relevance/spec_converter
56
+ licenses: []
57
+
37
58
  post_install_message:
38
59
  rdoc_options:
39
- - --line-numbers
40
- - --inline-source
41
- - --title
42
- - Spec_converter
43
- - --main
44
- - README.rdoc
60
+ - --charset=UTF-8
45
61
  require_paths:
46
62
  - lib
47
63
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -58,10 +74,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
58
74
  version:
59
75
  requirements: []
60
76
 
61
- rubyforge_project: thinkrelevance
62
- rubygems_version: 1.0.1
77
+ rubyforge_project:
78
+ rubygems_version: 1.3.5
63
79
  signing_key:
64
- specification_version: 2
65
- summary: Convert your tests to test/spec specs
80
+ specification_version: 3
81
+ summary: Convert your tests to test/spec specs. See http://github.com/relevance/spec_converter/ for details.
66
82
  test_files:
67
- - test/spec_converter_test.rb
83
+ - examples/spec_converter_example.rb
@@ -1,91 +0,0 @@
1
-
2
- # Gem::Specification for Spec_converter-0.5.1
3
- # Originally generated by Echoe
4
-
5
- Gem::Specification.new do |s|
6
- s.name = %q{spec_converter}
7
- s.version = "0.5.1"
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.rdoc", "CHANGELOG", "bin/spec_converter", "lib/spec_converter.rb"]
19
- s.files = ["README.rdoc", "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.rdoc"]
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
- # p.rdoc_pattern = /^(lib|bin|ext)|txt|rdoc|CHANGELOG|MIT-LICENSE$/
49
- # rdoc_template = `allison --path`.strip << ".rb"
50
- # p.rdoc_template = rdoc_template
51
- # end
52
- #
53
- # desc 'Default: run unit tests.'
54
- # task :default => :test
55
- #
56
- # desc 'Default for CruiseControl'
57
- # task :cruise => ['test', 'test:flog']
58
- #
59
- # desc 'Test for flog failure'
60
- # namespace :test do
61
- # task :flog do
62
- # threshold = (ENV['FLOG_THRESHOLD'] || 120).to_i
63
- # dirs = %w(lib tasks test)
64
- # result = IO.popen("flog #{dirs.join(' ')} 2>/dev/null | grep \"(\" | grep -v \"main#none\" | head -n 1").readlines.join('')
65
- # result =~ /\((.*)\)/
66
- # flog = $1.to_i
67
- # result =~ /^(.*):/
68
- # method = $1
69
- # if flog > threshold
70
- # raise "FLOG failed for #{method} with score of #{flog} (threshold is #{threshold})."
71
- # end
72
- # puts "FLOG passed, with highest score being #{flog} for #{method}."
73
- # end
74
- # end
75
- #
76
- # desc 'Run all tests.'
77
- # Rake::TestTask.new(:test) do |t|
78
- # t.libs << 'lib'
79
- # t.pattern = 'test/**/*_test.rb'
80
- # t.verbose = true
81
- # end
82
- #
83
- # Rcov::RcovTask.new("rcov") do |t|
84
- # rcov_output = "tmp/coverage"
85
- # FileUtils.mkdir_p rcov_output unless File.exist? rcov_output
86
- # t.libs << "lib"
87
- # t.test_files = FileList["test/**/*_test.rb"]
88
- # t.output_dir = "#{rcov_output}/"
89
- # t.verbose = true
90
- # t.rcov_opts = ["-x", "^/Library", "--sort coverage"]
91
- # end