orthoses-rails 1.13.1 → 1.13.2

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: 9ccca6e1f1f0f28e149e0ae6aecb3fa4d77cac5c00cc655ebbcfbc642c4004b9
4
- data.tar.gz: 53dce13435c90b85aac4d393c746a0400b44145ea621bd79931f9fdf5d18bcd5
3
+ metadata.gz: 14aa53003c671444040de9fb882f3cfa49f054b9dd8458634ed87f00c62e2431
4
+ data.tar.gz: e313dc30b80f2392485b998d6bad549283f56d2cfb73bc9866345463b95519a2
5
5
  SHA512:
6
- metadata.gz: 39998168894f466b1898f13cc0f72a10a5ded1eca043c3cb7c53d51ed1bc029ee0c52001ea9ee2f0b9a0a1ff048b600163e84115d66d8e62267af665e0ff73ff
7
- data.tar.gz: c632eeedef24fbdc6f19bf5591fe8c68979a62d73cb38c9f9771f9e04fd7aff097109a646c17e5d67a30ccf6b3e9652034973408d1b2b06ec418fbc80b97fafd
6
+ metadata.gz: f390bfea2f2562b5b4759dddc63e96765cdbdde2f0394010c181b3367780ccfa4aeb98d0f8244b4850466461d31c974b3b06834266855a49e7aefeead30148ed
7
+ data.tar.gz: ff5608bf9c323bffc16370256a97a291e66d351feb191ef8e3d230819cc1e0c35747912425a894af99b1598581b343935ea151ddb4f9e6de6fab56a1a2735267
@@ -129,7 +129,8 @@ module Orthoses
129
129
  return [:multi, member.overloads.map { |o| o.method_type }]
130
130
  else
131
131
  method_type = member.overloads.map(&:method_type).find do |method_type|
132
- method_type.type.required_positionals.empty? && method_type.type.required_keywords.empty?
132
+ is_untyped_function = defined?(RBS::Types::UntypedFunction) && method_type.type.is_a?(RBS::Types::UntypedFunction)
133
+ is_untyped_function || (method_type.type.required_positionals.empty? && method_type.type.required_keywords.empty?)
133
134
  end
134
135
  next unless method_type
135
136
  return [:single, method_type.type.return_type]
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Orthoses
4
4
  module Rails
5
- VERSION = "1.13.1"
5
+ VERSION = "1.13.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orthoses-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.13.1
4
+ version: 1.13.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ksss
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-07-17 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: orthoses
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  - !ruby/object:Gem::Version
94
94
  version: '0'
95
95
  requirements: []
96
- rubygems_version: 3.6.6
96
+ rubygems_version: 3.6.9
97
97
  specification_version: 4
98
98
  summary: Orthoses middleware collection for Ruby on Rails
99
99
  test_files: []