brightbox-cli 2.9.2 → 2.9.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
  SHA256:
3
- metadata.gz: e05fd527ccd1bef29c44fc8e3e26562bb634692ad49e1919b86c7e7a1ccd1564
4
- data.tar.gz: 8b130b003147c22dad7b799bb4c309c6676c6e1cb8dd4786e96d7d329de4ca77
3
+ metadata.gz: d75fbc305e6454af25ea8229ab5e3daa172daa356238cca3f754bfbde9dd622e
4
+ data.tar.gz: a18c6c52ee8f05c8726013c466db8919c93861f354ad25f3b6d90081b99547e4
5
5
  SHA512:
6
- metadata.gz: 55cc451d42dad856cab9971ffd7320ef77afd4b8a2b56e19d5b573dc63a12d745b9081db0c3ffcdea31385b485f39486e39e54426373d665e44d1f4cb5d41972
7
- data.tar.gz: d58c94cf5daf9c24b92e1922b60616489e39f63f7afa89bceb8a1590d64be0a90982f12a9c9b8776ce1459010bc1c2e13e1cdebdbb0f8f217d67a43ece0e724b
6
+ metadata.gz: 9e5702306a5c79fd252a00c5019201f848737f8df0b46939fa690ab990ac098f8df7d1a921dbbeb61e30e675816adfd524ad4091f808d2b5a1f99f17e408bee0
7
+ data.tar.gz: e312c55cd455a3e0100edad6826d725f97f5d084a54909c9dbb9268593528c2bdd1e30c30f8af836e9332879f6497ccd0ab3113b93435b6d8d8819a040cf0705
@@ -1,7 +1,5 @@
1
1
  language: ruby
2
2
  sudo: false
3
- before_install:
4
- - gem install bundler
5
3
  rvm:
6
4
  - 1.9
7
5
  - 2.0
@@ -1,3 +1,12 @@
1
+ ### v2.9.3 /2019-03-06
2
+
3
+ [Full Changelog](https://github.com/brightbox/brightbox-cli/compare/v2.9.2...v2.9.3)
4
+
5
+ Bug fixes:
6
+
7
+ * Fixes `servers activate_console` URL generated from new API output to remove
8
+ invalid trailing slash.
9
+
1
10
  ### v2.9.2 /2018-09-07
2
11
 
3
12
  [Full Changelog](https://github.com/brightbox/brightbox-cli/compare/v2.9.1...v2.9.2)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- brightbox-cli (2.9.2)
4
+ brightbox-cli (2.9.3)
5
5
  fog-brightbox (>= 0.16.0, < 1.0)
6
6
  fog-core (< 2.0)
7
7
  gli (~> 2.12.0)
@@ -1,3 +1,5 @@
1
+ require "uri"
2
+
1
3
  module Brightbox
2
4
  desc I18n.t("servers.desc")
3
5
  command [:servers] do |cmd|
@@ -19,9 +21,12 @@ module Brightbox
19
21
  servers.each do |s|
20
22
  info "Activating console for server #{s}"
21
23
  r = s.activate_console
22
- url = "#{r["console_url"]}/?password=#{r["console_token"]}"
24
+
25
+ uri = URI(r["console_url"])
26
+ uri.query = "password=#{r["console_token"]}"
27
+
23
28
  expires = Time.parse(r["console_token_expires"])
24
- consoles << { :url => url, :token => r["console_token"], :expires => expires.localtime.to_s }
29
+ consoles << { :url => uri.to_s, :token => r["console_token"], :expires => expires.localtime.to_s }
25
30
  end
26
31
 
27
32
  render_table(consoles, global_options.merge(:fields => [:url, :token, :expires], :resize => false))
@@ -1,3 +1,3 @@
1
1
  module Brightbox
2
- VERSION = "2.9.2" unless defined?(Brightbox::VERSION)
2
+ VERSION = "2.9.3" unless defined?(Brightbox::VERSION)
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brightbox-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.2
4
+ version: 2.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Leach
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-07 00:00:00.000000000 Z
11
+ date: 2019-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-brightbox