tty-command 0.3.3 → 0.4.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 +6 -0
- data/lib/tty/command/cmd.rb +3 -7
- data/lib/tty/command/dry_runner.rb +2 -0
- data/lib/tty/command/process_runner.rb +4 -3
- data/lib/tty/command/version.rb +1 -1
- data/lib/tty/command.rb +9 -8
- data/lib/tty-command.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 234c1a25407b1be27c06441a1d1d9ec6cce50593
|
4
|
+
data.tar.gz: bd9ff0177f553972aede0ce9ef718b4731fb587d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bddbfb2794b1c672147162e28e3b380bec7e3c1b511b46dee46c688d994b7735cebba6db865dddb89dd6dfffec3de8ffa672f1e15bdcde01292805f240072926
|
7
|
+
data.tar.gz: aa19370eb59f7127bb8ffa3bf64e4a97f6be2c9abc88143b3a1818cd0100baa0457b5031d63186e05d0a571a41283d4c7964378d38f13cc155c6d1c25d5ed499
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Change log
|
2
2
|
|
3
|
+
## [v0.4.0] - 2017-02-22
|
4
|
+
|
5
|
+
### Changed
|
6
|
+
* Remove automatic insertion of semicolons on line breaks and fix issue #27
|
7
|
+
|
3
8
|
## [v0.3.3] - 2017-02-10
|
4
9
|
|
5
10
|
### Changed
|
@@ -39,6 +44,7 @@
|
|
39
44
|
|
40
45
|
* Initial implementation and release
|
41
46
|
|
47
|
+
[v0.4.0]: https://github.com/piotrmurach/tty-command/compare/v0.3.3...v0.4.0
|
42
48
|
[v0.3.3]: https://github.com/piotrmurach/tty-command/compare/v0.3.2...v0.3.3
|
43
49
|
[v0.3.2]: https://github.com/piotrmurach/tty-command/compare/v0.3.1...v0.3.2
|
44
50
|
[v0.3.1]: https://github.com/piotrmurach/tty-command/compare/v0.3.0...v0.3.1
|
data/lib/tty/command/cmd.rb
CHANGED
@@ -125,15 +125,11 @@ module TTY
|
|
125
125
|
|
126
126
|
private
|
127
127
|
|
128
|
+
# Coerce to string
|
129
|
+
#
|
128
130
|
# @api private
|
129
131
|
def sanitize(value)
|
130
|
-
|
131
|
-
lines = cmd.lines.to_a
|
132
|
-
lines.each_with_index.reduce('') do |acc, (line, index)|
|
133
|
-
acc << line.strip
|
134
|
-
acc << '; ' if (index + 1) != lines.size
|
135
|
-
acc
|
136
|
-
end
|
132
|
+
value.to_s.dup
|
137
133
|
end
|
138
134
|
|
139
135
|
# Enclose argument in quotes if it contains
|
@@ -1,9 +1,10 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
3
|
require 'thread'
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
|
5
|
+
require_relative 'execute'
|
6
|
+
require_relative 'result'
|
7
|
+
require_relative 'truncator'
|
7
8
|
|
8
9
|
module TTY
|
9
10
|
class Command
|
data/lib/tty/command/version.rb
CHANGED
data/lib/tty/command.rb
CHANGED
@@ -2,14 +2,15 @@
|
|
2
2
|
|
3
3
|
require 'rbconfig'
|
4
4
|
require 'tty/command/version'
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
5
|
+
|
6
|
+
require_relative 'command/cmd'
|
7
|
+
require_relative 'command/exit_error'
|
8
|
+
require_relative 'command/dry_runner'
|
9
|
+
require_relative 'command/process_runner'
|
10
|
+
require_relative 'command/printers/null'
|
11
|
+
require_relative 'command/printers/pretty'
|
12
|
+
require_relative 'command/printers/progress'
|
13
|
+
require_relative 'command/printers/quiet'
|
13
14
|
|
14
15
|
module TTY
|
15
16
|
class Command
|
data/lib/tty-command.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tty-command
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Murach
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pastel
|