jdbc-helper 0.5.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
data/test/test_sql.rb CHANGED
@@ -3,145 +3,153 @@ include JDBCHelper
3
3
 
4
4
  # WARNING: tests assumes ordered hash
5
5
  class TestSQL < Test::Unit::TestCase
6
- def setup
7
- end
8
-
9
- def teardown
10
- end
11
-
12
- def test_value
13
- assert_equal 1, SQL.value(1)
14
- assert_equal 1.2, SQL.value(1.2)
15
- assert_equal 9999999999999999999, SQL.value(9999999999999999999)
16
- assert_equal "'sysdate'", SQL.value('sysdate')
17
- assert_equal "'A''s'", SQL.value("A's")
18
- assert_equal "sysdate", SQL.value(JDBCHelper::SQL('sysdate'))
19
- end
20
-
21
- def test_order
22
- assert_equal "", SQL.order()
23
- assert_equal "", SQL.order(nil)
24
- assert_equal "", SQL.order(nil, nil)
25
- assert_equal "order by a", SQL.order(:a)
26
- assert_equal "order by a", SQL.order('a')
27
- assert_equal "order by a desc", SQL.order('a desc')
28
- assert_equal "order by a asc", SQL.order('a asc')
29
- assert_equal "order by a, b asc, c desc", SQL.order(:a, 'b asc', 'c desc')
30
-
31
- assert_raise(ArgumentError) { SQL.order(" -- ") }
32
- assert_raise(ArgumentError) { SQL.order(:a, :b, "c 'd") }
33
- end
34
-
35
- def test_where
36
- assert_equal "where a = 1", SQL.where(:a => 1)
37
- assert_equal "where a = 1.2", SQL.where(:a => 1.2)
38
- assert_equal "where a = 9999999999999999999", SQL.where(:a => 9999999999999999999)
39
- assert_equal "where a >= 1 and a <= 2", SQL.where(:a => 1..2)
40
- assert_equal "where a >= 1 and a < 2", SQL.where(:a => 1...2)
41
- assert_equal "where a = 'A''s'", SQL.where(:a => "A's")
42
- assert_equal "where a is null", SQL.where(:a => nil)
43
- assert_equal "where a is not null", SQL.where(:a => SQL.not_nil)
44
- assert_equal "where a is not null", SQL.where(:a => SQL.not_null)
45
- assert_equal "where a = sysdate", SQL.where(:a => JDBCHelper::SQL('sysdate'))
46
- assert_equal "where sysdate = sysdate", SQL.where(JDBCHelper::SQL('sysdate') => JDBCHelper::SQL('sysdate'))
47
- assert_equal "where a in ('aa', 'bb', 'cc')", SQL.where(:a => %w[aa bb cc])
48
- assert_equal "where a = 1 and b = 'A''s'", SQL.where(:a => 1, :b => "A's")
49
- assert_equal "where (a = 1 or b = 1)", SQL.where("a = 1 or b = 1")
50
- assert_equal "where (a = 1 or b = 1) and c = 2", SQL.where("a = 1 or b = 1", :c => 2)
51
- assert_equal "where c = 2 and (a = 1 or b = 1)", SQL.where({:c => 2}, "a = 1 or b = 1")
52
- assert_equal "where c = 2 and (a = 1 or b = 1) and (e = 2) and f = 3",
53
- SQL.where({:c => 2}, "a = 1 or b = 1", nil, "", "e = 2", nil, {:f => 3}, {})
54
- assert_equal '', SQL.where(nil)
55
- assert_equal '', SQL.where(" ")
56
-
57
- # Non-primitive datatypes not implemented (TODO?)
58
- assert_raise(NotImplementedError) { SQL.where(:a => Time.now) }
59
-
60
- # Invalid SQL detection
61
- assert_raise(ArgumentError) { SQL.where(" 'a--b' -- cde") }
62
- assert_raise(ArgumentError) { SQL.where(" 'a--b' ;") }
63
- assert_raise(ArgumentError) { SQL.where(" 'a--b' -- cde", :a => 1) }
64
- assert_raise(ArgumentError) { SQL.where(" 'a--b' -- cde", :a => 1) }
65
- assert_raise(ArgumentError) { SQL.where({:a => 1}, "/* a") }
66
- assert_raise(ArgumentError) { SQL.where(:a => JDBCHelper::SQL(" 'a--b' -- cde")) }
67
- assert_raise(ArgumentError) { SQL.where(:a => JDBCHelper::SQL(" 'aabbb''dd")) }
68
- assert_raise(ArgumentError) { SQL.where(:a => JDBCHelper::SQL(" 'aabbb''dd' /* aaa */")) }
69
- assert_raise(ArgumentError) { SQL.where(:a => JDBCHelper::SQL(' aabbb""" ')) }
70
- assert_raise(ArgumentError) { SQL.where(:a => JDBCHelper::SQL(' aab`bb`` ')) }
71
- end
6
+ def setup
7
+ end
8
+
9
+ def teardown
10
+ end
11
+
12
+ def test_value
13
+ assert_equal 1, SQL.value(1)
14
+ assert_equal 1.2, SQL.value(1.2)
15
+ assert_equal 9999999999999999999, SQL.value(9999999999999999999)
16
+ assert_equal "0.00000000000000000000009999999999999999999",
17
+ SQL.value(BigDecimal.new("0.00000000000000000000009999999999999999999"))
18
+ assert_equal "'sysdate'", SQL.value('sysdate')
19
+ assert_equal "'A''s'", SQL.value("A's")
20
+ assert_equal "sysdate", SQL.value(JDBCHelper::SQL('sysdate'))
21
+
22
+ assert_raise(NotImplementedError) { SQL.value(Time.now) }
23
+ end
24
+
25
+ def test_order
26
+ assert_equal "", SQL.order()
27
+ assert_equal "", SQL.order(nil)
28
+ assert_equal "", SQL.order(nil, nil)
29
+ assert_equal "order by a", SQL.order(:a)
30
+ assert_equal "order by a", SQL.order('a')
31
+ assert_equal "order by a desc", SQL.order('a desc')
32
+ assert_equal "order by a asc", SQL.order('a asc')
33
+ assert_equal "order by a, b asc, c desc", SQL.order(:a, 'b asc', 'c desc')
34
+
35
+ assert_raise(ArgumentError) { SQL.order(" -- ") }
36
+ assert_raise(ArgumentError) { SQL.order(:a, :b, "c 'd") }
37
+ end
38
+
39
+ def test_where
40
+ assert_equal "where a = 1", SQL.where(:a => 1)
41
+ assert_equal "where a = 1.2", SQL.where(:a => 1.2)
42
+ assert_equal "where a = 9999999999999999999", SQL.where(:a => 9999999999999999999)
43
+ assert_equal "where a >= 1 and a <= 2", SQL.where(:a => 1..2)
44
+ assert_equal "where a >= 1 and a < 2", SQL.where(:a => 1...2)
45
+ assert_equal "where a = 'A''s'", SQL.where(:a => "A's")
46
+ assert_equal "where a is null", SQL.where(:a => nil)
47
+ assert_equal "where a is not null", SQL.where(:a => SQL.not_nil)
48
+ assert_equal "where a is not null", SQL.where(:a => SQL.not_null)
49
+ assert_equal "where a = sysdate", SQL.where(:a => JDBCHelper::SQL('sysdate'))
50
+ assert_equal "where sysdate = sysdate", SQL.where(JDBCHelper::SQL('sysdate') => JDBCHelper::SQL('sysdate'))
51
+ assert_equal "where a in ('aa', 'bb', 'cc')", SQL.where(:a => %w[aa bb cc])
52
+ assert_equal "where a in ('aa', 'bb', 'cc', 4)", SQL.where(:a => %w[aa bb cc] + [4])
53
+ assert_equal "where a = 1 and b = 'A''s'", SQL.where(:a => 1, :b => "A's")
54
+ assert_equal "where (a = 1 or b = 1)", SQL.where("a = 1 or b = 1")
55
+ assert_equal "where (a = 1 or b = 1) and c = 2", SQL.where("a = 1 or b = 1", :c => 2)
56
+ assert_equal "where c = 2 and (a = 1 or b = 1)", SQL.where({:c => 2}, "a = 1 or b = 1")
57
+ assert_equal "where c = 2 and (a = 1 or b = 1) and (e = 2) and f = 3",
58
+ SQL.where({:c => 2}, "a = 1 or b = 1", nil, "", "e = 2", nil, {:f => 3}, {})
59
+ assert_equal '', SQL.where(nil)
60
+ assert_equal '', SQL.where(" ")
61
+
62
+ # Non-primitive datatypes not implemented (TODO?)
63
+ assert_raise(NotImplementedError) { SQL.where(:a => Time.now) }
64
+
65
+ # Invalid SQL detection
66
+ assert_raise(ArgumentError) { SQL.where(" 'a--b' -- cde") }
67
+ assert_raise(ArgumentError) { SQL.where(" 'a--b' ;") }
68
+ assert_raise(ArgumentError) { SQL.where(" 'a--b' -- cde", :a => 1) }
69
+ assert_raise(ArgumentError) { SQL.where(" 'a--b' -- cde", :a => 1) }
70
+ assert_raise(ArgumentError) { SQL.where({:a => 1}, "/* a") }
71
+ assert_raise(ArgumentError) { SQL.where(:a => JDBCHelper::SQL(" 'a--b' -- cde")) }
72
+ assert_raise(ArgumentError) { SQL.where(:a => JDBCHelper::SQL(" 'aabbb''dd")) }
73
+ assert_raise(ArgumentError) { SQL.where(:a => JDBCHelper::SQL(" 'aabbb''dd' /* aaa */")) }
74
+ assert_raise(ArgumentError) { SQL.where(:a => JDBCHelper::SQL(' aabbb""" ')) }
75
+ assert_raise(ArgumentError) { SQL.where(:a => JDBCHelper::SQL(' aab`bb`` ')) }
76
+ end
72
77
 
73
78
  def test_where_prepared
74
- assert_equal ["where a = ?", [1]], SQLPrepared.where(:a => 1)
75
- assert_equal ["where a = ?", [1.2]], SQLPrepared.where(:a => 1.2)
76
- assert_equal ["where a = ?", [9999999999999999999]], SQLPrepared.where(:a => 9999999999999999999)
77
- assert_equal ["where a >= ? and a <= ?", [1,2]], SQLPrepared.where(:a => 1..2)
78
- assert_equal ["where a >= ? and a < ?", [1,2]], SQLPrepared.where(:a => 1...2)
79
- assert_equal ["where a = ?", ["A's"]], SQLPrepared.where(:a => "A's")
80
- assert_equal ["where a is null", []], SQLPrepared.where(:a => nil)
81
- assert_equal ["where a is not null", []], SQLPrepared.where(:a => SQL.not_nil)
82
- assert_equal ["where a is not null", []], SQLPrepared.where(:a => SQL.not_null)
83
- assert_equal ["where a = sysdate", []], SQLPrepared.where(:a => JDBCHelper::SQL('sysdate'))
84
- assert_equal ["where sysdate = sysdate", []], SQLPrepared.where(JDBCHelper::SQL('sysdate') => JDBCHelper::SQL('sysdate'))
85
- assert_equal ["where a in ('aa', 'bb', 'cc')", []], SQLPrepared.where(:a => %w[aa bb cc])
86
- assert_equal ["where a = ? and b = ?", [1, "A's"]], SQLPrepared.where(:a => 1, :b => "A's")
87
- assert_equal ["where (a = 1 or b = 1)", []], SQLPrepared.where("a = 1 or b = 1")
88
- assert_equal ["where (a = 1 or b = 1) and c = ?", [2]], SQLPrepared.where("a = 1 or b = 1", :c => 2)
89
- assert_equal ["where c = ? and (a = 1 or b = 1)", [2]], SQLPrepared.where({:c => 2}, "a = 1 or b = 1")
90
- assert_equal ["where c = ? and (a = 1 or b = 1) and (e = 2) and f = ?", [2, 3]],
91
- SQLPrepared.where({:c => 2}, "a = 1 or b = 1", nil, "", "e = 2", nil, {:f => 3}, {})
92
- assert_equal [nil, []], SQLPrepared.where(nil)
93
- assert_equal [nil, []], SQLPrepared.where(" ")
79
+ assert_equal ["where a = ?", [1]], SQLPrepared.where(:a => 1)
80
+ assert_equal ["where a = ?", [1.2]], SQLPrepared.where(:a => 1.2)
81
+ assert_equal ["where a = ?", [9999999999999999999]], SQLPrepared.where(:a => 9999999999999999999)
82
+ assert_equal ["where a >= ? and a <= ?", [1,2]], SQLPrepared.where(:a => 1..2)
83
+ assert_equal ["where a >= ? and a < ?", [1,2]], SQLPrepared.where(:a => 1...2)
84
+ assert_equal ["where a = ?", ["A's"]], SQLPrepared.where(:a => "A's")
85
+ assert_equal ["where a is null", []], SQLPrepared.where(:a => nil)
86
+ assert_equal ["where a is not null", []], SQLPrepared.where(:a => SQL.not_nil)
87
+ assert_equal ["where a is not null", []], SQLPrepared.where(:a => SQL.not_null)
88
+ assert_equal ["where a = sysdate", []], SQLPrepared.where(:a => JDBCHelper::SQL('sysdate'))
89
+ assert_equal ["where sysdate = sysdate", []], SQLPrepared.where(JDBCHelper::SQL('sysdate') => JDBCHelper::SQL('sysdate'))
90
+ assert_equal ["where a in ('aa', 'bb', 'cc')", []], SQLPrepared.where(:a => %w[aa bb cc])
91
+ assert_equal ["where a in ('aa', 'bb', 'cc', 4)", []], SQLPrepared.where(:a => %w[aa bb cc] + [4])
92
+ assert_equal ["where a = ? and b = ?", [1, "A's"]], SQLPrepared.where(:a => 1, :b => "A's")
93
+ assert_equal ["where (a = 1 or b = 1)", []], SQLPrepared.where("a = 1 or b = 1")
94
+ assert_equal ["where (a = 1 or b = 1) and c = ?", [2]], SQLPrepared.where("a = 1 or b = 1", :c => 2)
95
+ assert_equal ["where c = ? and (a = 1 or b = 1)", [2]], SQLPrepared.where({:c => 2}, "a = 1 or b = 1")
96
+ assert_equal ["where c = ? and (a = 1 or b = 1) and (e = 2) and f = ?", [2, 3]],
97
+ SQLPrepared.where({:c => 2}, "a = 1 or b = 1", nil, "", "e = 2", nil, {:f => 3}, {})
98
+ assert_equal [nil, []], SQLPrepared.where(nil)
99
+ assert_equal [nil, []], SQLPrepared.where(" ")
100
+ end
101
+
102
+ def test_select
103
+ assert_equal "select * from a.b", SQL.select('a.b')
104
+ assert_equal "select aa, bb from a.b where a is not null",
105
+ SQL.select('a.b', :select => %w[aa bb], :where => {:a => SQL.not_nil})
106
+ assert_equal "select aa, bb from a.b where a is not null and b >= 1 and b <= 10 order by cc, dd",
107
+ SQL.select('a.b',
108
+ :select => %w[aa bb],
109
+ :where => {:a => SQL.not_null, :b => (1..10)},
110
+ :order => %w[cc dd]
111
+ )
112
+ end
113
+
114
+ def test_count
115
+ assert_equal "select count(*) from a.b", SQL.count('a.b')
116
+ assert_equal "select count(*) from a.b where a is not null", SQL.count('a.b', :a => SQL.not_nil)
117
+
118
+ assert_equal ["select count(*) from a.b", []], SQLPrepared.count('a.b')
119
+ assert_equal ["select count(*) from a.b where a = ?", [1]], SQLPrepared.count('a.b', :a => 1)
120
+ end
121
+
122
+ def test_delete
123
+ assert_equal "delete from a.b", SQL.delete('a.b')
124
+ assert_equal "delete from a.b where a is not null", SQL.delete('a.b', :a => SQL.not_nil)
125
+
126
+ assert_equal ["delete from a.b", []], SQLPrepared.delete('a.b')
127
+ assert_equal ["delete from a.b where a = ?", [1]], SQLPrepared.delete('a.b', :a => 1)
128
+ end
129
+
130
+ def test_update
131
+ assert_equal "update a.b set a = 1, b = 'A''s', c = now()",
132
+ SQL.update('a.b', {:a => 1, :b => "A's", :c => JDBCHelper::SQL('now()')}, {})
133
+
134
+ assert_equal "update a.b set a = 1, b = 'A''s', c = now() where a is not null",
135
+ SQL.update('a.b', {:a => 1, :b => "A's", :c => JDBCHelper::SQL('now()')}, { :a => SQL.not_nil })
136
+
137
+ assert_equal ["update a.b set a = ?, b = ?, c = now()", [1, "A's"]],
138
+ SQLPrepared.update('a.b', {:a => 1, :b => "A's", :c => JDBCHelper::SQL('now()')}, {})
139
+
140
+ assert_equal ["update a.b set a = ?, b = ?, c = now() where a = ?", [1, "A's", 2]],
141
+ SQLPrepared.update('a.b', {:a => 1, :b => "A's", :c => JDBCHelper::SQL('now()')}, { :a => 2 })
94
142
  end
95
143
 
96
- def test_select
97
- assert_equal "select * from a.b", SQL.select('a.b')
98
- assert_equal "select aa, bb from a.b where a is not null",
99
- SQL.select('a.b', :select => %w[aa bb], :where => {:a => SQL.not_nil})
100
- assert_equal "select aa, bb from a.b where a is not null and b >= 1 and b <= 10 order by cc, dd",
101
- SQL.select('a.b',
102
- :select => %w[aa bb],
103
- :where => {:a => SQL.not_null, :b => (1..10)},
104
- :order => %w[cc dd]
105
- )
106
- end
107
-
108
- def test_count
109
- assert_equal "select count(*) from a.b", SQL.count('a.b')
110
- assert_equal "select count(*) from a.b where a is not null", SQL.count('a.b', :a => SQL.not_nil)
111
-
112
- assert_equal ["select count(*) from a.b", []], SQLPrepared.count('a.b')
113
- assert_equal ["select count(*) from a.b where a = ?", [1]], SQLPrepared.count('a.b', :a => 1)
114
- end
115
-
116
- def test_delete
117
- assert_equal "delete from a.b", SQL.delete('a.b')
118
- assert_equal "delete from a.b where a is not null", SQL.delete('a.b', :a => SQL.not_nil)
119
-
120
- assert_equal ["delete from a.b", []], SQLPrepared.delete('a.b')
121
- assert_equal ["delete from a.b where a = ?", [1]], SQLPrepared.delete('a.b', :a => 1)
122
- end
123
-
124
- def test_update
125
- assert_equal "update a.b set a = 1, b = 'A''s', c = now()",
126
- SQL.update('a.b', {:a => 1, :b => "A's", :c => JDBCHelper::SQL('now()')}, {})
127
-
128
- assert_equal "update a.b set a = 1, b = 'A''s', c = now() where a is not null",
129
- SQL.update('a.b', {:a => 1, :b => "A's", :c => JDBCHelper::SQL('now()')}, { :a => SQL.not_nil })
130
-
131
- assert_equal ["update a.b set a = ?, b = ?, c = now()", [1, "A's"]],
132
- SQLPrepared.update('a.b', {:a => 1, :b => "A's", :c => JDBCHelper::SQL('now()')}, {})
133
-
134
- assert_equal ["update a.b set a = ?, b = ?, c = now() where a = ?", [1, "A's", 2]],
135
- SQLPrepared.update('a.b', {:a => 1, :b => "A's", :c => JDBCHelper::SQL('now()')}, { :a => 2 })
136
- end
137
-
138
- def test_insert
139
- assert_equal "insert into a.b (a, b, c) values (1, 'A''s', null)",
140
- SQL.insert('a.b', :a => 1, :b => "A's", :c => nil)
141
-
142
- assert_equal ["insert into a.b (a, b, c) values (?, ?, ?)", [1, "A's", nil]],
143
- SQLPrepared.insert('a.b', :a => 1, :b => "A's", :c => nil)
144
- end
144
+ def test_insert
145
+ {'insert' => :insert, 'insert ignore' => :insert_ignore, 'replace' => :replace}.each do |op, met|
146
+ assert_equal "#{op} into a.b (a, b, c) values (1, 'A''s', null)",
147
+ SQL.send(met, 'a.b', :a => 1, :b => "A's", :c => nil)
148
+
149
+ assert_equal ["#{op} into a.b (a, b, c) values (?, ?, ?)", [1, "A's", nil]],
150
+ SQLPrepared.send(met, 'a.b', :a => 1, :b => "A's", :c => nil)
151
+ end
152
+ end
145
153
 
146
154
  def test_sql_equality
147
155
  assert_equal "a = b", JDBCHelper.SQL('a = b').to_s
metadata CHANGED
@@ -1,143 +1,139 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: jdbc-helper
3
- version: !ruby/object:Gem::Version
4
- version: 0.5.1
3
+ version: !ruby/object:Gem::Version
5
4
  prerelease:
5
+ version: 0.6.0
6
6
  platform: ruby
7
- authors:
8
- - Junegunn Choi
7
+ authors:
8
+ - Junegunn Choi
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-08-29 00:00:00.000000000Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: bundler
16
- requirement: &2152937260 !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ~>
20
- - !ruby/object:Gem::Version
21
- version: 1.0.0
22
- type: :development
23
- prerelease: false
24
- version_requirements: *2152937260
25
- - !ruby/object:Gem::Dependency
26
- name: jeweler
27
- requirement: &2152936680 !ruby/object:Gem::Requirement
28
- none: false
29
- requirements:
30
- - - ~>
31
- - !ruby/object:Gem::Version
32
- version: 1.5.2
33
- type: :development
34
- prerelease: false
35
- version_requirements: *2152936680
36
- - !ruby/object:Gem::Dependency
37
- name: rcov
38
- requirement: &2152936120 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ! '>='
42
- - !ruby/object:Gem::Version
43
- version: '0'
44
- type: :development
45
- prerelease: false
46
- version_requirements: *2152936120
47
- - !ruby/object:Gem::Dependency
48
- name: test-unit
49
- requirement: &2152935620 !ruby/object:Gem::Requirement
50
- none: false
51
- requirements:
52
- - - ! '>='
53
- - !ruby/object:Gem::Version
54
- version: 2.3.0
55
- type: :development
56
- prerelease: false
57
- version_requirements: *2152935620
58
- - !ruby/object:Gem::Dependency
59
- name: pry
60
- requirement: &2152935120 !ruby/object:Gem::Requirement
61
- none: false
62
- requirements:
63
- - - ! '>='
64
- - !ruby/object:Gem::Version
65
- version: '0'
66
- type: :development
67
- prerelease: false
68
- version_requirements: *2152935120
12
+
13
+ date: 2011-09-05 00:00:00 +09:00
14
+ default_executable:
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: bundler
18
+ version_requirements: &id001 !ruby/object:Gem::Requirement
19
+ none: false
20
+ requirements:
21
+ - - ~>
22
+ - !ruby/object:Gem::Version
23
+ version: 1.0.0
24
+ requirement: *id001
25
+ prerelease: false
26
+ type: :development
27
+ - !ruby/object:Gem::Dependency
28
+ name: jeweler
29
+ version_requirements: &id002 !ruby/object:Gem::Requirement
30
+ none: false
31
+ requirements:
32
+ - - ~>
33
+ - !ruby/object:Gem::Version
34
+ version: 1.5.2
35
+ requirement: *id002
36
+ prerelease: false
37
+ type: :development
38
+ - !ruby/object:Gem::Dependency
39
+ name: rcov
40
+ version_requirements: &id003 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: "0"
46
+ requirement: *id003
47
+ prerelease: false
48
+ type: :development
49
+ - !ruby/object:Gem::Dependency
50
+ name: test-unit
51
+ version_requirements: &id004 !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: 2.3.0
57
+ requirement: *id004
58
+ prerelease: false
59
+ type: :development
69
60
  description: A JDBC helper for JRuby/Database developers.
70
61
  email: junegunn.c@gmail.com
71
62
  executables: []
63
+
72
64
  extensions: []
73
- extra_rdoc_files:
74
- - LICENSE.txt
75
- - README.rdoc
76
- files:
77
- - lib/jdbc-helper.rb
78
- - lib/jdbc-helper/connection.rb
79
- - lib/jdbc-helper/connection/callable_statement.rb
80
- - lib/jdbc-helper/connection/parameterized_statement.rb
81
- - lib/jdbc-helper/connection/prepared_statement.rb
82
- - lib/jdbc-helper/connection/result_set_enumerator.rb
83
- - lib/jdbc-helper/connection/row.rb
84
- - lib/jdbc-helper/connection/statement_pool.rb
85
- - lib/jdbc-helper/connection/type_map.rb
86
- - lib/jdbc-helper/connector.rb
87
- - lib/jdbc-helper/connector/mysql_connector.rb
88
- - lib/jdbc-helper/connector/oracle_connector.rb
89
- - lib/jdbc-helper/constants.rb
90
- - lib/jdbc-helper/sql.rb
91
- - lib/jdbc-helper/sql_prepared.rb
92
- - lib/jdbc-helper/wrapper/function_wrapper.rb
93
- - lib/jdbc-helper/wrapper/object_wrapper.rb
94
- - lib/jdbc-helper/wrapper/procedure_wrapper.rb
95
- - lib/jdbc-helper/wrapper/sequence_wrapper.rb
96
- - lib/jdbc-helper/wrapper/table_wrapper.rb
97
- - LICENSE.txt
98
- - README.rdoc
99
- - test/database.yml
100
- - test/database.yml.org
101
- - test/helper.rb
102
- - test/test_connection.rb
103
- - test/test_connectors.rb
104
- - test/test_object_wrapper.rb
105
- - test/test_performance.rb
106
- - test/test_sql.rb
65
+
66
+ extra_rdoc_files:
67
+ - LICENSE.txt
68
+ - README.markdown
69
+ files:
70
+ - lib/jdbc-helper.rb
71
+ - lib/jdbc-helper/connection.rb
72
+ - lib/jdbc-helper/connection/callable_statement.rb
73
+ - lib/jdbc-helper/connection/parameterized_statement.rb
74
+ - lib/jdbc-helper/connection/prepared_statement.rb
75
+ - lib/jdbc-helper/connection/result_set_enumerator.rb
76
+ - lib/jdbc-helper/connection/row.rb
77
+ - lib/jdbc-helper/connection/statement_pool.rb
78
+ - lib/jdbc-helper/connection/type_map.rb
79
+ - lib/jdbc-helper/connector.rb
80
+ - lib/jdbc-helper/connector/mysql_connector.rb
81
+ - lib/jdbc-helper/connector/oracle_connector.rb
82
+ - lib/jdbc-helper/constants.rb
83
+ - lib/jdbc-helper/sql.rb
84
+ - lib/jdbc-helper/sql_prepared.rb
85
+ - lib/jdbc-helper/wrapper/function_wrapper.rb
86
+ - lib/jdbc-helper/wrapper/object_wrapper.rb
87
+ - lib/jdbc-helper/wrapper/procedure_wrapper.rb
88
+ - lib/jdbc-helper/wrapper/sequence_wrapper.rb
89
+ - lib/jdbc-helper/wrapper/table_wrapper.rb
90
+ - LICENSE.txt
91
+ - README.markdown
92
+ - test/database.yml
93
+ - test/database.yml.org
94
+ - test/helper.rb
95
+ - test/performance.rb
96
+ - test/test_connection.rb
97
+ - test/test_connectors.rb
98
+ - test/test_object_wrapper.rb
99
+ - test/test_sql.rb
100
+ has_rdoc: true
107
101
  homepage: http://github.com/junegunn/jdbc-helper
108
- licenses:
109
- - MIT
102
+ licenses:
103
+ - MIT
110
104
  post_install_message:
111
105
  rdoc_options: []
112
- require_paths:
113
- - lib
114
- required_ruby_version: !ruby/object:Gem::Requirement
106
+
107
+ require_paths:
108
+ - lib
109
+ required_ruby_version: !ruby/object:Gem::Requirement
115
110
  none: false
116
- requirements:
117
- - - ! '>='
118
- - !ruby/object:Gem::Version
119
- version: '0'
120
- segments:
121
- - 0
122
- hash: -4015855572865815937
123
- required_rubygems_version: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - ">="
113
+ - !ruby/object:Gem::Version
114
+ hash: 2
115
+ segments:
116
+ - 0
117
+ version: "0"
118
+ required_rubygems_version: !ruby/object:Gem::Requirement
124
119
  none: false
125
- requirements:
126
- - - ! '>='
127
- - !ruby/object:Gem::Version
128
- version: '0'
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: "0"
129
124
  requirements: []
125
+
130
126
  rubyforge_project:
131
- rubygems_version: 1.8.6
127
+ rubygems_version: 1.5.1
132
128
  signing_key:
133
129
  specification_version: 3
134
130
  summary: A JDBC helper for JRuby/Database developers.
135
- test_files:
136
- - test/database.yml
137
- - test/database.yml.org
138
- - test/helper.rb
139
- - test/test_connection.rb
140
- - test/test_connectors.rb
141
- - test/test_object_wrapper.rb
142
- - test/test_performance.rb
143
- - test/test_sql.rb
131
+ test_files:
132
+ - test/database.yml
133
+ - test/database.yml.org
134
+ - test/helper.rb
135
+ - test/performance.rb
136
+ - test/test_connection.rb
137
+ - test/test_connectors.rb
138
+ - test/test_object_wrapper.rb
139
+ - test/test_sql.rb