Commit 634b6ac1 by Turadg Aleahmad

fix gemspec and get rspecs partly working again

parent 8d0b3c80
require 'rubygems' require 'rubygems'
require 'rake' require 'rake'
require 'lib/annotate'
# want other tests/tasks run by default? Add them to the list # want other tests/tasks run by default? Add them to the list
task :default => [:spec] task :default => [:spec]
begin require 'jeweler'
require 'jeweler' Jeweler::Tasks.new do |gem|
Jeweler::Tasks.new do |gem|
gem.name = "annotate" gem.name = "annotate"
gem.executables = "annotate" gem.summary = "Annotates Rails models, routes, fixtures, and others based on the database schema."
gem.summary = "Annotates Rails Models, routes, fixtures, and others based on the database schema." gem.description = "When run, inserts table descriptions from db.schema into a comment block of relevant source code."
gem.description = gem.summary gem.email = ["alex@stinky.com", 'ctran@pragmaquest.com', "x@nofxx.com", "turadg@aleahmad.net"]
gem.email = ["alex@stinky.com", 'ctran@pragmaquest.com', "x@nofxx.com"] gem.homepage = "http://github.com/ctran/annotate_models"
gem.homepage = "http://github.com/ctran/annotate" gem.authors = ['Cuong Tran', "Alex Chaffee", "Marcos Piccinini", "Turadg Aleahmad"]
gem.authors = ['Cuong Tran', "Alex Chaffee", "Marcos Piccinini"]
gem.files = FileList["[A-Z]*.*", "{bin,lib,tasks,spec}/**/*"]
gem.rubyforge_project = "annotate" gem.rubyforge_project = "annotate"
gem.add_development_dependency "rspec"
gem.test_files = `git ls-files -- {spec,features}/*`.split("\n")
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
gem.require_path = 'lib'
# note that Jeweler automatically reads the version from VERSION.yml # note that Jeweler automatically reads the version from VERSION.yml
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end end
Jeweler::RubyforgeTasks.new do |rubyforge| Jeweler::GemcutterTasks.new
rubyforge.doc_task = "rdoc"
end
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
require 'spec/rake/spectask' require "rspec/core/rake_task" # RSpec 2.0
Spec::Rake::SpecTask.new(:spec) do |spec| RSpec::Core::RakeTask.new(:spec) do |t|
spec.libs << 'lib' << 'spec' t.pattern = 'spec/*_spec.rb'
spec.spec_files = FileList['spec/**/*_spec.rb'] # TODO this leaves out the specs on the library itself
end end
Spec::Rake::SpecTask.new(:rcov) do |spec| # FIXME not working yet
spec.libs << 'lib' << 'spec' RSpec::Core::RakeTask.new(:rcov) do |t|
spec.pattern = 'spec/**/*_spec.rb' t.pattern = 'spec/**/*_spec.rb'
spec.rcov = true t.rcov = true
end end
require 'rake/rdoctask' # FIXME warns "already initialized constant Task"
Rake::RDocTask.new do |rdoc| # FIXME throws "uninitialized constant RDoc::VISIBILITIES"
rdoc.rdoc_dir = 'rdoc' # require 'rdoc/task'
rdoc.title = "annotate #{Annotate.version}" # RDoc::Task.new do |rdoc|
rdoc.rdoc_files.include('README*') # rdoc.main = "README.rdoc"
rdoc.rdoc_files.include('lib/**/*.rb') # rdoc.rdoc_files.include("README.rdoc", "lib/**/*.rb")
end # # require 'lib/annotate'
# # rdoc.title = "annotate #{Annotate.version}"
# end
--- ---
:major: 2 :major: 2
:minor: 4 :minor: 4
:patch: 0 :patch: 1
:build: 'beta1'
\ No newline at end of file
# Generated by jeweler # Generated by jeweler
# DO NOT EDIT THIS FILE # DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec` # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*- # -*- encoding: utf-8 -*-
Gem::Specification.new do |s| Gem::Specification.new do |s|
s.name = %q{annotate} s.name = "annotate"
s.version = "2.4.0" s.version = "2.4.1.beta1"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
s.authors = ["Cuong Tran", "Alex Chaffee", "Marcos Piccinini"] s.authors = ["Cuong Tran", "Alex Chaffee", "Marcos Piccinini", "Turadg Aleahmad"]
s.date = %q{2009-10-23} s.date = "2011-09-02"
#s.default_executable = %q{annotate} s.description = "When run, inserts table descriptions from db.schema into a comment block of relevant source code."
s.description = %q{Annotates Rails Models, routes, fixtures, and others based on the database schema.} s.email = ["alex@stinky.com", "ctran@pragmaquest.com", "x@nofxx.com", "turadg@aleahmad.net"]
s.email = ["alex@stinky.com", "ctran@pragmaquest.com", "x@nofxx.com"]
s.executables = ["annotate"] s.executables = ["annotate"]
s.extra_rdoc_files = [ s.extra_rdoc_files = [
"README.rdoc" "README.rdoc"
...@@ -20,7 +19,9 @@ Gem::Specification.new do |s| ...@@ -20,7 +19,9 @@ Gem::Specification.new do |s|
s.files = [ s.files = [
"History.txt", "History.txt",
"README.rdoc", "README.rdoc",
"Rakefile",
"VERSION.yml", "VERSION.yml",
"annotate.gemspec",
"bin/annotate", "bin/annotate",
"lib/annotate.rb", "lib/annotate.rb",
"lib/annotate/annotate_models.rb", "lib/annotate/annotate_models.rb",
...@@ -32,31 +33,26 @@ Gem::Specification.new do |s| ...@@ -32,31 +33,26 @@ Gem::Specification.new do |s|
"spec/annotate_spec.rb", "spec/annotate_spec.rb",
"spec/spec.opts", "spec/spec.opts",
"spec/spec_helper.rb", "spec/spec_helper.rb",
"tasks/migrate.rake" "tasks/migrate.rake",
"todo.txt"
] ]
s.homepage = %q{http://github.com/ctran/annotate_models} s.homepage = "http://github.com/ctran/annotate_models"
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"] s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.5} s.rubyforge_project = "annotate"
s.summary = %q{Annotates Rails Models, routes, fixtures, and others based on the database schema.} s.rubygems_version = "1.8.10"
s.test_files = [ s.summary = "Annotates Rails models, routes, fixtures, and others based on the database schema."
"spec/annotate/annotate_models_spec.rb", s.test_files = ["spec/annotate/annotate_models_spec.rb", "spec/annotate/annotate_routes_spec.rb", "spec/annotate_spec.rb", "spec/spec.opts", "spec/spec_helper.rb"]
"spec/annotate/annotate_routes_spec.rb",
"spec/annotate_spec.rb",
"spec/spec_helper.rb"
]
s.add_runtime_dependency('rake')
s.add_development_dependency('jeweler')
s.add_development_dependency('rspec', '~> 1.3.2')
s.add_development_dependency('activesupport', '>= 2.1.0')
if s.respond_to? :specification_version then if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3 s.specification_version = 3
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_development_dependency(%q<rspec>, [">= 0"])
else else
s.add_dependency(%q<rspec>, [">= 0"])
end end
else else
s.add_dependency(%q<rspec>, [">= 0"])
end end
end end
...@@ -2,8 +2,8 @@ begin ...@@ -2,8 +2,8 @@ begin
require 'spec' require 'spec'
rescue LoadError rescue LoadError
require 'rubygems' require 'rubygems'
gem 'rspec' gem 'rspec-core'
require 'spec' require 'rspec'
end end
$:.unshift(File.dirname(__FILE__) + '/../lib') $:.unshift(File.dirname(__FILE__) + '/../lib')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment