api_client_bulk_loader 0.1.13 → 0.1.14

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: 8950f561f2f644e3f046a7611323e5dd351861eb
4
- data.tar.gz: f975f44ce0988bca9f72b05d120ce2be9df3dd06
3
+ metadata.gz: f78304377c17601b74c77a7988e44e99c062de9f
4
+ data.tar.gz: b3143766ea2c56120699565113a23173c6e7e47b
5
5
  SHA512:
6
- metadata.gz: 080a5446825db4671d0934ec7d8d140e28234a002bb2f27055a1d129b1ba8ebc38a7ceb67b217867c9bafd3ec5cb3c8482bc327779b6d68c4959f11a6834593b
7
- data.tar.gz: e9c761044f32e5e6d13dc7941ed8dc29b24cb05fc6fd5265574fd767aae1ecafc72c89a0d744efe1aae666349079986c5b6889e2b9685dded1fe5cb047fd247e
6
+ metadata.gz: 06b7d3d5efebe7278ec32a8bcd85b7f5e41cf6a3b9eed5996c67f882a33c6db557f66027e5789356d2e66f284ccfa0a6b8ec7727614452b944904233722138ef
7
+ data.tar.gz: 344d702855f70edd51d86664c0455bf15bf48b25a1b3ad82f728fa77e964cffd94ba540053d2c41a2dea59bd8e5868ebfc3642a595b6dbb301578f158ff40c46
@@ -11,13 +11,13 @@ module ApiClientBulkLoader
11
11
 
12
12
  #Getter for registered association load queues
13
13
  def self.bulk_queued_associations
14
- @bulk_queued_associations
14
+ @bulk_queued_associations ||= {}
15
15
  end
16
16
 
17
17
  def initialize(*args)
18
18
  super(*args)
19
19
  #Skip em unless we got em
20
- return self unless self.class.bulk_queued_associations
20
+ return self unless self.class.bulk_queued_associations.present?
21
21
  self.class.bulk_queued_associations.each do |assoc, adapter|
22
22
  if adapter.class == ApiClientBulkLoader::Client::PolymorphicAssociationAdapter
23
23
  self.queue_poly_association(assoc) if adapter.autoload
@@ -1,3 +1,3 @@
1
1
  module ApiClientBulkLoader
2
- VERSION = "0.1.13"
2
+ VERSION = "0.1.14"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_client_bulk_loader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - alex
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-28 00:00:00.000000000 Z
11
+ date: 2016-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -52,20 +52,6 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: sqlite3
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
55
  description: todo.
70
56
  email:
71
57
  - alex@avvo.com