crystal-repl 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/crepl +5 -0
- data/crystal-repl.gemspec +1 -1
- data/lib/crystal/repl/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fa9447d194098f92eb96ccff9f22afa9af2db450
|
|
4
|
+
data.tar.gz: 63d0b5e131c6ca69ba038cc86732f5ec6d036b5e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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]
|
data/crystal-repl.gemspec
CHANGED
|
@@ -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/
|
|
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")
|
data/lib/crystal/repl/version.rb
CHANGED
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.
|
|
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/
|
|
59
|
+
homepage: https://github.com/ktaragorn/crystal-repl
|
|
60
60
|
licenses:
|
|
61
61
|
- MIT
|
|
62
62
|
metadata: {}
|