xrpn 1.7 → 1.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/bin/xrpn +5 -1
  3. data/xlib/_xrpn_version +1 -1
  4. data/xrpn.gemspec +2 -2
  5. metadata +4 -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: b361a70885bcf614bc14cffea4083b8ea63d6d5ca5ab7e4291c9d2f03747553b
4
+ data.tar.gz: 6954b5084467a0aca973067db24b17b5ed1fdc1af209bf7a375e49dec3efed3e
5
5
  SHA512:
6
- metadata.gz: a0cee89c7e30519538ef273f2714c8e877cdbe393b1bcbbd504439946b7704f25f3c457a04163e54ff84c74cd61cf3c783db28ac907d9cfc6ffb33d4ad59fcb1
7
- data.tar.gz: f23b8a11dd7245316d9c433306d114a8faba605bb2a9f226fdfc2e26390ebbbee0bed5ade3c2f8a200010fe6016f9c5bd440e8bd0d3d17210b078a6c10387a5b
6
+ metadata.gz: 16f238ac510881d457d0d54fe1cbc477a9bc29e80ac16a1e9ac60085b9c08e491e6a0cc2efcecca2e84c883f54261a9c54ae169f8b47b092c4635f73c7663e0b
7
+ data.tar.gz: c8cd801cfa0b080697a4c1318d91a92e8efc15c7d59dfb702b5dec217aba75c329195911657ea7cefa8e4704e882ec4018a242f1cccba35f99664f4da6c97aa3
data/bin/xrpn CHANGED
@@ -135,15 +135,19 @@ 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
147
151
  end
148
152
  puts ret if $debug and ret.instance_of? String
149
153
  puts ret if not $debug and ret.to_s.match(/Error:/)
data/xlib/_xrpn_version CHANGED
@@ -1,5 +1,5 @@
1
1
  def xrpn_version
2
- puts "XRPN version: 1.6"
2
+ puts "XRPN version: 1.8.1"
3
3
  end
4
4
 
5
5
  # vim:ft=ruby:
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.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.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). 1.8.1: Minor bug fix."
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.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geir Isene
@@ -29,7 +29,9 @@ 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). 1.8.1: Minor
34
+ bug fix.'
33
35
  email: g@isene.com
34
36
  executables:
35
37
  - xrpn