cli-pasta 1.0.0 → 2.0.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
  SHA256:
3
- metadata.gz: 5612e4030cb2f485f5bb1a6c00b5f8f3ddfa4617d0b21f72492cbc0f1ea38397
4
- data.tar.gz: 2d01a19cc92baf44ef1c80b6e0a629b27660c7410702f215eb8dab826edb5f85
3
+ metadata.gz: d8958688aa28dbfe8d4d6c020740294df34992399434ee90c3a4d5cd42309ecb
4
+ data.tar.gz: 61ca2ec1525988adb75a52e7c7b87f0477f77bf46687072012e66eaaa37118b3
5
5
  SHA512:
6
- metadata.gz: 65687bfac89d2d948b2838f7af257f58ee8df94e622ba7e177077b005f709cbff2a2e396d04ce5c0d969877727262ba539317c105c778d3ac2bcae8f4f7b268f
7
- data.tar.gz: 8f92137c9bb38481212aac5de6c6a350a1cd95518ce93498f962440e1c70c35baadef2113c1b0733f69b1e5a3b66d6b5e0a4d22cc5d01a9223ce31f84434588e
6
+ metadata.gz: d2f17fc5e7aba06b499f54d1bfdb20123480b6a14378cf1d7a2ab37e2a74519dc200898f138fc7dd4a7c0b9149e3dc6a42d45c964f8c01b6b3cb5042be290ebb
7
+ data.tar.gz: e4a417bb88e18f22e30ca14c4f4d7b4fccfc712dbfa9474648c035fab45bb8be42b5368b69efc57e6dadc35a91a53c9edc89b188e747d0e486f3e081348b3c02
@@ -1,3 +1,7 @@
1
- # 1.0.0 - 2018-03-28 19:13:58
1
+ ## 2.0.0 - 2018-04-10 21:33:56
2
+
3
+ * breaking change: rename epipe.rb -> sigpipe.rb
4
+
5
+ ## 1.0.0 - 2018-03-28 19:13:58
2
6
 
3
7
  * initial release
data/README.md CHANGED
@@ -2,7 +2,6 @@
2
2
 
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
- [![License](https://img.shields.io/badge/license-artistic-blue.svg)](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
- ^CTraceback (most recent call last):
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
- 1.0.0
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, 2018.
119
+ Copyright © 2018 by chocolateboy.
121
120
 
122
- This gem is free software. It is available under the terms of the [Artistic License 2.0](http://www.opensource.org/licenses/artistic-license-2.0.php).
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).
@@ -2,5 +2,5 @@
2
2
 
3
3
  # handle Ctrl-C (SIGINT) and broken-pipe errors gracefully in CLI scripts
4
4
 
5
- require_relative 'cli-pasta/epipe'
6
5
  require_relative 'cli-pasta/sigint'
6
+ require_relative 'cli-pasta/sigpipe'
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: 1.0.0
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-03-28 00:00:00.000000000 Z
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: rake
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: '10.0'
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: '10.0'
54
+ version: 0.3.0
55
55
  - !ruby/object:Gem::Dependency
56
- name: rubocop
56
+ name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.54.0
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: 0.54.0
68
+ version: '10.0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: test-unit
70
+ name: rubocop
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '3.2'
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: '3.2'
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