jet_black 0.4.0 → 0.5.0
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 +4 -4
- data/CHANGELOG.md +5 -1
- data/Gemfile.lock +1 -1
- data/README.md +11 -7
- data/lib/jet_black/executed_command.rb +1 -1
- data/lib/jet_black/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a2c9cbe24aac0ea279d8aadfa2874519ea8be14bb6013646a391c59319aa1d2
|
4
|
+
data.tar.gz: c7016a3258b6110fe98dcb0db13495499d8bc1ad9158c4a7fc92988aea06189f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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 =
|
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
|
-
|
166
|
+
session.run("bundle install", options: { clean_bundler_env: true })
|
167
|
+
```
|
166
168
|
|
167
|
-
|
169
|
+
Per session:
|
170
|
+
|
171
|
+
```ruby
|
168
172
|
session = JetBlack::Session.new(options: { clean_bundler_env: true })
|
169
|
-
|
170
|
-
|
173
|
+
session.run("bundle install")
|
174
|
+
session.run("bundle exec rake")
|
171
175
|
```
|
172
176
|
|
173
177
|
### `$PATH` prefix
|
data/lib/jet_black/version.rb
CHANGED