crate_ruby 0.1.0 → 0.2.0
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/history.txt +3 -0
- data/lib/crate_ruby/client.rb +4 -1
- data/lib/crate_ruby/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d47fe15133585ee74801da1c280a14bf00fe6701b333d73a7510255402b52069
|
|
4
|
+
data.tar.gz: 07f33bb5146cfca6501f60ae97a7988ba2731164061b75147bc1a1b5bff4b4fc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f8b9c72c33cbdf281ad6bcf9ea20d763ef28f21e48678bd4cd02401e9e7fda10209926aa66f9e66d6e3a1b48014ef12a270bf2cf0ca3ba147e32da79c28b5344
|
|
7
|
+
data.tar.gz: ea217acc07d3eb78913b283b0acf04529dea2f4e3cb49f2a72d9ccdcaa6521acd69ee7264b37561a815aa81372887604afcb83d82c6139fdb92e7ab1572827f3
|
data/history.txt
CHANGED
data/lib/crate_ruby/client.rb
CHANGED
|
@@ -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 = {})
|
data/lib/crate_ruby/version.rb
CHANGED
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.
|
|
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-
|
|
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.
|
|
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.
|