sqldsl 0.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README_TEMPLATE +39 -0
- data/test/all_tests.rb +1 -0
- data/test/test_helper.rb +2 -0
- metadata +9 -5
data/README_TEMPLATE
ADDED
@@ -0,0 +1,39 @@
|
|
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 } %>
|
data/test/all_tests.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Dir['**/*_test.rb'].each { |testCase| require testCase }
|
data/test/test_helper.rb
ADDED
metadata
CHANGED
@@ -3,15 +3,15 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: sqldsl
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version:
|
7
|
-
date: 2006-09-
|
6
|
+
version: 0.2.2
|
7
|
+
date: 2006-09-17 00:00:00 -04:00
|
8
8
|
summary: A DSL for creating SQL Statements
|
9
9
|
require_paths:
|
10
10
|
- lib
|
11
11
|
email: sqldsl-developer@rubyforge.org
|
12
12
|
homepage: http://sqldsl.rubyforge.org
|
13
13
|
rubyforge_project: sqldsl
|
14
|
-
description:
|
14
|
+
description: A DSL for creating SQL Statements
|
15
15
|
autorequire: sqldsl
|
16
16
|
default_executable:
|
17
17
|
bindir: bin
|
@@ -41,8 +41,7 @@ files:
|
|
41
41
|
- lib/time.rb
|
42
42
|
- lib/update.rb
|
43
43
|
- lib/where_builder.rb
|
44
|
-
-
|
45
|
-
test_files:
|
44
|
+
- test/all_tests.rb
|
46
45
|
- test/array_test.rb
|
47
46
|
- test/delete_acceptance_test.rb
|
48
47
|
- test/delete_test.rb
|
@@ -53,10 +52,15 @@ test_files:
|
|
53
52
|
- test/select_test.rb
|
54
53
|
- test/string_test.rb
|
55
54
|
- test/symbol_test.rb
|
55
|
+
- test/test_helper.rb
|
56
56
|
- test/time_test.rb
|
57
57
|
- test/update_acceptance_test.rb
|
58
58
|
- test/update_test.rb
|
59
59
|
- test/where_builder_test.rb
|
60
|
+
- README
|
61
|
+
- README_TEMPLATE
|
62
|
+
test_files:
|
63
|
+
- test/all_tests.rb
|
60
64
|
rdoc_options:
|
61
65
|
- --title
|
62
66
|
- SQL DSL
|