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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac94b059c6746d52c7cb0df6f376eb93aa96342ba8d8aa9a7f0c59c9ba14d8a5
4
- data.tar.gz: 10c5cebf2da33007f2e2efe42448df25dbcf9fd6e06daa9cc72fd2d165d1331b
3
+ metadata.gz: 66618047f4e2a1eabc72a7e3c73196faec0f9137d4d620f2dd12a840eb615ed9
4
+ data.tar.gz: 5fda457a1a864ae35430bdfecddaa7b2ddeeb35ca14c7354239a477e4e4ddf2c
5
5
  SHA512:
6
- metadata.gz: c264aa253414a59ffe792be35a1030786567e8a571f6c389615b1e0fc57049a12c95e4de8478cba1e0320af55612774648f8316aa6f1f04f31b24836a7d0b4b1
7
- data.tar.gz: 34243f4d79c768cc05edfb58343dd0ebf82aef561b55a2d7a15b6e0f7b5b1f255ac7e3b315ec3d798ddb0a1e2caa8de24effdb4b0ee703da12fe63ea639d2665
6
+ metadata.gz: 5c06fc2f93cd40891b157bae49bd9b028640de015d2281b46a66e8e3129e18de337b7f96d30d5c33b2b3b0ab86f72d34fb71235449c6c2c1d7e060f9dfbf63eb
7
+ data.tar.gz: 4fa47a7dde0ad41414411d0d4926f4ced4441671b5b2f3658ad661139aefa8a21fe8febd985bb04cdd497f5bd19e5a3250767880dd85fcead4256ceff9f32a2f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- thor_repl (0.1.1)
4
+ thor_repl (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
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/[USERNAME]/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.
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- thor_repl (0.1.0)
4
+ thor_repl (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -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
@@ -1,3 +1,3 @@
1
1
  module ThorRepl
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
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.2
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-03-21 00:00:00.000000000 Z
11
+ date: 2019-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler