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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 7ba9ebbcb1186d006f78c38c14ab406969fe6b27
4
- data.tar.gz: 0716253e97cc81ae7c99a1c845a79b3aa2899cde
2
+ SHA256:
3
+ metadata.gz: f172710d0d2a8c51540fbd7caa861c14ece049eca0b33d12f3e3bea3801ad78c
4
+ data.tar.gz: a15b0cab9dba8de9e1d80f1d43b5ce4d1118835e8492d38abbaaf2a480704365
5
5
  SHA512:
6
- metadata.gz: 9ad48b695b918c2d8a93101b1fa802ccd7068a8a1198caba3a3e38fbd65a6f78fe22b739943e8fc4ecf246b4fedfe4ca40bcc42a5090fe8f8ad1120df3e33c5c
7
- data.tar.gz: c3f657fbc36011b7026cac77a82e114e95404eaee7094a7911c46648416fdbbc0f27b441fca2c8fad502aa5f50b970904c5c874a976621c1d62369d737525569
6
+ metadata.gz: 7c16029474c1daeec3bc3150f2f5b087aa320d8f83dc2cea1ac422b20f94f3ff54b6d4f7008d8a7cf01ff032ecd8b7a008924781e212cf7239fcccc93476689d
7
+ data.tar.gz: 26c50456edba9230fc9e40dfca19725b7993a21d5f633f63ef48d7e6d8fc8979f4ecbed609dadcc666fe65454be6a54446c0cd12387393ab5712c6507a80aa6d
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- halunke (0.6.2)
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.4)
13
- rake (12.3.0)
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.1
26
+ 1.16.4
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ <p align="center"><img src="/docs/img/halunke-logo.png" alt="Halunke" width="600px" /></p>
2
+
1
3
  # Halunke
2
4
 
3
5
  Halunke is a dynamic, object-oriented language that has a simple grammar
data/docs/CNAME CHANGED
@@ -1 +1 @@
1
- halunke.jetzt
1
+ halunke.jetzt
@@ -14,5 +14,5 @@ with an array with the arguments (in our case two):
14
14
 
15
15
  ```
16
16
  (fn call [1 2])
17
- /* => 6 */
17
+ /* => 3 */
18
18
  ```
Binary file
@@ -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
@@ -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.
@@ -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
  {},
@@ -1,3 +1,3 @@
1
1
  module Halunke
2
- VERSION = "0.6.2"
2
+ VERSION = "0.7.0"
3
3
  end
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.6.2
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-02-13 00:00:00.000000000 Z
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.14
170
+ rubygems_version: 2.7.6
170
171
  signing_key:
171
172
  specification_version: 4
172
173
  summary: The Halunke programming language