crate_ruby 0.2.0 → 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.
- checksums.yaml +4 -4
- data/CHANGES.rst +69 -0
- data/LICENSE +0 -16
- data/NOTICE +20 -7
- data/README.rst +82 -50
- data/lib/crate_ruby/client.rb +8 -6
- data/lib/crate_ruby/error.rb +4 -1
- data/lib/crate_ruby/result_set.rb +3 -1
- data/lib/crate_ruby/version.rb +4 -2
- data/lib/crate_ruby.rb +9 -9
- metadata +118 -45
- data/.gitignore +0 -24
- data/.travis.yml +0 -15
- data/CONTRIBUTING.rst +0 -10
- data/DEVELOP.rst +0 -46
- data/Gemfile +0 -4
- data/Rakefile +0 -7
- data/crate_ruby.gemspec +0 -44
- data/devtools/create_tag.sh +0 -77
- data/history.txt +0 -32
- data/log/.keep +0 -0
- data/spec/bootstrap.rb +0 -74
- data/spec/crate_ruby/client_spec.rb +0 -252
- data/spec/crate_ruby/result_set_spec.rb +0 -93
- data/spec/spec_helper.rb +0 -43
- data/spec/support/test_cluster.rb +0 -107
- data/spec/uploads/get_logo-crate.png +0 -0
- data/spec/uploads/logo-crate.png +0 -0
- data/spec/uploads/text.txt +0 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eb9fbd3574170da32b20d02c56f1666cf82334458b62809bb1d6d49f37684a8e
|
|
4
|
+
data.tar.gz: 632eeb1dca28f6a61c5be2efb6c60c97e0e31e12a0b1de4f9bed77efa7867695
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dbaf409d34f4df0c2fc9b61ee568da033247e7e1b9faf7afea2fd4e676034847bbea949c63b85ba6ade9514427858af34e6772c069d9df86ebb56d91a6f3a9d5
|
|
7
|
+
data.tar.gz: cf3fb53674c6698c6ad620d3ba7e4377402809dff96de55f1d0f7ad9b1ab2cc52df9caf7b29d383f5911d4bee83db50b61f31a9a126644fd63cf33b455c5c31b
|
data/CHANGES.rst
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
####################
|
|
2
|
+
crate_ruby changelog
|
|
3
|
+
####################
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
unreleased
|
|
7
|
+
==========
|
|
8
|
+
|
|
9
|
+
0.2.2
|
|
10
|
+
=====
|
|
11
|
+
|
|
12
|
+
- CI: Validated on recent versions of Ruby up to 4.1-dev
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
0.2.1
|
|
16
|
+
=====
|
|
17
|
+
|
|
18
|
+
- Prevent Base64 wrapping in basic auth headers, when the username/password for a
|
|
19
|
+
CrateDB cluster is particularly long. Thanks, @ahorner.
|
|
20
|
+
|
|
21
|
+
- Drop support for EOL Ruby versions. Thanks, @hammerhead.
|
|
22
|
+
|
|
23
|
+
- Add support for Ruby 3.1.
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
0.2.0
|
|
27
|
+
=====
|
|
28
|
+
|
|
29
|
+
- Add SSL support
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
0.1.0
|
|
33
|
+
=====
|
|
34
|
+
|
|
35
|
+
- HTTP Basic Authentication support that comes with 2.3.0
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
0.0.9
|
|
39
|
+
=====
|
|
40
|
+
|
|
41
|
+
- Fix breaking changes that kept driver from working with crate > v2.0
|
|
42
|
+
- Remove Ruby 1.9.3 from ``travis.yml``
|
|
43
|
+
- Client now supports HTTP options
|
|
44
|
+
- Update ``travis.yml`` and fix broken test
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
0.0.8
|
|
48
|
+
=====
|
|
49
|
+
|
|
50
|
+
- Undocumented gem release
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
0.0.7
|
|
54
|
+
=====
|
|
55
|
+
|
|
56
|
+
- Use prepared statements for insert
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
0.0.6
|
|
60
|
+
=====
|
|
61
|
+
|
|
62
|
+
- Now officially supported by Crate Data and available under the
|
|
63
|
+
Apache 2.0 License
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
0.0.5
|
|
67
|
+
=====
|
|
68
|
+
|
|
69
|
+
- ``#execute`` now supports parameter substitution
|
data/LICENSE
CHANGED
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
CRATE Ruby
|
|
2
|
-
Copyright 2013-2015 CRATE Technology GmbH ("Crate")
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Licensed to CRATE Technology GmbH (referred to in this notice as "Crate")
|
|
6
|
-
under one or more contributor license agreements. See the NOTICE file
|
|
7
|
-
distributed with this work for additional information regarding copyright
|
|
8
|
-
ownership.
|
|
9
|
-
|
|
10
|
-
Crate licenses this software to you under the Apache License, Version 2.0.
|
|
11
|
-
However, if you have executed another commercial license agreement with
|
|
12
|
-
Crate these terms will supersede the license and you may use the software
|
|
13
|
-
solely pursuant to the terms of the relevant commercial agreement.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
=========================================================================
|
|
17
1
|
|
|
18
2
|
|
|
19
3
|
Apache License
|
data/NOTICE
CHANGED
|
@@ -1,11 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
Copyright 2013-
|
|
1
|
+
CrateDB Ruby
|
|
2
|
+
Copyright 2013-2022 Crate.IO GmbH ("Crate")
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Licensed to Crate.IO GmbH (referred to in this notice as "Crate") under one or
|
|
6
|
+
more contributor license agreements.
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
main parts of this project.
|
|
8
|
+
Unless otherwise stated, every component of the CrateDB Ruby is licensed under
|
|
9
|
+
the Apache License, Version 2.0.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Third-party components bundled with the CrateDB Ruby are listed in the LICENSE
|
|
12
|
+
file along with their respective licenses. Any additional mandatory notices
|
|
13
|
+
pertaining to those dependencies will be reproduced in this file.
|
|
14
|
+
|
|
15
|
+
Crate provides pre-built releases for convenience, also known as convenience
|
|
16
|
+
releases. Building the CrateDB Ruby from source pulls in a number of additional
|
|
17
|
+
third-party dependencies. Hence, convenience releases will contain a mix of
|
|
18
|
+
CrateDB Ruby source code and third-party build-time dependencies not listed in
|
|
19
|
+
the LICENSE file or in this file.
|
|
20
|
+
|
|
21
|
+
Crate is committed to only using permissively licensed third-party code.
|
|
22
|
+
However, for the time being, if you make use of convenience releases, it is
|
|
23
|
+
your responsibility to check the licensing status of the bundled third-party
|
|
24
|
+
build-time dependencies.
|
data/README.rst
CHANGED
|
@@ -1,53 +1,69 @@
|
|
|
1
|
-
|
|
1
|
+
###################
|
|
2
2
|
CrateDB Ruby Client
|
|
3
|
-
|
|
3
|
+
###################
|
|
4
|
+
|
|
5
|
+
.. image:: https://github.com/crate/crate_ruby/workflows/Tests/badge.svg
|
|
6
|
+
:target: https://github.com/crate/crate_ruby/actions?workflow=Tests
|
|
7
|
+
:alt: Build Status
|
|
4
8
|
|
|
5
9
|
.. image:: https://badge.fury.io/rb/crate_ruby.svg
|
|
6
|
-
:target:
|
|
10
|
+
:target: https://rubygems.org/gems/crate_ruby
|
|
7
11
|
:alt: Gem Version
|
|
8
12
|
|
|
9
|
-
.. image:: https://
|
|
10
|
-
:target: https://
|
|
11
|
-
:alt:
|
|
13
|
+
.. image:: https://badgen.net/rubygems/dt/crate_ruby
|
|
14
|
+
:target: https://rubygems.org/gems/crate_ruby
|
|
15
|
+
:alt: Total downloads
|
|
12
16
|
|
|
13
|
-
.. image:: https://codeclimate.com/github/crate/crate_ruby.png
|
|
14
|
-
:target: https://codeclimate.com/github/crate/crate_ruby
|
|
15
|
-
:alt: Code Climate
|
|
16
17
|
|
|
17
18
|
|
|
|
18
19
|
|
|
19
|
-
A Ruby client library for
|
|
20
|
+
A Ruby client library for the CrateDB HTTP interface.
|
|
21
|
+
|
|
22
|
+
- Query execution support.
|
|
23
|
+
- DDL command and schema introspection shortcuts.
|
|
24
|
+
- Support for BLOB tables.
|
|
25
|
+
- Foundation for the `activerecord-crate-adapter`_.
|
|
26
|
+
|
|
20
27
|
|
|
28
|
+
*************
|
|
21
29
|
Prerequisites
|
|
22
|
-
|
|
30
|
+
*************
|
|
23
31
|
|
|
24
32
|
You will need Ruby 2.0 or greater.
|
|
25
33
|
|
|
34
|
+
|
|
35
|
+
************
|
|
26
36
|
Installation
|
|
27
|
-
|
|
37
|
+
************
|
|
28
38
|
|
|
29
|
-
The CrateDB Ruby client is available
|
|
39
|
+
The CrateDB Ruby client is available on RubyGems.org, see `crate_ruby on RubyGems.org`_.
|
|
30
40
|
|
|
31
|
-
|
|
41
|
+
To use it, add this line to your application's ``Gemfile``::
|
|
32
42
|
|
|
33
43
|
gem 'crate_ruby'
|
|
34
44
|
|
|
35
|
-
Or
|
|
45
|
+
Or install it manually::
|
|
46
|
+
|
|
47
|
+
gem install crate_ruby
|
|
48
|
+
|
|
36
49
|
|
|
37
|
-
|
|
50
|
+
********
|
|
51
|
+
Synopsis
|
|
52
|
+
********
|
|
38
53
|
|
|
39
|
-
|
|
40
|
-
========
|
|
54
|
+
Set up the client.
|
|
41
55
|
|
|
42
|
-
|
|
56
|
+
.. code:: ruby
|
|
43
57
|
|
|
44
58
|
require 'crate_ruby'
|
|
45
59
|
|
|
46
|
-
client = CrateRuby::Client.new
|
|
60
|
+
client = CrateRuby::Client.new()
|
|
47
61
|
|
|
48
|
-
Execute SQL queries
|
|
62
|
+
Execute SQL queries.
|
|
49
63
|
|
|
50
|
-
|
|
64
|
+
.. code:: ruby
|
|
65
|
+
|
|
66
|
+
result = client.execute("SELECT * FROM posts")
|
|
51
67
|
=> #<CrateRuby::ResultSet:0x00000002a9c5e8 @rowcount=1, @duration=5>
|
|
52
68
|
|
|
53
69
|
result.each do |row|
|
|
@@ -59,13 +75,19 @@ Execute SQL queries like so::
|
|
|
59
75
|
=> ["id", "my_column", "my_integer_col"]
|
|
60
76
|
|
|
61
77
|
|
|
62
|
-
Perform parameter substitution
|
|
78
|
+
Perform parameter substitution.
|
|
79
|
+
|
|
80
|
+
.. code:: ruby
|
|
63
81
|
|
|
64
82
|
client.execute(
|
|
65
83
|
"INSERT INTO posts (id, title, tags) VALUES (\$1, \$2, \$3)",
|
|
66
84
|
[1, "My life with crate", ['awesome', 'cool']])
|
|
67
85
|
|
|
68
|
-
Manipulate BLOBs
|
|
86
|
+
Manipulate BLOBs.
|
|
87
|
+
|
|
88
|
+
.. code:: ruby
|
|
89
|
+
|
|
90
|
+
require 'digest'
|
|
69
91
|
|
|
70
92
|
digest = Digest::SHA1.file(file_path).hexdigest
|
|
71
93
|
|
|
@@ -82,51 +104,61 @@ Manipulate BLOBs like so::
|
|
|
82
104
|
# deletion
|
|
83
105
|
client.blob_delete(table_name, digest)
|
|
84
106
|
|
|
85
|
-
|
|
107
|
+
A default schema can be set by passing in the schema name.
|
|
108
|
+
|
|
109
|
+
.. code:: ruby
|
|
110
|
+
|
|
111
|
+
CrateRuby::Client.new(['localhost:4200'], schema: 'my_schema')
|
|
112
|
+
|
|
113
|
+
Authentication credentials can be passed to the client if needed.
|
|
86
114
|
|
|
87
|
-
|
|
115
|
+
.. code:: ruby
|
|
88
116
|
|
|
89
|
-
CrateRuby::Client.new(['localhost:
|
|
117
|
+
CrateRuby::Client.new(['localhost:4200'], username: 'foo', password: 'supersecret')
|
|
90
118
|
|
|
91
|
-
|
|
119
|
+
SSL can be enabled.
|
|
92
120
|
|
|
93
|
-
|
|
121
|
+
.. code:: ruby
|
|
94
122
|
|
|
95
|
-
CrateRuby::Client.new(['localhost:
|
|
123
|
+
CrateRuby::Client.new(['localhost:4200'], ssl: true)
|
|
96
124
|
|
|
97
125
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
| Crate Ruby | CrateDB |
|
|
102
|
-
+==============+============+
|
|
103
|
-
| < 0.9 | < 0.57 |
|
|
104
|
-
+--------------+------------+
|
|
105
|
-
| 0.9 | >= 0.57 |
|
|
106
|
-
+--------------+------------+
|
|
126
|
+
*****
|
|
127
|
+
Notes
|
|
128
|
+
*****
|
|
107
129
|
|
|
130
|
+
See also `CrateDB examples for Ruby`_ for a basic example program, which
|
|
131
|
+
exercises both the `crate_ruby`_ driver, as well as Ruby's canonical `pg`_
|
|
132
|
+
driver.
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
************
|
|
108
136
|
Contributing
|
|
109
|
-
|
|
137
|
+
************
|
|
110
138
|
|
|
111
|
-
This project is primarily maintained by Crate.
|
|
112
|
-
contributions!
|
|
139
|
+
This project is primarily maintained by `Crate.IO GmbH`_,
|
|
140
|
+
but we welcome community contributions!
|
|
113
141
|
|
|
114
142
|
See the `developer docs`_ and the `contribution docs`_ for more information.
|
|
115
143
|
|
|
144
|
+
|
|
145
|
+
****
|
|
116
146
|
Help
|
|
117
|
-
|
|
147
|
+
****
|
|
118
148
|
|
|
119
149
|
Looking for more help?
|
|
120
150
|
|
|
121
|
-
- Check `
|
|
122
|
-
|
|
123
|
-
- Get `paid support`_
|
|
151
|
+
- Check out our `support channels`_
|
|
152
|
+
|
|
124
153
|
|
|
154
|
+
.. _activerecord-crate-adapter: https://github.com/crate/activerecord-crate-adapter
|
|
125
155
|
.. _contribution docs: CONTRIBUTING.rst
|
|
126
|
-
.. _Crate.
|
|
156
|
+
.. _Crate.IO GmbH: https://crate.io
|
|
127
157
|
.. _CrateDB: https://github.com/crate/crate
|
|
158
|
+
.. _CrateDB examples for Ruby: https://github.com/crate/cratedb-examples/tree/main/by-language/ruby
|
|
159
|
+
.. _crate_ruby: https://rubygems.org/gems/crate_ruby
|
|
160
|
+
.. _crate_ruby on RubyGems.org: https://rubygems.org/gems/crate_ruby
|
|
128
161
|
.. _developer docs: DEVELOP.rst
|
|
129
162
|
.. _gem: https://rubygems.org/
|
|
130
|
-
..
|
|
131
|
-
..
|
|
132
|
-
.. _StackOverflow: https://stackoverflow.com/tags/crate
|
|
163
|
+
.. _pg: https://rubygems.org/gems/pg
|
|
164
|
+
.. _support channels: https://crate.io/support/
|
data/lib/crate_ruby/client.rb
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
#
|
|
2
|
-
# Licensed to
|
|
4
|
+
# Licensed to Crate.IO GmbH ("Crate") under one or more contributor
|
|
3
5
|
# license agreements. See the NOTICE file distributed with this work for
|
|
4
6
|
# additional information regarding copyright ownership. Crate licenses
|
|
5
7
|
# this file to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -25,8 +27,8 @@ require 'base64'
|
|
|
25
27
|
module CrateRuby
|
|
26
28
|
# Client to interact with Crate.io DB
|
|
27
29
|
class Client
|
|
28
|
-
DEFAULT_HOST = '127.0.0.1'
|
|
29
|
-
DEFAULT_PORT = '4200'
|
|
30
|
+
DEFAULT_HOST = '127.0.0.1'
|
|
31
|
+
DEFAULT_PORT = '4200'
|
|
30
32
|
|
|
31
33
|
attr_accessor :logger, :schema, :username, :password
|
|
32
34
|
|
|
@@ -198,7 +200,7 @@ module CrateRuby
|
|
|
198
200
|
|
|
199
201
|
def insert(table_name, attributes)
|
|
200
202
|
vals = attributes.values
|
|
201
|
-
identifiers = attributes.keys.map {|v| %
|
|
203
|
+
identifiers = attributes.keys.map { |v| %("#{v}") }.join(', ')
|
|
202
204
|
binds = vals.count.times.map { |i| "$#{i + 1}" }.join(',')
|
|
203
205
|
stmt = %{INSERT INTO "#{table_name}" (#{identifiers}) VALUES(#{binds})}
|
|
204
206
|
execute(stmt, vals)
|
|
@@ -223,7 +225,7 @@ module CrateRuby
|
|
|
223
225
|
host, port = @servers.first.split(':')
|
|
224
226
|
http = Net::HTTP.new(host, port)
|
|
225
227
|
http.use_ssl = true if @ssl
|
|
226
|
-
|
|
228
|
+
http
|
|
227
229
|
end
|
|
228
230
|
|
|
229
231
|
def request(req, http_options = {})
|
|
@@ -243,7 +245,7 @@ module CrateRuby
|
|
|
243
245
|
end
|
|
244
246
|
|
|
245
247
|
def encrypted_credentials
|
|
246
|
-
@encrypted_credentials ||= Base64.
|
|
248
|
+
@encrypted_credentials ||= Base64.strict_encode64 "#{username}:#{password}"
|
|
247
249
|
end
|
|
248
250
|
end
|
|
249
251
|
end
|
data/lib/crate_ruby/error.rb
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
#
|
|
2
|
-
# Licensed to
|
|
4
|
+
# Licensed to Crate.IO GmbH ("Crate") under one or more contributor
|
|
3
5
|
# license agreements. See the NOTICE file distributed with this work for
|
|
4
6
|
# additional information regarding copyright ownership. Crate licenses
|
|
5
7
|
# this file to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -21,5 +23,6 @@
|
|
|
21
23
|
module CrateRuby
|
|
22
24
|
# Base Error class
|
|
23
25
|
class CrateError < StandardError; end
|
|
26
|
+
|
|
24
27
|
class BlobExistsError < CrateError; end
|
|
25
28
|
end
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
#
|
|
2
|
-
# Licensed to
|
|
4
|
+
# Licensed to Crate.IO GmbH ("Crate") under one or more contributor
|
|
3
5
|
# license agreements. See the NOTICE file distributed with this work for
|
|
4
6
|
# additional information regarding copyright ownership. Crate licenses
|
|
5
7
|
# this file to you under the Apache License, Version 2.0 (the "License");
|
data/lib/crate_ruby/version.rb
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
#
|
|
2
|
-
# Licensed to
|
|
4
|
+
# Licensed to Crate.IO GmbH ("Crate") under one or more contributor
|
|
3
5
|
# license agreements. See the NOTICE file distributed with this work for
|
|
4
6
|
# additional information regarding copyright ownership. Crate licenses
|
|
5
7
|
# this file to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -19,5 +21,5 @@
|
|
|
19
21
|
# software solely pursuant to the terms of the relevant commercial agreement.
|
|
20
22
|
|
|
21
23
|
module CrateRuby
|
|
22
|
-
VERSION = '0.2.
|
|
24
|
+
VERSION = '0.2.2'
|
|
23
25
|
end
|
data/lib/crate_ruby.rb
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
#
|
|
2
|
-
# Licensed to
|
|
4
|
+
# Licensed to Crate.IO GmbH ("Crate") under one or more contributor
|
|
3
5
|
# license agreements. See the NOTICE file distributed with this work for
|
|
4
6
|
# additional information regarding copyright ownership. Crate licenses
|
|
5
7
|
# this file to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -18,18 +20,16 @@
|
|
|
18
20
|
# with Crate these terms will supersede the license and you may use the
|
|
19
21
|
# software solely pursuant to the terms of the relevant commercial agreement.
|
|
20
22
|
|
|
21
|
-
require 'crate_ruby/version'
|
|
22
|
-
require 'crate_ruby/error'
|
|
23
|
-
require 'crate_ruby/result_set'
|
|
24
|
-
require 'crate_ruby/client'
|
|
25
|
-
|
|
26
|
-
include CrateRuby
|
|
27
|
-
|
|
28
23
|
module CrateRuby
|
|
24
|
+
require 'crate_ruby/version'
|
|
25
|
+
require 'crate_ruby/error'
|
|
26
|
+
require 'crate_ruby/result_set'
|
|
27
|
+
require 'crate_ruby/client'
|
|
28
|
+
|
|
29
29
|
def self.logger
|
|
30
30
|
@logger ||= begin
|
|
31
31
|
require 'logger'
|
|
32
|
-
log = Logger.new(
|
|
32
|
+
log = Logger.new($stderr)
|
|
33
33
|
log.level = Logger::INFO
|
|
34
34
|
log
|
|
35
35
|
end
|
metadata
CHANGED
|
@@ -1,18 +1,31 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: crate_ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Christoph Klocker
|
|
8
|
-
-
|
|
9
|
-
autorequire:
|
|
8
|
+
- Crate.IO GmbH
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date:
|
|
11
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
|
15
|
-
name:
|
|
14
|
+
name: bundler
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - ">="
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '0'
|
|
20
|
+
type: :development
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - ">="
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '0'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: os
|
|
16
29
|
requirement: !ruby/object:Gem::Requirement
|
|
17
30
|
requirements:
|
|
18
31
|
- - ">="
|
|
@@ -31,77 +44,137 @@ dependencies:
|
|
|
31
44
|
requirements:
|
|
32
45
|
- - "~>"
|
|
33
46
|
- !ruby/object:Gem::Version
|
|
34
|
-
version: '
|
|
47
|
+
version: '3.10'
|
|
35
48
|
type: :development
|
|
36
49
|
prerelease: false
|
|
37
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
38
51
|
requirements:
|
|
39
52
|
- - "~>"
|
|
40
53
|
- !ruby/object:Gem::Version
|
|
41
|
-
version: '
|
|
42
|
-
|
|
54
|
+
version: '3.10'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: rubocop
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - "<"
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '1.40'
|
|
62
|
+
type: :development
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - "<"
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '1.40'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: rubocop-rspec
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - ">="
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '0'
|
|
76
|
+
type: :development
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - ">="
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '0'
|
|
83
|
+
- !ruby/object:Gem::Dependency
|
|
84
|
+
name: base64
|
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - ">="
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: '0'
|
|
90
|
+
type: :development
|
|
91
|
+
prerelease: false
|
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
+
requirements:
|
|
94
|
+
- - ">="
|
|
95
|
+
- !ruby/object:Gem::Version
|
|
96
|
+
version: '0'
|
|
97
|
+
- !ruby/object:Gem::Dependency
|
|
98
|
+
name: benchmark
|
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
|
100
|
+
requirements:
|
|
101
|
+
- - ">="
|
|
102
|
+
- !ruby/object:Gem::Version
|
|
103
|
+
version: '0'
|
|
104
|
+
type: :development
|
|
105
|
+
prerelease: false
|
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
+
requirements:
|
|
108
|
+
- - ">="
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
version: '0'
|
|
111
|
+
- !ruby/object:Gem::Dependency
|
|
112
|
+
name: ostruct
|
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
|
114
|
+
requirements:
|
|
115
|
+
- - ">="
|
|
116
|
+
- !ruby/object:Gem::Version
|
|
117
|
+
version: '0'
|
|
118
|
+
type: :development
|
|
119
|
+
prerelease: false
|
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
+
requirements:
|
|
122
|
+
- - ">="
|
|
123
|
+
- !ruby/object:Gem::Version
|
|
124
|
+
version: '0'
|
|
125
|
+
description: A Ruby library for the CrateDB HTTP interface with query support, DDL
|
|
126
|
+
command and schema introspection shortcuts, and support for BLOB tables.
|
|
43
127
|
email:
|
|
44
128
|
- office@crate.io
|
|
45
129
|
executables: []
|
|
46
130
|
extensions: []
|
|
47
|
-
extra_rdoc_files:
|
|
131
|
+
extra_rdoc_files:
|
|
132
|
+
- CHANGES.rst
|
|
133
|
+
- LICENSE
|
|
134
|
+
- NOTICE
|
|
135
|
+
- README.rst
|
|
48
136
|
files:
|
|
49
|
-
-
|
|
50
|
-
- ".travis.yml"
|
|
51
|
-
- CONTRIBUTING.rst
|
|
52
|
-
- DEVELOP.rst
|
|
53
|
-
- Gemfile
|
|
137
|
+
- CHANGES.rst
|
|
54
138
|
- LICENSE
|
|
55
139
|
- NOTICE
|
|
56
140
|
- README.rst
|
|
57
|
-
- Rakefile
|
|
58
|
-
- crate_ruby.gemspec
|
|
59
|
-
- devtools/create_tag.sh
|
|
60
|
-
- history.txt
|
|
61
141
|
- lib/crate_ruby.rb
|
|
62
142
|
- lib/crate_ruby/client.rb
|
|
63
143
|
- lib/crate_ruby/error.rb
|
|
64
144
|
- lib/crate_ruby/result_set.rb
|
|
65
145
|
- lib/crate_ruby/version.rb
|
|
66
|
-
|
|
67
|
-
- spec/bootstrap.rb
|
|
68
|
-
- spec/crate_ruby/client_spec.rb
|
|
69
|
-
- spec/crate_ruby/result_set_spec.rb
|
|
70
|
-
- spec/spec_helper.rb
|
|
71
|
-
- spec/support/test_cluster.rb
|
|
72
|
-
- spec/uploads/get_logo-crate.png
|
|
73
|
-
- spec/uploads/logo-crate.png
|
|
74
|
-
- spec/uploads/text.txt
|
|
75
|
-
homepage: http://crate.io
|
|
146
|
+
homepage: https://crate.io
|
|
76
147
|
licenses:
|
|
77
148
|
- Apache-2.0
|
|
78
|
-
metadata:
|
|
79
|
-
|
|
80
|
-
|
|
149
|
+
metadata:
|
|
150
|
+
bug_tracker_uri: https://github.com/crate/crate_ruby/issues
|
|
151
|
+
changelog_uri: https://github.com/crate/crate_ruby/blob/main/CHANGES.rst
|
|
152
|
+
documentation_uri: https://www.rubydoc.info/gems/crate_ruby
|
|
153
|
+
homepage_uri: https://crate.io
|
|
154
|
+
source_code_uri: https://github.com/crate/crate_ruby
|
|
155
|
+
rubygems_mfa_required: 'true'
|
|
156
|
+
rdoc_options:
|
|
157
|
+
- "--title"
|
|
158
|
+
- CrateDB HTTP client library for Ruby
|
|
159
|
+
- "--main"
|
|
160
|
+
- README.rst
|
|
161
|
+
- "--line-numbers"
|
|
162
|
+
- "--inline-source"
|
|
163
|
+
- "--quiet"
|
|
81
164
|
require_paths:
|
|
82
165
|
- lib
|
|
83
166
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
84
167
|
requirements:
|
|
85
168
|
- - ">="
|
|
86
169
|
- !ruby/object:Gem::Version
|
|
87
|
-
version: '
|
|
170
|
+
version: '0'
|
|
88
171
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
172
|
requirements:
|
|
90
173
|
- - ">="
|
|
91
174
|
- !ruby/object:Gem::Version
|
|
92
175
|
version: '0'
|
|
93
176
|
requirements: []
|
|
94
|
-
|
|
95
|
-
rubygems_version: 2.7.6
|
|
96
|
-
signing_key:
|
|
177
|
+
rubygems_version: 4.0.2
|
|
97
178
|
specification_version: 4
|
|
98
|
-
summary:
|
|
99
|
-
test_files:
|
|
100
|
-
- spec/bootstrap.rb
|
|
101
|
-
- spec/crate_ruby/client_spec.rb
|
|
102
|
-
- spec/crate_ruby/result_set_spec.rb
|
|
103
|
-
- spec/spec_helper.rb
|
|
104
|
-
- spec/support/test_cluster.rb
|
|
105
|
-
- spec/uploads/get_logo-crate.png
|
|
106
|
-
- spec/uploads/logo-crate.png
|
|
107
|
-
- spec/uploads/text.txt
|
|
179
|
+
summary: CrateDB HTTP client library for Ruby
|
|
180
|
+
test_files: []
|