rubymotionlisp 1.0.9 → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rubylisp/prim_io.rb +12 -7
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0651f5a21b9eef38abe56e63192088deccc8bb45
4
- data.tar.gz: 955912fc8020349b60cb610d3787a2b9e524a037
3
+ metadata.gz: 8ceec9aeb2b9c29d409955a0a86915279a462646
4
+ data.tar.gz: 1307407e5c0f05862569bb49e3ef9d94634bc671
5
5
  SHA512:
6
- metadata.gz: 61f5ebb8c719ef8a253a266533824bb013bf7dcfa470b8bf9783ac287771f23dd0b41231105c1ded889de05323031f633dd157e4cdd3aaead7369b489540e1a3
7
- data.tar.gz: 775c7504c2579963d97fe3edf6cba8dc2979293446bcde19d6b9640767b01426e60c2a5e480c17792dbf6658556dcca7642c9c5a916cc1e2ae96771cf4f37a24
6
+ metadata.gz: 1ebd489f0fdf496383a27ca4157ad733475eefd3725297b721f62db79104b8095f21b67e333704a7403dba63549ca7586a811bc59753880d8d32c95cf5ee50c1
7
+ data.tar.gz: b668ce7d3126fde12668c99a84346d42604e71a081839da851e40f85c3d8a9e9b53d0fbb0d3550adfb1c8690f427a5ced5945b36a9ec1ceb35f32126bcdeebc3
@@ -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
- port = $stdout
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
- port = $stdout
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
- port = $stdout
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
- $stdout.write(combined_string)
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.9
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-14 00:00:00.000000000 Z
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