sqldsl 0.2.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/rakefile.rb +49 -0
- metadata +3 -3
- data/README_TEMPLATE +0 -39
data/rakefile.rb
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake/gempackagetask'
|
3
|
+
require 'rake/rdoctask'
|
4
|
+
require 'rake/contrib/sshpublisher'
|
5
|
+
|
6
|
+
task :default do
|
7
|
+
require File.dirname(__FILE__) + '/test/all_tests.rb'
|
8
|
+
end
|
9
|
+
|
10
|
+
desc 'Generate RDoc'
|
11
|
+
Rake::RDocTask.new do |task|
|
12
|
+
task.main = 'README'
|
13
|
+
task.title = 'SQL DSL'
|
14
|
+
task.rdoc_dir = 'doc'
|
15
|
+
task.options << "--line-numbers" << "--inline-source"
|
16
|
+
task.rdoc_files.include('README', 'lib/**/*.rb')
|
17
|
+
%x[erb README_TEMPLATE > README]
|
18
|
+
end
|
19
|
+
|
20
|
+
desc "Upload RDoc to RubyForge"
|
21
|
+
task :publish_rdoc => [:rdoc] do
|
22
|
+
Rake::SshDirPublisher.new("jaycfields@rubyforge.org", "/var/www/gforge-projects/sqldsl", "doc").upload
|
23
|
+
end
|
24
|
+
|
25
|
+
Gem::manage_gems
|
26
|
+
|
27
|
+
specification = Gem::Specification.new do |s|
|
28
|
+
s.name = "sqldsl"
|
29
|
+
s.summary = "A DSL for creating SQL Statements"
|
30
|
+
s.version = "1.0.0"
|
31
|
+
s.author = 'Jay Fields'
|
32
|
+
s.description = "A DSL for creating SQL Statements"
|
33
|
+
s.email = 'sqldsl-developer@rubyforge.org'
|
34
|
+
s.homepage = 'http://sqldsl.rubyforge.org'
|
35
|
+
s.rubyforge_project = 'sqldsl'
|
36
|
+
|
37
|
+
s.has_rdoc = true
|
38
|
+
s.extra_rdoc_files = ['README']
|
39
|
+
s.rdoc_options << '--title' << 'SQL DSL' << '--main' << 'README' << '--line-numbers'
|
40
|
+
|
41
|
+
s.autorequire = 'sqldsl'
|
42
|
+
s.files = FileList['{lib,test}/**/*.rb', '[A-Z]*$', 'rakefile.rb'].to_a
|
43
|
+
s.test_file = "test/all_tests.rb"
|
44
|
+
end
|
45
|
+
|
46
|
+
Rake::GemPackageTask.new(specification) do |package|
|
47
|
+
package.need_zip = true
|
48
|
+
package.need_tar = true
|
49
|
+
end
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: sqldsl
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.
|
7
|
-
date: 2006-09-
|
6
|
+
version: 1.0.0
|
7
|
+
date: 2006-09-30 00:00:00 -04:00
|
8
8
|
summary: A DSL for creating SQL Statements
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -57,8 +57,8 @@ files:
|
|
57
57
|
- test/update_acceptance_test.rb
|
58
58
|
- test/update_test.rb
|
59
59
|
- test/where_builder_test.rb
|
60
|
+
- rakefile.rb
|
60
61
|
- README
|
61
|
-
- README_TEMPLATE
|
62
62
|
test_files:
|
63
63
|
- test/all_tests.rb
|
64
64
|
rdoc_options:
|
data/README_TEMPLATE
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
= SQL DSL
|
2
|
-
|
3
|
-
SQL DSL is a library for creating SQL statements using ruby code.
|
4
|
-
|
5
|
-
by Jay[http://jayfields.blogspot.com] Fields[http://jayfields.blogspot.com]
|
6
|
-
|
7
|
-
== Download and Installation
|
8
|
-
|
9
|
-
You can download SQL DSL from here[http://rubyforge.org/projects/sqldsl] or install it with the following command.
|
10
|
-
|
11
|
-
$ gem install sqldsl
|
12
|
-
|
13
|
-
== License
|
14
|
-
|
15
|
-
You may use, copy and redistribute this library under the same terms as Ruby itself (see http://www.ruby-lang.org/en/LICENSE.txt).
|
16
|
-
|
17
|
-
== Examples
|
18
|
-
|
19
|
-
See the tests for more examples
|
20
|
-
|
21
|
-
=== Test Helper
|
22
|
-
|
23
|
-
<%= File.readlines("test/test_helper.rb").collect { |line| " " + line } %>
|
24
|
-
|
25
|
-
=== Insert Example
|
26
|
-
|
27
|
-
<%= File.readlines("test/insert_acceptance_test.rb").collect { |line| " " + line } %>
|
28
|
-
|
29
|
-
=== Update Example
|
30
|
-
|
31
|
-
<%= File.readlines("test/update_acceptance_test.rb").collect { |line| " " + line } %>
|
32
|
-
|
33
|
-
=== Delete Example
|
34
|
-
|
35
|
-
<%= File.readlines("test/delete_acceptance_test.rb").collect { |line| " " + line } %>
|
36
|
-
|
37
|
-
=== Select Example
|
38
|
-
|
39
|
-
<%= File.readlines("test/select_acceptance_test.rb").collect { |line| " " + line } %>
|