gda 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/ext/gda/extconf.rb +1 -1
- data/ext/gda/gda_nodes.c +1 -0
- data/ext/gda/gda_provider.c +1 -0
- data/ext/gda/gda_statement.c +3 -0
- data/lib/gda.rb +1 -1
- data/test/helper.rb +1 -1
- data/test/test_gda.rb +3 -0
- metadata +33 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 57c06ead700d0c7f320a74263ce3e5ecfe28015a5489d65d9f3c5faf96647709
|
4
|
+
data.tar.gz: dad5b08bd24a8c61f2294b045a7b5a5c822a048ed94d1c82ebf8b63413c54b6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d734598fe06db00664019f84b15680499a48e4b54ee7512970009c84cfac4831bba103edf87539f2ae5e20bbbd433a9eeb730d16e0767651fdfa8e6f030612e
|
7
|
+
data.tar.gz: 05f7689feb91287713fad9729d0af8b255ffa12c781892d1f3be5e84524b2853cd8492281d2dfeff8700ed14f78f87e02d60eba5075760439d6eca4bb6c775eb
|
data/ext/gda/extconf.rb
CHANGED
data/ext/gda/gda_nodes.c
CHANGED
@@ -419,6 +419,7 @@ void Init_gda_nodes()
|
|
419
419
|
mNodes = rb_define_module_under(mGDA, "Nodes");
|
420
420
|
|
421
421
|
cNode = rb_define_class_under(mNodes, "Node", rb_cObject);
|
422
|
+
rb_undef_alloc_func(cNode);
|
422
423
|
|
423
424
|
cSelect = rb_define_class_under(mNodes, "Select", cNode);
|
424
425
|
rb_define_method(cSelect, "distinct?", distinct_p, 0);
|
data/ext/gda/gda_provider.c
CHANGED
@@ -52,6 +52,7 @@ static VALUE quote_str(VALUE self, VALUE str)
|
|
52
52
|
void Init_gda_provider()
|
53
53
|
{
|
54
54
|
cProvider = rb_define_class_under(mSQL, "Provider", rb_cObject);
|
55
|
+
rb_undef_alloc_func(cProvider);
|
55
56
|
rb_define_singleton_method(cProvider, "find", find, 1);
|
56
57
|
rb_define_method(cProvider, "name", name, 0);
|
57
58
|
rb_define_method(cProvider, "parser", parser, 0);
|
data/ext/gda/gda_statement.c
CHANGED
@@ -49,6 +49,9 @@ void Init_gda_statement()
|
|
49
49
|
cStatement = rb_define_class_under(mSQL, "Statement", rb_cObject);
|
50
50
|
cStructure = rb_define_class_under(mSQL, "Structure", rb_cObject);
|
51
51
|
|
52
|
+
rb_undef_alloc_func(cStatement);
|
53
|
+
rb_undef_alloc_func(cStructure);
|
54
|
+
|
52
55
|
rb_define_method(cStatement, "serialize", serialize, 0);
|
53
56
|
rb_define_method(cStatement, "structure", structure, 0);
|
54
57
|
rb_define_method(cStructure, "ast", ast, 0);
|
data/lib/gda.rb
CHANGED
data/test/helper.rb
CHANGED
data/test/test_gda.rb
CHANGED
@@ -34,17 +34,20 @@ module GDA
|
|
34
34
|
|
35
35
|
def test_pg_parser
|
36
36
|
provider = SQL::Provider.find "PostgreSQL"
|
37
|
+
skip "don't have PG provider" unless provider
|
37
38
|
assert provider.parser.parse 'INSERT INTO "accounts" ("credit_limit", "firm_id", "firm_name") VALUES ($1, $2, $3) RETURNING "id"'
|
38
39
|
end
|
39
40
|
|
40
41
|
def test_mysql_parser
|
41
42
|
provider = SQL::Provider.find "MySQL"
|
43
|
+
skip "don't have MySQL provider" unless provider
|
42
44
|
assert provider.parser.parse 'SELECT topics.* FROM topics WHERE topics.id = 147 LIMIT 1'
|
43
45
|
|
44
46
|
end
|
45
47
|
|
46
48
|
def test_id_quote
|
47
49
|
provider = SQL::Provider.find "MySQL"
|
50
|
+
skip "don't have MySQL provider" unless provider
|
48
51
|
assert_equal '"1foo"', provider.quote("1foo")
|
49
52
|
end
|
50
53
|
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Patterson
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: minitest
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '5.14'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '5.14'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake-compiler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,20 +52,40 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rdoc
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '4.0'
|
62
|
+
- - "<"
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '7'
|
65
|
+
type: :development
|
66
|
+
prerelease: false
|
67
|
+
version_requirements: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '4.0'
|
72
|
+
- - "<"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '7'
|
55
75
|
- !ruby/object:Gem::Dependency
|
56
76
|
name: hoe
|
57
77
|
requirement: !ruby/object:Gem::Requirement
|
58
78
|
requirements:
|
59
79
|
- - "~>"
|
60
80
|
- !ruby/object:Gem::Version
|
61
|
-
version: '3.
|
81
|
+
version: '3.23'
|
62
82
|
type: :development
|
63
83
|
prerelease: false
|
64
84
|
version_requirements: !ruby/object:Gem::Requirement
|
65
85
|
requirements:
|
66
86
|
- - "~>"
|
67
87
|
- !ruby/object:Gem::Version
|
68
|
-
version: '3.
|
88
|
+
version: '3.23'
|
69
89
|
description: |-
|
70
90
|
An SQL parser. Wraps libgda in a loving embrace to give you a ruby level SQL
|
71
91
|
parser.
|
@@ -109,8 +129,9 @@ files:
|
|
109
129
|
homepage: http://github.com/tenderlove/gda
|
110
130
|
licenses:
|
111
131
|
- MIT
|
112
|
-
metadata:
|
113
|
-
|
132
|
+
metadata:
|
133
|
+
homepage_uri: http://github.com/tenderlove/gda
|
134
|
+
post_install_message:
|
114
135
|
rdoc_options:
|
115
136
|
- "--main"
|
116
137
|
- README.rdoc
|
@@ -127,9 +148,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
127
148
|
- !ruby/object:Gem::Version
|
128
149
|
version: '0'
|
129
150
|
requirements: []
|
130
|
-
|
131
|
-
|
132
|
-
signing_key:
|
151
|
+
rubygems_version: 3.2.22
|
152
|
+
signing_key:
|
133
153
|
specification_version: 4
|
134
154
|
summary: An SQL parser
|
135
155
|
test_files: []
|