kontena-cli 0.16.1 → 0.16.2.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/kontena/cli/localhost_web_server.rb +3 -2
- data/lib/kontena/cli/master/list_command.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55478969934e5e41bf0164fbff31c419c4d3ac16
|
4
|
+
data.tar.gz: 869251b7728dacf2e4fec97f5676c3f6d6b3ecbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da44d30a96edca1fdb513e778ce0278cf2df1f317b6a3a6691e1fa24fa64466679a8358d237ac8a2da5e49c9f15759088af393fbf8501a28a62d2313f90d6bbe
|
7
|
+
data.tar.gz: d7503bda2738445728e936d603e51318366632fb982c08576f0fdedf0244cddae797614dead2e436a36cd8b7132fea26a20afae04050e5f02e331c468783c180
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.16.
|
1
|
+
0.16.2.rc1
|
@@ -82,8 +82,9 @@ module Kontena
|
|
82
82
|
server.close
|
83
83
|
uri = URI.parse("http://localhost#{get_request}")
|
84
84
|
ENV["DEBUG"] && puts(" * Parsing params: \"#{uri.query}\"")
|
85
|
-
params = URI.decode_www_form(uri.query).
|
86
|
-
params.map{|k,v| v = (v =~ /\A\d+\z$/ ? v.to_i : v); [k,v]}
|
85
|
+
params = Hash[*URI.decode_www_form(uri.query).flatten(1)].reject{|_,v| v.to_s == ''}
|
86
|
+
params.map{|k,v| v = (v =~ /\A\d+\z$/ ? v.to_i : v); [k,v]}
|
87
|
+
params = Hash[*params.flatten(1)]
|
87
88
|
else
|
88
89
|
# Unless it's a query to /cb, send an error message and keep listening,
|
89
90
|
# it might have been something funny like fetching favicon.ico
|
@@ -6,7 +6,7 @@ module Kontena::Cli::Master
|
|
6
6
|
puts '%-24s %-30s' % ['Name', 'Url']
|
7
7
|
current_master = config.current_master
|
8
8
|
config.servers.each do |server|
|
9
|
-
if server['name'] == current_master.name
|
9
|
+
if current_master && server['name'] == current_master.name
|
10
10
|
name = "* #{server['name']}"
|
11
11
|
else
|
12
12
|
name = server['name']
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kontena-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.16.
|
4
|
+
version: 0.16.2.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kontena, Inc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -468,9 +468,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
468
468
|
version: 2.0.0
|
469
469
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
470
470
|
requirements:
|
471
|
-
- - "
|
471
|
+
- - ">"
|
472
472
|
- !ruby/object:Gem::Version
|
473
|
-
version:
|
473
|
+
version: 1.3.1
|
474
474
|
requirements: []
|
475
475
|
rubyforge_project:
|
476
476
|
rubygems_version: 2.5.1
|