aws_runas 0.4.0 → 0.4.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: af8ca683b13de341202e80a4e5ba6db77eda5903
4
- data.tar.gz: de6f9fcd9160ffb9ed9bc31ed895f43ef489ea7f
3
+ metadata.gz: 3cf662be3a59636d2a1a7ff48aa16f94ab59c3cd
4
+ data.tar.gz: ce8b78edee148945ccd0eef3387f9218b90801e8
5
5
  SHA512:
6
- metadata.gz: ef6af6dd0f335c650c817b41d87f0d81f113a907d44cacf2cde7080bb5fcbdabf19b99a1a6a844ae0bff7f351d1849b805d6eeafa244c636c934cff4318712c3
7
- data.tar.gz: d69007d2fedddfaae682f07cc565ad7bb9a226275ba2420a7b20db6662a2f45b684dee8d115b1c2d71ab2b0edfc36342079f0d08dce960636bef5425e0fd17d0
6
+ metadata.gz: '084c9f4f888f25eb54aca7b6fa4a645cd92efb2389c89d7cebe5c8452ccd0b4eb9e341a2ff6092cdaa37c86d0edb083c3c91bdfb81b8be68263febaf57577705'
7
+ data.tar.gz: 0c209927cefdd91c01074b25d99d408add9642b81084d95766716e2470d6d9d16ba2ad553e9ad18ace383f47a578ee0e7e1510950d998455212d4ba0dbec1cdd
checksums.yaml.gz.sig CHANGED
@@ -1 +1,2 @@
1
- :i # �N[�<%�#y?[�|.5y,��UL�����p(A
1
+ 1"s
2
+
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## v0.4.1
2
+
3
+ Fixed the escape sequence in the bash shell prompt indicator so that it has the
4
+ `\[` and `\]` enclosures - this fixes issues that the prompt was having with
5
+ line wrapping.
6
+
1
7
  ## v0.4.0
2
8
 
3
9
  * Dropping support for Ruby 2.1. You will need at least Ruby 2.2.6 to be using
data/README.md CHANGED
@@ -5,6 +5,8 @@
5
5
  aws-runas
6
6
  ==========
7
7
 
8
+ [![asciicast](https://asciinema.org/a/107502.png)](https://asciinema.org/a/107502)
9
+
8
10
  **The problem:** You manage AWS across several different roles and need to use
9
11
  tools outside of the regular `aws-cli` toolchain.
10
12
 
@@ -28,7 +28,7 @@ module AwsRunAs
28
28
  rc_data = IO.read("#{ENV['HOME']}/.bashrc") if File.exist?("#{ENV['HOME']}/.bashrc")
29
29
  rc_file = Tempfile.new('aws_runas_bashrc')
30
30
  rc_file.write("#{rc_data}\n") unless rc_data.nil?
31
- rc_file.write("PS1=\"\\e[33m(#{message})\\e[0m $PS1\"\n")
31
+ rc_file.write("PS1=\"\\[\\e[33m\\](#{message})\\[\\e[0m\\] $PS1\"\n")
32
32
  rc_file.close
33
33
  system(env, path, '--rcfile', rc_file.path)
34
34
  ensure
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
 
15
15
  module AwsRunAs
16
- VERSION = '0.4.0'
16
+ VERSION = '0.4.1'
17
17
  end
@@ -6,7 +6,7 @@ BASHRC_FILE_CONTENTS = <<EOS.freeze
6
6
  foobar
7
7
  EOS
8
8
 
9
- BASHRC_EXPECTED_PROMPT = "PS1=\"\\e[33m(AWS:rspec)\\e[0m $PS1\"\n".freeze
9
+ BASHRC_EXPECTED_PROMPT = "PS1=\"\\[\\e[33m\\](AWS:rspec)\\[\\e[0m\\] $PS1\"\n".freeze
10
10
 
11
11
  EXPECTED_ENV = {
12
12
  'AWS_ACCESS_KEY_ID' => 'AccessKeyId',
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws_runas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Marchesi
@@ -31,7 +31,7 @@ cert_chain:
31
31
  80WBA6xKwX0zwURD8J7WNieL2iY5AhBg26cHuFLMQGTCyNEeZHZHnJhCwuBcnV1w
32
32
  2zQ=
33
33
  -----END CERTIFICATE-----
34
- date: 2017-03-16 00:00:00.000000000 Z
34
+ date: 2017-03-17 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: aws-sdk
metadata.gz.sig CHANGED
Binary file