jet_black 0.4.0 → 0.5.0

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
  SHA256:
3
- metadata.gz: 3cb06cc77894ad09aa2a5c00da5226227b6416624ac7c02a0d0c558e457667c1
4
- data.tar.gz: 494d96406354c2d46fd34ea105830ee54f2b84da23fe43167446d9ab41d3cad9
3
+ metadata.gz: 2a2c9cbe24aac0ea279d8aadfa2874519ea8be14bb6013646a391c59319aa1d2
4
+ data.tar.gz: c7016a3258b6110fe98dcb0db13495499d8bc1ad9158c4a7fc92988aea06189f
5
5
  SHA512:
6
- metadata.gz: b27d58676baaa1ef5d3513b0515398798aa137461e5eb649a8cd598e51bd24e344db543e67d68c2a12449e44808a775abc769fcc0adffd5e7bc0c0a22404f463
7
- data.tar.gz: 99451118f6c55638e989f41c8ef83773c5f9e6fa86d281ae0087282e2ea6694788eed7637d47e02f9e431c4472782f10007cc4fcd1d6a9ccbf7720268075679a
6
+ metadata.gz: 0e7d457a1865c5a34bae9045c851e30cc23f59fc713f12cf5a6f5933ab46e0aeb414c296d632d1f80a28d9bea3531928b947b80805abf1f89008f833ff0ed43e
7
+ data.tar.gz: 2521b99ee44a1e3d921fbe79157a7ad73f5656ba5c1a6b0bad44e5ca5e80d23745ef31de6f1d208f735cc6b25c6d48f011d8d1557b67ce7d7a7f187bee4400c5
data/CHANGELOG.md CHANGED
@@ -1,8 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.5.0
4
+
5
+ - `stdout` and `stderr` now keep any trailing newlines at the end of the string.
6
+
3
7
  ## v0.4.0
4
8
 
5
- - Scrub ANSI escape sequences in stdout and stderr
9
+ - Scrub ANSI escape sequences in `stdout` and `stderr`
6
10
  - Allow environment variables to be unset
7
11
 
8
12
  ## v0.3.0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jet_black (0.4.0)
4
+ jet_black (0.5.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -73,7 +73,7 @@ require "jet_black"
73
73
  session = JetBlack::Session.new
74
74
  result = session.run("echo foo")
75
75
 
76
- result.stdout # => "foo"
76
+ result.stdout # => "foo\n"
77
77
  result.stderr # => ""
78
78
  result.exit_status # => 0
79
79
  ```
@@ -145,7 +145,7 @@ non-human-readable file.
145
145
 
146
146
  ```ruby
147
147
  session = JetBlack::Session.new
148
- result = subject.run("echo $FOO", env: { FOO: "bar" })
148
+ result = session.run("printf $FOO", env: { FOO: "bar" })
149
149
 
150
150
  result.stdout # => "bar"
151
151
  ```
@@ -159,15 +159,19 @@ but you want to run commands like `bundle install` and `bundle exec` with a
159
159
  different Gemfile in a given spec, you can configure the session or individual
160
160
  commands to run with a clean Bundler environment.
161
161
 
162
+ Per command:
163
+
162
164
  ```ruby
163
- # Per command
164
165
  session = JetBlack::Session.new
165
- subject.run("bundle install", options: { clean_bundler_env: true })
166
+ session.run("bundle install", options: { clean_bundler_env: true })
167
+ ```
166
168
 
167
- # Per session
169
+ Per session:
170
+
171
+ ```ruby
168
172
  session = JetBlack::Session.new(options: { clean_bundler_env: true })
169
- subject.run("bundle install")
170
- subject.run("bundle exec rake")
173
+ session.run("bundle install")
174
+ session.run("bundle exec rake")
171
175
  ```
172
176
 
173
177
  ### `$PATH` prefix
@@ -25,7 +25,7 @@ module JetBlack
25
25
  private
26
26
 
27
27
  def scrub(output_string)
28
- AnsiScrubber.call(output_string.to_s.chomp)
28
+ AnsiScrubber.call(output_string.to_s)
29
29
  end
30
30
  end
31
31
  end
@@ -1,3 +1,3 @@
1
1
  module JetBlack
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jet_black
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oli Peate