cli-pasta 1.0.0 → 2.0.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/README.md +7 -7
- data/lib/cli-pasta.rb +1 -1
- data/lib/cli-pasta/{epipe.rb → sigpipe.rb} +0 -0
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8958688aa28dbfe8d4d6c020740294df34992399434ee90c3a4d5cd42309ecb
|
4
|
+
data.tar.gz: 61ca2ec1525988adb75a52e7c7b87f0477f77bf46687072012e66eaaa37118b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2f17fc5e7aba06b499f54d1bfdb20123480b6a14378cf1d7a2ab37e2a74519dc200898f138fc7dd4a7c0b9149e3dc6a42d45c964f8c01b6b3cb5042be290ebb
|
7
|
+
data.tar.gz: e4a417bb88e18f22e30ca14c4f4d7b4fccfc712dbfa9474648c035fab45bb8be42b5368b69efc57e6dadc35a91a53c9edc89b188e747d0e486f3e081348b3c02
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -2,7 +2,6 @@
|
|
2
2
|
|
3
3
|
[](https://travis-ci.org/chocolateboy/cli-pasta)
|
4
4
|
[](https://rubygems.org/gems/cli-pasta)
|
5
|
-
[](https://github.com/chocolateboy/cli-pasta/blob/master/LICENSE.md)
|
6
5
|
|
7
6
|
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
8
7
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
@@ -49,14 +48,14 @@ end
|
|
49
48
|
|
50
49
|
cli-pasta packages boilerplate code which is commonly copied 'n' pasted into Ruby CLI scripts to perform the following tasks:
|
51
50
|
|
52
|
-
* set up an `EPIPE` handler to handle broken pipes in the same way as other CLI tools
|
53
51
|
* set up a `SIGINT` handler to handle <kbd>Ctrl-C</kbd> in the same way as other CLI tools
|
52
|
+
* set up a `SIGPIPE` handler to handle broken pipes in the same way as other CLI tools
|
54
53
|
|
55
54
|
These tasks are executed by loading the corresponding files, either separately e.g.:
|
56
55
|
|
57
56
|
```ruby
|
58
|
-
require "cli-pasta/epipe"
|
59
57
|
require "cli-pasta/sigint"
|
58
|
+
require "cli-pasta/sigpipe"
|
60
59
|
```
|
61
60
|
|
62
61
|
Or as a group e.g.:
|
@@ -73,7 +72,7 @@ By default, ruby produces an ugly error message when scripts are interrupted by
|
|
73
72
|
|
74
73
|
Output:
|
75
74
|
|
76
|
-
|
75
|
+
Traceback (most recent call last):
|
77
76
|
1: from -e:1:in `<main>'
|
78
77
|
-e:1:in `sleep': Interrupt
|
79
78
|
|
@@ -105,7 +104,7 @@ None.
|
|
105
104
|
|
106
105
|
# VERSION
|
107
106
|
|
108
|
-
|
107
|
+
2.0.0
|
109
108
|
|
110
109
|
# SEE ALSO
|
111
110
|
|
@@ -117,6 +116,7 @@ None.
|
|
117
116
|
|
118
117
|
# COPYRIGHT AND LICENSE
|
119
118
|
|
120
|
-
Copyright © chocolateboy
|
119
|
+
Copyright © 2018 by chocolateboy.
|
121
120
|
|
122
|
-
This
|
121
|
+
This is free software; you can redistribute it and/or modify it under the
|
122
|
+
terms of the [Artistic License 2.0](http://www.opensource.org/licenses/artistic-license-2.0.php).
|
data/lib/cli-pasta.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cli-pasta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- chocolateboy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -39,47 +39,47 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.1.8
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: minitest-power_assert
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 0.3.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 0.3.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: '10.0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: '10.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: rubocop
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 0.54.0
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 0.54.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: tty-which
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -104,8 +104,8 @@ files:
|
|
104
104
|
- LICENSE.md
|
105
105
|
- README.md
|
106
106
|
- lib/cli-pasta.rb
|
107
|
-
- lib/cli-pasta/epipe.rb
|
108
107
|
- lib/cli-pasta/sigint.rb
|
108
|
+
- lib/cli-pasta/sigpipe.rb
|
109
109
|
homepage: https://github.com/chocolateboy/cli-pasta
|
110
110
|
licenses:
|
111
111
|
- Artistic-2.0
|