xrpn 1.3.1 → 1.3.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 27231c4e65a8d95a2f08952c27e6f3795d621418fae26002178bf5b737a305cf
4
- data.tar.gz: 784580f3199a29aff75747c2a468882894e1e266312977fe281ee761e0ae7d4c
3
+ metadata.gz: b45b0ae323940d1e746c3e7e506aa99b8bfcfe7b2150b3da8c0b52fa300d636b
4
+ data.tar.gz: bf536a88ea59513dab40118fa6e33f3fcb8613dd766864ac34d2b65c5286ab01
5
5
  SHA512:
6
- metadata.gz: 0f8162216e88fe3da2a43efc8c1678329352c3eb41d6acd3d7aa1fde7b0b3a1961e910284f954225831da5d8fb370aea6b4463d7797324c9ea316852910afe4d
7
- data.tar.gz: 1b100677cf5e626497f18ac44c42f2f857c5ea0e202a07f06253cd69b9ab71b35e6cb11cd7019aa502ef230250e85e73d1a736bc0482958f835e45d9d3496e9d
6
+ metadata.gz: 5ce4089504e5db07a0178a8bfb81739f6ce01b3ec45d747fd7e7f1a9de9ebdec6806d467794870d26be1eac060af5cc6971706105e7cdc07837c59686bf2ec49
7
+ data.tar.gz: e877789013f4b27f7ec0cff1f2ecbad7044871ebed1418615e825aa112036d333617c0c526511204123da180d8965dea943ed4e299251971e5b2f13729aa040d
data/conf CHANGED
@@ -9,5 +9,4 @@
9
9
  @p.srg = 11
10
10
  @p.reg = {}
11
11
  @p.flg = {"28"=>false, "29"=>true, "31"=>false, "44"=>false, "22"=>false, "23"=>false}
12
- @p.prg = [["LBL \"XRPN\"", "END"]]
13
12
  $theme = "dark"
data/xlib/debug_mode CHANGED
@@ -2,7 +2,7 @@ def debug_mode
2
2
  #prompt = TTY::Prompt.new
3
3
  loop do
4
4
  if $prompt
5
- @line = prompt.ask(":")
5
+ @line = @debugprompt.ask(":")
6
6
  break
7
7
  else
8
8
  puts "─" * 30
data/xlib/read_xcmd CHANGED
@@ -4,14 +4,16 @@ def read_xcmd
4
4
  Dir[$gem+"/xcmd/*"].each do |file|
5
5
  load file
6
6
  l = File.read(file)
7
- c = l[/def .*\n/][4..-2]
7
+ c = l.sub(/.*\s*def /m, '')
8
+ c = c.sub(/\s.*/m, '')
8
9
  $cmd.push(c)
9
10
  end
10
11
  end
11
12
  Dir[Dir.home+"/.xrpn/xcmd/*"].each do |file|
12
13
  load file
13
14
  l = File.read(file)
14
- c = l[/def .*\n/][4..-2]
15
+ c = l.sub(/.*\s*def /m, '')
16
+ c = c.sub(/\s.*/m, '')
15
17
  $cmd.push(c)
16
18
  end
17
19
  $cmd.sort!
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.1'
3
+ s.version = '1.3.2'
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.3.1: Description of every command via CMDHELP. History with UP/DOWN keys in debug mode."
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.3.2: Bug fixes."
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.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geir Isene
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-19 00:00:00.000000000 Z
11
+ date: 2022-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tty-prompt
@@ -28,8 +28,7 @@ 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.3.1: Description
32
- of every command via CMDHELP. History with UP/DOWN keys in debug mode.'
31
+ programs and opens the possibilities to many, many more. New in 1.3.2: Bug fixes.'
33
32
  email: g@isene.com
34
33
  executables:
35
34
  - xrpn