api_client_bulk_loader 0.1.8 → 0.1.9

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: 30f62e1fd55d2e0d1183a09a6e66002c6b88a1b9
4
- data.tar.gz: c1a63aed961350e4d0c9e7a9dfe0ae545b9e0904
3
+ metadata.gz: 5e1a6264b5c56b4bb3fc73819585debf8184a6b6
4
+ data.tar.gz: 10e57fc2cbb10632df38a7d862d87fbc347f4767
5
5
  SHA512:
6
- metadata.gz: 04ea779dfe26fc3ea0ba9397a6153a6beb40c71d531b8783f8dc85cce22f92431788b4f6493f09b45908d73b83571dbc2f64636bfd78ab7eb329d2cd29041d36
7
- data.tar.gz: 78865a1e2a46a24d3e393b8004a7dcf805b74f0d2b36ff41976fa718639a5ec17032f756bd53a6b4c1c75c6abdc81c5111a640dafe730e2453d251b8463e0fab
6
+ metadata.gz: 37904974d237a5a29cfd5424e32656f1231d4c5d1f05e6d6269e70d5d88db75bd1d4cd910c2b50f935d04c9d97ce36bbc71f476cf03d160b7d5bed0b2375360d
7
+ data.tar.gz: 668964bdc7e265c9b4073ba3a4a37ba59976ba922111a79b1447dd7c796db6d04ec4767377af01d11783b33cffe85baed21140d4b469cd9258f9903d46bd364f
@@ -1,3 +1,4 @@
1
+ require "request_store"
1
2
 
2
3
  module ApiClientBulkLoader
3
4
  module Client
@@ -12,8 +12,8 @@ module ApiClientBulkLoader
12
12
  @has_one = is_has_one
13
13
  @limit = limit
14
14
 
15
- Thread.current[:bulk_loader] ||= ApiClientBulkLoader::Client::Loader.new
16
- @bulk_loader = Thread.current[:bulk_loader]
15
+ RequestStore.store[:bulk_loader] ||= ApiClientBulkLoader::Client::Loader.new
16
+ @bulk_loader = RequestStore.store[:bulk_loader]
17
17
  end
18
18
 
19
19
  #Fetch.
@@ -12,9 +12,8 @@ module ApiClientBulkLoader
12
12
  @type_from = type_from
13
13
  @has_one = is_has_one
14
14
  @limit = limit
15
-
16
- Thread.current[:bulk_loader] ||= ApiClientBulkLoader::Client::Loader.new
17
- @bulk_loader = Thread.current[:bulk_loader]
15
+ RequestStore.store[:bulk_loader] ||= ApiClientBulkLoader::Client::Loader.new
16
+ @bulk_loader = RequestStore.store[:bulk_loader]
18
17
  end
19
18
 
20
19
  #Fetch.
@@ -1,3 +1,3 @@
1
1
  module ApiClientBulkLoader
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_client_bulk_loader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - alex
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ">"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '4.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: request_store
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 1.1.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 1.1.0
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: json_api_client
29
43
  requirement: !ruby/object:Gem::Requirement