Commit b58a4f71 by Jon Frisby

Merge remote-tracking branch 'appsinyourpants/master' into development

Conflicts: .gitignore Gemfile Gemfile.lock README.rdoc Rakefile VERSION.yml annotate.gemspec bin/annotate_models lib/annotate.rb lib/annotate/annotate_routes.rb lib/tasks/annotate_models.rake lib/tasks/annotate_routes.rake spec/annotate_models_spec.rb spec/spec_helper.rb
parents e00810b2 5763eaa4
......@@ -4,6 +4,7 @@ group :development do
gem 'jeweler'
gem 'rspec'
gem 'wrong'
gem 'rdoc'
end
gem 'activesupport', '>= 3.0.0', :require => nil
......@@ -16,8 +16,11 @@ GEM
bundler (~> 1.0)
git (>= 1.2.5)
rake
json (1.6.5)
predicated (0.2.6)
rake (0.9.2.2)
rdoc (3.12)
json (~> 1.4)
rspec (2.7.0)
rspec-core (~> 2.7.0)
rspec-expectations (~> 2.7.0)
......@@ -54,5 +57,6 @@ PLATFORMS
DEPENDENCIES
activesupport (>= 3.0.0)
jeweler
rdoc
rspec
wrong
require 'rubygems'
require 'bundler'
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
require 'rake/dsl_definition'
require 'rake'
......@@ -19,12 +27,12 @@ Jeweler::Tasks.new do |gem|
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
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
Jeweler::GemcutterTasks.new
Jeweler::GemcutterTasks.new
require "rspec/core/rake_task" # RSpec 2.0
......@@ -32,12 +40,12 @@ RSpec::Core::RakeTask.new(:spec) do |t|
t.pattern = ['spec/*_spec.rb', 'spec/**/*_spec.rb']
end
# FIXME warns "already initialized constant Task"
# FIXME throws "uninitialized constant RDoc::VISIBILITIES"
# require 'rdoc/task'
# RDoc::Task.new do |rdoc|
# rdoc.main = "README.rdoc"
# rdoc.rdoc_files.include("README.rdoc", "lib/**/*.rb")
# # require 'lib/annotate'
# # rdoc.title = "annotate #{Annotate.version}"
# end
require 'rdoc/task'
RDoc::Task.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "annotated_models #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
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