Skip to content

Commit

Permalink
Make merb_datamapper generators discoverable again.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Oct 11, 2008
1 parent 55d9a31 commit c4c120e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions merb_datamapper/Generators
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
scope 'merb-gen' do
dir = File.join(File.dirname(__FILE__), 'lib', 'generators/')
Merb.add_generators dir + 'data_mapper_migration', dir + 'data_mapper_model', dir + 'data_mapper_resource_controller'
end
6 changes: 3 additions & 3 deletions merb_datamapper/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ GEM_VERSION = (Merb::MORE_VERSION rescue "0.9.9") + PKG_BUILD

RELEASE_NAME = "REL #{GEM_VERSION}"

GEM_DEPENDENCIES = [["dm-core", ">=0.9.5"], ["dm-migrations", ">=0.9.5"], ["merb-core", "~> #{GEM_VERSION}"], ['templater', ">=0.2.0"]]
GEM_DEPENDENCIES = [["dm-core", ">=0.9.5"], ["dm-migrations", ">=0.9.5"], ["merb-core", "~> #{GEM_VERSION}"], ['templater', ">=0.3.2"]]

require "extlib/tasks/release"

Expand All @@ -41,7 +41,7 @@ spec = Gem::Specification.new do |s|
s.add_dependency gem, version
end
s.require_path = 'lib'
s.files = %w(LICENSE Rakefile TODO) + Dir.glob("{lib,spec}/**/*")
s.files = %w(LICENSE Rakefile TODO Generators) + Dir.glob("{lib}/**/*")
end

Rake::GemPackageTask.new(spec) do |pkg|
Expand Down Expand Up @@ -78,4 +78,4 @@ Spec::Rake::SpecTask.new('spec') do |t|
end

desc 'Default: run spec examples'
task :default => 'spec'
task :default => 'spec'

0 comments on commit c4c120e

Please sign in to comment.