mind_meld 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mind_meld.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eedacaa489004554eb8d553b66ed02cf4807b377
|
4
|
+
data.tar.gz: 49bca865105358950a6cb014a118155d22e0b81b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d42f562380068ab37c51cdaae30a94772d311e2779c3042dbab4d51a1d34599d7438079c762074e94e2ce6dd9fb07ac33601535eac77f76b94257d3b129c051
|
7
|
+
data.tar.gz: cd4908a1aa7d63254c9b6fb3c3a4578818dcc8c26ab42286465b4fd7ca234d6e84b164348167a34d4f56723f070f93c0d3943bfa2cd686360e3ce4f2c47d89f0
|
data/lib/mind_meld.rb
CHANGED
@@ -7,6 +7,14 @@ class MindMeld
|
|
7
7
|
if options[:url]
|
8
8
|
uri = URI.parse(options[:url])
|
9
9
|
@http = Net::HTTP.new(uri.host, uri.port)
|
10
|
+
if options.key?(:pem)
|
11
|
+
pem = File.read(options[:pem])
|
12
|
+
@http.use_ssl = true if uri.scheme == 'https'
|
13
|
+
@http.cert = OpenSSL::X509::Certificate.new(pem)
|
14
|
+
@http.key = OpenSSL::PKey::RSA.new(pem)
|
15
|
+
@http.ca_file = options[:ca_file] if options.key?(:ca_file)
|
16
|
+
@http.verify_mode = options[:verify_mode] if options.key?(:verify_mode)
|
17
|
+
end
|
10
18
|
|
11
19
|
@device = options[:device]
|
12
20
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mind_meld
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Haig
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|