crowbar-client 3.2.2 → 3.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e9ee78b325f208de3dfb08e444318cd016607aa
4
- data.tar.gz: 9aa5c6c228225c4b824ce10c68f3f7794a0ba0e8
3
+ metadata.gz: 2affc203d13b7b120d293b03b60bfa61bc25dd20
4
+ data.tar.gz: 98f8dfe16d10c394e106271a51d4381e01717d63
5
5
  SHA512:
6
- metadata.gz: c38b0e4b6b814a194220d455968398d9956252d798883f7108aed6c4824f91a571420351904879825a771c94bf2f68fd96e03956f9d00f9b254ef6e5d493b7c0
7
- data.tar.gz: 401cd2d10f4289e316acb67200dd610dc2ce47f56ff7f76678b24653f60250859cccd2915c7061a3ae49710e1cf0581705fc307fded3f9caaacdf44bff48f968
6
+ metadata.gz: 03ba81c6ea487f26c0e2c0234144daa9af9fd74adb65d8602c1f212c87efc2ce2ff8de17823abc432db13f2394d5aa4c31f39ff047b5d47802254a0acf82d840
7
+ data.tar.gz: 28f4541fed6b4e1a083f28152bc791113479a1b5ecda19aedc57742ff54c6ddb7403d013216355443d83e13f9fbed5bf71b6fab2ba0fca2bdd9eb41f7ffef04e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.3.0](https://github.com/crowbar/crowbar-client/releases/tag/v3.3.0) - 2017-03-30
4
+
5
+ * ENHANCEMENT
6
+ * Allow skipping the SSL verification step
7
+
3
8
  ## [3.2.2](https://github.com/crowbar/crowbar-client/releases/tag/v3.2.2) - 2017-03-08
4
9
 
5
10
  * ENHANCEMENT
@@ -41,6 +41,7 @@ module Crowbar
41
41
  :username,
42
42
  :password,
43
43
  :server,
44
+ :verify_ssl,
44
45
  :timeout,
45
46
  :anonymous,
46
47
  :apiversion,
@@ -57,6 +57,12 @@ module Crowbar
57
57
  aliases: ["-s"],
58
58
  desc: "Specify server for connection"
59
59
 
60
+ class_option :verify_ssl,
61
+ type: :boolean,
62
+ default: Config.defaults[:verify_ssl],
63
+ aliases: ["-i"],
64
+ desc: "Verify server SSL certificate"
65
+
60
66
  class_option :timeout,
61
67
  type: :numeric,
62
68
  default: Config.defaults[:timeout],
@@ -55,6 +55,7 @@ module Crowbar
55
55
  username: default_username,
56
56
  password: default_password,
57
57
  server: default_server,
58
+ verify_ssl: default_verify_ssl,
58
59
  timeout: default_timeout,
59
60
  anonymous: default_anonymous,
60
61
  apiversion: default_apiversion,
@@ -128,6 +129,21 @@ module Crowbar
128
129
  ENV["CROWBAR_SERVER"] || "http://127.0.0.1:80"
129
130
  end
130
131
 
132
+ #
133
+ # Define a default verify_ssl flag
134
+ #
135
+ # @return [Bool] the default verify_ssl flag
136
+ #
137
+ def default_verify_ssl
138
+ if ENV["CROWBAR_VERIFY_SSL"].present?
139
+ [
140
+ false, 0, "0", "f", "F", "false", "FALSE"
141
+ ].include? ENV["CROWBAR_VERIFY_SSL"]
142
+ else
143
+ true
144
+ end
145
+ end
146
+
131
147
  #
132
148
  # Define a default timeout value
133
149
  #
@@ -25,6 +25,7 @@ module Crowbar
25
25
  user = options.fetch(:user, Config.username)
26
26
  password = options.fetch(:password, Config.password)
27
27
  auth_type = options.fetch(:auth_type, :digest)
28
+ verify_ssl = options.fetch(:verify_ssl, Config.verify_ssl)
28
29
 
29
30
  Config.debug && RestClient.log = "stdout"
30
31
 
@@ -37,6 +38,7 @@ module Crowbar
37
38
  user: user,
38
39
  password: password,
39
40
  auth_type: auth_type,
41
+ verify_ssl: verify_ssl,
40
42
  timeout: Config.timeout
41
43
  )
42
44
  end
@@ -28,12 +28,12 @@ module Crowbar
28
28
  #
29
29
  # Minor version
30
30
  #
31
- MINOR = 2
31
+ MINOR = 3
32
32
 
33
33
  #
34
34
  # Patch version
35
35
  #
36
- PATCH = 2
36
+ PATCH = 0
37
37
 
38
38
  #
39
39
  # Optional suffix
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crowbar-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.2
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Boerger
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-03-08 00:00:00.000000000 Z
13
+ date: 2017-03-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler