datamancer 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|