public
Description: My assistance repo w/ minor tweaks (original @ http://assistance.rubyforge.org/svn/trunk)
Homepage: http://assistance.rubyforge.org
Clone URL: git://github.com/bricooke/assistance.git
Search Repo:
rake tasks, copyright notice.

git-svn-id: http://assistance.rubyforge.org/svn/trunk@5 
76a3b97d-4fa4-4887-8470-eb0d8fc1b0f2
ciconia (author)
Mon Jan 07 23:33:17 -0800 2008
commit  261be68fef6cb272897fae8a391209b6b7b98842
tree    8ffba995dea624eda690d282c7e5caabbdcdad32
parent  c62894c91c4d4453187f320a6baf3161cffae1a2
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
0
@@ -1 +1,19 @@
0
+Copyright (c) 2008 Ezra Zygmuntowicz, Sam Smoot, Sharon Rosner
0
+
0
+Permission is hereby granted, free of charge, to any person obtaining a copy
0
+of this software and associated documentation files (the "Software"), to
0
+deal in the Software without restriction, including without limitation the
0
+rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
0
+sell copies of the Software, and to permit persons to whom the Software is
0
+furnished to do so, subject to the following conditions:
0
+
0
+The above copyright notice and this permission notice shall be included in
0
+all copies or substantial portions of the Software.
0
+
0
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
0
+THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
0
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
0
+CONNECTION WITH THE SOFTWARE OR THE USE OR 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
105
106
107
108
109
110
111
112
113
114
115
116
117
0
@@ -1 +1,118 @@
0
+require "rake"
0
+require "rake/clean"
0
+require "rake/gempackagetask"
0
+require "rake/rdoctask"
0
+require "fileutils"
0
+include FileUtils
0
+
0
+##############################################################################
0
+# Configuration
0
+##############################################################################
0
+NAME = "assitance"
0
+VERS = "0.0.1"
0
+CLEAN.include ["**/.*.sw?", "pkg/*", ".config", "doc/*", "coverage/*"]
0
+RDOC_OPTS = [
0
+ "--quiet",
0
+ "--title", "Assistance: light-weight application support",
0
+ "--opname", "index.html",
0
+ "--line-numbers",
0
+ "--main", "README",
0
+ "--inline-source"
0
+]
0
+
0
+##############################################################################
0
+# RDoc
0
+##############################################################################
0
+task :doc => [:rdoc]
0
+
0
+Rake::RDocTask.new do |rdoc|
0
+ rdoc.rdoc_dir = "doc/rdoc"
0
+ rdoc.options += RDOC_OPTS
0
+ rdoc.main = "README"
0
+ rdoc.title = "Assistance: light-weight application support"
0
+ rdoc.rdoc_files.add ["README", "COPYING", "lib/assistance.rb", "lib/**/*.rb"]
0
+end
0
+
0
+##############################################################################
0
+# Gem packaging
0
+##############################################################################
0
+desc "Packages up Assistance."
0
+task :default => [:package]
0
+task :package => [:clean]
0
+
0
+spec = Gem::Specification.new do |s|
0
+ s.name = NAME
0
+ s.rubyforge_project = NAME
0
+ s.version = VERS
0
+ s.platform = Gem::Platform::RUBY
0
+ s.has_rdoc = true
0
+ s.extra_rdoc_files = ["README", "CHANGELOG", "COPYING"]
0
+ s.rdoc_options += RDOC_OPTS +
0
+ ["--exclude", "^(examples|extras)\/", "--exclude", "lib/assistance.rb"]
0
+ s.summary = "Database access for Ruby"
0
+ s.description = s.summary
0
+ s.author = "Ezra Zygmuntowicz, Sam Smoot, Sharon Rosner"
0
+ s.email = "ezmobius@gmail.com, ssmoot@gmail.com, ciconia@gmail.com"
0
+ s.homepage = "http://assistance.rubyforge.org"
0
+ s.required_ruby_version = ">= 1.8.4"
0
+
0
+ s.files = %w(COPYING README Rakefile) + Dir.glob("{doc,spec,lib}/**/*")
0
+
0
+ s.require_path = "lib"
0
+end
0
+
0
+Rake::GemPackageTask.new(spec) do |p|
0
+ p.need_tar = true
0
+ p.gem_spec = spec
0
+end
0
+
0
+##############################################################################
0
+# installation & removal
0
+##############################################################################
0
+task :install do
0
+ sh %{rake package}
0
+ sh %{sudo gem install pkg/#{NAME}-#{VERS}}
0
+end
0
+
0
+task :install_no_docs do
0
+ sh %{rake package}
0
+ sh %{sudo gem install pkg/#{NAME}-#{VERS} --no-rdoc --no-ri}
0
+end
0
+
0
+task :uninstall => [:clean] do
0
+ sh %{sudo gem uninstall #{NAME}}
0
+end
0
+
0
+task :tag do
0
+ cwd = FileUtils.pwd
0
+ sh %{cd ../.. && svn copy #{cwd} tags/#{NAME}-#{VERS} && svn commit -m "#{NAME}-#{VERS} tag." tags}
0
+end
0
+
0
+##############################################################################
0
+# gem and rdoc release
0
+##############################################################################
0
+task :release => [:package] do
0
+ sh %{rubyforge login}
0
+ sh %{rubyforge add_release #{NAME} #{NAME} #{VERS} pkg/#{NAME}-#{VERS}.tgz}
0
+ sh %{rubyforge add_file #{NAME} #{NAME} #{VERS} pkg/#{NAME}-#{VERS}.gem}
0
+end
0
+
0
+##############################################################################
0
+# specs
0
+##############################################################################
0
+require "spec/rake/spectask"
0
+
0
+desc "Run specs with coverage"
0
+Spec::Rake::SpecTask.new("spec") do |t|
0
+ t.spec_files = FileList["spec/*_spec.rb"]
0
+ t.spec_opts = File.read("spec/spec.opts").split("\n")
0
+ t.rcov_opts = File.read("spec/rcov.opts").split("\n")
0
+ t.rcov = true
0
+end
0
+
0
+desc "Run specs without coverage"
0
+Spec::Rake::SpecTask.new("spec_no_cov") do |t|
0
+ t.spec_files = FileList["spec/*_spec.rb"]
0
+ t.spec_opts = File.read("spec/spec.opts").split("\n")
0
+end
0
...
11
12
13
 
 
...
11
12
13
14
15
0
@@ -11,4 +11,6 @@
0
 * 3.days_ago methods (basic stuff from sequel, steal the rest from activesupport).
0
 
0
 * connection pool from sequel.
0
+
0
+* code statistics? (from sequel).

Comments

    No one has commented yet.