rubymotionlisp 1.0.9 → 1.0.10
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/lib/rubylisp/prim_io.rb +12 -7
- 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: 8ceec9aeb2b9c29d409955a0a86915279a462646
|
4
|
+
data.tar.gz: 1307407e5c0f05862569bb49e3ef9d94634bc671
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ebd489f0fdf496383a27ca4157ad733475eefd3725297b721f62db79104b8095f21b67e333704a7403dba63549ca7586a811bc59753880d8d32c95cf5ee50c1
|
7
|
+
data.tar.gz: b668ce7d3126fde12668c99a84346d42604e71a081839da851e40f85c3d8a9e9b53d0fbb0d3550adfb1c8690f427a5ced5945b36a9ec1ceb35f32126bcdeebc3
|
data/lib/rubylisp/prim_io.rb
CHANGED
@@ -22,6 +22,11 @@ module Lisp
|
|
22
22
|
end
|
23
23
|
|
24
24
|
|
25
|
+
def self.output_to_stdout(to_output)
|
26
|
+
$stdout.write(to_output)
|
27
|
+
end
|
28
|
+
|
29
|
+
|
25
30
|
def self.load_impl(args, env)
|
26
31
|
fname = args.car
|
27
32
|
return Lisp::Debug.process_error("'load' requires a string argument.", env) unless fname.string?
|
@@ -64,11 +69,11 @@ module Lisp
|
|
64
69
|
p = args.cadr
|
65
70
|
return Lisp::Debug.process_error("'write-string' requires a port as it's second argument.", env) unless p.port?
|
66
71
|
port = p.value
|
72
|
+
port.write(s.value)
|
67
73
|
else
|
68
|
-
|
74
|
+
self.output_to_stdout(s.value)
|
69
75
|
end
|
70
76
|
|
71
|
-
port.write(s.value)
|
72
77
|
end
|
73
78
|
|
74
79
|
|
@@ -77,11 +82,11 @@ module Lisp
|
|
77
82
|
p = args.car
|
78
83
|
return Lisp::Debug.process_error("'newline' requires a port as it's argument.", env) unless p.port?
|
79
84
|
port = p.value
|
85
|
+
port.write("\n")
|
80
86
|
else
|
81
|
-
|
87
|
+
self.output_to_stdout("\n")
|
82
88
|
end
|
83
89
|
|
84
|
-
port.write("\n")
|
85
90
|
end
|
86
91
|
|
87
92
|
|
@@ -90,11 +95,11 @@ module Lisp
|
|
90
95
|
p = args.cadr
|
91
96
|
return Lisp::Debug.process_error("'write' requires a port as it's second argument.", env) unless p.port?
|
92
97
|
port = p.value
|
98
|
+
port.write(args.car.print_string)
|
93
99
|
else
|
94
|
-
|
100
|
+
self.output_to_stdout(args.car.print_string)
|
95
101
|
end
|
96
102
|
|
97
|
-
port.write(args.car.print_string)
|
98
103
|
end
|
99
104
|
|
100
105
|
|
@@ -210,7 +215,7 @@ module Lisp
|
|
210
215
|
if destination.port?
|
211
216
|
destination.value.write(combined_string)
|
212
217
|
elsif destination.value
|
213
|
-
|
218
|
+
self.output_to_stdout(combined_string)
|
214
219
|
else
|
215
220
|
return Lisp::String.with_value(combined_string)
|
216
221
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubymotionlisp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Astels
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: An embeddable Lisp as an extension language for RubyMotion
|
14
14
|
email: dastels@icloud.com
|