quo 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3d20b292ae3178fa1ce96705049b215f37d4966a44ee9d05b4fafda3a664a9f5
4
- data.tar.gz: a151bfb1c35dcfea765d3aac5b1bf501c842288e99529523dadf410c0243fe04
3
+ metadata.gz: 71564f3db9d5b4d555d2a21d01f2754ac7db5a650db760f480e6e968343b6994
4
+ data.tar.gz: 27ba399c9fd255fcff14ca7c2ab419d8547f6f7e2d319c2cb96aeaeed8dbc032
5
5
  SHA512:
6
- metadata.gz: bd0e575917052a3171dd45eada04a0ad0e0c670154294507a76808e5bc508d21d8aa53bdad3deebdea11f57a91193c1ae4132589dc330a273b3dda588f635d2f
7
- data.tar.gz: 3faaa3f25cb76d44b70c28425f42f582ed58a7b83c573d976019caef302e4bceeedb8f93912250de7e80b3a906042820eb9884049891c75f5971e3a143361006
6
+ metadata.gz: 6f43fe074d4ddfdbe71f27a5d65600ad014e473131d91c50ed911e541d533a9a2830ebb38420e17aba090657adf2f0f44409e995c5b3fc6666226c083eb1a93f
7
+ data.tar.gz: 07dcc1701c60ad300e92a67aea0c9b2a61c7edda34bc99aa5a0b9faab7c77a71ace33548822c70006f2965d5cdd3140b7df819d585675d045d92e477c5909871
data/Gemfile CHANGED
@@ -17,7 +17,4 @@ group :development, :test do
17
17
  gem "standard", "~> 1.3"
18
18
 
19
19
  gem "steep", "~> 1.2"
20
-
21
- gem "typed_operation", github: "stevegeek/typed_operation", branch: "main"
22
- gem "literal", github: "joeldrapper/literal", branch: "main"
23
20
  end
data/lib/quo/query.rb CHANGED
@@ -148,6 +148,7 @@ module Quo
148
148
 
149
149
  # Some convenience methods for working with results
150
150
  delegate :each,
151
+ :find_each,
151
152
  :map,
152
153
  :flat_map,
153
154
  :reduce,
data/lib/quo/results.rb CHANGED
@@ -61,7 +61,7 @@ module Quo
61
61
  end
62
62
 
63
63
  def respond_to_missing?(name, include_private = false)
64
- Enumerable.instance_methods.include?(name)
64
+ enumerable_methods_supported.include?(name)
65
65
  end
66
66
 
67
67
  private
@@ -77,5 +77,9 @@ module Quo
77
77
  transformer.call(results)
78
78
  end
79
79
  end
80
+
81
+ def enumerable_methods_supported
82
+ [:find_each] + Enumerable.instance_methods
83
+ end
80
84
  end
81
85
  end
data/lib/quo/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Quo
4
- VERSION = "0.5.2"
4
+ VERSION = "0.5.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Ierodiaconou
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-09-09 00:00:00.000000000 Z
11
+ date: 2024-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  - !ruby/object:Gem::Version
115
115
  version: '0'
116
116
  requirements: []
117
- rubygems_version: 3.4.19
117
+ rubygems_version: 3.5.3
118
118
  signing_key:
119
119
  specification_version: 4
120
120
  summary: Quo is a query object gem for Rails