n1_loader 1.6.2 → 1.6.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: b8a914cabc2c837109b3f6f72b78dbbc4b6e64b87049568e9c6733f29b2a6867
4
- data.tar.gz: ce9b88ee6121de3540dd13789da0c28b8c01e32598ed1dacb10af16da05e82b9
3
+ metadata.gz: c874b380de3baf4e2c0631f223261604ecb7108a4320797d746a73a90af01db5
4
+ data.tar.gz: c7e98c2c4b07afbb45081b9435f9b544126378f585a23dc7419f320764af0908
5
5
  SHA512:
6
- metadata.gz: 1a290cee96e8ba97c181267efde4f94ca494037d05e4cce93e58131faa4f6cc22c072a792e24631479b41a62cdfff0857e3dd3f51252cf7d05a4f3252eb41c5b
7
- data.tar.gz: b4fcf0e7f3911441d542b6ab5d9f657671dcbf7864822f11c2e6854d957e49787026490f4595323c14d60348259eef5a522da4312fe6ee8ccd78a092437d8346
6
+ metadata.gz: 071005e2ebc91c4884a2417d02162d795bea99813ea20b556d2b61f18d32e66ae3657f250af84ea67c32433c1d5c6697a2db9a20461d7ac0f73ff86e5b429d94
7
+ data.tar.gz: 001e24c4c00ffd207229dd2721baa4424ee90bd7591d9b3ea2092d823e5bec403f51ca80d6efad7b2ff8db3bc57bb955bd04705dd97f704fc64494dffe1f8321
@@ -16,7 +16,6 @@ jobs:
16
16
  uses: ruby/setup-ruby@v1
17
17
  with:
18
18
  ruby-version: 2.7
19
- bundler-cache: true
20
19
 
21
20
  - name: Install dependencies
22
21
  run: bundle install
@@ -38,6 +38,9 @@ jobs:
38
38
  - activerecord-gemfile: 'ar_7_latest'
39
39
  ar_lazy_preload-gemfile: 'ar_lazy_preload_0.6.1'
40
40
 
41
+ - activerecord-gemfile: 'ar_5_latest'
42
+ ar_lazy_preload-gemfile: 'ar_lazy_preload_master'
43
+
41
44
  env:
42
45
  ACTIVERECORD_GEMFILE: ${{ matrix.activerecord-gemfile }}
43
46
  AR_LAZY_PRELOAD_GEMFILE: ${{ matrix.ar_lazy_preload-gemfile }}
@@ -49,7 +52,6 @@ jobs:
49
52
  uses: ruby/setup-ruby@v1
50
53
  with:
51
54
  ruby-version: ${{ matrix.ruby-version }}
52
- bundler-cache: true
53
55
 
54
56
  - name: Install dependencies
55
57
  run: bundle install
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [1.6.3] - 2022/12/30
2
+
3
+ - Performance optimization: avoid unnecessary calls. Thanks [Nazar Matus](https://github.com/FunkyloverOne) for the [contribution](https://github.com/djezzzl/n1_loader/pull/33).
4
+
1
5
  ## [1.6.2] - 2022/11/23
2
6
 
3
7
  - Add fund metadata
@@ -110,7 +110,7 @@ module N1Loader
110
110
 
111
111
  @loaded = {}.compare_by_identity
112
112
 
113
- if elements.size == 1 && respond_to?(:single)
113
+ if respond_to?(:single) && elements.size == 1
114
114
  fulfill(elements.first, single(elements.first))
115
115
  elsif elements.any?
116
116
  perform(elements)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module N1Loader
4
- VERSION = "1.6.2"
4
+ VERSION = "1.6.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: n1_loader
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.2
4
+ version: 1.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evgeniy Demin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-23 00:00:00.000000000 Z
11
+ date: 2022-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord