swcdb 0.5.4.0 → 0.5.5.0

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
2
  SHA256:
3
- metadata.gz: eae6442dc95079726f272f0be2f8120c785c322c0e59997ae74df9fd78c3c0f2
4
- data.tar.gz: f798d7b04ab5a26b505a28c941fd9f59061fb487f6429eed97ea2267e13427b3
3
+ metadata.gz: ed995e7c92c010c4fec30856935c4977ee27a7cb163810b8cfce213f17f8c129
4
+ data.tar.gz: 8e00390f74a52624d1c1d254fe8788e3bd7189c76f428af97c73bd08da9c8732
5
5
  SHA512:
6
- metadata.gz: e6f2f76f418b0d8ae9e98e798c5e7e390b1cbb15f3c9ea7270b63cf575811724c340a46a70f538ba7fe4cfee7fc06129bf58ea97dc5c8f9b19cfb0d512f693a4
7
- data.tar.gz: 0a8c9ecde516a1872f8362efe46fb8522069b38d71f288c05f77cc3c2ebb46405b390e82459f21d95d6b1db2e3f9a68fe5fe24b73323dafa225cf9be06311e7e
6
+ metadata.gz: 4f223c722d24efc672a56cadcacd12cc28e80db0fa4c70f27dfcdd34ae513a8a737475017f50e745e4c0ba89e3a336953916ff5cd9b4dbc2043813b4b5ca375b
7
+ data.tar.gz: 685412a2a4e391165d45680e4f8b151632b1a6dd549bd962c9542f0ea3c7c1f287bd5b6aa16f48d7c353af69a0aaae03dd33cfc338bbd4d4c71e8fa2eb645841
@@ -5,27 +5,27 @@ require 'swcdb/thrift/gen/service'
5
5
 
6
6
  module Swcdb
7
7
  module Thrift
8
- # The SWC-DB Thrift Client
8
+ # The SWC-DB Thrift Client
9
9
  class Client < Gen::Service::Client
10
-
10
+
11
11
  # SWC-DB Thrift Client initializer
12
12
  #
13
13
  # Example:
14
- # # irb
15
- # >> require 'swcdb/thrift/client'
16
- # >> client = Swcdb::Thrift::Client.new("localhost", 18000)
17
- # >> schemas = client.sql_list_columns("get columns 1,2,3,4")
14
+ # ~/ # irb
15
+ # irb> require 'swcdb/thrift/client'
16
+ # irb> client = Swcdb::Thrift::Client.new("localhost", 18000)
17
+ # irb> schemas = client.sql_list_columns("get columns 1,2,3,4")
18
18
  #
19
19
  # Arguments:
20
- # @param [String] host
21
- # @param [Integer] port
22
- # @param [Integer] timeout_ms
23
- # @param [Boolean] do_open
24
- # @param [Boolean] framed
25
- # @param [Boolean] accelerated
20
+ # @param [String] host
21
+ # @param [Integer] port
22
+ # @param [Integer] timeout_ms
23
+ # @param [Boolean] do_open
24
+ # @param [Boolean] framed
25
+ # @param [Boolean] accelerated
26
26
  def initialize(host, port, timeout_ms = 900000, do_open = true, framed = true, accelerated = true)
27
27
  socket = ::Thrift::Socket.new(host, port, timeout_ms)
28
-
28
+
29
29
  if framed
30
30
  @transport = ::Thrift::FramedTransport.new(socket)
31
31
  else
@@ -34,15 +34,15 @@ module Swcdb
34
34
 
35
35
  if accelerated
36
36
  protocol = ::Thrift::BinaryProtocolAccelerated.new(@transport)
37
- else
37
+ else
38
38
  protocol = ::Thrift::BinaryProtocol.new(@transport)
39
39
  end
40
40
 
41
41
  super(protocol)
42
-
42
+
43
43
  open() if do_open
44
44
  end
45
-
45
+
46
46
  # Open Client Connection
47
47
  def open()
48
48
  @transport.open()
@@ -1,5 +1,5 @@
1
1
  #
2
- # Autogenerated by Thrift Compiler (0.14.0)
2
+ # Autogenerated by Thrift Compiler (0.15.0)
3
3
  #
4
4
  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
5
  #
@@ -1,5 +1,5 @@
1
1
  #
2
- # Autogenerated by Thrift Compiler (0.14.0)
2
+ # Autogenerated by Thrift Compiler (0.15.0)
3
3
  #
4
4
  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
5
  #
@@ -1,5 +1,5 @@
1
1
  #
2
- # Autogenerated by Thrift Compiler (0.14.0)
2
+ # Autogenerated by Thrift Compiler (0.15.0)
3
3
  #
4
4
  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
5
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swcdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4.0
4
+ version: 0.5.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Kashirin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-22 00:00:00.000000000 Z
11
+ date: 2021-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thrift
@@ -24,7 +24,7 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.14.2
27
- description: The SWC-DB ruby module 'swcdb'
27
+ description: The SWC-DB Ruby module 'swcdb'
28
28
  email: kashirin.alex@gmail.com
29
29
  executables: []
30
30
  extensions: []
@@ -42,8 +42,10 @@ licenses:
42
42
  metadata:
43
43
  source_code_uri: https://github.com/kashirin-alex/swc-db
44
44
  bug_tracker_uri: https://github.com/kashirin-alex/swc-db/issues
45
- changelog_uri: https://github.com/kashirin-alex/swc-db/releases
45
+ changelog_uri: https://github.com/kashirin-alex/swc-db/blob/master/CHANGELOG.md
46
46
  homepage_uri: https://www.swcdb.org
47
+ documentation_uri: https://www.swcdb.org/use/thriftclient/ruby/
48
+ github_repo: ssh://github.com/kashirin-alex/swc-db
47
49
  post_install_message:
48
50
  rdoc_options:
49
51
  - "--charset=UTF-8"