datamancer 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/datamancer/extract.rb +2 -2
- data/lib/datamancer/version.rb +1 -1
- metadata +2 -2
data/lib/datamancer/extract.rb
CHANGED
@@ -39,7 +39,7 @@ module Datamancer
|
|
39
39
|
|
40
40
|
# The reason behind default_actions is the possibility to
|
41
41
|
# write reject_if: nil with the DSL.
|
42
|
-
default_actions = {reject_if:
|
42
|
+
default_actions = {reject_if: :nil, reject_unless: :nil}
|
43
43
|
|
44
44
|
define_singleton_method :field do |name, actions = {}, &block|
|
45
45
|
actions[:type] ||= actions[:type_default]
|
@@ -195,7 +195,7 @@ module Datamancer
|
|
195
195
|
value = :reject if reject_value != value
|
196
196
|
end
|
197
197
|
else
|
198
|
-
value = :reject if actions[:reject_unless] !=
|
198
|
+
value = :reject if actions[:reject_unless] != :nil &&
|
199
199
|
actions[:reject_unless] != value
|
200
200
|
end
|
201
201
|
|
data/lib/datamancer/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datamancer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-01-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|