orthoses 1.18.0 → 1.19.0

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: 544e3607082ea7cf7133437a87c355e16422240c07cf63da846ee5880630789e
4
- data.tar.gz: b210030d343c4a8b41bc2aa314fe4bc916196ef76161e0298ff76ee06abd4a0f
3
+ metadata.gz: 245f65c0f676602acf06354591c87ed0d5ed7cd39b997a4db2736004da99476f
4
+ data.tar.gz: b8f5ec5da61b79d5cc1994f94cd71c6e9da1b36679dd8aef3f6d7c5fcd88bf46
5
5
  SHA512:
6
- metadata.gz: 066bf0492515c4df6fd7320e5d564b345063083b1692a889f8fbfeb32e74f45a0fffb2defedfd0a3ebba5eeaf9a35eb15f2c1e678999f64add3c876fadb8310b
7
- data.tar.gz: a2dbf32980d77df48dbcc7606a013c2b8b921d5dfae8a30bcfa1f189d26b38c352261345e8eb1f5976df695ad6f5e651457be3236b5f43be76514137ca62a03c
6
+ metadata.gz: 9278d20b972e610772ca19fa849ea147564b49bacf5d0bd81854fe636be99eb2061482569b88370588424f4d3e6059ccb2530c896f8ce9bf921acfd675771153
7
+ data.tar.gz: 4c271a0f6a3105fe3bb9813c392d47965cb709e2c86e38db6cc9cc3be54a009210a0cdef693a3c6b6ad441b2da5546e7c4a2284d2a0a2fb8c2aee47ffb6373a3
@@ -76,7 +76,7 @@ module Orthoses
76
76
  when Integer
77
77
  name.split('::')[0, @depth].join('::')
78
78
  when Hash
79
- found_key, found_index = @depth.find do |n, _|
79
+ _, found_index = @depth.find do |n, _|
80
80
  n == '*' || name.start_with?(n)
81
81
  end
82
82
  case found_index
@@ -25,7 +25,7 @@ module Orthoses
25
25
  h[mod_name]&.call(self, id)
26
26
  end
27
27
  end
28
- rescue TypeError => e
28
+ rescue TypeError
29
29
  end
30
30
  super
31
31
  end
@@ -41,7 +41,7 @@ module Orthoses
41
41
  h[mod_name]&.call(self, id)
42
42
  end
43
43
  end
44
- rescue TypeError => e
44
+ rescue TypeError
45
45
  end
46
46
  end
47
47
  end
@@ -61,12 +61,14 @@ module Orthoses
61
61
  if collection
62
62
  config_path = RBS::Collection::Config.find_config_path || RBS::Collection::Config::PATH || raise("needs rbs_collection.yaml")
63
63
  lock_path = RBS::Collection::Config.to_lockfile_path(config_path)
64
- raise "needs rbs_collection.yaml file" unless lock_path.file?
65
- lock = RBS::Collection::Config::Lockfile.from_lockfile(
66
- lockfile_path: lock_path,
67
- data: YAML.load_file(lock_path.to_s)
68
- )
69
- loader.add_collection(lock)
64
+ if lock_path.file?
65
+ loader.add_collection(RBS::Collection::Config::Lockfile.from_lockfile(
66
+ lockfile_path: lock_path,
67
+ data: YAML.load_file(lock_path.to_s)
68
+ ))
69
+ else
70
+ Orthoses.logger.debug("rbs_collection.lock.yaml not found in #{lock_path}")
71
+ end
70
72
  end
71
73
 
72
74
  case library
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Orthoses
4
- VERSION = "1.18.0"
4
+ VERSION = "1.19.0"
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orthoses
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.18.0
4
+ version: 1.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ksss
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-02-04 00:00:00.000000000 Z
10
+ date: 2025-03-08 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rbs