halunke 0.5.1 → 0.5.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: a2fba71ee5eee42d6a7e03fbb0a851efb1dfb41b
4
- data.tar.gz: 2cc41bc40523464437efe5c2db6de4cf909fc944
3
+ metadata.gz: 150c5430c572082097018606197faec2c0de858e
4
+ data.tar.gz: 8255a00970c4e932d7e37d47ceefa7ab0a454b2e
5
5
  SHA512:
6
- metadata.gz: ec766f73d8889c1eef3410dbea567904aa5056581ce0edde6151996ca39b43318643b967c6e5d6a5921dbb7859a834f196a5b81c082b08edf8e9e311c606e800
7
- data.tar.gz: 1a5717d46262e4287cb4a1a25feff86752222265c26b758e26b3a6896edffce73316d9f5950f859b5ec78ccf3b97f77726aa3db735dec6b2a3f1d1e115ffc4f0
6
+ metadata.gz: e151c639862bfde2a262edd5854aff16e092562679210ca7bd9fe309b8e58d328676f6a97b78ded6ade6688ecaf448aebcbfbe9d533a9f5691f4aab710ef8eee
7
+ data.tar.gz: bc6b0cd941a258c18dc75b4a6ffb2c16f6ac3eb66ac7296eabb759d009fbb265d0ca02e3fcbb27082f379462b591241d415aa9eadd72dab7f0e7357ae7cb4085
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- halunke (0.5.1)
4
+ halunke (0.5.2)
5
5
  rack (~> 2.0.4)
6
6
 
7
7
  GEM
@@ -31,7 +31,7 @@ Alternatively (if you don't have Ruby installed for example), you
31
31
  can run it with Docker:
32
32
 
33
33
  ```
34
- docker run --rm -ti bascht/halunke
34
+ docker run --rm -ti moonglum/halunke
35
35
  ```
36
36
 
37
37
  ## How it works
@@ -82,7 +82,9 @@ Now you can send messages to `a` like `(a + 2)`. Why is there a `'` though? The
82
82
  `'` signals an unassigned bareword. That means you can send it a `=` message
83
83
  with a value, and it will assign it. Be aware that you can't reassign. So if
84
84
  you assign something to a once, it will stay like this forever (within that
85
- scope). Reassigning will result in an error.
85
+ scope). Reassigning will result in an error. *There will be reassignable
86
+ references in the future, see [the issue for
87
+ details](https://github.com/moonglum/halunke/issues/3)*
86
88
 
87
89
  The values are also immutable. If you send a message to an object,
88
90
  it will not change the object, but it will return an answer to you.
@@ -3,7 +3,8 @@ title: Stdio
3
3
  ---
4
4
 
5
5
  The object `stdio` is available from everywhere. *This will change in the
6
- future. Interacting with STDIO is IO and will be isolated.*
6
+ future. [Interacting with STDIO is IO and will be
7
+ isolated.](https://github.com/moonglum/halunke/issues/4)*
7
8
 
8
9
  ## `puts`
9
10
 
@@ -3,7 +3,8 @@ title: Web
3
3
  ---
4
4
 
5
5
  The object `web` is available from everywhere. *This will change in the future.
6
- Interacting with STDIO is IO and will be isolated.*
6
+ [Interacting with STDIO is IO and will be
7
+ isolated.](https://github.com/moonglum/halunke/issues/4)*
7
8
 
8
9
  You can send the `run on` message to `web`. It expects the first object to be
9
10
  your application (more on that later) and the second one the bind address and
@@ -1,12 +1,15 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ require "halunke/version"
3
4
  require "halunke/interpreter"
4
5
  require "readline"
5
6
 
6
7
  interpreter = Halunke::Interpreter.new
7
8
 
9
+ Readline.completion_proc = ->(*) {[]}
10
+
8
11
  if ARGV.length == 0
9
- puts "Halunke REPL. Ctrl+d to quit"
12
+ puts "Halunke #{Halunke::VERSION} REPL. Ctrl+d to quit"
10
13
  while (line = Readline.readline(">> ", true))
11
14
  begin
12
15
  value = interpreter.eval(line)
@@ -1,3 +1,3 @@
1
1
  module Halunke
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: halunke
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lucas Dohmen