skull_island 1.2.2 → 1.2.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: 782471de2e1ce1e974ac22f0420d33ce0903f909b4286094537c7169caa872f5
4
- data.tar.gz: 7edb2bcdb5094f27932c2a3e13f6865e969ba6f43e78f34d6a26c7416cb01bc9
3
+ metadata.gz: da2206cb54181494145ba4f100050260a5905146be30d35941f44276e4876ff4
4
+ data.tar.gz: 1a6172feb18257fde3a828e8cc73368fab080ed50ca218903a03faa9cdcfc823
5
5
  SHA512:
6
- metadata.gz: 6a83f0d13f17f858332882836b22be450c9974283c9e1a8fe0db20b007f13b080a73d4c9fe43bc3516a2a2a5768821f1a4b7494bf9262874774a63c9feb78068
7
- data.tar.gz: 7dc758ebad1c39cbaa8b64789ac0ff7db061349cd0a086a2d50cfedf2cf822e6d8745d92a1a976d63f7398b810f7ca634bf46b7f2408709c33b8cbf2a18131d0
6
+ metadata.gz: fa9723446ca8c1a2c8fb4d96a03b6b9ec584c238ca6f0ca634553c457be6caf551fda6626207e884908f09eedf0087d3a7b66fcbd95f32d375a560e92ba46adf
7
+ data.tar.gz: 9554fd6c88d6fe8e9b41e68894e76282720c0c7ae6d68e67d2e8612d5f6d4c061540c42367c98c1c0821f54badd2fc00d4090717633e3b0f382fc3290b47087d
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- skull_island (1.2.2)
4
+ skull_island (1.2.3)
5
5
  deepsort (~> 0.4)
6
6
  erubi (~> 1.8)
7
7
  json (~> 2.1)
@@ -17,12 +17,17 @@ module SkullIsland
17
17
  def self.batch_import(data, verbose: false, test: false)
18
18
  raise(Exceptions::InvalidArguments) unless data.is_a?(Array)
19
19
 
20
+ known_ids = []
21
+
20
22
  data.each_with_index do |resource_data, index|
21
23
  resource = new
22
24
  resource.delayed_set(:key, resource_data, 'key')
23
25
  resource.delayed_set(:consumer, resource_data, 'consumer')
24
26
  resource.import_update_or_skip(index: index, verbose: verbose, test: test)
27
+ known_ids << resource.id
25
28
  end
29
+
30
+ known_ids
26
31
  end
27
32
 
28
33
  def self.relative_uri
@@ -4,6 +4,6 @@ module SkullIsland
4
4
  VERSION = [
5
5
  1, # Major
6
6
  2, # Minor
7
- 2 # Patch
7
+ 3 # Patch
8
8
  ].join('.')
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skull_island
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Gnagy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-08-09 00:00:00.000000000 Z
11
+ date: 2019-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deepsort