brocade_vrouter 0.1.6 → 0.1.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 068337f99797d79940e556c131a580e624980d63
4
- data.tar.gz: c49158b807900e9377e97782150be5ac6d3a2059
3
+ metadata.gz: a69b4723dff94844324509b79164a76d558979a0
4
+ data.tar.gz: cb8ce70733cddb6e96a3310ebcf551345363e989
5
5
  SHA512:
6
- metadata.gz: a918cd8974372e138f5f2ab8d11d6e49abcedfcebae7e0c4ccb019538c1a4230436b92562cf3a5f1225d4484baf1b6bc2dad7d45d35a7762c8900663f9bdd749
7
- data.tar.gz: 8d1b112f28d25d476ef97a260b95c16906d289d31eaea0da0f04787783cceeeb8cf6d651881aed5972c363a40f68f7c4dd9714aa7604aa6a6ba87603cfdb05b1
6
+ metadata.gz: 8cb36f11f972348506678d431e6bcce29d844d6fabd4be07beb8a582ee0eb89554b3fd4b686637c6a9c927a0b61ae5fb44a010d3444c25638195b8a84a5aa16d
7
+ data.tar.gz: 000e814204f498ae883da692e9bea8a127a1876065cdfd3dbf9ea1d0234e2dbe0c63d03d1c4bf74d0da8a94320d804644ee1b5b45fb2660fc816346ac8ec414c
@@ -17,8 +17,9 @@ module BrocadeVRouter
17
17
  end
18
18
 
19
19
  def configuration(raise_on_fail: nil, &blk)
20
- @current_conf ||= Configuration.new connection, logger: logger,
21
- raise_on_fail: raise_on_fail.nil? ? BrocadeVRouter.config.raise_on_fail : raise_on_fail
20
+ raise_on_fail = BrocadeVRouter.config.raise_on_fail if raise_on_fail.nil?
21
+ @current_conf ||= Configuration.new connection, logger: logger
22
+ @current_conf.raise_on_fail = raise_on_fail
22
23
  block_given? ? @current_conf.perform(&blk) : @current_conf
23
24
  end
24
25
 
@@ -3,6 +3,7 @@ module BrocadeVRouter
3
3
  CONF_PATH = '/rest/conf'.freeze
4
4
 
5
5
  attr_reader :connection, :last_response, :logger
6
+ attr_accessor :raise_on_fail
6
7
 
7
8
  def initialize(connection, base_path: nil, logger: nil, raise_on_fail: true)
8
9
  @connection = connection
@@ -1,3 +1,3 @@
1
1
  module BrocadeVRouter
2
- VERSION = '0.1.6'
2
+ VERSION = '0.1.7'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brocade_vrouter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Kosmatov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-02 00:00:00.000000000 Z
11
+ date: 2016-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday