Commit 201910ae by Marcos Piccinini

works with rails 3

parent ffceca9b
......@@ -4,7 +4,7 @@ require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "annotate"
gem.name = "nofxx-annotate"
gem.summary = "Annotates Rails Models, routes, and others"
gem.email = "x@nofxx.com"
gem.homepage = "http://github.com/nofxx/annotate"
......@@ -16,20 +16,20 @@ rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
spec.libs << 'lib' << 'spec'
spec.spec_files = FileList['spec/**/*_spec.rb']
end
#require 'spec/rake/spectask'
# Spec::Rake::SpecTask.new(:spec) do |spec|
# spec.libs << 'lib' << 'spec'
# spec.spec_files = FileList['spec/**/*_spec.rb']
# end
Spec::Rake::SpecTask.new(:rcov) do |spec|
spec.libs << 'lib' << 'spec'
spec.pattern = 'spec/**/*_spec.rb'
spec.rcov = true
end
# Spec::Rake::SpecTask.new(:rcov) do |spec|
# spec.libs << 'lib' << 'spec'
# spec.pattern = 'spec/**/*_spec.rb'
# spec.rcov = true
# end
task :default => :spec
# task :default => :spec
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
......
......@@ -2,6 +2,8 @@ $:.unshift(File.dirname(__FILE__)) unless
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
module Annotate
require 'my_plugin/railtie' if defined?(Rails)
def self.load_tasks
if File.exists?('Rakefile')
load 'Rakefile'
......
require 'annotate'
require 'rails'
module Annotate
class Railtie < Rails::Railtie
railtie_name :annotate
rake_tasks do
load "tasks/annotate_models.rake"
end
end
end
# Generated by jeweler
# DO NOT EDIT THIS FILE
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = %q{annotate}
s.version = "2.3.2"
s.name = %q{nofxx-annotate}
s.version = "3.0.0"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Cuong Tran", "Marcos Piccinini"]
s.date = %q{2009-08-21}
s.date = %q{2010-05-09}
s.default_executable = %q{annotate}
s.email = %q{x@nofxx.com}
s.executables = ["annotate"]
......@@ -38,7 +38,7 @@ Gem::Specification.new do |s|
s.homepage = %q{http://github.com/nofxx/annotate}
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.5}
s.rubygems_version = %q{1.3.6}
s.summary = %q{Annotates Rails Models, routes, and others}
s.test_files = [
"spec/annotate/annotate_models_spec.rb",
......@@ -57,3 +57,4 @@ Gem::Specification.new do |s|
else
end
end
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