xrpn 1.1.7 → 1.1.8

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: 3bc359eaf9eff213e3dc7ff0050fdaec73ccbf89990312534e425e6c2f11fb7d
4
- data.tar.gz: f7dfcb8196f206f0636c9bfbde3b77d0939190a86ff9c8b253af9140beaf48fc
3
+ metadata.gz: 16c34e199fb1fbc49a70873a0f8c5ac5138428455ea901fbd75078521763386b
4
+ data.tar.gz: 86408ca6f73171ea22f769b565687bb69f01ddea7764b70057a25e5110766901
5
5
  SHA512:
6
- metadata.gz: 7d9d3802c169f108379c88652c44be78b26930f94c6d3d5447f945983307bfd639daa2944c4df4b4b2a008c197d10d7f1df9b3cdfb7cedcbea251db725253e07
7
- data.tar.gz: a5539c1057a057e1023f5ab742bfc71055027b1acf3d61818f2c3c75bbaf3fd47f8b7b851b1061f1a6455a0d22b38288e2785d6500d7cdb4569421e2154163a1
6
+ metadata.gz: 1b65935bac23d27df1ecde41dc16f4e488cd5a141a7e56de6f18c47df42a21b8239f516871534667227da269767369627a1c3030ac2321eb6c1adf475d31ff58
7
+ data.tar.gz: ad965154e4811e44e57fa88e4185caa7aba1c79e24cd56c54eca1596c753d7c9141efde3e7164f559dd7054b89fb459621c9f648cbae0db08f5d58b7ead08958
data/bin/xrpn CHANGED
@@ -37,9 +37,7 @@ if $lfile # Read file to load but
37
37
  end
38
38
  read_state($sfile) if $sfile # Read state file in ~.xrpn/ if -s switch is used
39
39
  $debug = true if $lfile or $sfile # Do not run loaded program or program in state file
40
- load(Dir.home+'/.xrpn/xlib/theme_dark') if File.exist?(Dir.home+'/.xrpn/lib/theme_dark') # Read theme file
41
- load(Dir.home+'/.xrpn/conf') if File.exist?(Dir.home+'/.xrpn/conf') # Read config file
42
- load(Dir.home+'/.xrpn/xlib/theme_light') if $theme == "light" and File.exist?(Dir.home+'/.xrpn/xlib/theme_light') # Read theme file
40
+ load(Dir.home+'/.xrpn/conf') if File.exist?(Dir.home+'/.xrpn/conf') # Read config file
43
41
  load(Dir.home+'/.xrpn/theme') if File.exist?(Dir.home+'/.xrpn/theme') # Override theme if user theme file exists
44
42
 
45
43
 
data/lib/xrpn.rb CHANGED
@@ -1,3 +1,2 @@
1
- puts "Loading..."
2
- Dir[__dir__ + "/../xlib/*"].each { |file| load file }
3
1
  Dir[__dir__ + "/../xcmd/*"].each { |file| load file }
2
+ Dir[__dir__ + "/../xlib/*"].each { |file| load file }
data/xlib/theme ADDED
@@ -0,0 +1,23 @@
1
+ def theme(t ="dark")
2
+ if t == "light"
3
+ $colors = {
4
+ "X" => 232,
5
+ "Y" => 241,
6
+ "Z" => 244,
7
+ "T" => 247,
8
+ "L" => 130,
9
+ "A" => 39
10
+ }
11
+ else
12
+ $colors = {
13
+ "X" => 255,
14
+ "Y" => 246,
15
+ "Z" => 243,
16
+ "T" => 240,
17
+ "L" => 130,
18
+ "A" => 39
19
+ }
20
+ end
21
+ end
22
+
23
+ # vim:ft=ruby:
data/xrpn.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'xrpn'
3
- s.version = '1.1.7'
3
+ s.version = '1.1.8'
4
4
  s.licenses = ['Unlicense']
5
5
  s.summary = "XRPN - The eXtended RPN (Reverse Polish Notation) programming language"
6
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."
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.1.7
4
+ version: 1.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geir Isene
@@ -320,8 +320,7 @@ files:
320
320
  - xlib/save_xm
321
321
  - xlib/setpt
322
322
  - xlib/string
323
- - xlib/theme_dark
324
- - xlib/theme_light
323
+ - xlib/theme
325
324
  - xlib/xrpn_class
326
325
  - xrpn.gemspec
327
326
  homepage: https://github.com/isene/XRPN
data/xlib/theme_dark DELETED
@@ -1,10 +0,0 @@
1
- $colors = {
2
- "X" => 255,
3
- "Y" => 246,
4
- "Z" => 243,
5
- "T" => 240,
6
- "L" => 130,
7
- "A" => 39
8
- }
9
-
10
- # vim:ft=ruby:
data/xlib/theme_light DELETED
@@ -1,10 +0,0 @@
1
- $colors = {
2
- "X" => 232,
3
- "Y" => 241,
4
- "Z" => 244,
5
- "T" => 247,
6
- "L" => 130,
7
- "A" => 39
8
- }
9
-
10
- # vim:ft=ruby: