xrpn 1.8.2 → 1.9

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: 12914b57a8fff50199cbc83042b0f6c05b5647434752a8554eb4b04680b2fa48
4
- data.tar.gz: d96268b3a519d92d1c38d2e48ecd5ac2069b602850fe397194a2ec98414568e6
3
+ metadata.gz: 1af3ec05af142258d3a307d379c116cd097e76cc6d78d8952ea5eb3c91ad9e5f
4
+ data.tar.gz: 54cbf3e384d18e4aa66db8fc52e8c315bc4911d25541559a144c71420749dcef
5
5
  SHA512:
6
- metadata.gz: 2c06c7454ba8b085d02ad5fb0f9d18383438b104ea68d457b62f2f56b42831e8e6228cd9028ee2c5f09d1a451febd91b53f25ec3036f2a787fe254619bac3dd8
7
- data.tar.gz: 00d0b29e11921699b5f93a670673314d65dd19c456700572fb0a5f4f7502b7069ab120a586b7f0291d065331d56e01c4535de47cf280da757cccde1dbbe540e8
6
+ metadata.gz: a7b6fb839bd6d486a999b97b8b7826deb72aaac9bcd4988a4f619e12fb8c4625b20505f8b870e40a7d5d806ac5106f804982f3259a7b6aa0411b60157ba2a65c
7
+ data.tar.gz: '05718632faa6cd186110379e1383eea04cdb842684df717a253312a150680fcc3b69de0062b0eb8fc6ac9ab116ff0ee1e67e6b215fa4c24f62f287bec9ddf44f'
data/bin/xrpn CHANGED
@@ -24,7 +24,11 @@ require 'open-uri'
24
24
  require 'json'
25
25
  require 'tty-prompt'
26
26
 
27
- $gem = Gem.latest_spec_for("xrpn").gem_dir
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
@@ -0,0 +1,9 @@
1
+ class XRPN
2
+ # Get the index/number of the last page
3
+ def lastpage
4
+ lift
5
+ @x = self.prg.length
6
+ end
7
+ end
8
+
9
+ # vim:ft=ruby:
data/xcmd/load ADDED
@@ -0,0 +1,8 @@
1
+ class XRPN
2
+ # Load program named in Alpha into new page
3
+ def load
4
+ self.prg[self.prg.length] = hp_41(File.read(@a).split("\n"))
5
+ end
6
+ end
7
+
8
+ # vim:ft=ruby:
data/xlib/_xrpn_version CHANGED
@@ -1,5 +1,5 @@
1
1
  def xrpn_version
2
- puts "XRPN version: 1.8.2"
2
+ puts "XRPN version: 1.9"
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.8.2'
3
+ s.version = '1.9'
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. New in 1.8.2: Better error handling - especially for the rsh integration (https://github.com/isene/rsh)"
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' (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.8.2
4
+ version: '1.9'
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-06-07 00:00:00.000000000 Z
11
+ date: 2023-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tty-prompt
@@ -28,9 +28,8 @@ 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.7: Added function
32
- ''stdout'' that writes content of X to STDOUT. New in 1.8.2: Better error handling
33
- - especially for the rsh integration (https://github.com/isene/rsh)'
31
+ programs and opens the possibilities to many, many more. New in 1.9: Added functions
32
+ ''lastpage'' and ''load'' (see GitHub wiki)'
34
33
  email: g@isene.com
35
34
  executables:
36
35
  - xrpn
@@ -168,11 +167,13 @@ files:
168
167
  - xcmd/int
169
168
  - xcmd/invf
170
169
  - xcmd/isg
170
+ - xcmd/lastpage
171
171
  - xcmd/lastx
172
172
  - xcmd/lbl
173
173
  - xcmd/lift
174
174
  - xcmd/ln
175
175
  - xcmd/ln1x
176
+ - xcmd/load
176
177
  - xcmd/log
177
178
  - xcmd/mdy
178
179
  - xcmd/mean