tty-editor 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +3 -0
- data/.travis.yml +25 -0
- data/CHANGELOG.md +7 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +8 -0
- data/LICENSE.txt +21 -0
- data/README.md +82 -0
- data/Rakefile +10 -0
- data/appveyor.yml +23 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/examples/basic.rb +7 -0
- data/examples/empty.rb +5 -0
- data/examples/tempfile.rb +7 -0
- data/lib/tty-editor.rb +4 -0
- data/lib/tty/editor.rb +177 -0
- data/lib/tty/editor/version.rb +7 -0
- data/tasks/console.rake +10 -0
- data/tasks/coverage.rake +11 -0
- data/tasks/spec.rake +29 -0
- data/tty-editor.gemspec +28 -0
- metadata +142 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4f5c057d8235f3df81858c683b0539edc842df87
|
4
|
+
data.tar.gz: f2cb1e9226af7be53681b4b8ea28f764adcf8c4a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 173d74b4f112e67b703e4cfa13a9a86e135722350961320130e83556165945bf05a2e0f8840f893a844dbe79551b1927ab1b582af239e8bb9800f1e2be29aade
|
7
|
+
data.tar.gz: 47eeb14b06b3973187d368c412c93fc22407040b61d3cc9b276c28cb6dfb04ceb26ea5616a04e0429bef0e454e545271e655bd9438ed7edb9a5c8463f370097e
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
---
|
2
|
+
language: ruby
|
3
|
+
sudo: false
|
4
|
+
cache: bundler
|
5
|
+
script: "bundle exec rake ci"
|
6
|
+
rvm:
|
7
|
+
- 2.0.0
|
8
|
+
- 2.1.10
|
9
|
+
- 2.2.6
|
10
|
+
- 2.3.3
|
11
|
+
- 2.4.0
|
12
|
+
- ruby-head
|
13
|
+
- jruby-9000
|
14
|
+
- jruby-head
|
15
|
+
- rbx-3
|
16
|
+
matrix:
|
17
|
+
allow_failures:
|
18
|
+
- rvm: ruby-head
|
19
|
+
- rvm: jruby-head
|
20
|
+
- rvm: rbx-3
|
21
|
+
fast_finish: true
|
22
|
+
branches:
|
23
|
+
only: master
|
24
|
+
notifications:
|
25
|
+
email: false
|
data/CHANGELOG.md
ADDED
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/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Piotr Murach
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
# TTY::Editor [![Gitter](https://badges.gitter.im/Join%20Chat.svg)][gitter]
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/tty-editor.svg)][gem]
|
3
|
+
[![Build Status](https://secure.travis-ci.org/piotrmurach/tty-editor.svg?branch=master)][travis]
|
4
|
+
[![Build status](https://ci.appveyor.com/api/projects/status/yw4guy16meq5wkee?svg=true)][appveyor]
|
5
|
+
[![Code Climate](https://codeclimate.com/github/piotrmurach/tty-editor/badges/gpa.svg)][codeclimate]
|
6
|
+
[![Coverage Status](https://coveralls.io/repos/github/piotrmurach/tty-editor/badge.svg)][coverage]
|
7
|
+
[![Inline docs](http://inch-ci.org/github/piotrmurach/tty-editor.svg?branch=master)][inchpages]
|
8
|
+
|
9
|
+
[gitter]: https://gitter.im/piotrmurach/tty
|
10
|
+
[gem]: http://badge.fury.io/rb/tty-editor
|
11
|
+
[travis]: http://travis-ci.org/piotrmurach/tty-editor
|
12
|
+
[appveyor]: https://ci.appveyor.com/project/piotrmurach/tty-editor
|
13
|
+
[codeclimate]: https://codeclimate.com/github/piotrmurach/tty-editor
|
14
|
+
[coverage]: https://coveralls.io/github/piotrmurach/tty-editor
|
15
|
+
[inchpages]: http://inch-ci.org/github/piotrmurach/tty-editor
|
16
|
+
|
17
|
+
> Opens a file or text in in the user's preferred editor.
|
18
|
+
|
19
|
+
**TTY::Editor** provides independent component for [TTY](https://github.com/piotrmurach/tty) toolkit.
|
20
|
+
|
21
|
+
## Installation
|
22
|
+
|
23
|
+
Add this line to your application's Gemfile:
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
gem 'tty-editor'
|
27
|
+
```
|
28
|
+
|
29
|
+
And then execute:
|
30
|
+
|
31
|
+
$ bundle
|
32
|
+
|
33
|
+
Or install it yourself as:
|
34
|
+
|
35
|
+
$ gem install tty-editor
|
36
|
+
|
37
|
+
## Usage
|
38
|
+
|
39
|
+
Open file or text in default editor by calling `open`:
|
40
|
+
|
41
|
+
```ruby
|
42
|
+
TTY::Editor.open # opens editor with no input
|
43
|
+
TTY::Editor.open('hello.rb') # opens editor with the file contents
|
44
|
+
TTY::Editor.open('some text') # opens editor with text
|
45
|
+
```
|
46
|
+
|
47
|
+
You can force to always use a specific editor by passing `:command` option:
|
48
|
+
|
49
|
+
```ruby
|
50
|
+
|
51
|
+
TTY::Editor.open('hello.rb', command: :vim)
|
52
|
+
```
|
53
|
+
|
54
|
+
Use `:env` key to forward environment variables to the editor.
|
55
|
+
|
56
|
+
```ruby
|
57
|
+
TTY::Editor.open('hello.rb', env: { ... })
|
58
|
+
```
|
59
|
+
|
60
|
+
## Interface
|
61
|
+
|
62
|
+
### open
|
63
|
+
|
64
|
+
When editor successfully opens file or content then `true` is returned as value, otherwise `TTY::Editor::CommandInvocation` error is raised.
|
65
|
+
|
66
|
+
## Development
|
67
|
+
|
68
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
69
|
+
|
70
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
71
|
+
|
72
|
+
## Contributing
|
73
|
+
|
74
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/piotrmurach/tty-editor. 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.
|
75
|
+
|
76
|
+
## License
|
77
|
+
|
78
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
79
|
+
|
80
|
+
## Copyright
|
81
|
+
|
82
|
+
Copyright (c) 2017 Piotr Murach. See LICENSE for further details.
|
data/Rakefile
ADDED
data/appveyor.yml
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
---
|
2
|
+
install:
|
3
|
+
- SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
|
4
|
+
- ruby --version
|
5
|
+
- gem --version
|
6
|
+
- bundle install
|
7
|
+
build: off
|
8
|
+
test_script:
|
9
|
+
- bundle exec rake ci
|
10
|
+
environment:
|
11
|
+
matrix:
|
12
|
+
- ruby_version: "193"
|
13
|
+
- ruby_version: "200"
|
14
|
+
- ruby_version: "200-x64"
|
15
|
+
- ruby_version: "21"
|
16
|
+
- ruby_version: "21-x64"
|
17
|
+
- ruby_version: "22"
|
18
|
+
- ruby_version: "22-x64"
|
19
|
+
- ruby_version: "23"
|
20
|
+
- ruby_version: "23-x64"
|
21
|
+
matrix:
|
22
|
+
allow_failures:
|
23
|
+
- ruby_version: "193"
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "tty/editor"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/examples/basic.rb
ADDED
data/examples/empty.rb
ADDED
data/lib/tty-editor.rb
ADDED
data/lib/tty/editor.rb
ADDED
@@ -0,0 +1,177 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'tty-prompt'
|
4
|
+
require 'tty-which'
|
5
|
+
require 'tempfile'
|
6
|
+
require 'shellwords'
|
7
|
+
|
8
|
+
module TTY
|
9
|
+
# A class responsible for launching an editor
|
10
|
+
#
|
11
|
+
# @api private
|
12
|
+
class Editor
|
13
|
+
# Raised when command cannot be invoked
|
14
|
+
class CommandInvocationError < RuntimeError; end
|
15
|
+
|
16
|
+
# Raised when editor cannot be found
|
17
|
+
class EditorNotFoundError < RuntimeError; end
|
18
|
+
|
19
|
+
# Check if editor exists
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
#
|
23
|
+
# @api private
|
24
|
+
def self.exist?(cmd)
|
25
|
+
TTY::Which.exist?(cmd)
|
26
|
+
end
|
27
|
+
|
28
|
+
# List possible executable for editor command
|
29
|
+
#
|
30
|
+
# @return [Array[String]]
|
31
|
+
#
|
32
|
+
# @api private
|
33
|
+
def self.executables
|
34
|
+
[ENV['VISUAL'], ENV['EDITOR'],
|
35
|
+
'vim', 'vi', 'emacs', 'nano', 'nano-tiny', 'pico', 'mate -w'].compact
|
36
|
+
end
|
37
|
+
|
38
|
+
# Find available command
|
39
|
+
#
|
40
|
+
# @param [Array[String]] commands
|
41
|
+
# the commands to use intstead of defaults
|
42
|
+
#
|
43
|
+
# @return [Array[String]]
|
44
|
+
#
|
45
|
+
# @api public
|
46
|
+
def self.available(*commands)
|
47
|
+
commands = commands.empty? ? executables : commands
|
48
|
+
commands.uniq.select(&method(:exist?))
|
49
|
+
end
|
50
|
+
|
51
|
+
# Open file in system editor
|
52
|
+
#
|
53
|
+
# @example
|
54
|
+
# TTY::Editor.open('filename.rb')
|
55
|
+
#
|
56
|
+
# @param [String] file
|
57
|
+
# the name of the file
|
58
|
+
#
|
59
|
+
# @return [Object]
|
60
|
+
#
|
61
|
+
# @api public
|
62
|
+
def self.open(*args)
|
63
|
+
editor = new(*args)
|
64
|
+
|
65
|
+
yield(editor) if block_given?
|
66
|
+
|
67
|
+
editor.run
|
68
|
+
end
|
69
|
+
|
70
|
+
# Initialize an Editor
|
71
|
+
#
|
72
|
+
# @param [String] file
|
73
|
+
#
|
74
|
+
# @api public
|
75
|
+
def initialize(filename = nil, **options)
|
76
|
+
@env = options.fetch(:env) { {} }
|
77
|
+
@command = options[:command]
|
78
|
+
@filename = filename ? file_or_temp_path(filename) : nil
|
79
|
+
end
|
80
|
+
|
81
|
+
# Decide if temp file path needs generating
|
82
|
+
#
|
83
|
+
# @return [String]
|
84
|
+
# the file path
|
85
|
+
#
|
86
|
+
# @api private
|
87
|
+
def file_or_temp_path(filename)
|
88
|
+
FileTest.file?(filename) ? filename : tempfile_path(filename)
|
89
|
+
end
|
90
|
+
|
91
|
+
# Finds command using a configured command(s) or detected shell commands.
|
92
|
+
#
|
93
|
+
# @param [Array[String]] commands
|
94
|
+
#
|
95
|
+
# @raise [TTY::CommandInvocationError]
|
96
|
+
#
|
97
|
+
# @return [String]
|
98
|
+
#
|
99
|
+
# @api public
|
100
|
+
def command(*commands)
|
101
|
+
if @command && commands.empty?
|
102
|
+
@command
|
103
|
+
else
|
104
|
+
execs = self.class.available(*commands)
|
105
|
+
if execs.empty?
|
106
|
+
raise EditorNotFoundError,
|
107
|
+
'Could not find editor to use. Please specify $VISUAL or $EDITOR'
|
108
|
+
else
|
109
|
+
exec = if execs.size > 1
|
110
|
+
prompt = TTY::Prompt.new
|
111
|
+
prompt.enum_select('Select an editor?', execs)
|
112
|
+
else
|
113
|
+
execs[0]
|
114
|
+
end
|
115
|
+
@command = TTY::Which.which(exec)
|
116
|
+
end
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
# Check if Windowz
|
121
|
+
#
|
122
|
+
# @return [Boolean]
|
123
|
+
#
|
124
|
+
# @api public
|
125
|
+
def windows?
|
126
|
+
File::ALT_SEPARATOR == "\\"
|
127
|
+
end
|
128
|
+
|
129
|
+
# Escape file path
|
130
|
+
#
|
131
|
+
# @api private
|
132
|
+
def escape_file
|
133
|
+
if windows?
|
134
|
+
@filename.gsub(/\//, '\\')
|
135
|
+
else
|
136
|
+
Shellwords.shellescape(@filename)
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
# Build command path to invoke
|
141
|
+
#
|
142
|
+
# @return [String]
|
143
|
+
#
|
144
|
+
# @api private
|
145
|
+
def command_path
|
146
|
+
"#{command} #{escape_file}"
|
147
|
+
end
|
148
|
+
|
149
|
+
# Create tempfile with content
|
150
|
+
#
|
151
|
+
# @param [String] content
|
152
|
+
#
|
153
|
+
# @return [String]
|
154
|
+
# @api private
|
155
|
+
def tempfile_path(content)
|
156
|
+
tempfile = Tempfile.new('tty-editor')
|
157
|
+
tempfile << content
|
158
|
+
tempfile.flush
|
159
|
+
unless tempfile.nil?
|
160
|
+
tempfile.close
|
161
|
+
end
|
162
|
+
tempfile.path
|
163
|
+
end
|
164
|
+
|
165
|
+
# Inovke editor command in a shell
|
166
|
+
#
|
167
|
+
# @raise [TTY::CommandInvocationError]
|
168
|
+
#
|
169
|
+
# @api private
|
170
|
+
def run
|
171
|
+
status = system(*Shellwords.split(command_path))
|
172
|
+
return status if status
|
173
|
+
fail CommandInvocationError,
|
174
|
+
"`#{command_path}` failed with status: #{$? ? $?.exitstatus : nil}"
|
175
|
+
end
|
176
|
+
end # Editor
|
177
|
+
end # TTY
|
data/tasks/console.rake
ADDED
data/tasks/coverage.rake
ADDED
data/tasks/spec.rake
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
begin
|
4
|
+
require 'rspec/core/rake_task'
|
5
|
+
|
6
|
+
desc 'Run all specs'
|
7
|
+
RSpec::Core::RakeTask.new(:spec) do |task|
|
8
|
+
task.pattern = 'spec/{unit,integration}{,/*/**}/*_spec.rb'
|
9
|
+
end
|
10
|
+
|
11
|
+
namespace :spec do
|
12
|
+
desc 'Run unit specs'
|
13
|
+
RSpec::Core::RakeTask.new(:unit) do |task|
|
14
|
+
task.pattern = 'spec/unit{,/*/**}/*_spec.rb'
|
15
|
+
end
|
16
|
+
|
17
|
+
desc 'Run integration specs'
|
18
|
+
RSpec::Core::RakeTask.new(:integration) do |task|
|
19
|
+
task.pattern = 'spec/integration{,/*/**}/*_spec.rb'
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
rescue LoadError
|
24
|
+
%w[spec spec:unit spec:integration].each do |name|
|
25
|
+
task name do
|
26
|
+
$stderr.puts "In order to run #{name}, do `gem install rspec`"
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
data/tty-editor.gemspec
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'tty/editor/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "tty-editor"
|
8
|
+
spec.version = TTY::Editor::VERSION
|
9
|
+
spec.authors = ["Piotr Murach"]
|
10
|
+
spec.email = [""]
|
11
|
+
|
12
|
+
spec.summary = %q{}
|
13
|
+
spec.description = %q{}
|
14
|
+
spec.homepage = "https://piotrmurach.github.io/tty"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.bindir = "exe"
|
19
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ["lib"]
|
21
|
+
|
22
|
+
spec.add_dependency 'tty-prompt', '~> 0.10.0'
|
23
|
+
spec.add_dependency 'tty-which', '~> 0.2.0'
|
24
|
+
|
25
|
+
spec.add_development_dependency 'bundler', '>= 1.5.0', '< 2.0'
|
26
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
27
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
28
|
+
end
|
metadata
ADDED
@@ -0,0 +1,142 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tty-editor
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Piotr Murach
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-01-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: tty-prompt
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.10.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.10.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: tty-which
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.2.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.2.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.5.0
|
48
|
+
- - "<"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '2.0'
|
51
|
+
type: :development
|
52
|
+
prerelease: false
|
53
|
+
version_requirements: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: 1.5.0
|
58
|
+
- - "<"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '2.0'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: rake
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '10.0'
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '10.0'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: rspec
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "~>"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '3.0'
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - "~>"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '3.0'
|
89
|
+
description: ''
|
90
|
+
email:
|
91
|
+
- ''
|
92
|
+
executables: []
|
93
|
+
extensions: []
|
94
|
+
extra_rdoc_files: []
|
95
|
+
files:
|
96
|
+
- ".gitignore"
|
97
|
+
- ".rspec"
|
98
|
+
- ".travis.yml"
|
99
|
+
- CHANGELOG.md
|
100
|
+
- CODE_OF_CONDUCT.md
|
101
|
+
- Gemfile
|
102
|
+
- LICENSE.txt
|
103
|
+
- README.md
|
104
|
+
- Rakefile
|
105
|
+
- appveyor.yml
|
106
|
+
- bin/console
|
107
|
+
- bin/setup
|
108
|
+
- examples/basic.rb
|
109
|
+
- examples/empty.rb
|
110
|
+
- examples/tempfile.rb
|
111
|
+
- lib/tty-editor.rb
|
112
|
+
- lib/tty/editor.rb
|
113
|
+
- lib/tty/editor/version.rb
|
114
|
+
- tasks/console.rake
|
115
|
+
- tasks/coverage.rake
|
116
|
+
- tasks/spec.rake
|
117
|
+
- tty-editor.gemspec
|
118
|
+
homepage: https://piotrmurach.github.io/tty
|
119
|
+
licenses:
|
120
|
+
- MIT
|
121
|
+
metadata: {}
|
122
|
+
post_install_message:
|
123
|
+
rdoc_options: []
|
124
|
+
require_paths:
|
125
|
+
- lib
|
126
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
131
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
132
|
+
requirements:
|
133
|
+
- - ">="
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: '0'
|
136
|
+
requirements: []
|
137
|
+
rubyforge_project:
|
138
|
+
rubygems_version: 2.5.1
|
139
|
+
signing_key:
|
140
|
+
specification_version: 4
|
141
|
+
summary: ''
|
142
|
+
test_files: []
|