Sha256: db01a18e9fc1188ab5a4adc9a87ddcc7515365169dfe4efc146b5944b3a53b1a

Contents?: true

Size: 937 Bytes

Versions: 6

Compression:

Stored size: 937 Bytes

Contents

require 'pathname'
require 'rubygems'
require 'hoe'

ROOT    = Pathname(__FILE__).dirname.expand_path
JRUBY   = RUBY_PLATFORM =~ /java/
WINDOWS = Gem.win_platform?
SUDO    = (WINDOWS || JRUBY) ? '' : ('sudo' unless ENV['SUDOLESS'])

require ROOT + 'lib/<%= adapter_file %>/version'

# define some constants to help with task files
GEM_NAME    = '<%= gem_name %>'
GEM_VERSION = DataMapper::<%= class_name %>::VERSION

Hoe.new(GEM_NAME, GEM_VERSION) do |p|
  p.developer('John Doe', 'john [a] doe [d] com')

  p.description = 'A DataMapper Adapter for ...'
  p.summary = 'A DataMapper Adapter for ...'
  p.url = 'http://github.com/USERNAME/<%= gem_name %>'

  p.clean_globs |= %w[ log pkg coverage ]
  p.spec_extras = { :has_rdoc => true, :extra_rdoc_files => %w[ README.txt LICENSE TODO History.txt ] }

  p.extra_deps << ['dm-core', "<%= DMGen::DM_VERSION %>"]

end

Pathname.glob(ROOT.join('tasks/**/*.rb').to_s).each { |f| require f }

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
namelessjon-dm-gen-0.2.5 lib/templates/adapter/Rakefile
namelessjon-dm-gen-0.3.0 lib/templates/adapter/Rakefile
namelessjon-dm-gen-0.3.1 lib/templates/adapter/Rakefile
namelessjon-dm-gen-0.4.0 lib/dm-gen/templates/adapter/Rakefile
dm-gen-0.4.2 lib/dm-gen/templates/adapter/Rakefile
dm-gen-0.4.1 lib/dm-gen/templates/adapter/Rakefile