xrpn 1.3 → 1.3.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: dde19bba9fcbbbce58e8447c363ceff212510f83d86d5b8bfa62f9156e3876e5
4
- data.tar.gz: c06bdf45c23fcebfa983205fc4af530c28492e35a32bbe45a0008c8e1145aca9
3
+ metadata.gz: b45b0ae323940d1e746c3e7e506aa99b8bfcfe7b2150b3da8c0b52fa300d636b
4
+ data.tar.gz: bf536a88ea59513dab40118fa6e33f3fcb8613dd766864ac34d2b65c5286ab01
5
5
  SHA512:
6
- metadata.gz: 487924f70e9fd85bc45b18521fd153d764ea1f94327f175411441886ef986e398154be889976784dbf53b356cdef7074d1462cf95e10d6971158fce6a331ce58
7
- data.tar.gz: 34997709120a14cbd8759bfa9c99d91054b7bf5df752951e29540af9d13476e2b9b0d34f68ddae2051fdc80a28d589944ee9f30c95a874e6d97fb2630438a747
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/xcmd/cmdhelp CHANGED
@@ -2,10 +2,10 @@ class XRPN
2
2
  # Show help text for the command in Alpha
3
3
  def cmdhelp
4
4
  if $gem
5
- c_gem = $gem + "/xcmd/" + @a
5
+ c_gem = $gem + "/xcmd/" + @a.downcase
6
6
  c = File.read(c_gem) if File.exist?(c_gem)
7
7
  end
8
- c_loc = Dir.home + "/.xrpn/xcmd/" + @a
8
+ c_loc = Dir.home + "/.xrpn/xcmd/" + @a.downcase
9
9
  c = File.read(c_loc) if File.exist?(c_loc)
10
10
  if c
11
11
  c = c[/.*#.*\n/][2..-2]
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'
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."
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'
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
@@ -24,11 +24,11 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.23'
27
- description: A full programming language and environment extending the features of
27
+ description: 'A full programming language and environment extending the features of
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.
31
+ programs and opens the possibilities to many, many more. New in 1.3.2: Bug fixes.'
32
32
  email: g@isene.com
33
33
  executables:
34
34
  - xrpn