traject_plus 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/traject_plus/macros.rb +6 -2
- data/lib/traject_plus/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c18d033097eab64e2209c9762873526fda99fd42254782e83206fba4ab779890
|
4
|
+
data.tar.gz: feb3cfd62ff34bf7ad9060de0f8810f64e21accc9f67c7701c4cff448b88af25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec13570bb0385d5d3c713ef59b690dccea7dfb642bcf6c36b4326182897ea9fe7ad66c6b072acc77c1eecf2ae74d86f26ef1b6768b1748da0113ee17813f18b1
|
7
|
+
data.tar.gz: c5c8b80aff3d829bedde2e05b6cf3e57dbc52f4e3828415492ebbb0f6182081dbd8c0bbd4e608e5f076aa97a62f635a0d9ebb4956161c5617716e88008fce470
|
data/lib/traject_plus/macros.rb
CHANGED
@@ -10,8 +10,12 @@ module TrajectPlus
|
|
10
10
|
def transform_values(context, hash)
|
11
11
|
hash.transform_values do |lambdas|
|
12
12
|
accumulator = []
|
13
|
-
Array(lambdas).each do |
|
14
|
-
|
13
|
+
Array(lambdas).each do |aProc|
|
14
|
+
if aProc.arity == 2
|
15
|
+
aProc.call(context.source_record, accumulator)
|
16
|
+
else
|
17
|
+
aProc.call(context.source_record, accumulator, context)
|
18
|
+
end
|
15
19
|
end
|
16
20
|
accumulator
|
17
21
|
end
|
data/lib/traject_plus/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: traject_plus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Beer
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: exe
|
13
13
|
cert_chain: []
|
14
|
-
date: 2019-03-
|
14
|
+
date: 2019-03-12 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activesupport
|