rpl 0.16.1 → 0.16.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
  SHA256:
3
- metadata.gz: dd44b5eda44e13d48f14e40dc350d6dbb32876da8a2362fd84aa6e1937d1c21c
4
- data.tar.gz: b7f718fb990c70d7ae85528bb5532aacab627be27a845468126d3bf16d1d75ab
3
+ metadata.gz: 92ffc36b2560d0b7a6396c32d769c95a9d108fea01b9c58b32e2e7f401f2265f
4
+ data.tar.gz: ba04b5b645003dff6bb73b9d561c0b3818aff12e12756a30958c3a72c4639a50
5
5
  SHA512:
6
- metadata.gz: 88865d32234816b8a79fa1749eea4470666549fb454085f1c4bcc3457328936513ae86b48aaff4a74725923f5bd402ac030512e0400d96cf0ad41e1e4b1fe374
7
- data.tar.gz: da6fa03c6200a4d5a9e29e19ff3791b5ad93de42575c95f551596acc2a6154ff4e57a499f24531e3748c6399b727c9df58502405315aa67eeff32c8a81bb69f0
6
+ metadata.gz: 63fa59fa82bc0cb40d4dd3d17965721491c586e4a81ab775f78156c266603f231c26472bba75242a4314c551158c614cff1bebd94fa50e478a6f63e5fd9a44c0
7
+ data.tar.gz: 7212eb69e7631bd4ff6ce27b7e4833a98c1a8c33bb14a712773c39b46533aee71fb7a59b3915ceff8dce733ba8a44db9a6109acac82b6be944beb1b84927ad6a
@@ -25,11 +25,11 @@ module RplLang
25
25
 
26
26
  @dictionary.add_word!( ['sheval'],
27
27
  category,
28
- '( string -- output ) run string in OS shell and put output on stack',
28
+ '( string -- list ) run string in OS shell and put output on stack',
29
29
  proc do
30
30
  args = stack_extract( [[RplString]] )
31
31
 
32
- @stack << Types.new_object( RplString, "\"#{`#{args[0].value}`}\"" )
32
+ @stack << Types.new_object( RplList, `#{args[0].value}`.split("\n").map { |line| "\"#{line}\"" } )
33
33
  end )
34
34
 
35
35
  @dictionary.add_word!( ['↴', 'lsto'],
data/lib/rpl.rb CHANGED
@@ -5,7 +5,7 @@ require 'rpl/types'
5
5
  require 'rpl/words'
6
6
 
7
7
  class Rpl < Interpreter
8
- VERSION = '0.16.1'
8
+ VERSION = '0.16.2'
9
9
 
10
10
  include Types
11
11
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rpl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.1
4
+ version: 0.16.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gwenhael Le Moine
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-19 00:00:00.000000000 Z
11
+ date: 2023-04-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Reverse-Polish-Lisp inspired language in ruby
14
14
  email: gwenhael@le-moine.org
@@ -72,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  - !ruby/object:Gem::Version
73
73
  version: '0'
74
74
  requirements: []
75
- rubygems_version: 3.4.6
75
+ rubygems_version: 3.4.10
76
76
  signing_key:
77
77
  specification_version: 4
78
78
  summary: Functional Stack Language