crystal-repl 0.0.1 → 0.0.2

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: 71fdaa961aa1dec52b5c7b271351ce547869c0f3
4
- data.tar.gz: 81639e27c994c1a99639d7b325e93f46d0405c09
3
+ metadata.gz: 51b31700645ffc9c351f1f7571b643831bd073de
4
+ data.tar.gz: 99fb88646914199394ccf5f356c4de4de0c2b685
5
5
  SHA512:
6
- metadata.gz: 34bc222a2dbf3f9ebf2b07479bcbba64ebbfc65df81528017cfeff7f175e55303b80d516a344fe304b2a7c0a522f09c02118dd76b2eaac2e9e4a0ffd8e41a200
7
- data.tar.gz: dbfdac99eda912d7b23cf678ff332c41c4f748f4cb6a93fe4f473868e69768a3eed125e4a731e63c7b633d3c8065342b1fa6b4f53beabd6e6f67b606a6bd2a80
6
+ metadata.gz: 7096934040a45f9ae7f2f23293fe8034ca54730485edddcc867d31956a937c971dded61cd0d65709ab83ebfae121c01cd6e3d65656c148cf5f99b0393d789775
7
+ data.tar.gz: 85ff54f0607a0e84b26f41b568a40a9c6fa5f4e143aff6fc73854bf0c1cb1e884cad3e006f00c5417e983d7e3c1828f9b88e1072cd4047d4affb7e7a333fe6a7
data/README.md CHANGED
@@ -1,6 +1,27 @@
1
- ## Simple Crystal REPL
1
+ ## Simple Crystal REPL (crepl)
2
2
 
3
3
  Forked version of "Simple Ruby repl" to make an even simpler crystal repl :D
4
4
 
5
5
  > Read the associated blog post for more information:
6
6
  > http://jpsilvashy.com/posts/build-a-simple-ruby-repl.html
7
+ ## Installation
8
+ Install it as:
9
+ $ gem install crystal-repl
10
+ ## Usage
11
+ The whole gem is essentially a single binary, `crepl`
12
+ Thus use it as `crepl`.
13
+ The limitation of this repl is that every line you type is independant from the others. Thus if you want to run multiple lines, you should concatenate them with `;`
14
+
15
+ WRONG
16
+ puts 1
17
+ puts 2
18
+
19
+ RIGHT
20
+ puts 1; puts 2
21
+
22
+ ## Contributing
23
+ 1. Fork it ( https://github.com/ktaragorn/crystal-repl/fork )
24
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
25
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
26
+ 4. Push to the branch (`git push origin my-new-feature`)
27
+ 5. Create a new Pull Request
data/bin/crepl CHANGED
@@ -7,7 +7,7 @@ require "open3"
7
7
  PRINT_WARNINGS = false
8
8
 
9
9
  def crystal_eval(crystal, scratch)
10
- scratch.write("p(#{crystal})")
10
+ scratch.write("p((#{crystal}))")
11
11
  scratch.flush
12
12
  Open3.popen3("crystal #{scratch.path}") do |stdin, stdout, stderr, wait_thr|
13
13
  begin
@@ -1,5 +1,5 @@
1
1
  module Crystal
2
2
  module Repl
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
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.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karthik T