intar 2.16.1 → 2.18

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: 65941b687800d76ae7bba2e690b56ba94f30ca1ccd78650db345a0fb8cc60891
4
- data.tar.gz: 231b81799431f3a33b00139f57b3c83f42a261238d1c46342a349fafbfea3e68
3
+ metadata.gz: 5196f1e809ea091ee1999bce0d6cbee4ce63121b396db3808bf3e847419bd0e1
4
+ data.tar.gz: 4a7ed17f8e8c4501fcc1bc18eb330080aa061e2deec660737cff2fcb3dfedc27
5
5
  SHA512:
6
- metadata.gz: 9c2732ba6af248d47aeb7d29ee98de5ae78c4cec84ba20865c15740ac6b0d9b1b688d05a1f72d34c44874267d7ac0477980707a29840280721b425729d30b3c5
7
- data.tar.gz: '0285277cabae513ff717d452f8017c7dfade0e80c3c7648633c066cbeca70b4d695bd73e1230f8f3aaaa83211bcb632a6cd64906c803a09b30a48c01097b2a5f'
6
+ metadata.gz: 55f6cabc0e30a859c63924c8002494bff765f89e67a7c05a36322146772b3b09f8e5fa122c498813fbb99563339fcccf10b4100268cf17ddba5637afccd284a7
7
+ data.tar.gz: d0ee5d8af9071df83c26a22859a516ed2530dbcdfdcb56b12bc86e78749086ac10bb9f16b17339c04843545f1f67b69c9ee99ad66c0b41cb4c4e65d973dcad4d
data/bin/intar CHANGED
@@ -92,6 +92,7 @@ class Intar::Appl < Application
92
92
  i.execute @args.shift while @args.notempty?
93
93
  i.run
94
94
  end
95
+ nil
95
96
  end
96
97
 
97
98
  private
data/lib/intar/version.rb CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  class Intar
6
6
 
7
- VERSION = "2.16.1".freeze
7
+ VERSION = "2.18".freeze
8
8
 
9
9
  end
10
10
 
data/lib/intar.rb CHANGED
@@ -144,12 +144,16 @@ class Intar
144
144
  rescue Quit
145
145
  break
146
146
  rescue Exception
147
- break if SystemExit === $! and not @params[ :catch_exit]
147
+ raise if SystemExit === $! and not @params[ :catch_exit]
148
148
  r = $!
149
149
  show_exception
150
150
  end
151
151
  (execute OLD_SET).call r, @n
152
152
  @n += 1
153
+ rescue
154
+ switchcolor 33
155
+ puts "Internal error."
156
+ show_exception
153
157
  end
154
158
  r
155
159
  ensure
@@ -345,8 +349,6 @@ class Intar
345
349
  puts i
346
350
  end
347
351
 
348
- PACKAGE_BACKTRACE = %r/#{File.basename __FILE__, ".rb"}.*:\d+:in/
349
-
350
352
  def show_exception
351
353
  unless $!.to_s.empty? then
352
354
  switchcolor 1, 31
@@ -356,10 +358,8 @@ class Intar
356
358
  switchcolor 22, 31
357
359
  puts "(#{$!.class})"
358
360
  switchcolor 33
359
- $@.each { |b|
360
- break if b =~ PACKAGE_BACKTRACE
361
- puts b
362
- }
361
+ $@.pop until $@.empty? or $@.last.start_with? self.class.name
362
+ puts $@
363
363
  switchcolor
364
364
  end
365
365
 
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: intar
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.16.1
4
+ version: '2.18'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bertram Scharpf
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-11-28 00:00:00.000000000 Z
10
+ date: 2025-02-13 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: appl
@@ -72,7 +71,6 @@ homepage: http://www.bertram-scharpf.de
72
71
  licenses:
73
72
  - BSD-2-Clause
74
73
  metadata: {}
75
- post_install_message:
76
74
  rdoc_options: []
77
75
  require_paths:
78
76
  - lib
@@ -88,8 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
86
  version: '0'
89
87
  requirements:
90
88
  - Ruby and some small Gems; Readline
91
- rubygems_version: 3.4.22
92
- signing_key:
89
+ rubygems_version: 3.6.3
93
90
  specification_version: 4
94
91
  summary: Interactive Ruby
95
92
  test_files: []