cli-pasta 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -3
  3. data/README.md +21 -18
  4. metadata +45 -17
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8958688aa28dbfe8d4d6c020740294df34992399434ee90c3a4d5cd42309ecb
4
- data.tar.gz: 61ca2ec1525988adb75a52e7c7b87f0477f77bf46687072012e66eaaa37118b3
3
+ metadata.gz: 3344c9097f3a1f9eda3d5d19b3f8cd0e038a62a1421ead8f729f7674fcfa0d7e
4
+ data.tar.gz: cc37357f7729872294223cac7260dac3ddb7a5f4fcb1d505ff0d81e44fec62a5
5
5
  SHA512:
6
- metadata.gz: d2f17fc5e7aba06b499f54d1bfdb20123480b6a14378cf1d7a2ab37e2a74519dc200898f138fc7dd4a7c0b9149e3dc6a42d45c964f8c01b6b3cb5042be290ebb
7
- data.tar.gz: e4a417bb88e18f22e30ca14c4f4d7b4fccfc712dbfa9474648c035fab45bb8be42b5368b69efc57e6dadc35a91a53c9edc89b188e747d0e486f3e081348b3c02
6
+ metadata.gz: e20771a6edcaa5f47d566399415108d9e2f248d20d8b3477c723db1fdc6466b194c3884682d12511a0652d4a9df69887b5c7793bbf8a69c0a35a6842c07130ff
7
+ data.tar.gz: 218a74793e277e1e2c47d02d9a233f73548713d0d36bc9ba0059becc549b06aadc2126e59ebcae7b54ba24b52c8373e102d2b0828bf477177dcafe46fbc7d120
@@ -1,7 +1,12 @@
1
- ## 2.0.0 - 2018-04-10 21:33:56
1
+ ## 2.0.1 - TBD
2
2
 
3
- * breaking change: rename epipe.rb -> sigpipe.rb
3
+ - drop support for EOL ruby versions (< 2.5)
4
+ - update dependencies
4
5
 
5
- ## 1.0.0 - 2018-03-28 19:13:58
6
+ ## 2.0.0 - 2018-04-10
7
+
8
+ * **breaking change**: rename epipe.rb -> sigpipe.rb
9
+
10
+ ## 1.0.0 - 2018-03-28
6
11
 
7
12
  * initial release
data/README.md CHANGED
@@ -3,21 +3,20 @@
3
3
  [![Build Status](https://travis-ci.org/chocolateboy/cli-pasta.svg)](https://travis-ci.org/chocolateboy/cli-pasta)
4
4
  [![Gem Version](https://img.shields.io/gem/v/cli-pasta.svg)](https://rubygems.org/gems/cli-pasta)
5
5
 
6
- <!-- START doctoc generated TOC please keep comment here to allow auto update -->
7
- <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
6
+ <!-- TOC -->
8
7
 
9
8
  - [NAME](#name)
10
9
  - [INSTALL](#install)
11
10
  - [SYNOPSIS](#synopsis)
12
11
  - [DESCRIPTION](#description)
13
12
  - [BACKGROUND](#background)
14
- - [CLASSES](#classes)
13
+ - [COMPATIBILITY](#compatibility)
15
14
  - [VERSION](#version)
16
15
  - [SEE ALSO](#see-also)
17
16
  - [AUTHOR](#author)
18
17
  - [COPYRIGHT AND LICENSE](#copyright-and-license)
19
18
 
20
- <!-- END doctoc generated TOC please keep comment here to allow auto update -->
19
+ <!-- TOC END -->
21
20
 
22
21
  # NAME
23
22
 
@@ -46,19 +45,20 @@ end
46
45
 
47
46
  # DESCRIPTION
48
47
 
49
- cli-pasta packages boilerplate code which is commonly copied 'n' pasted into Ruby CLI scripts to perform the following tasks:
48
+ cli-pasta packages boilerplate code which is commonly copied 'n' pasted into
49
+ Ruby CLI scripts to perform the following tasks:
50
50
 
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
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
53
53
 
54
- These tasks are executed by loading the corresponding files, either separately e.g.:
54
+ These tasks are executed by loading the corresponding files, either separately, e.g.:
55
55
 
56
56
  ```ruby
57
57
  require "cli-pasta/sigint"
58
58
  require "cli-pasta/sigpipe"
59
59
  ```
60
60
 
61
- Or as a group e.g.:
61
+ Or as a group:
62
62
 
63
63
  ```ruby
64
64
  require "cli-pasta"
@@ -66,7 +66,8 @@ require "cli-pasta"
66
66
 
67
67
  ## BACKGROUND
68
68
 
69
- By default, ruby produces an ugly error message when scripts are interrupted by <kbd>Ctrl-C</kbd> (`SIGINT`) e.g.:
69
+ By default, ruby produces an ugly error message when scripts are interrupted by
70
+ <kbd>Ctrl-C</kbd> (`SIGINT`), e.g.:
70
71
 
71
72
  $ timeout --signal INT 1 ruby -e sleep
72
73
 
@@ -76,7 +77,8 @@ Output:
76
77
  1: from -e:1:in `<main>'
77
78
  -e:1:in `sleep': Interrupt
78
79
 
79
- The same is true if a process encounters an error when trying to write to a broken pipe (`EPIPE`) e.g.:
80
+ The same is true if a process encounters an error when trying to write to a
81
+ broken pipe (`EPIPE`), e.g.:
80
82
 
81
83
  $ ruby -e 'loop { puts "." }' | head -n0
82
84
 
@@ -90,7 +92,8 @@ Output:
90
92
  1: from -e:1:in `puts'
91
93
  -e:1:in `write': Broken pipe @ io_writev - <STDOUT> (Errno::EPIPE)
92
94
 
93
- The snippets provided by this gem install signal handlers which handle these errors in the same way as other CLI tools e.g.:
95
+ The snippets provided by this gem install signal handlers which handle these
96
+ errors in the same way as other CLI tools, e.g.:
94
97
 
95
98
  $ timeout --signal INT 1 ruby -r cli-pasta -e sleep
96
99
  # No output
@@ -98,13 +101,13 @@ The snippets provided by this gem install signal handlers which handle these err
98
101
  $ ruby -r cli-pasta -e 'loop { puts "." }' | head -n0
99
102
  # No output
100
103
 
101
- # CLASSES
104
+ # COMPATIBILITY
102
105
 
103
- None.
106
+ - [Maintained ruby versions](https://www.ruby-lang.org/en/downloads/branches/)
104
107
 
105
108
  # VERSION
106
109
 
107
- 2.0.0
110
+ 2.0.1
108
111
 
109
112
  # SEE ALSO
110
113
 
@@ -116,7 +119,7 @@ None.
116
119
 
117
120
  # COPYRIGHT AND LICENSE
118
121
 
119
- Copyright © 2018 by chocolateboy.
122
+ Copyright © 2018-2020 by chocolateboy.
120
123
 
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).
124
+ This is free software; you can redistribute it and/or modify it under the terms
125
+ of the [Artistic License 2.0](https://www.opensource.org/licenses/artistic-license-2.0.php).
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: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - chocolateboy
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-10 00:00:00.000000000 Z
11
+ date: 2020-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.16'
19
+ version: 2.1.4
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.16'
26
+ version: 2.1.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: komenda
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.1.8
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '5.14'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.14'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: minitest-power_assert
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -52,49 +66,63 @@ dependencies:
52
66
  - - "~>"
53
67
  - !ruby/object:Gem::Version
54
68
  version: 0.3.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: minitest-reporters
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.4'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.4'
55
83
  - !ruby/object:Gem::Dependency
56
84
  name: rake
57
85
  requirement: !ruby/object:Gem::Requirement
58
86
  requirements:
59
87
  - - "~>"
60
88
  - !ruby/object:Gem::Version
61
- version: '10.0'
89
+ version: '13.0'
62
90
  type: :development
63
91
  prerelease: false
64
92
  version_requirements: !ruby/object:Gem::Requirement
65
93
  requirements:
66
94
  - - "~>"
67
95
  - !ruby/object:Gem::Version
68
- version: '10.0'
96
+ version: '13.0'
69
97
  - !ruby/object:Gem::Dependency
70
98
  name: rubocop
71
99
  requirement: !ruby/object:Gem::Requirement
72
100
  requirements:
73
101
  - - "~>"
74
102
  - !ruby/object:Gem::Version
75
- version: 0.54.0
103
+ version: '0.93'
76
104
  type: :development
77
105
  prerelease: false
78
106
  version_requirements: !ruby/object:Gem::Requirement
79
107
  requirements:
80
108
  - - "~>"
81
109
  - !ruby/object:Gem::Version
82
- version: 0.54.0
110
+ version: '0.93'
83
111
  - !ruby/object:Gem::Dependency
84
112
  name: tty-which
85
113
  requirement: !ruby/object:Gem::Requirement
86
114
  requirements:
87
115
  - - "~>"
88
116
  - !ruby/object:Gem::Version
89
- version: 0.3.0
117
+ version: 0.4.2
90
118
  type: :development
91
119
  prerelease: false
92
120
  version_requirements: !ruby/object:Gem::Requirement
93
121
  requirements:
94
122
  - - "~>"
95
123
  - !ruby/object:Gem::Version
96
- version: 0.3.0
97
- description:
124
+ version: 0.4.2
125
+ description:
98
126
  email: chocolate@cpan.org
99
127
  executables: []
100
128
  extensions: []
@@ -110,10 +138,11 @@ homepage: https://github.com/chocolateboy/cli-pasta
110
138
  licenses:
111
139
  - Artistic-2.0
112
140
  metadata:
141
+ allowed_push_host: https://rubygems.org
113
142
  bug_tracker_uri: https://github.com/chocolateboy/cli-pasta/issues
114
143
  changelog_uri: https://github.com/chocolateboy/cli-pasta/blob/master/CHANGELOG.md
115
144
  source_code_uri: https://github.com/chocolateboy/cli-pasta
116
- post_install_message:
145
+ post_install_message:
117
146
  rdoc_options: []
118
147
  require_paths:
119
148
  - lib
@@ -121,16 +150,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
121
150
  requirements:
122
151
  - - ">="
123
152
  - !ruby/object:Gem::Version
124
- version: '0'
153
+ version: 2.5.0
125
154
  required_rubygems_version: !ruby/object:Gem::Requirement
126
155
  requirements:
127
156
  - - ">="
128
157
  - !ruby/object:Gem::Version
129
158
  version: '0'
130
159
  requirements: []
131
- rubyforge_project:
132
- rubygems_version: 2.7.6
133
- signing_key:
160
+ rubygems_version: 3.1.4
161
+ signing_key:
134
162
  specification_version: 4
135
163
  summary: Handle Ctrl-C and broken-pipe errors gracefully in Ruby command-line tools
136
164
  test_files: []