rpl 0.13.0 → 0.14.0
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/bin/rpl +9 -1
- data/lib/rpl.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd6999ded3fe0314dc2f44e980b2db12b9b4f4334d062227ac2f216da68c64e6
|
4
|
+
data.tar.gz: acac7fb8f08e925e7e69ace799ca75d1b0da84441d4f3347e357fee941f48e00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba2d7283c0afd3e6ce1537b863dcb2e75837cf544875e3ede504bb9652739078a0a471f882de19439a3fe42ed79e1eaa26e59afd5a092e2dd2f1fccbe6ba384f
|
7
|
+
data.tar.gz: '096e3a9a8036a56c8ed032c808be57ca85d401043ad8f32a457e2b01b4dc0df4324479bd4bcf0b75dbbf950c86529223e6d66a3bc80c853382dd5066db4cae53'
|
data/bin/rpl
CHANGED
@@ -77,8 +77,16 @@ class RplRepl
|
|
77
77
|
end
|
78
78
|
end
|
79
79
|
|
80
|
+
def persistence_filename
|
81
|
+
persistence_dir = ENV['XDG_DATA_HOME']
|
82
|
+
persistence_dir ||= '~/.local/share'
|
83
|
+
persistence_dir += '/rpl.rb'
|
84
|
+
|
85
|
+
File.expand_path( "#{persistence_dir}/env.rpl" )
|
86
|
+
end
|
87
|
+
|
80
88
|
options = { run_REPL: ARGV.empty?,
|
81
|
-
persistence_filename:
|
89
|
+
persistence_filename: persistence_filename,
|
82
90
|
live_persistence: true,
|
83
91
|
files: [],
|
84
92
|
programs: [] }
|
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.
|
8
|
+
VERSION = '0.14.0'
|
9
9
|
|
10
10
|
include Types
|
11
11
|
|
@@ -22,10 +22,10 @@ class Rpl < Interpreter
|
|
22
22
|
|
23
23
|
populate_dictionary if @dictionary.words.empty?
|
24
24
|
|
25
|
-
load_persisted_state
|
25
|
+
load_persisted_state!
|
26
26
|
end
|
27
27
|
|
28
|
-
def load_persisted_state
|
28
|
+
def load_persisted_state!
|
29
29
|
return if @persistence_filename.nil?
|
30
30
|
|
31
31
|
FileUtils.mkdir_p( File.dirname( @persistence_filename ) )
|
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.
|
4
|
+
version: 0.14.0
|
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: 2022-10-
|
11
|
+
date: 2022-10-30 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
|