Take the 2008 Git User's Survey and help out! [ hide ]

public
Rubygem
Description: StrokeDB plugin for Merb. Allows the use of use_orm :strokedb
Clone URL: git://github.com/elliottcable/merb_strokedb.git
Search Repo:
elliottcable (author)
Tue Apr 29 04:26:50 -0700 2008
commit  eeceb2cd33169f6287e18164ab501efc88e47f82
tree    47ee8b9b7390ab743cbe70b5adefe668dc886ab0
parent  38b8625043381f4adc7975cb9a0ab84edbd995cc
merb_strokedb / Rakefile
100644 41 lines (36 sloc) 1.794 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
require 'rubygems'; require 'merb-core'
$:.unshift(File.dirname(__FILE__) + '/lib'); require 'merb_strokedb'
Dir['task/**/*.task'].each {|t| load t}
require 'fileutils'; include FileUtils
 
Echoe.taskify do
  Echoe.new('merb_strokedb', Merb::Orms::StrokeDB::VERSION) do |g|
    g.author = ['elliottcable']
    g.email = ['merb_strokedb@elliottcable.com']
    g.summary = 'StrokeDB plugin for Merb'
    g.url = 'http://find.elliottcable.name/merb_strokedb'
    g.description = 'a plugin for Merb, that allows the use of StrokeDB as an ORM within a Merb application'
    g.dependencies = ['merb-core', 'strokedb']
    g.manifest_name = '.manifest'
    g.ignore_pattern = /(^\.git|^example_merb_app\/(db|log))/
    g.project = 'merb-strokedb'
    g.install_message = " - Thanks for installing merb_strokedb!\n" +
                        " - Add this to your config/init.rb to get started:\n"+
                        " - use_orm :strokedb"
  end
  
  desc 'tests packaged files to ensure they are all present'
  task :verify => :package do
    # An error message will be displayed if files are missing
    if system %(ruby -e "require 'rubygems'; require 'merb-core'; require 'pkg/merb_strokedb-#{Merb::Orms::StrokeDB::VERSION}/lib/merb_strokedb'")
      puts "\nThe library files are present"
    end
  end
  
  task :copy_gemspec => [:package] do
    pkg = Dir['pkg/*'].select {|dir| File.directory? dir}.last
    mv File.join(pkg, pkg.gsub(/^pkg\//,'').gsub(/\-\d+$/,'.gemspec')), './'
  end
  
  desc 'builds a gemspec as GitHub wants it'
  task :gemspec => [:package, :copy_gemspec, :clobber_package]
  
  # desc 'Run specs, clean tree, update manifest, run coverage, and install gem!'
  desc 'Clean tree, update manifest, and install gem!'
  task :magic => [:clean, :manifest, :install]
end