xrpn 1.8.2 → 1.9.1
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/xrpn +5 -1
- data/xcmd/lastpage +9 -0
- data/xcmd/load +8 -0
- data/xcmd/pprgtofile +30 -0
- data/xlib/_xrpn_version +1 -1
- data/xrpn.gemspec +2 -2
- metadata +8 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a506c2229e1ac07680bb7885f8ee929e6fe24208070b1f6be31b13974796cb17
|
4
|
+
data.tar.gz: cc2e596c179dc3b2fe86c434d9545d71b21f505059920359e8ebf7d0f548d213
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8231b1b1bd0d11121da97380a52c944c932532ce67348a3587f699add4d094465cd778bfb903cccc7080c0c4e63982893c9a0e50b5ddb415f78502338975754f
|
7
|
+
data.tar.gz: 8815fa3fca80c8cf7e7210952162167d6e4ca8ed2ecbac09e6a7ca47b76d3fb57fc045d6358fb64071a80d6549bd2f0fd2fbf1e284e7325fdc49936bcb625024
|
data/bin/xrpn
CHANGED
@@ -24,7 +24,11 @@ require 'open-uri'
|
|
24
24
|
require 'json'
|
25
25
|
require 'tty-prompt'
|
26
26
|
|
27
|
-
$gem =
|
27
|
+
$gem = nil
|
28
|
+
begin
|
29
|
+
$gem = Gem.latest_spec_for("xrpn").gem_dir
|
30
|
+
rescue
|
31
|
+
end
|
28
32
|
|
29
33
|
# ENSURE DIRs
|
30
34
|
Dir.mkdir(Dir.home + "/.xrpn") unless File.exist?(Dir.home + "/.xrpn")
|
data/xcmd/lastpage
ADDED
data/xcmd/load
ADDED
data/xcmd/pprgtofile
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
class XRPN
|
2
|
+
# Print program
|
3
|
+
def pprgtofile
|
4
|
+
page = @pg
|
5
|
+
pos = 0
|
6
|
+
if @a != ""
|
7
|
+
pr = "\"#{@a}\""
|
8
|
+
page, pos, prgm = locate_prg (pr)
|
9
|
+
if pos == nil
|
10
|
+
puts "No such program to print #{pr}"
|
11
|
+
return
|
12
|
+
end
|
13
|
+
end
|
14
|
+
prog = ""
|
15
|
+
@prg[page].each_index do |i|
|
16
|
+
next if i < pos
|
17
|
+
prog += "#{format('%02d', i + 1)}"
|
18
|
+
if @prg[page][i].downcase.match(/lbl/)
|
19
|
+
prog += "◆"
|
20
|
+
else
|
21
|
+
prog += " "
|
22
|
+
end
|
23
|
+
prog += "#{@prg[page][i]}\n"
|
24
|
+
break if @prg[page][i] == "END"
|
25
|
+
end
|
26
|
+
File.write(@x, prog)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
# vim:ft=ruby:
|
data/xlib/_xrpn_version
CHANGED
data/xrpn.gemspec
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'xrpn'
|
3
|
-
s.version = '1.
|
3
|
+
s.version = '1.9.1'
|
4
4
|
s.licenses = ['Unlicense']
|
5
5
|
s.summary = "XRPN - The eXtended RPN (Reverse Polish Notation) programming language"
|
6
|
-
s.description = "A full programming language and environment extending the features of the venerable HP calculator programmable calculators. With XRPN you can accomplish a wide range of modern programming tasks as well as running existing HP-41 FOCAL programs directly. XRPN gives modern life to tens of thousands of old HP calculator programs and opens the possibilities to many, many more. New in 1.
|
6
|
+
s.description = "A full programming language and environment extending the features of the venerable HP calculator programmable calculators. With XRPN you can accomplish a wide range of modern programming tasks as well as running existing HP-41 FOCAL programs directly. XRPN gives modern life to tens of thousands of old HP calculator programs and opens the possibilities to many, many more. New in 1.9: Added functions 'lastpage' and 'load' and also added 'pprgtofile' in version 1.9.1 (see GitHub wiki)"
|
7
7
|
|
8
8
|
s.authors = ["Geir Isene"]
|
9
9
|
s.email = 'g@isene.com'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xrpn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geir Isene
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tty-prompt
|
@@ -28,9 +28,9 @@ description: 'A full programming language and environment extending the features
|
|
28
28
|
the venerable HP calculator programmable calculators. With XRPN you can accomplish
|
29
29
|
a wide range of modern programming tasks as well as running existing HP-41 FOCAL
|
30
30
|
programs directly. XRPN gives modern life to tens of thousands of old HP calculator
|
31
|
-
programs and opens the possibilities to many, many more. New in 1.
|
32
|
-
''
|
33
|
-
|
31
|
+
programs and opens the possibilities to many, many more. New in 1.9: Added functions
|
32
|
+
''lastpage'' and ''load'' and also added ''pprgtofile'' in version 1.9.1 (see GitHub
|
33
|
+
wiki)'
|
34
34
|
email: g@isene.com
|
35
35
|
executables:
|
36
36
|
- xrpn
|
@@ -168,11 +168,13 @@ files:
|
|
168
168
|
- xcmd/int
|
169
169
|
- xcmd/invf
|
170
170
|
- xcmd/isg
|
171
|
+
- xcmd/lastpage
|
171
172
|
- xcmd/lastx
|
172
173
|
- xcmd/lbl
|
173
174
|
- xcmd/lift
|
174
175
|
- xcmd/ln
|
175
176
|
- xcmd/ln1x
|
177
|
+
- xcmd/load
|
176
178
|
- xcmd/log
|
177
179
|
- xcmd/mdy
|
178
180
|
- xcmd/mean
|
@@ -201,6 +203,7 @@ files:
|
|
201
203
|
- xcmd/pow
|
202
204
|
- xcmd/pprg
|
203
205
|
- xcmd/pprg1
|
206
|
+
- xcmd/pprgtofile
|
204
207
|
- xcmd/pprgx
|
205
208
|
- xcmd/pra
|
206
209
|
- xcmd/prflags
|