eager_group 0.2.0 → 0.2.1

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
  SHA1:
3
- metadata.gz: f4192329fcb4dca939b7cd36ba3685a5357012c2
4
- data.tar.gz: 9401d2152d653e43f1fa5a38fc67f69609fa28cc
3
+ metadata.gz: 574a83970abfdabb0e4cdea2d51d9e5aa1b3bb3c
4
+ data.tar.gz: f4e26984d00bb20871dbe0ebfd85cf61e62a06e0
5
5
  SHA512:
6
- metadata.gz: b69e18e374729d70ea2e6256688418e85667e136c2fa8f04ae861806eef55621267b27ab1842c98b704eef1522dce585ee07f89abdbd726fffaade8eb6205149
7
- data.tar.gz: 1adc08def5c93538bc39349ab44d8e662fa23399284c1a860eb206afa7306e6496d5963f976d06ce1e6e162ac4748b55f804c0ae0b8aac5fa767d54074f335e6
6
+ metadata.gz: 5689ebf16a02bd8fe8c92befed8d9f43ebf98b3084196a881f416632f72148b24ca1fa910de5dbd6d3589a287f6dd4c1b7289d3eed8b22f8cd9d588c478119c9
7
+ data.tar.gz: 7dfa7ddbaeae8f8ea92bac78c5b2baad996920f73e0011de7daef72751627472b77b51d256a623541cbe4df7cbfe8b8a6e6d5ae23844c85a49f2b55e3d92d0f3
@@ -29,7 +29,7 @@ module EagerGroup
29
29
  end
30
30
  @records.each do |record|
31
31
  id = record.send primary_key
32
- record.send "#{eager_group_value}=", aggregate_hash[id]
32
+ record.send "#{eager_group_value}=", aggregate_hash[id] || 0
33
33
  end
34
34
  end
35
35
  end
@@ -1,3 +1,3 @@
1
1
  module EagerGroup
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eager_group
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Huang
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-07-11 00:00:00.000000000 Z
11
+ date: 2015-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  version: '0'
153
153
  requirements: []
154
154
  rubyforge_project:
155
- rubygems_version: 2.4.7
155
+ rubygems_version: 2.4.5.1
156
156
  signing_key:
157
157
  specification_version: 4
158
158
  summary: Fix n+1 aggregate sql functions