tty-prompt 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -5
- data/CODE_OF_CONDUCT.md +49 -0
- data/README.md +6 -3
- data/lib/tty/prompt/reader.rb +0 -2
- data/lib/tty/prompt/version.rb +1 -1
- data/spec/unit/expand_spec.rb +4 -4
- data/tty-prompt.gemspec +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa2ea2871524bd9ecf7b458460bc49dd6bc77470
|
4
|
+
data.tar.gz: afcbcad522c093f275cc717a1b84e5933e56a78b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2a2cbbb3e9c63a2b45fd2b5c21a9cfa2ed17de5b3706701d1cfda6d3667f304b524ea3513751384e7a997d3f9cea0984085af28446175bb55e8c1919e938e88
|
7
|
+
data.tar.gz: 6b5a9491c26cc6facddd6052950a757c335e9d16b257500d6012f5cb8c8b2c402fb6d729904f2470203c5f313d804ccb073a1aba3ef6f2f3039618b4c4aff208
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Change log
|
2
2
|
|
3
|
+
## [v0.6.0] - 2016-05-21
|
4
|
+
|
5
|
+
### Changed
|
6
|
+
* Upgrade tty-cursor dependency
|
7
|
+
|
8
|
+
### Fixed
|
9
|
+
* Fix issue with reader trapping signals by @kylekyle
|
10
|
+
* Fix expand to use new prev_line implementation
|
11
|
+
|
3
12
|
## [v0.5.0] - 2016-03-28
|
4
13
|
|
5
14
|
### Added
|
@@ -77,8 +86,9 @@
|
|
77
86
|
|
78
87
|
* Initial implementation and release
|
79
88
|
|
80
|
-
[v0.
|
81
|
-
[v0.
|
82
|
-
[v0.
|
83
|
-
[v0.
|
84
|
-
[v0.
|
89
|
+
[v0.6.0]: https://github.com/piotrmurach/tty-prompt/compare/v0.5.0...v0.6.0
|
90
|
+
[v0.5.0]: https://github.com/piotrmurach/tty-prompt/compare/v0.4.0...v0.5.0
|
91
|
+
[v0.4.0]: https://github.com/piotrmurach/tty-prompt/compare/v0.3.0...v0.4.0
|
92
|
+
[v0.3.0]: https://github.com/piotrmurach/tty-prompt/compare/v0.2.0...v0.3.0
|
93
|
+
[v0.2.0]: https://github.com/piotrmurach/tty-prompt/compare/v0.1.0...v0.2.0
|
94
|
+
[v0.1.0]: https://github.com/piotrmurach/tty-prompt/compare/v0.1.0
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at [email]. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/README.md
CHANGED
@@ -1,14 +1,15 @@
|
|
1
|
-
# TTY::Prompt
|
1
|
+
# TTY::Prompt [![Gitter](https://badges.gitter.im/Join%20Chat.svg)][gitter]
|
2
2
|
[![Gem Version](https://badge.fury.io/rb/tty-prompt.svg)][gem]
|
3
3
|
[![Build Status](https://secure.travis-ci.org/piotrmurach/tty-prompt.svg?branch=master)][travis]
|
4
4
|
[![Code Climate](https://codeclimate.com/github/piotrmurach/tty-prompt/badges/gpa.svg)][codeclimate]
|
5
|
-
[![Coverage Status](https://coveralls.io/repos/piotrmurach/tty-prompt/badge.svg)][coverage]
|
5
|
+
[![Coverage Status](https://coveralls.io/repos/github/piotrmurach/tty-prompt/badge.svg)][coverage]
|
6
6
|
[![Inline docs](http://inch-ci.org/github/piotrmurach/tty-prompt.svg?branch=master)][inchpages]
|
7
7
|
|
8
|
+
[gitter]: https://gitter.im/piotrmurach/tty
|
8
9
|
[gem]: http://badge.fury.io/rb/tty-prompt
|
9
10
|
[travis]: http://travis-ci.org/piotrmurach/tty-prompt
|
10
11
|
[codeclimate]: https://codeclimate.com/github/piotrmurach/tty-prompt
|
11
|
-
[coverage]: https://coveralls.io/
|
12
|
+
[coverage]: https://coveralls.io/github/piotrmurach/tty-prompt
|
12
13
|
[inchpages]: http://inch-ci.org/github/piotrmurach/tty-prompt
|
13
14
|
|
14
15
|
> A beautiful and powerful interactive command line prompt.
|
@@ -896,6 +897,8 @@ prompt.error(...)
|
|
896
897
|
4. Push to the branch (`git push origin my-new-feature`)
|
897
898
|
5. Create a new Pull Request
|
898
899
|
|
900
|
+
This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
901
|
+
|
899
902
|
## Copyright
|
900
903
|
|
901
904
|
Copyright (c) 2015-2016 Piotr Murach. See LICENSE for further details.
|
data/lib/tty/prompt/reader.rb
CHANGED
data/lib/tty/prompt/version.rb
CHANGED
data/spec/unit/expand_spec.rb
CHANGED
@@ -69,11 +69,11 @@ RSpec.describe TTY::Prompt, '#expand' do
|
|
69
69
|
"Overwrite Gemfile? (enter \"h\" for help) [y,n,\e[32ma\e[0m,d,q,h] ",
|
70
70
|
"a\n",
|
71
71
|
"\e[32m>> \e[0mOverwrite all",
|
72
|
-
"\e[
|
72
|
+
"\e[A\e[1G\e[55C",
|
73
73
|
"\e[1000D\e[K",
|
74
74
|
"\e[1B",
|
75
75
|
"\e[1000D\e[K",
|
76
|
-
"\e[
|
76
|
+
"\e[A\e[1G",
|
77
77
|
"Overwrite Gemfile? \e[32mOverwrite all\e[0m\n"
|
78
78
|
].join)
|
79
79
|
end
|
@@ -90,11 +90,11 @@ RSpec.describe TTY::Prompt, '#expand' do
|
|
90
90
|
"\e[1000D\e[K",
|
91
91
|
"Overwrite Gemfile? (enter \"h\" for help) [y,n,a,d,q,\e[32mh\e[0m] h\n",
|
92
92
|
"\e[32m>> \e[0mprint help",
|
93
|
-
"\e[
|
93
|
+
"\e[A\e[1G\e[55C",
|
94
94
|
"\e[1000D\e[K",
|
95
95
|
"\e[1B",
|
96
96
|
"\e[1000D\e[K",
|
97
|
-
"\e[
|
97
|
+
"\e[A\e[1G",
|
98
98
|
"Overwrite Gemfile? \n",
|
99
99
|
" y - Overwrite\n",
|
100
100
|
" n - Skip\n",
|
data/tty-prompt.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_dependency 'necromancer', '~> 0.3.0'
|
22
22
|
spec.add_dependency 'pastel', '~> 0.6.0'
|
23
|
-
spec.add_dependency 'tty-cursor', '~> 0.
|
23
|
+
spec.add_dependency 'tty-cursor', '~> 0.3.0'
|
24
24
|
spec.add_dependency 'tty-platform', '~> 0.1.0'
|
25
25
|
spec.add_dependency 'wisper', '~> 1.6.1'
|
26
26
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tty-prompt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Murach
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: necromancer
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 0.3.0
|
48
48
|
type: :runtime
|
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: 0.
|
54
|
+
version: 0.3.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: tty-platform
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -126,6 +126,7 @@ files:
|
|
126
126
|
- .rspec
|
127
127
|
- .travis.yml
|
128
128
|
- CHANGELOG.md
|
129
|
+
- CODE_OF_CONDUCT.md
|
129
130
|
- Gemfile
|
130
131
|
- LICENSE.txt
|
131
132
|
- README.md
|