brocade_vrouter 0.2.2 → 0.2.3

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: f0916f52ce7f134b0c2f7d45600fe605750bfe7f
4
- data.tar.gz: 8dfc79c74bbf9dd5247226a2c94bd0903260f348
3
+ metadata.gz: b73fb08499f1b09631ea48a5c7ef501ce2126781
4
+ data.tar.gz: 4f3e002d200ef58cbebd3436a134fb47fb954c3b
5
5
  SHA512:
6
- metadata.gz: 8192680c0587fca8ccc185433e19ea8dffa187c47088a90dbbcee277de8122c85be8f29a9116796eaa865153b342e56369cf7baaa2fc67a74b3fa3938a358ca0
7
- data.tar.gz: a7c73f951c1389b6ced31cb875d420b1c8fdff4019b10cf5281330f95cad321e7c9b844169df6580ace3856131cd903a5f2f2c17d0197d19ce394843603e7b65
6
+ metadata.gz: fd5f3041951e2b065d9e850767d97b0cf780b23701df11df3225d713d3c343f41ccf2cc40d6828b7c9ef60c3a97682775c6d817846c8cd4f0afee0f09ce56523
7
+ data.tar.gz: b8653076404eec996c70c7806023bb720745c7a59480775b1b4da2fa9c61ce215621c336f985bdfa276d27406c830dfec28e56d623176fc473b1746615e21051
@@ -17,7 +17,7 @@ module BrocadeVRouter
17
17
  end
18
18
 
19
19
  def configuration(raise_on_fail: nil, &blk)
20
- raise_on_fail = BrocadeVRouter.config.raise_on_fail if raise_on_fail.nil?
20
+ raise_on_fail = BrocadeVRouter.config.raise_on_fail if raise_on_fail.nil?
21
21
  @current_conf ||= Configuration.new connection, logger: logger
22
22
  @current_conf.raise_on_fail = raise_on_fail
23
23
  block_given? ? @current_conf.perform(&blk) : @current_conf
@@ -1,6 +1,6 @@
1
1
  module BrocadeVRouter
2
2
  class Configuration
3
- CONF_PATH = '/rest/conf'.freeze
3
+ CONF_PATH = 'rest/conf'.freeze
4
4
 
5
5
  attr_reader :connection, :last_response, :logger
6
6
  attr_accessor :raise_on_fail
@@ -13,10 +13,11 @@ module BrocadeVRouter
13
13
  end
14
14
 
15
15
  def base_path
16
- @base_path ||= begin
17
- handle_request :post, CONF_PATH
18
- handle_response(connection.post CONF_PATH).headers['location']
19
- end
16
+ @base_path ||=
17
+ begin
18
+ handle_request :post, CONF_PATH
19
+ handle_response(connection.post "/#{CONF_PATH}").headers['location']
20
+ end
20
21
  end
21
22
 
22
23
  def perform(&blk)
@@ -1,3 +1,3 @@
1
1
  module BrocadeVRouter
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'.freeze
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.2.2
4
+ version: 0.2.3
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-07-12 00:00:00.000000000 Z
11
+ date: 2016-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday