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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mind_meld.rb +8 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d547c4fbd95026d423d1ce9ce8d505ebe6be8d6b
4
- data.tar.gz: 42916d8bf773990d66248abf56db32d3a7137cc7
3
+ metadata.gz: eedacaa489004554eb8d553b66ed02cf4807b377
4
+ data.tar.gz: 49bca865105358950a6cb014a118155d22e0b81b
5
5
  SHA512:
6
- metadata.gz: 969977a668f503c224ab34d1a34e2da2538e7df9f552a0470e06daa6aa0b056260f51085c091b817a89d48f9249585d9f923c6904450865b141635d404295277
7
- data.tar.gz: 3c6327a5105976150aac4550a02d62b08c1db4cf025361233deb21016aadd99dcfb97f0285006a893760074880298ed7708648d8441f7dc2f79ad9f945279bb4
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.6
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-01-26 00:00:00.000000000 Z
11
+ date: 2016-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport