importeur 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
  SHA256:
3
- metadata.gz: 8e30163e2c4d5252557c6c3214b7099452bf3f125d539f335257bc0a075ed439
4
- data.tar.gz: dd3eba1b60e367e16e797c3a09027102d2999fd9af946380bc35dd1905db6061
3
+ metadata.gz: 991119a8603e5c354fbe1329fff579e00e3a12bd06b2e8e468de8d567498807a
4
+ data.tar.gz: cbc7f5cb1fb21071476b1bd975c876c06949810669373ac10d22e4931455e2c0
5
5
  SHA512:
6
- metadata.gz: fd4c9ef77a9f4f75a4cf20e0f0b3066fe696d955cd80d5843d2138d1e579c22992c80b1b13762096715f424cdd76eb630c2bd3128597039cf11098919b9b60fa
7
- data.tar.gz: f6e7ce995b3fae48db41f9d6f7862dd6aeaa2a68eb1f02d7025d720295a9404a5bf28c2089f11826fd29ccc1e40251d43177e621e0b478caf1dac7ae9fdb8f5c
6
+ metadata.gz: a0c732eb03484d40225ee8d7ce337e23f051a40996b56b064e7ea2c058fa90320885d39628f4fe5a86e3d404356fce9bc943f231a99fef8e8d4832ef60da0ac3
7
+ data.tar.gz: b0d8c47da29dd911a91b40abdca18d30dd152bb2375f34fc98e15702cdf6644f7c296c2458757ac0345d7634ae8b939a3fbf330f0262db14a54e5e18201c9829
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018 ad2games GmbH
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/lib/importeur/etl.rb CHANGED
@@ -11,9 +11,10 @@ module Importeur
11
11
  def call
12
12
  extracted = extractor.call
13
13
  return if extracted.nil?
14
- transformed = extracted.lazy.flat_map do |entity|
15
- transformer.call(entity) || []
16
- end
14
+ transformed = extracted
15
+ .lazy
16
+ .flat_map(&transformer.method(:call))
17
+ .reject(&:nil?)
17
18
  loader.call(transformed.lazy)
18
19
  end
19
20
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Importeur
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: importeur
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
  - Helge Rausch
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-19 00:00:00.000000000 Z
11
+ date: 2018-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -206,6 +206,7 @@ files:
206
206
  - ".travis.yml"
207
207
  - CHANGELOG.md
208
208
  - Gemfile
209
+ - LICENSE
209
210
  - README.md
210
211
  - Rakefile
211
212
  - bin/console