jumpcloud 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jumpcloud.rb +6 -5
- 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: 120942931df6bf9d20350844b0f791d3ef86e563
|
4
|
+
data.tar.gz: 0e44dbc38ad7471827644d28b4a2c5d6514c717b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15d93f96f46d141c12ec1f93acd4c36fe04aa524064ac97168e47ea54cec4bd82d6a2fb77066f857cfabdc8e60931a7b68a93b33e2298660bfbb8bfe8a719f69
|
7
|
+
data.tar.gz: 0bd365184fc6d45f49bf1247f9266d737b6e67ec20741f875224b4d97206da99a5fc756c86628320c5fdc6321b13d504fef867efbafc88ea84289f4ecb66895e
|
data/lib/jumpcloud.rb
CHANGED
@@ -42,8 +42,8 @@ class JumpCloud
|
|
42
42
|
request = Net::HTTP::Delete.new(uri.request_uri)
|
43
43
|
http = Net::HTTP.new(uri.host, uri.port)
|
44
44
|
http.use_ssl = true
|
45
|
-
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
46
|
-
http.ssl_version = :
|
45
|
+
# http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
46
|
+
http.ssl_version = :TLSv1_2
|
47
47
|
request["Authorization"] = "Signature keyId=\"system/#{system_key}\",headers=\"request-line date\",algorithm=\"rsa-sha256\",signature=\"#{signature}\""
|
48
48
|
request["Date"] = "#{date}"
|
49
49
|
request["accept"] = "application/json"
|
@@ -59,7 +59,8 @@ class JumpCloud
|
|
59
59
|
request = Net::HTTP.new(uri.host, uri.port)
|
60
60
|
http = Net::HTTP.new(uri.host, uri.port)
|
61
61
|
http.use_ssl = true
|
62
|
-
|
62
|
+
# http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
63
|
+
http.ssl_version = :TLSv1_2
|
63
64
|
request = Net::HTTP::Get.new(uri.request_uri)
|
64
65
|
request["Authorization"] = "Signature keyId=\"system/#{system_key}\",headers=\"request-line date\",algorithm=\"rsa-sha256\",signature=\"#{signature}\""
|
65
66
|
request["Date"] = "#{date}"
|
@@ -77,8 +78,8 @@ class JumpCloud
|
|
77
78
|
request = Net::HTTP::Put.new(uri.request_uri)
|
78
79
|
http = Net::HTTP.new(uri.host, uri.port)
|
79
80
|
http.use_ssl = true
|
80
|
-
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
81
|
-
http.ssl_version = :
|
81
|
+
# http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
82
|
+
http.ssl_version = :TLSv1_2
|
82
83
|
request["Authorization"] = "Signature keyId=\"system/#{system_key}\",headers=\"request-line date\",algorithm=\"rsa-sha256\",signature=\"#{signature}\""
|
83
84
|
request["Date"] = "#{date}"
|
84
85
|
request["accept"] = "application/json"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jumpcloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Topher Marie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Allows simple configuration of a system name and its JumpCloud tags,
|
14
14
|
and allows you to delete a system
|