vertica 0.11.0 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NTFhOTJlZWQ4NjE2NTNjMzk5YzQ5YzgxNzRmZTZkYjg0Mjg2NzBkZg==
5
+ data.tar.gz: !binary |-
6
+ YzdlZWQ5ZDYxNzU5YTVmYzUzM2EzZWM3OWUxYWMxOGY5ZDBiNjBhYw==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ MDdlZTgzMGU3NDExZTQ5ZTgxYmJjMmViMDYzODM4ZjI0YWZjODQ0MzYwZDJl
10
+ YmQ3NTBjNGQ5MDQxY2FmZjA0MTQxZTU0NDBkZjI2YjQwYmQzMjZmOThhMTAz
11
+ MzYwM2FiYTRmNWY3NjdiMDhmZTVjYWJiM2ZjYTVmNTU0ZjhhYzg=
12
+ data.tar.gz: !binary |-
13
+ ODQ4NzNlZWVhMDAwODNiNmNlNzdiY2I5ZjBiNGM5ODM2MmYxMjM2Yjg4ZDM2
14
+ NmNmMzBlYTI4MDRlM2Q0NzU2MzQ0ZThlMTZmMjNmZWJiMjk5NTMxNDljZmI0
15
+ YTNhZjU3YmYzNTJkNjlhNzQwNjUyNGQzZTUyY2YyMWZlYjkxNzY=
data/.gitignore ADDED
@@ -0,0 +1,7 @@
1
+ pkg
2
+ .DS_Store
3
+ Gemfile.lock
4
+ test/connection.yml
5
+ *.rbc
6
+ .yardoc/
7
+ doc/
data/.infinity_test ADDED
@@ -0,0 +1,8 @@
1
+ infinity_test do
2
+
3
+ use :rubies => %w(1.8.6 1.8.7 1.9.2 ree)
4
+
5
+ before(:each_ruby) do |environment|
6
+ environment.system('bundle install')
7
+ end
8
+ end
data/Gemfile CHANGED
@@ -1,4 +1,2 @@
1
- source :rubygems
2
-
3
- gem 'rake'
4
- gem 'jeweler'
1
+ source 'https://rubygems.org'
2
+ gemspec
data/README.md CHANGED
@@ -3,27 +3,34 @@
3
3
  Vertica is a pure Ruby library for connecting to Vertica databases. You can learn more
4
4
  about Vertica at http://www.vertica.com.
5
5
 
6
- This library currently supports connecting, executing SQL queries, and transferring data
7
- for a "COPY table FROM STDIN" statement. The gem is tested against Vertica version 4.1,
8
- 5.0, 5.1, and 6.1, and Ruby version 1.8 and 1.9.
6
+ - Connecting, including over SSL
7
+ - Executing queries, with results as streaming rows or buffered resultsets.
8
+ - "COPY table FROM STDIN" statement to load data.
9
+ - Tested against Ruby 1.9 and 2.0, and Vertica version 6.0 and 6.1.
10
+ - The library is thread-safe as of version 0.11. However, you can only run one
11
+ statement at the time per connection, because the protocol is stateful.
9
12
 
10
- # Install
13
+
14
+ ## Installation
11
15
 
12
16
  $ gem install vertica
13
17
 
14
- # Source
18
+ Or add it to your Gemfile:
15
19
 
16
- Vertica's git repo is available on GitHub, which can be browsed at:
20
+ gem 'vertica'
21
+ # gem 'vertica', git: 'git://github.com/sprsquish/vertica.git' # HEAD version
17
22
 
18
- http://github.com/sprsquish/vertica
23
+ ### Compatiblity
19
24
 
20
- and cloned from:
25
+ - Ruby 1.8 is no longer supported, but version 0.9.x should still support it.
26
+ - Vertica versions 4.1, 5.0, and 5.1 worked with at some point with this gem, but
27
+ compatibility is no longer tested. It probably still works as the protocol hasn't
28
+ changed.
21
29
 
22
- git://github.com/sprsquish/vertica.git
23
30
 
24
- # Usage
31
+ ## Usage
25
32
 
26
- ## Connecting
33
+ ### Connecting
27
34
 
28
35
  The <code>Vertica.connect</code> methods takes a connection parameter hash and returns a
29
36
  connection object. For most options, the gem will use a default value if no value is provided.
@@ -42,28 +49,22 @@ connection object. For most options, the gem will use a default value if no valu
42
49
 
43
50
  To close the connection when you're done with it, run <code>connection.close</code>.
44
51
 
45
- ## Querying
52
+ ### Querying with unbuffered result as streaming rows
46
53
 
47
54
  You can run simple queries using the <code>query</code> method, either in buffered and
48
55
  unbuffered mode. For large result sets, you probably do not want to use buffered results.
49
56
 
50
- ### Unbuffered result
51
-
52
57
  Get all the result rows without buffering by providing a block:
53
58
 
54
59
  connection.query("SELECT id, name FROM my_table") do |row|
55
60
  puts row # => {:id => 123, :name => "Jim Bob"}
56
61
  end
57
-
58
- connection.close
59
62
 
60
63
  Note: you can only use the connection for one query at the time. If you try to run another
61
64
  query when the connection is still busy delivering the results of a previous query, a
62
65
  `Vertica::Error::SynchronizeError` will be raised. Use buffered resultsets to prevent this
63
66
  problem.
64
67
 
65
- ### Buffered result
66
-
67
68
  Store the result of the query method as a variable to get a buffered resultset:
68
69
 
69
70
  result = connection.query("SELECT id, name FROM my_table")
@@ -88,11 +89,29 @@ be returned as arrays by providing a row_style:
88
89
  By adding <code>:row_style => :array</code> to the connection hash, all results will be
89
90
  returned as array.
90
91
 
91
- # About
92
+ ### Loading data using COPY
93
+
94
+ Using the COPY statement, you can load arbitrary data from your ruby script.
95
+
96
+ connection.copy("COPY table FROM STDIN ...") do |stdin|
97
+ File.open('data.tsv', 'r') do |f|
98
+ begin
99
+ stdin << f.gets
100
+ end until f.eof?
101
+ end
102
+ end
103
+
104
+ You can also provide a filename or an IO object:
105
+
106
+ connection.copy("COPY table FROM STDIN ...", "data.csv")
107
+ connection.copy("COPY table FROM STDIN ...", io)
108
+
109
+
110
+ ## About
92
111
 
93
112
  This package is MIT licensed. See the LICENSE file for more information.
94
113
 
95
- ## Development
114
+ ### Development
96
115
 
97
116
  This project comes with a test suite. The unit tests in <tt>/test/unit</tt> do not need a database
98
117
  connection to run, the functional tests in <tt>/test/functional</tt> do need a working
@@ -108,9 +127,16 @@ prefixed with <tt>test_ruby_vertica_</tt>.
108
127
 
109
128
  * Asynchronous / EventMachine version
110
129
 
111
- ## Authors
130
+ ### Authors
131
+
132
+ * [Matt Bauer](https://github.com/mattbauer) all the hard work
133
+ * [Jeff Smick](https://github.com/sprsquish) current maintainer
134
+ * [Willem van Bergen](https://github.com/wvanbergen) contributor
135
+ * [Camilo Lopez](https://github.com/camilo) contributor
136
+ * [Erik Selin](https://github.com/tyro89) contributor
137
+
138
+ ### See also
112
139
 
113
- * [Matt Bauer](http://github.com/mattbauer) all the hard work
114
- * [Jeff Smick](http://github.com/sprsquish) current maintainer
115
- * [Willem van Bergen](http://github.com/wvanbergen) contributor
116
- * [Camilo Lopez](http://github.com/camilo) contributor
140
+ * [Documentation](http://www.rubydoc.info/gems/vertica/frames) API documentation.
141
+ * [sequel-vertica](https://github.com/camilo/sequel-vertica) Sequel integration.
142
+ * [newrelic-vertica](https://github.com/wvanbergen/newrelic-vertica) NewRelic monitoring of queries.
data/Rakefile CHANGED
@@ -1,47 +1,15 @@
1
- require 'rubygems'
2
- require 'rake'
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+ require "yard"
3
4
 
4
- begin
5
- require 'jeweler'
6
- Jeweler::Tasks.new do |gem|
7
- gem.name = 'vertica'
8
- gem.summary = 'Pure ruby library for interacting with Vertica'
9
- gem.description = 'Query Vertica with ruby'
10
-
11
- gem.email = 'sprsquish@gmail.com'
12
- gem.homepage = 'http://github.com/sprsquish/vertica'
13
- gem.authors = ['Jeff Smick', 'Matt Bauer', 'Willem van Bergen']
14
-
15
- gem.files = FileList["[A-Z]*", 'lib/**/*.rb'].to_a
16
-
17
- gem.test_files = FileList['test/**/*.rb']
18
-
19
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
20
- end
21
-
22
- Jeweler::GemcutterTasks.new
23
- rescue LoadError
24
- puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
25
- end
26
-
27
- require 'rake/testtask'
28
5
  Rake::TestTask.new(:test) do |test|
29
6
  test.libs << 'test' << 'lib'
30
7
  test.pattern = 'test/**/*_test.rb'
31
8
  test.verbose = true
32
9
  end
33
10
 
34
- begin
35
- require 'yard'
36
- YARD::Rake::YardocTask.new do |t|
37
- t.options = ['--no-private', '-m', 'markdown', '-o', './doc']
38
- end
39
- rescue LoadError
40
- task :yardoc do
41
- abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
42
- end
11
+ YARD::Rake::YardocTask.new(:doc) do |t|
12
+ t.options = ['--no-private', '-m', 'markdown', '-o', './doc']
43
13
  end
44
14
 
45
- desc 'Generate documentation'
46
- task :doc => :yard
47
15
  task :default => :test
data/lib/vertica.rb CHANGED
@@ -7,9 +7,6 @@ require 'bigdecimal'
7
7
  # prevent SQL injection.
8
8
  module Vertica
9
9
 
10
- # The version number of this library.
11
- VERSION = File.read(File.join(File.dirname(__FILE__), *%w[.. VERSION])).strip
12
-
13
10
  # The protocol version (3.0.0) implemented in this library.
14
11
  PROTOCOL_VERSION = 3 << 16
15
12
 
@@ -51,5 +48,6 @@ module Vertica
51
48
  end
52
49
  end
53
50
 
51
+ require 'vertica/version'
54
52
  require 'vertica/error'
55
53
  require 'vertica/connection'
@@ -6,7 +6,7 @@ module Vertica
6
6
  attr_reader :size
7
7
  attr_reader :data_type
8
8
 
9
- STRING_CONVERTER = String.new.respond_to?(:force_encoding) ? lambda { |s| s.force_encoding('utf-8') } : nil
9
+ STRING_CONVERTER = lambda { |s| s.force_encoding('utf-8') }
10
10
 
11
11
  DATA_TYPE_CONVERSIONS = [
12
12
  [:unspecified, nil],
@@ -70,7 +70,6 @@ class Vertica::Connection
70
70
  end
71
71
 
72
72
  def write_message(message)
73
- raise ArgumentError, "invalid message: (#{message.inspect})" unless message.respond_to?(:to_bytes)
74
73
  puts "=> #{message.inspect}" if @debug
75
74
  write_bytes message.to_bytes
76
75
  rescue SystemCallError, IOError => e
@@ -180,7 +179,12 @@ class Vertica::Connection
180
179
  def run_with_mutex(job)
181
180
  boot_connection if closed?
182
181
  if @mutex.try_lock
183
- job.run
182
+ begin
183
+ job.run
184
+ rescue StandardError
185
+ @mutex.unlock if @mutex.locked?
186
+ raise
187
+ end
184
188
  else
185
189
  raise Vertica::Error::SynchronizeError.new(job)
186
190
  end
data/lib/vertica/error.rb CHANGED
@@ -44,6 +44,7 @@ class Vertica::Error < StandardError
44
44
  '42V01' => (MissingRelation = Class.new(Vertica::Error::QueryError)),
45
45
  '42703' => (MissingColumn = Class.new(Vertica::Error::QueryError)),
46
46
  '22V04' => (CopyRejected = Class.new(Vertica::Error::QueryError)),
47
+ '08000' => (CopyFromStdinFailed = Class.new(Vertica::Error::QueryError)),
47
48
  '42501' => (PermissionDenied = Class.new(Vertica::Error::QueryError))
48
49
  }
49
50
  end
@@ -8,8 +8,7 @@ module Vertica
8
8
 
9
9
  def message_string(msg)
10
10
  msg = msg.join if msg.is_a?(Array)
11
- bytesize = msg.respond_to?(:bytesize) ? 4 + msg.bytesize : 4 + msg.size
12
- message_size = [bytesize].pack('N')
11
+ message_size = [4 + msg.bytesize].pack('N')
13
12
  message_id ? "#{message_id}#{message_size}#{msg}" : "#{message_size}#{msg}"
14
13
  end
15
14
  end
data/lib/vertica/query.rb CHANGED
@@ -69,7 +69,6 @@ class Vertica::Query
69
69
  end
70
70
  rescue => e
71
71
  @connection.write_message Vertica::Messages::CopyFail.new(e.message)
72
- raise
73
72
  end
74
73
  end
75
74
  end
@@ -0,0 +1,3 @@
1
+ module Vertica
2
+ VERSION = "0.11.1"
3
+ end
@@ -0,0 +1,8 @@
1
+ user:
2
+ password:
3
+ host:
4
+ port: 5433
5
+ database:
6
+ # ssl: true
7
+ # search_path:
8
+ # role:
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class ConnectionTest < Test::Unit::TestCase
3
+ class ConnectionTest < Minitest::Test
4
4
 
5
5
  def teardown
6
6
  @connection.close if @connection
@@ -57,8 +57,8 @@ class ConnectionTest < Test::Unit::TestCase
57
57
  connection.reset_connection
58
58
 
59
59
  assert_valid_open_connection(connection)
60
- assert_not_equal original_backend_pid, connection.backend_pid
61
- assert_not_equal original_backend_key, connection.backend_key
60
+ assert original_backend_pid != connection.backend_pid
61
+ assert original_backend_key != connection.backend_key
62
62
  assert_equal :no_transaction, connection.transaction_status
63
63
  end
64
64
 
@@ -76,7 +76,7 @@ class ConnectionTest < Test::Unit::TestCase
76
76
  def test_connection_inspect_should_not_print_password
77
77
  connection = Vertica::Connection.new(TEST_CONNECTION_HASH)
78
78
  inspected_string = connection.inspect
79
- assert_no_match /:password=>#{TEST_CONNECTION_HASH[:password]}/, inspected_string
79
+ assert inspected_string !~ /:password=>#{TEST_CONNECTION_HASH[:password]}/
80
80
  end
81
81
 
82
82
  def test_connection_timed_out_error
@@ -1,7 +1,8 @@
1
1
  require 'test_helper'
2
2
  require 'zlib'
3
+ class TestError < StandardError; end
3
4
 
4
- class QueryTest < Test::Unit::TestCase
5
+ class QueryTest < Minitest::Test
5
6
 
6
7
  def setup
7
8
  @connection = Vertica::Connection.new(TEST_CONNECTION_HASH)
@@ -161,6 +162,35 @@ class QueryTest < Test::Unit::TestCase
161
162
  assert_equal [[1, "matt"], [11, "Stuff"], [12, "More stuff"], [13, "Final stuff"]], result.rows
162
163
  end
163
164
 
165
+ def test_copy_with_ruby_exception
166
+ 2.times do
167
+ begin
168
+ @connection.copy "COPY test_ruby_vertica_table FROM STDIN" do |data|
169
+ data.write "11|#{"a" * 10}\n"
170
+ raise TestError
171
+ end
172
+ rescue Vertica::Error::CopyFromStdinFailed
173
+ end
174
+
175
+ result = @connection.query("SELECT id FROM test_ruby_vertica_table ORDER BY id", :row_style => :array)
176
+ assert_equal 1, result.length
177
+ end
178
+ end
179
+
180
+ def test_copy_with_backend_exception
181
+ 2.times do
182
+ begin
183
+ @connection.copy "COPY test_ruby_vertica_table FROM STDIN ABORT ON ERROR" do |data|
184
+ data.write "11|#{"a" * 10}|11\n" # write invalid data
185
+ end
186
+ rescue Vertica::Error::CopyRejected
187
+ end
188
+
189
+ result = @connection.query("SELECT id FROM test_ruby_vertica_table ORDER BY id", :row_style => :array)
190
+ assert_equal 1, result.length
191
+ end
192
+ end
193
+
164
194
  def test_copy_in_with_file
165
195
  filename = File.expand_path('../../resources/test_ruby_vertica_table.csv', __FILE__)
166
196
  @connection.copy "COPY test_ruby_vertica_table FROM STDIN", filename
@@ -211,7 +241,7 @@ class QueryTest < Test::Unit::TestCase
211
241
  end
212
242
 
213
243
  def test_raise_when_connection_is_in_use
214
- assert_raise(Vertica::Error::SynchronizeError) do
244
+ assert_raises(Vertica::Error::SynchronizeError) do
215
245
  @connection.query("SELECT 1 UNION SELECT 2") do |record|
216
246
  @connection.query("SELECT 3")
217
247
  end
@@ -1,7 +1,7 @@
1
1
  # encoding : UTF-8
2
2
  require 'test_helper'
3
3
 
4
- class ValueConversionTest < Test::Unit::TestCase
4
+ class ValueConversionTest < Minitest::Test
5
5
 
6
6
  def setup
7
7
  @connection = Vertica::Connection.new(TEST_CONNECTION_HASH.merge(:row_style => :array))
@@ -0,0 +1,3 @@
1
+ 11|Stuff
2
+ 12|More stuff
3
+ 13|Final stuff
data/test/test_helper.rb CHANGED
@@ -2,7 +2,8 @@ require 'rubygems'
2
2
  require 'bundler/setup'
3
3
 
4
4
  require 'yaml'
5
- require 'test/unit'
5
+ require 'minitest/autorun'
6
+ require 'minitest/pride'
6
7
 
7
8
  require 'vertica'
8
9
 
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class BackendMessageTest < Test::Unit::TestCase
3
+ class BackendMessageTest < Minitest::Test
4
4
 
5
5
  def test_cleartext_authentication_message
6
6
  msg = Vertica::Messages::Authentication.new("\x00\x00\x00\x03")
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class FrontendMessageTest < Test::Unit::TestCase
3
+ class FrontendMessageTest < Minitest::Test
4
4
 
5
5
  def test_copy_done_message
6
6
  message = Vertica::Messages::CopyDone.new
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class QuotingTest < Test::Unit::TestCase
3
+ class QuotingTest < Minitest::Test
4
4
 
5
5
  def test_quote_identifier
6
6
  assert_equal '"test"', Vertica.quote_identifier(:test)
data/vertica.gemspec ADDED
@@ -0,0 +1,27 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ lib = File.expand_path('../lib', __FILE__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'vertica/version'
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = "vertica"
9
+ s.summary = "Pure Ruby library for interacting with Vertica"
10
+ s.description = "Query Vertica with ruby"
11
+ s.homepage = "https://github.com/sprsquish/vertica"
12
+ s.license = "MIT"
13
+ s.version = Vertica::VERSION
14
+
15
+ s.authors = ["Jeff Smick", "Matt Bauer", "Willem van Bergen"]
16
+ s.email = ["sprsquish@gmail.com", "matt@ciderapps.com", "willem@railsdoctors.com"]
17
+
18
+ s.extra_rdoc_files = ["README.md"]
19
+ s.require_paths = ["lib"]
20
+
21
+ s.files = `git ls-files`.split($/)
22
+ s.test_files = s.files.grep(%r{^(test|spec|features)/})
23
+
24
+ s.add_development_dependency 'rake'
25
+ s.add_development_dependency 'yard'
26
+ s.add_development_dependency 'minitest', '~> 5'
27
+ end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vertica
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
5
- prerelease:
4
+ version: 0.11.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jeff Smick
@@ -11,54 +10,66 @@ authors:
11
10
  autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2013-08-28 00:00:00.000000000 Z
13
+ date: 2013-10-31 00:00:00.000000000 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: rake
18
17
  requirement: !ruby/object:Gem::Requirement
19
- none: false
20
18
  requirements:
21
19
  - - ! '>='
22
20
  - !ruby/object:Gem::Version
23
21
  version: '0'
24
- type: :runtime
22
+ type: :development
25
23
  prerelease: false
26
24
  version_requirements: !ruby/object:Gem::Requirement
27
- none: false
28
25
  requirements:
29
26
  - - ! '>='
30
27
  - !ruby/object:Gem::Version
31
28
  version: '0'
32
29
  - !ruby/object:Gem::Dependency
33
- name: jeweler
30
+ name: yard
34
31
  requirement: !ruby/object:Gem::Requirement
35
- none: false
36
32
  requirements:
37
33
  - - ! '>='
38
34
  - !ruby/object:Gem::Version
39
35
  version: '0'
40
- type: :runtime
36
+ type: :development
41
37
  prerelease: false
42
38
  version_requirements: !ruby/object:Gem::Requirement
43
- none: false
44
39
  requirements:
45
40
  - - ! '>='
46
41
  - !ruby/object:Gem::Version
47
42
  version: '0'
43
+ - !ruby/object:Gem::Dependency
44
+ name: minitest
45
+ requirement: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ~>
48
+ - !ruby/object:Gem::Version
49
+ version: '5'
50
+ type: :development
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ~>
55
+ - !ruby/object:Gem::Version
56
+ version: '5'
48
57
  description: Query Vertica with ruby
49
- email: sprsquish@gmail.com
58
+ email:
59
+ - sprsquish@gmail.com
60
+ - matt@ciderapps.com
61
+ - willem@railsdoctors.com
50
62
  executables: []
51
63
  extensions: []
52
64
  extra_rdoc_files:
53
- - LICENSE
54
65
  - README.md
55
66
  files:
67
+ - .gitignore
68
+ - .infinity_test
56
69
  - Gemfile
57
- - Gemfile.lock
58
70
  - LICENSE
59
71
  - README.md
60
72
  - Rakefile
61
- - VERSION
62
73
  - lib/vertica.rb
63
74
  - lib/vertica/column.rb
64
75
  - lib/vertica/connection.rb
@@ -100,42 +111,49 @@ files:
100
111
  - lib/vertica/messages/message.rb
101
112
  - lib/vertica/query.rb
102
113
  - lib/vertica/result.rb
114
+ - lib/vertica/version.rb
115
+ - test/connection.yml.example
103
116
  - test/functional/connection_test.rb
104
117
  - test/functional/query_test.rb
105
118
  - test/functional/value_conversion_test.rb
119
+ - test/resources/test_ruby_vertica_table.csv
106
120
  - test/test_helper.rb
107
121
  - test/unit/backend_message_test.rb
108
122
  - test/unit/frontend_message_test.rb
109
123
  - test/unit/quoting_test.rb
110
- homepage: http://github.com/sprsquish/vertica
111
- licenses: []
124
+ - vertica.gemspec
125
+ homepage: https://github.com/sprsquish/vertica
126
+ licenses:
127
+ - MIT
128
+ metadata: {}
112
129
  post_install_message:
113
130
  rdoc_options: []
114
131
  require_paths:
115
132
  - lib
116
133
  required_ruby_version: !ruby/object:Gem::Requirement
117
- none: false
118
134
  requirements:
119
135
  - - ! '>='
120
136
  - !ruby/object:Gem::Version
121
137
  version: '0'
122
138
  required_rubygems_version: !ruby/object:Gem::Requirement
123
- none: false
124
139
  requirements:
125
140
  - - ! '>='
126
141
  - !ruby/object:Gem::Version
127
142
  version: '0'
128
143
  requirements: []
129
144
  rubyforge_project:
130
- rubygems_version: 1.8.23
145
+ rubygems_version: 2.1.4
131
146
  signing_key:
132
- specification_version: 3
133
- summary: Pure ruby library for interacting with Vertica
147
+ specification_version: 4
148
+ summary: Pure Ruby library for interacting with Vertica
134
149
  test_files:
150
+ - test/connection.yml.example
135
151
  - test/functional/connection_test.rb
136
152
  - test/functional/query_test.rb
137
153
  - test/functional/value_conversion_test.rb
154
+ - test/resources/test_ruby_vertica_table.csv
138
155
  - test/test_helper.rb
139
156
  - test/unit/backend_message_test.rb
140
157
  - test/unit/frontend_message_test.rb
141
158
  - test/unit/quoting_test.rb
159
+ has_rdoc:
data/Gemfile.lock DELETED
@@ -1,20 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- git (1.2.5)
5
- jeweler (1.8.4)
6
- bundler (~> 1.0)
7
- git (>= 1.2.5)
8
- rake
9
- rdoc
10
- json (1.7.7)
11
- rake (10.0.4)
12
- rdoc (3.12.2)
13
- json (~> 1.4)
14
-
15
- PLATFORMS
16
- ruby
17
-
18
- DEPENDENCIES
19
- jeweler
20
- rake
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.11.0