thor_repl 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/example/Gemfile.lock +1 -1
- data/lib/thor_repl/looper.rb +6 -0
- data/lib/thor_repl/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66618047f4e2a1eabc72a7e3c73196faec0f9137d4d620f2dd12a840eb615ed9
|
4
|
+
data.tar.gz: 5fda457a1a864ae35430bdfecddaa7b2ddeeb35ca14c7354239a477e4e4ddf2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c06fc2f93cd40891b157bae49bd9b028640de015d2281b46a66e8e3129e18de337b7f96d30d5c33b2b3b0ab86f72d34fb71235449c6c2c1d7e060f9dfbf63eb
|
7
|
+
data.tar.gz: 4fa47a7dde0ad41414411d0d4926f4ced4441671b5b2f3658ad661139aefa8a21fe8febd985bb04cdd497f5bd19e5a3250767880dd85fcead4256ceff9f32a2f
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -56,7 +56,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
56
56
|
|
57
57
|
## Contributing
|
58
58
|
|
59
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
59
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/mikfreedman/thor_repl. 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.
|
60
60
|
|
61
61
|
## License
|
62
62
|
|
data/example/Gemfile.lock
CHANGED
data/lib/thor_repl/looper.rb
CHANGED
@@ -10,6 +10,8 @@ module ThorRepl
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def run
|
13
|
+
Signal.trap("INT", method(:sigint_handler))
|
14
|
+
|
13
15
|
puts "Welcome to interactive mode. Use 'help' to list available commands" if @welcome_message
|
14
16
|
|
15
17
|
repl(-> () { @readline_class.readline(@prompt, true) }) do |input|
|
@@ -20,6 +22,10 @@ module ThorRepl
|
|
20
22
|
|
21
23
|
private
|
22
24
|
|
25
|
+
def sigint_handler(*args)
|
26
|
+
print "^C\n#{@prompt}"
|
27
|
+
end
|
28
|
+
|
23
29
|
def repl(input_proc)
|
24
30
|
while (input = input_proc.call)
|
25
31
|
case input
|
data/lib/thor_repl/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thor_repl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mik Freedman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|