Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add gemspec suitable for building on github

Update Rakefile
  • Loading branch information...
commit bda31cc0049276df463b860a879bfaa5d3cf20c8 1 parent 3ada3c2
@jeremyevans authored
Showing with 24 additions and 9 deletions.
  1. +11 −9 Rakefile
  2. +13 −0 fixture_dependencies.gemspec
View
20 Rakefile
@@ -1,14 +1,16 @@
require 'rake'
+require 'rake/clean'
require 'rake/rdoctask'
-desc 'Default: generate RDoc.'
-task :default => :rdoc
+Rake::RDocTask.new do |rdoc|
+ rdoc.rdoc_dir = "rdoc"
+ rdoc.options += ["--quiet", "--line-numbers", "--inline-source"]
+ rdoc.main = "README"
+ rdoc.title = "fixture_dependencies: Rails fixture loading that works with foreign keys"
+ rdoc.rdoc_files.add ["README", "LICENSE", "lib/fixture_dependencies.rb", "lib/fixture_dependencies_test_help.rb"]
+end
-desc 'Generate documentation for the fixture_dependencies plugin.'
-Rake::RDocTask.new(:rdoc) do |rdoc|
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = 'FixtureDependencies'
- rdoc.options << '--line-numbers' << '--inline-source'
- rdoc.rdoc_files.include('README')
- rdoc.rdoc_files.include('lib/**/*.rb')
+desc "Package fixture_dependencies"
+task :package do
+ sh %{gem build fixture_dependencies.gemspec}
end
View
13 fixture_dependencies.gemspec
@@ -0,0 +1,13 @@
+spec = Gem::Specification.new do |s|
+ s.name = "fixture_dependencies"
+ s.version = "1.0.0"
+ s.author = "Jeremy Evans"
+ s.email = "code@jeremyevans.net"
+ s.platform = Gem::Platform::RUBY
+ s.summary = "Rails fixture loading that works with foreign keys"
+ s.files = ["README", "LICENSE", "lib/fixture_dependencies.rb", "lib/fixture_dependencies_test_help.rb"]
+ s.extra_rdoc_files = ["LICENSE"]
+ s.require_paths = ["lib"]
+ s.has_rdoc = true
+ s.rdoc_options = %w'--inline-source --line-numbers README lib'
+end
Please sign in to comment.
Something went wrong with that request. Please try again.