probatio 1.7.1 → 1.7.3

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: ff152c52ba246bd8e7705b7c130f3c95cd1b16cd053ad30f99887ff062d7f301
4
- data.tar.gz: ab0ac7edb97f75c1f86b91923c3ede69ed2de5bb39e0f08ab486ce0e945b1083
3
+ metadata.gz: f86d72fca54c9e4823a76c69ec6fe5764585033dcf0d6189d6dda004056affaf
4
+ data.tar.gz: e306ca7a1b02bf36e15b7c823826746395d21183c8c05fd8004d8ac8af49f0d2
5
5
  SHA512:
6
- metadata.gz: a4c44eb4831d0839fd8a2fd449cf485405fc9efb92d2d70282effc6eb685c0a47b8c31297476a9b21b745aecf6559784fe6986a4f4fdd821ef380177fb1020ef
7
- data.tar.gz: 72345c500f5e6380d9291d15c3036ed5fdc51c2763c638003cca1f207be573f8a0cab658a1fb49f38092f1f2922bc25bbd22abf3d4b6d5db8b5e9a6540380dbf
6
+ metadata.gz: f6b1933e682e0f52c9816efbe8b5dd6de65d63ae919dd3f8f464ea935cd839a46bd40013d73710fd18dac92a5dd452bbfef5d881b1bf42856be31a0a60b20057
7
+ data.tar.gz: cda65bc57b629d756bc7c4eb69476d405b7de6d1982784faa8f3de7616962f305e50ed327f91d8508f37b06bb2804c2a2b611c9bf7f427e78e1698c96a6bcb3d
data/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
  # CHANGELOG.md
3
3
 
4
4
 
5
+ ## probatio 1.7.3 released 2026-10-16
6
+
7
+ * Ensure all errors have a #loca
8
+
9
+
10
+ ## probatio 1.7.2 released 2026-10-16
11
+
12
+ * Fix Error vs #loca and #loc
13
+
14
+
5
15
  ## probatio 1.7.1 released 2026-10-14
6
16
 
7
17
  * Fix Error vs #loc
@@ -20,7 +20,6 @@ module Probatio
20
20
 
21
21
  @test = test
22
22
 
23
-
24
23
  if error_or_message.is_a?(String)
25
24
  @msg = error_or_message
26
25
  else
@@ -232,7 +231,10 @@ module Probatio
232
231
  attr_accessor :test
233
232
 
234
233
  def path; test.path; end
234
+
235
235
  def location; [ path, line ]; end
236
+ alias loca location
237
+
236
238
  def loc; location.map(&:to_s).join(':'); end
237
239
 
238
240
  def trail
data/lib/probatio.rb CHANGED
@@ -18,7 +18,7 @@ require 'probatio/more'
18
18
 
19
19
  module Probatio
20
20
 
21
- VERSION = '1.7.1'
21
+ VERSION = '1.7.3'.freeze
22
22
 
23
23
  class << self
24
24
 
@@ -874,7 +874,7 @@ module Probatio
874
874
 
875
875
  def location
876
876
 
877
- (error && error.loc) ||
877
+ (error && error.loca) ||
878
878
  (ameloc && ameloc[1]) ||
879
879
  (node && node.loca) ||
880
880
  [ '', -1 ]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: probatio
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Mettraux
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-10-14 00:00:00.000000000 Z
11
+ date: 2026-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: stringio