public
Rubygem
Fork of sam/dm-more
Description: Extras for DataMapper, including bridges to DataObjects::Migrations and Merb::DataMapper
Homepage: http://datamapper.org
Clone URL: git://github.com/dysinger/dm-more.git
Search Repo:
Cleanup rakefile from dm-core
Paul Sadauskas (author)
Thu Mar 13 10:00:40 -0700 2008
commit  a028d850868c9b43949e3479c6d63ff45178097f
tree    e3a7d7b7e9da9b37bc586b75cc36275a7f29f732
parent  84766d37e0ae3d1d8e1d9eef90dcc7ef47ebba61
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
0
@@ -1 +1,23 @@
0
+Copyright (c) 2007 Sam Smoot
0
+
0
+Permission is hereby granted, free of charge, to any person
0
+obtaining a copy of this software and associated documentation
0
+files (the "Software"), to deal in the Software without
0
+restriction, including without limitation the rights to use,
0
+copy, modify, merge, publish, distribute, sublicense, and/or sell
0
+copies of the Software, and to permit persons to whom the
0
+Software is furnished to do so, subject to the following
0
+conditions:
0
+
0
+The above copyright notice and this permission notice shall be
0
+included in all copies or substantial portions of the Software.
0
+
0
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
0
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
0
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
0
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
0
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
0
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0
+OTHER DEALINGS IN THE SOFTWARE.
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
0
@@ -1 +1,105 @@
0
+#!/usr/bin/env ruby
0
+
0
+require 'rubygems'
0
+require 'rake'
0
+require 'spec/rake/spectask'
0
+require 'rake/rdoctask'
0
+require 'rake/gempackagetask'
0
+require 'rake/contrib/rubyforgepublisher'
0
+
0
+Dir[File.dirname(__FILE__) + '/tasks/*'].each { |t| require(t) }
0
+
0
+task :default => 'dm:spec'
0
+
0
+dm = namespace :dm do
0
+
0
+ desc "Run specifications"
0
+ Spec::Rake::SpecTask.new('spec') do |t|
0
+ t.spec_opts = ["--format", "specdoc", "--colour"]
0
+ t.spec_files = FileList[(ENV['FILES'] || 'spec/**/*_spec.rb')]
0
+ unless ENV['NO_RCOV']
0
+ t.rcov = true
0
+ t.rcov_opts = ['--exclude', 'examples,spec,environment.rb']
0
+ end
0
+ end
0
+
0
+end
0
+
0
+PACKAGE_VERSION = '0.9.0'
0
+
0
+PACKAGE_FILES = FileList[
0
+ 'README',
0
+ 'CHANGELOG',
0
+ 'MIT-LICENSE',
0
+ '*.rb',
0
+ 'lib/**/*.rb',
0
+ 'spec/**/*.{rb,yaml}',
0
+ 'tasks/**/*',
0
+].to_a.reject { |path| path =~ /(\/db|Makefile|\.bundle|\.log|\.o)$/ }
0
+
0
+DOCUMENTED_FILES = PACKAGE_FILES.reject do |path|
0
+ FileTest.directory?(path) || path =~ /(^spec|\/spec|\/swig\_)/
0
+end
0
+
0
+PROJECT = "dm-more"
0
+
0
+task :ls do
0
+ p PACKAGE_FILES
0
+end
0
+
0
+desc "Generate Documentation"
0
+rd = Rake::RDocTask.new do |rdoc|
0
+ rdoc.rdoc_dir = 'doc'
0
+ rdoc.title = "DataMapper (More) -- Extras for DataMapper"
0
+ rdoc.options << '--line-numbers' << '--inline-source' << '--main' << 'README'
0
+ rdoc.rdoc_files.include(*DOCUMENTED_FILES)
0
+end
0
+
0
+gem_spec = Gem::Specification.new do |s|
0
+ s.platform = Gem::Platform::RUBY
0
+ s.name = PROJECT
0
+ s.summary = "An Object/Relational Mapper for Ruby"
0
+ s.description = "Faster, Better, Simpler."
0
+ s.version = PACKAGE_VERSION
0
+
0
+ s.authors = "Sam Smoot"
0
+ s.email = "ssmoot@gmail.com"
0
+ s.rubyforge_project = PROJECT
0
+ s.homepage = "http://datamapper.org"
0
+
0
+ s.files = PACKAGE_FILES
0
+
0
+ s.require_path = "lib"
0
+ s.requirements << "none"
0
+ s.autorequire = "data_mapper"
0
+ s.executables = ["dm"]
0
+ s.bindir = "bin"
0
+ s.add_dependency("dm-core")
0
+
0
+ s.has_rdoc = true
0
+ s.rdoc_options << "--line-numbers" << "--inline-source" << "--main" << "README"
0
+ s.extra_rdoc_files = DOCUMENTED_FILES
0
+end
0
+
0
+Rake::GemPackageTask.new(gem_spec) do |p|
0
+ p.gem_spec = gem_spec
0
+ p.need_tar = true
0
+ p.need_zip = true
0
+end
0
+
0
+desc "Publish to RubyForge"
0
+task :rubyforge => [ :rdoc, :gem ] do
0
+ Rake::SshDirPublisher.new("#{ENV['RUBYFORGE_USER']}@rubyforge.org", "/var/www/gforge-projects/#{PROJECT}", 'doc').upload
0
+end
0
+
0
+task :install => :package do
0
+ sh %{sudo gem install pkg/#{PROJECT}-#{PACKAGE_VERSION}}
0
+end
0
+
0
+namespace :dev do
0
+ desc "Install for development (for windows)"
0
+ task :winstall => :gem do
0
+ system %{gem install --no-rdoc --no-ri -l pkg/#{PROJECT}-#{PACKAGE_VERSION}.gem}
0
+ end
0
+end

Comments

    No one has commented yet.