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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d0b3da26a532269a49b4b25319d024edaf8d80e
4
- data.tar.gz: 71fe0a9587a1cee14311055865d2fe82e5cac831
3
+ metadata.gz: 55478969934e5e41bf0164fbff31c419c4d3ac16
4
+ data.tar.gz: 869251b7728dacf2e4fec97f5676c3f6d6b3ecbb
5
5
  SHA512:
6
- metadata.gz: 2f140a31ff78f0c8504f99080e9cfd58fba7854b6aff0595515717f0d28b9db5082d62e558c0d3891a1fc4d7313d8ed57da3b1cc1da3d0b63d5493289c377a7c
7
- data.tar.gz: dc6f61dabbc42b18c594821ebbcb990ca92de022e66c850816346af9336217c0f9c7ec7200a2bc4421f20f6142a73a1e5b982d9e6d37f01362367648f9f87fea
6
+ metadata.gz: da44d30a96edca1fdb513e778ce0278cf2df1f317b6a3a6691e1fa24fa64466679a8358d237ac8a2da5e49c9f15759088af393fbf8501a28a62d2313f90d6bbe
7
+ data.tar.gz: d7503bda2738445728e936d603e51318366632fb982c08576f0fdedf0244cddae797614dead2e436a36cd8b7132fea26a20afae04050e5f02e331c468783c180
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.16.1
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).to_h.reject{|_,v| v.to_s == ''}
86
- params.map{|k,v| v = (v =~ /\A\d+\z$/ ? v.to_i : v); [k,v]}.to_h
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.1
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-10-31 00:00:00.000000000 Z
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: '0'
473
+ version: 1.3.1
474
474
  requirements: []
475
475
  rubyforge_project:
476
476
  rubygems_version: 2.5.1