xrpn 1.7 → 1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/xrpn +8 -1
  3. data/xrpn.gemspec +2 -2
  4. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a81afb93ab5528746ee3506675542ce31b85a1fe513f7bdda71e7b1702b95f09
4
- data.tar.gz: c22adf280fd778f57ff9beb6fa49afa03e408c8b688105ef5b7cf89529c7fe16
3
+ metadata.gz: aa44e96ed478c71d7cbb9f6f3aa9a835970f77882080d2be9bdf8b8502ed382a
4
+ data.tar.gz: 6ab7e692701f1c9730a2e7588f46b5d729b53d1ee2a2e6358043de41ca5eee93
5
5
  SHA512:
6
- metadata.gz: a0cee89c7e30519538ef273f2714c8e877cdbe393b1bcbbd504439946b7704f25f3c457a04163e54ff84c74cd61cf3c783db28ac907d9cfc6ffb33d4ad59fcb1
7
- data.tar.gz: f23b8a11dd7245316d9c433306d114a8faba605bb2a9f226fdfc2e26390ebbbee0bed5ade3c2f8a200010fe6016f9c5bd440e8bd0d3d17210b078a6c10387a5b
6
+ metadata.gz: 67561ad8ac3a3f353fbca88c7aec8c23dccf72cdc95112873f8b28082e1f34af4c27f9942c1ee330d4ac8ca4a62ddc51ef6774fb33b6e80bd947c8d1756fdd8f
7
+ data.tar.gz: 693f1a898d936f8679f324a3d1ea930c8f8a5b32dbecf9e8c0c98cbcc9648018dff78b5525e982699f03d15e3d36c82809383f59cad4204ae6488d8b2c240888
data/bin/xrpn CHANGED
@@ -135,15 +135,22 @@ until @p.pc == @p.prg[@p.pg].length do
135
135
  l2 ? ret = @p.send(l1.downcase, l2) : ret = @p.send(l1.downcase)
136
136
  rescue ArgumentError
137
137
  puts "Command needs an argument."
138
- @p.stop
138
+ exit if $exe
139
139
  rescue TypeError
140
140
  error("ERROR: Wrong type.")
141
+ exit if $exe
141
142
  rescue ZeroDivisionError
142
143
  error("ERROR: Division by zero.")
144
+ exit if $exe
143
145
  rescue FloatDomainError
144
146
  error("ERROR: Number out of range.")
147
+ exit if $exe
145
148
  rescue Math::DomainError
146
149
  error("ERROR: Number out of domain.")
150
+ exit if $exe
151
+ rescue Exception => err
152
+ puts "\n#{err}"
153
+ exit if $exe
147
154
  end
148
155
  puts ret if $debug and ret.instance_of? String
149
156
  puts ret if not $debug and ret.to_s.match(/Error:/)
data/xrpn.gemspec CHANGED
@@ -1,9 +1,9 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'xrpn'
3
- s.version = '1.7'
3
+ s.version = '1.8'
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.7: Added function 'stdout' that writes content of X to STDOUT."
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.7: Added function 'stdout' that writes content of X to STDOUT. New in 1.8: Better error handling - especially for the rsh integration (https://github.com/isene/rsh)."
7
7
 
8
8
  s.authors = ["Geir Isene"]
9
9
  s.email = 'g@isene.com'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xrpn
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.7'
4
+ version: '1.8'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geir Isene
@@ -29,7 +29,8 @@ description: 'A full programming language and environment extending the features
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
31
  programs and opens the possibilities to many, many more. New in 1.7: Added function
32
- ''stdout'' that writes content of X to STDOUT.'
32
+ ''stdout'' that writes content of X to STDOUT. New in 1.8: Better error handling
33
+ - especially for the rsh integration (https://github.com/isene/rsh).'
33
34
  email: g@isene.com
34
35
  executables:
35
36
  - xrpn