kontena-cli 1.1.1.rc1 → 1.1.1

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: 76963be4ff231516ea09ffc1261b2945f7728f78
4
- data.tar.gz: ea1f2e4fa944e33af0d7c5b9abea939485805346
3
+ metadata.gz: 6375c4de944897ae1d7c56fdb0de7bac7cbbe79a
4
+ data.tar.gz: d25ef27c6e5cddc843c90cdb9bec53fbfa9354bf
5
5
  SHA512:
6
- metadata.gz: 66580e1af2b505487e82ae8458f5fed6f2965438df752e0ae8581108fe067932dc8205276117f3fc0a00bba46ddb17f3c5b19f8d224b82c78cd2e90af8853b0c
7
- data.tar.gz: ce4aef539d02fb0ee56f6850a7657d8d0b2466bca5db2d7633ae4d01c28e75ce36330ef1df8a7c46644abd6df79cd8fa9ffbe7d716595bc0155ad71466e8e27f
6
+ metadata.gz: 0cacb7083c66545a80ba743d289f47e326f488d382d0243339bcd72a4e12af4abfe0be9d7f3f7870e1bd5748df3e8e6edd0d6d971a70d3af507c3e0a31712f2a
7
+ data.tar.gz: fbfc01b96161a08c8e98fb2c60b4d4a418cebd2c829b60f20bbd099dd77bdbc0ad11862b6d6ef69ee7aa4eb4219982b2d9fc9bbf451cb189a3178d0d1a850e05
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.1.rc1
1
+ 1.1.1
@@ -3,7 +3,7 @@ require 'clamp'
3
3
  class Kontena::Command < Clamp::Command
4
4
 
5
5
  option ['-D', '--debug'], :flag, "Enable debug", environment_variable: 'DEBUG' do
6
- ENV['DEBUG'] = 'true'
6
+ ENV['DEBUG'] ||= 'true'
7
7
  end
8
8
 
9
9
  attr_accessor :arguments
@@ -85,7 +85,7 @@ class Kontena::Command < Clamp::Command
85
85
  end
86
86
  end
87
87
 
88
- # Overwrite Clamp's banner command. Calling banner multiple times
88
+ # Overwrite Clamp's banner command. Calling banner multiple times
89
89
  # will now add lines to the banner message instead of overwriting
90
90
  # the whole message. This is useful if callbacks add banner messages.
91
91
  #
data/lib/kontena_cli.rb CHANGED
@@ -67,6 +67,10 @@ module Kontena
67
67
  )
68
68
  end
69
69
 
70
+ def self.reset_prompt
71
+ @prompt = nil
72
+ end
73
+
70
74
  def self.root
71
75
  File.dirname(__dir__)
72
76
  end
@@ -4,6 +4,14 @@ require 'kontena/light_prompt'
4
4
 
5
5
  describe Kontena do
6
6
  context 'prompt' do
7
+ before(:each) do
8
+ Kontena.reset_prompt
9
+ end
10
+
11
+ after(:each) do
12
+ Kontena.reset_prompt
13
+ end
14
+
7
15
  it 'uses light prompt on windows' do
8
16
  allow(ENV).to receive(:[]).with('OS').and_return('Windows_NT')
9
17
  expect(Kontena.prompt).to be_kind_of(Kontena::LightPrompt)
@@ -19,7 +27,6 @@ describe Kontena do
19
27
  end
20
28
 
21
29
  it 'accepts a command line as string' do
22
-
23
30
  Kontena.run('whoami --bash-completion-path')
24
31
  end
25
32
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kontena-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1.rc1
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kontena, Inc
@@ -621,9 +621,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
621
621
  version: 2.1.0
622
622
  required_rubygems_version: !ruby/object:Gem::Requirement
623
623
  requirements:
624
- - - ">"
624
+ - - ">="
625
625
  - !ruby/object:Gem::Version
626
- version: 1.3.1
626
+ version: '0'
627
627
  requirements: []
628
628
  rubyforge_project:
629
629
  rubygems_version: 2.6.8