jumpcloud 0.2.0 → 0.2.1

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jumpcloud.rb +6 -5
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bfdd5bc16e62d165b902d9ebc6e963e8c03d1abd
4
- data.tar.gz: bdfdcfa6b2f82f12184340d86682badda219a256
3
+ metadata.gz: 120942931df6bf9d20350844b0f791d3ef86e563
4
+ data.tar.gz: 0e44dbc38ad7471827644d28b4a2c5d6514c717b
5
5
  SHA512:
6
- metadata.gz: 5cf48406b7462fe68a2924ed1e833ef34c553f32717f64d5bf85212e04caaf9540274100a6157650641896116d3d6f5f4241ddbbd39edd95602e5bd4b24b0336
7
- data.tar.gz: 99a335c35a29013e77c76821326d73cc42f2748a8236a564835d94014c94c7754a975ed8dfd9da1cfd01651d35c1b518010134b13933f9bdbcaf85e9a3093bf6
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 = :SSLv3
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 = :SSLv3
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.0
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-06-18 00:00:00.000000000 Z
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