tty-command 0.3.3 → 0.4.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
  SHA1:
3
- metadata.gz: 858fdf67fb28440aac840d0d2cddcc619d2b8d57
4
- data.tar.gz: e643017a30586492fa9f4f36fd8837d4cee920ea
3
+ metadata.gz: 234c1a25407b1be27c06441a1d1d9ec6cce50593
4
+ data.tar.gz: bd9ff0177f553972aede0ce9ef718b4731fb587d
5
5
  SHA512:
6
- metadata.gz: 30dc457a331aaf5cf8111264053f47860aca76bf3acd20f613ab73cad938fa878e3990d47eadc0a4b45b2a12bdff18d376c070118834cc2e808a82bf6db633be
7
- data.tar.gz: d22d2094e22c85851ed3f4f479a6873bf2543f0b3dbd64ef9a658d6e345a1ba72d59e745b79ff218724931bb57cd23123f76512d6a8b59763a2cc43590a5fc2d
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
@@ -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
- cmd = value.to_s.dup
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,5 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
+ require_relative 'result'
4
+
3
5
  module TTY
4
6
  class Command
5
7
  class DryRunner
@@ -1,9 +1,10 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  require 'thread'
4
- require 'tty/command/execute'
5
- require 'tty/command/result'
6
- require 'tty/command/truncator'
4
+
5
+ require_relative 'execute'
6
+ require_relative 'result'
7
+ require_relative 'truncator'
7
8
 
8
9
  module TTY
9
10
  class Command
@@ -2,6 +2,6 @@
2
2
 
3
3
  module TTY
4
4
  class Command
5
- VERSION = '0.3.3'
5
+ VERSION = '0.4.0'
6
6
  end # Command
7
7
  end # TTY
data/lib/tty/command.rb CHANGED
@@ -2,14 +2,15 @@
2
2
 
3
3
  require 'rbconfig'
4
4
  require 'tty/command/version'
5
- require 'tty/command/cmd'
6
- require 'tty/command/exit_error'
7
- require 'tty/command/dry_runner'
8
- require 'tty/command/process_runner'
9
- require 'tty/command/printers/null'
10
- require 'tty/command/printers/pretty'
11
- require 'tty/command/printers/progress'
12
- require 'tty/command/printers/quiet'
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
@@ -1 +1,3 @@
1
+ # encoding: utf-8
2
+
1
3
  require 'tty/command'
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.3.3
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-10 00:00:00.000000000 Z
11
+ date: 2017-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pastel