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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 09209a9fa57de499346a00205d6192c1fdc814b2
4
- data.tar.gz: e5f046ad0e79ad6cbd379348140455837fe458c9
2
+ SHA256:
3
+ metadata.gz: 57c06ead700d0c7f320a74263ce3e5ecfe28015a5489d65d9f3c5faf96647709
4
+ data.tar.gz: dad5b08bd24a8c61f2294b045a7b5a5c822a048ed94d1c82ebf8b63413c54b6d
5
5
  SHA512:
6
- metadata.gz: 05f0726618f23cf50ce0e78215401bdfc4729ebb6ee4058e558947ad984b31a6c9fa52717965453c797fdfd2b08a89b3e90244e57a0dd401bb61da4a194d39f5
7
- data.tar.gz: 97f55889fb6c30db52176f9ed61d7b8678702f2627f1c87be1f67dee193eb8df4c78813ac0d3ea8d5ad5912a15ce033dcd54a4aeb2f6639ee0d0d1816c30a45b
6
+ metadata.gz: 1d734598fe06db00664019f84b15680499a48e4b54ee7512970009c84cfac4831bba103edf87539f2ae5e20bbbd433a9eeb730d16e0767651fdfa8e6f030612e
7
+ data.tar.gz: 05f7689feb91287713fad9729d0af8b255ffa12c781892d1f3be5e84524b2853cd8492281d2dfeff8700ed14f78f87e02d60eba5075760439d6eca4bb6c775eb
data/ext/gda/extconf.rb CHANGED
@@ -2,7 +2,7 @@ require 'mkmf'
2
2
 
3
3
  # :stopdoc:
4
4
 
5
- ENV['PKG_CONFIG_PATH'] ||= '/usr/local/Library/ENV/pkgconfig/10.8'
5
+ ENV['PKG_CONFIG_PATH'] ||= '/usr/local/lib/pkgconfig'
6
6
 
7
7
  dir_config 'libgda'
8
8
 
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);
@@ -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);
@@ -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
@@ -4,7 +4,7 @@ require 'gda/visitors/dot'
4
4
  require 'gda/visitors/max_depth'
5
5
 
6
6
  module GDA
7
- VERSION = '1.1.0'
7
+ VERSION = '1.1.1'
8
8
 
9
9
  module SQL
10
10
  class Statement
data/test/helper.rb CHANGED
@@ -3,7 +3,7 @@ require 'gda'
3
3
  require 'sqlite3'
4
4
 
5
5
  module GDA
6
- class TestCase < MiniTest::Unit::TestCase
6
+ class TestCase < Minitest::Test
7
7
  @@rails_sql = nil
8
8
 
9
9
  def self.rails_sql
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.0
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: 2016-01-29 00:00:00.000000000 Z
11
+ date: 2022-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rdoc
14
+ name: minitest
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.0'
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: '4.0'
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.14'
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.14'
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
- post_install_message:
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
- rubyforge_project:
131
- rubygems_version: 2.2.5
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: []