crate_ruby 0.1.0 → 0.2.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: 527d9c75e305c5d0bdff4ad77d5a8268ee2e172926dc252e8f2c7cff19e4189c
4
- data.tar.gz: 99454b1e16d97746418602c7c82fb6feeb56dd9dfaddaa4259635928d9a9ffcf
3
+ metadata.gz: d47fe15133585ee74801da1c280a14bf00fe6701b333d73a7510255402b52069
4
+ data.tar.gz: 07f33bb5146cfca6501f60ae97a7988ba2731164061b75147bc1a1b5bff4b4fc
5
5
  SHA512:
6
- metadata.gz: 39fc95a25b3efb6630454bb7f6c120f6d8e980d67ab4442a147b48c783ca534fd929e8a0f030c57e22d5a6ca860da9f1ba3dc7fa0471360d48c0c47ad990a8fe
7
- data.tar.gz: 6075a190c28ed1ff3b4ad455b9db7413abb67f1afc29bffcb1f61d1ae43fd7e177cee54f5c318545cf17c526f2176a77d179e80765733245fdafc41fe7ec0d9d
6
+ metadata.gz: f8b9c72c33cbdf281ad6bcf9ea20d763ef28f21e48678bd4cd02401e9e7fda10209926aa66f9e66d6e3a1b48014ef12a270bf2cf0ca3ba147e32da79c28b5344
7
+ data.tar.gz: ea217acc07d3eb78913b283b0acf04529dea2f4e3cb49f2a72d9ccdcaa6521acd69ee7264b37561a815aa81372887604afcb83d82c6139fdb92e7ab1572827f3
@@ -1,4 +1,7 @@
1
1
  # coding: UTF-8
2
+ === 0.2.0
3
+ * Added SSL support.
4
+
2
5
  === 0.1.0
3
6
  * HTTP Basic Authentication support that comes with 2.3.0
4
7
 
@@ -45,6 +45,7 @@ module CrateRuby
45
45
  @schema = opts[:schema] || 'doc'
46
46
  @username = opts[:username]
47
47
  @password = opts[:password]
48
+ @ssl = opts[:ssl] || false
48
49
  end
49
50
 
50
51
  def inspect
@@ -220,7 +221,9 @@ module CrateRuby
220
221
 
221
222
  def connection
222
223
  host, port = @servers.first.split(':')
223
- Net::HTTP.new(host, port)
224
+ http = Net::HTTP.new(host, port)
225
+ http.use_ssl = true if @ssl
226
+ return http
224
227
  end
225
228
 
226
229
  def request(req, http_options = {})
@@ -19,5 +19,5 @@
19
19
  # software solely pursuant to the terms of the relevant commercial agreement.
20
20
 
21
21
  module CrateRuby
22
- VERSION = '0.1.0'.freeze
22
+ VERSION = '0.2.0'.freeze
23
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crate_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christoph Klocker
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-01-23 00:00:00.000000000 Z
12
+ date: 2018-04-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  version: '0'
93
93
  requirements: []
94
94
  rubyforge_project:
95
- rubygems_version: 2.7.4
95
+ rubygems_version: 2.7.6
96
96
  signing_key:
97
97
  specification_version: 4
98
98
  summary: A simple interface for the Crate.IO database.