orthoses-rails 1.13.1 → 1.14.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: 9ccca6e1f1f0f28e149e0ae6aecb3fa4d77cac5c00cc655ebbcfbc642c4004b9
4
- data.tar.gz: 53dce13435c90b85aac4d393c746a0400b44145ea621bd79931f9fdf5d18bcd5
3
+ metadata.gz: 74b534bbac43101c87ec727765d22f771eb175e3c401f85304ea05a1d1daf287
4
+ data.tar.gz: 0de0c7d9622b3f4ec5f89d306eb331053634cb5e4cc487191d175989e13a3869
5
5
  SHA512:
6
- metadata.gz: 39998168894f466b1898f13cc0f72a10a5ded1eca043c3cb7c53d51ed1bc029ee0c52001ea9ee2f0b9a0a1ff048b600163e84115d66d8e62267af665e0ff73ff
7
- data.tar.gz: c632eeedef24fbdc6f19bf5591fe8c68979a62d73cb38c9f9771f9e04fd7aff097109a646c17e5d67a30ccf6b3e9652034973408d1b2b06ec418fbc80b97fafd
6
+ metadata.gz: 5233006335bda95a1a1239175e772c5f3e1eb8a0bdca436a181abc01cc0944e92f6e93cef4f96c527dd9e8e56171a39bc48a896448182b2931edd3b07d25c322
7
+ data.tar.gz: c460d2d5c078ba666066774602f0a3a8bc5ce6a10eaaf7f7fa41d54b7fdf69e9fd15edd3bb0015e5c49f7254a946d8457c96e2147d944873441f129cfae5b07e
@@ -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]
@@ -29,8 +29,8 @@ module Orthoses
29
29
  use Orthoses::ActiveRecord::HasMany
30
30
  use Orthoses::ActiveRecord::HasOne
31
31
  use Orthoses::ActiveRecord::Persistence
32
- use Orthoses::ActiveRecord::Relation
33
32
  use Orthoses::ActiveRecord::Scope
33
+ use Orthoses::ActiveRecord::Relation
34
34
  use Orthoses::ActiveRecord::SecureToken
35
35
 
36
36
  if defined?(::ActiveStorage)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Orthoses
4
4
  module Rails
5
- VERSION = "1.13.1"
5
+ VERSION = "1.14.0"
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.14.0
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: []