smartdc 2.0.1 → 2.0.2

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: a42f41cff5e0b0aa55fcfd53586fa06aa8e6b3b4
4
- data.tar.gz: a461d8600042ef64c1d718bcd93b77db570323a9
3
+ metadata.gz: 59ff22276533bb1cba158422a6c136ba90c39510
4
+ data.tar.gz: cccf266041d9647525404de5b9842715fd78c398
5
5
  SHA512:
6
- metadata.gz: 133096219ff1ffb3334e2b48e3c5a0b08026173bc21cf51a5a64520ceecd9c0ff29618cd5f75f797c93a96c0c62bbef464380840f59a7b5687cabeea56113671
7
- data.tar.gz: 9f90b49550fab14403bf0e1109617dc123db2ecef60450487659b46ef88f4664d6da07f75c1e23e30705cb224540f3107e25f407f79fbdf7d5df9fd615d01517
6
+ metadata.gz: a9180a5442ef8b2b314fa9d25563b4460ea9f634e0b89bff703dc89b68f12a1f003504c41356d69a783ae94efb962921a1bb7178253cf67b786b70a23befeeda
7
+ data.tar.gz: 963034aa9ee3bb284c95e8cc0c3db0224e8f217d40abfcd5c97e9ce3155337934fb378d3d51b7d41b8b630d920bedc8d3f064e091b005074e25504d1483ebe57
data/.gitignore CHANGED
@@ -1,4 +1,5 @@
1
1
  .bundle
2
+ coverage
2
3
  doc/cassettes
3
4
  pkg
4
5
  tmp
data/Gemfile CHANGED
@@ -4,6 +4,7 @@ gemspec
4
4
 
5
5
  group :test do
6
6
  gem 'rspec'
7
+ gem 'simplecov', require: false
7
8
  end
8
9
 
9
10
  group :development, :test do
@@ -51,6 +51,7 @@ module Smartdc
51
51
  config.username = sdccfg[:username] if sdccfg.key?(:username)
52
52
  config.use_key = sdccfg[:use_key] if sdccfg.key?(:use_key)
53
53
  config.rsa_path = sdccfg[:rsa_path] if sdccfg.key?(:rsa_path)
54
+ config.ssl_verify = sdccfg[:ssl_verify].to_s =~ /false|0/ ? false : true
54
55
  config.middleware = Faraday::RackBuilder.new do |builder|
55
56
  builder.adapter Faraday.default_adapter
56
57
  #builder.use CassetteRack::Response::RaiseError
@@ -56,6 +56,7 @@ __EOS__
56
56
  options = option(options, :Version, :version, '~7.0')
57
57
  options = option(options, :Username, :username, ENV['USER'])
58
58
  options = option(options, :Fingerprint, :use_key, 'none')
59
+ options = option(options, :SSLVerify, :ssl_verify, true)
59
60
 
60
61
  puts
61
62
  puts "New settings!"
@@ -63,6 +64,7 @@ __EOS__
63
64
  puts "Version: #{options[:version]}"
64
65
  puts "Username: #{options[:username]}"
65
66
  puts "Fingerprint: #{options[:use_key]}"
67
+ puts "SSLVerify: #{options[:ssl_verify]}"
66
68
  puts
67
69
 
68
70
  self.write options
@@ -1,3 +1,3 @@
1
1
  module Smartdc
2
- VERSION = '2.0.1'.freeze
2
+ VERSION = '2.0.2'.freeze
3
3
  end
@@ -1,3 +1,6 @@
1
+ require 'simplecov'
2
+ SimpleCov.start
3
+
1
4
  require 'smartdc'
2
5
  require 'smartdc/cli'
3
6
  require 'vcr'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smartdc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ogom
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-19 00:00:00.000000000 Z
11
+ date: 2015-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cassette-rack