crystal-repl 0.0.3 → 0.0.4

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
  SHA1:
3
- metadata.gz: ed4dc4586738ee6d30202af07cbe373f08570b05
4
- data.tar.gz: cfc301d6c4acfab0eeaae69c8b6af8faf054ca75
3
+ metadata.gz: fa9447d194098f92eb96ccff9f22afa9af2db450
4
+ data.tar.gz: 63d0b5e131c6ca69ba038cc86732f5ec6d036b5e
5
5
  SHA512:
6
- metadata.gz: c5efd6205b725c0b62909cbaf7439dbb4b8222ec00341aebdee4a0c731fb615e59ee7bc200beccb4b06091da3e3a9b28e41bcb3d22a8e1a11e8a13e0044eeae9
7
- data.tar.gz: 059c03f81c7e153989b47105699ea310d1a93b89b4868ef43633868ad9e7792bdbc4d02efec18338faf343c5cc5dde1978682c4ff625043e21df5e9e463df6be
6
+ metadata.gz: 242cd175f8ddc3f192653d74bb0db532c17d713677b2b7c7ca3cc433c72547af19a00541491b5dcbbec2fe7665f00c3ffd88bd0e7e7f0bd3f788447934008f79
7
+ data.tar.gz: 32a902fad4fe65e91c500a2585a1a86a45a19384860a993d92453e24c829e566c060ab1fad22125594339929abc8a7a4a5b74296c3112c792619f2a6ab9e646f
data/bin/crepl CHANGED
@@ -6,6 +6,11 @@ require "tempfile"
6
6
  require "open3"
7
7
  PRINT_WARNINGS = false
8
8
 
9
+ # Prevent the error trace when closing with ^C
10
+ # From http://bogojoker.com/readline/
11
+ stty_save = `stty -g`.chomp
12
+ trap('INT') { system('stty', stty_save); exit }
13
+
9
14
  def process_code(crystal)
10
15
  lines = crystal.split(";")
11
16
  last_line = lines[-1]
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["karthikt.holmes+github@gmail.com"]
11
11
  spec.summary = %q{A very simple REPL for crystal (crystal-lang.org)}
12
12
  spec.description = %q{Crystal's design does not allow for a full traditional REPL. This one treats each line as indepentant crystal programs}
13
- spec.homepage = "https://github.com/ktaragorn/crepl"
13
+ spec.homepage = "https://github.com/ktaragorn/crystal-repl"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
@@ -1,5 +1,5 @@
1
1
  module Crystal
2
2
  module Repl
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crystal-repl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karthik T
@@ -56,7 +56,7 @@ files:
56
56
  - crystal-repl.gemspec
57
57
  - lib/crystal/repl.rb
58
58
  - lib/crystal/repl/version.rb
59
- homepage: https://github.com/ktaragorn/crepl
59
+ homepage: https://github.com/ktaragorn/crystal-repl
60
60
  licenses:
61
61
  - MIT
62
62
  metadata: {}