halunke 0.6.2 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile.lock +4 -4
- data/README.md +2 -0
- data/docs/CNAME +1 -1
- data/docs/function.md +1 -1
- data/docs/img/halunke-logo.png +0 -0
- data/docs/index.md +2 -0
- data/docs/web.md +4 -0
- data/lib/halunke/runtime/hweb.rb +4 -0
- data/lib/halunke/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f172710d0d2a8c51540fbd7caa861c14ece049eca0b33d12f3e3bea3801ad78c
|
4
|
+
data.tar.gz: a15b0cab9dba8de9e1d80f1d43b5ce4d1118835e8492d38abbaaf2a480704365
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c16029474c1daeec3bc3150f2f5b087aa320d8f83dc2cea1ac422b20f94f3ff54b6d4f7008d8a7cf01ff032ecd8b7a008924781e212cf7239fcccc93476689d
|
7
|
+
data.tar.gz: 26c50456edba9230fc9e40dfca19725b7993a21d5f633f63ef48d7e6d8fc8979f4ecbed609dadcc666fe65454be6a54446c0cd12387393ab5712c6507a80aa6d
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
halunke (0.
|
4
|
+
halunke (0.7.0)
|
5
5
|
rack (~> 2.0.4)
|
6
6
|
|
7
7
|
GEM
|
@@ -9,8 +9,8 @@ GEM
|
|
9
9
|
specs:
|
10
10
|
minitest (5.11.3)
|
11
11
|
racc (1.4.14)
|
12
|
-
rack (2.0.
|
13
|
-
rake (12.3.
|
12
|
+
rack (2.0.6)
|
13
|
+
rake (12.3.2)
|
14
14
|
|
15
15
|
PLATFORMS
|
16
16
|
ruby
|
@@ -23,4 +23,4 @@ DEPENDENCIES
|
|
23
23
|
rake (~> 12.3.0)
|
24
24
|
|
25
25
|
BUNDLED WITH
|
26
|
-
1.16.
|
26
|
+
1.16.4
|
data/README.md
CHANGED
data/docs/CNAME
CHANGED
@@ -1 +1 @@
|
|
1
|
-
halunke.jetzt
|
1
|
+
halunke.jetzt
|
data/docs/function.md
CHANGED
Binary file
|
data/docs/index.md
CHANGED
@@ -3,6 +3,8 @@ layout: default
|
|
3
3
|
title: Welcome to Halunke!
|
4
4
|
---
|
5
5
|
|
6
|
+
<p align="center"><img src="/img/halunke-logo.png" alt="Halunke" width="600px" /></p>
|
7
|
+
|
6
8
|
Halunke is a dynamic, object-oriented language that has a simple grammar
|
7
9
|
inspired by Smalltalk and Lisp. It is created to show that interesting
|
8
10
|
characteristics traditionally described as "functional" make sense in an
|
data/docs/web.md
CHANGED
@@ -10,6 +10,10 @@ You can send the `run on` message to `web`. It expects the first object to be
|
|
10
10
|
your application (more on that later) and the second one the bind address and
|
11
11
|
port in the format: `0.0.0.0:3000`.
|
12
12
|
|
13
|
+
You can also send the `run` message on `web`. It only expects the application,
|
14
|
+
and not the bind address and port. It takes that from the `PORT` environment
|
15
|
+
variable.
|
16
|
+
|
13
17
|
Your app needs to be an object that can receive the `call` message. It will be
|
14
18
|
called with the environment dictionary that represents the request. It expects
|
15
19
|
that your return an array that represents the response.
|
data/lib/halunke/runtime/hweb.rb
CHANGED
@@ -31,6 +31,10 @@ module Halunke
|
|
31
31
|
}, { Host: host, Port: port })
|
32
32
|
|
33
33
|
env["host_port"]
|
34
|
+
}),
|
35
|
+
"run" => HFunction.new([:self, :app], lambda { |context|
|
36
|
+
host_port = HString.create_instance("0.0.0.0:#{ENV['PORT']}")
|
37
|
+
context["self"].receive_message(context, "run on", [context["app"], host_port])
|
34
38
|
})
|
35
39
|
},
|
36
40
|
{},
|
data/lib/halunke/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: halunke
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lucas Dohmen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -110,6 +110,7 @@ files:
|
|
110
110
|
- docs/class.md
|
111
111
|
- docs/dictionary.md
|
112
112
|
- docs/function.md
|
113
|
+
- docs/img/halunke-logo.png
|
113
114
|
- docs/index.md
|
114
115
|
- docs/number.md
|
115
116
|
- docs/regexp.md
|
@@ -166,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
166
167
|
version: '0'
|
167
168
|
requirements: []
|
168
169
|
rubyforge_project:
|
169
|
-
rubygems_version: 2.6
|
170
|
+
rubygems_version: 2.7.6
|
170
171
|
signing_key:
|
171
172
|
specification_version: 4
|
172
173
|
summary: The Halunke programming language
|