ru.Bee 2.4.1 → 2.4.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: c4204ab4a146dba0a5c2be32845880e17d576b12d807f58de9024e8f31db8268
4
- data.tar.gz: e5afe1588d9597034a3931a86631d1cc6f35cb63c4d03fa45a64bef30494c127
3
+ metadata.gz: c385384e96fe32c753b81051b7bcb24d8d623d2c61898ee8602e5bbfe2bdd9a1
4
+ data.tar.gz: 239f84f0499d800d899894d29b4df27305d94a7728d3b4d5bfbfaf150e9379e0
5
5
  SHA512:
6
- metadata.gz: 814450e1ae8f4fd6e206aa7fcfc0b021901bd00a4c7e8831ff94df5cae97d4c019981b4870310048977a5ff4f5cc6160d876bd91fc035fdb236988759d550c1a
7
- data.tar.gz: 389a39ca1bd6f3853a53aa918c4e658de405bf035b53b98f14aa9e428b9bf27b1fd0cb8ba8b62190f446d0e932b11d743d194b265c401bba37866df98280dbb1
6
+ metadata.gz: 0777d3758de544f5455f61378ded65d83fa56502b1c8b9343d3d8fc7edaf545664e003bb7b6f11d90fda858ec9f3c67d917e3333e0fe5e3b891004bb83450b88
7
+ data.tar.gz: aa7b2833b2cdfef147e37dcdcfc1e30508b392aa56f885e3cb578d5276db5a32237a1140e76938be606fd78da5f11204cbf32aba20575e2b91116a4c3b936e29
data/lib/db/test.db CHANGED
Binary file
@@ -102,6 +102,7 @@ module Rubee
102
102
  # > user.comments
103
103
  # > [<comment1>, <comment2>]
104
104
  def owns_many(assoc, fk_name: nil, over: nil, **options)
105
+ original_assoc = assoc
105
106
  singularized_assoc_name = assoc.to_s.singularize
106
107
  fk_name ||= "#{name.to_s.downcase}_id"
107
108
  namespace = options[:namespace]
@@ -116,7 +117,7 @@ module Rubee
116
117
  if over
117
118
  sequel_dataset = klass
118
119
  .join(over.to_sym, "#{singularized_assoc_name.snakeize}_id".to_sym => :id)
119
- .where(Sequel[over][fk_name.to_sym] => id)
120
+ .where(Sequel[over][fk_name.to_sym] => id).select_all(original_assoc).all
120
121
  self.class.serialize(sequel_dataset, klass)
121
122
  else
122
123
  klass.where(fk_name.to_sym => id)
data/lib/rubee.rb CHANGED
@@ -20,7 +20,7 @@ module Rubee
20
20
  RUBEE_SUPPORT = { "Rubee::Support::Hash" => Hash, "Rubee::Support::String" => String }
21
21
  end
22
22
 
23
- VERSION = '2.4.1'
23
+ VERSION = '2.4.2'
24
24
 
25
25
  require_relative 'rubee/router'
26
26
  require_relative 'rubee/logger'
@@ -27,7 +27,7 @@ describe 'TestAsyncRunnner' do
27
27
  subject
28
28
 
29
29
  Timeout.timeout(1) do
30
- sleep(0.05) until User.count == 5
30
+ sleep(0.1) until User.count == 5
31
31
  end
32
32
 
33
33
  assert_equal 5, User.count
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ru.Bee
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.1
4
+ version: 2.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleg Saltykov