data_cleansing 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/data_cleansing/cleanse.rb +2 -2
- data/lib/data_cleansing/version.rb +1 -1
- data/test/test_db.sqlite3 +0 -0
- data/test/test_helper.rb +3 -6
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ce7b23f60579cdfba99620dbe8d73e42c6963216126b3e9a3db9985eb423bd25
|
4
|
+
data.tar.gz: dbf234f058f1d401fd81eb4f6863401f1daa2293ba57a072719aca008b3b621c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a128353735b0e598532a1092018b0029f0390af20e6c37a10aa6c46fd472f6c4621e0e9d034e6f7b683cbba23d2741e877c9d0e11919d92b08b9c5900e50c7b3
|
7
|
+
data.tar.gz: f47693cf8b140a9fb4b8b20bd4c8df026a8237b6b6747a3d83d210b834be89d73713465684e66f6533a6cc5971cf4b9bf2dd61b1a5b620fb1bcd79c2f02c2a1c
|
@@ -66,8 +66,8 @@ module DataCleansing
|
|
66
66
|
end
|
67
67
|
klass = klass.superclass
|
68
68
|
end
|
69
|
-
# Support
|
70
|
-
cleansed_value = value.is_a?(
|
69
|
+
# Support Integer values
|
70
|
+
cleansed_value = value.is_a?(Integer) ? value : value.dup
|
71
71
|
cleaners.reverse_each { |cleaner| cleansed_value = data_cleansing_clean(cleaner, cleansed_value, object) if cleaner }
|
72
72
|
cleansed_value
|
73
73
|
end
|
data/test/test_db.sqlite3
CHANGED
Binary file
|
data/test/test_helper.rb
CHANGED
@@ -1,12 +1,9 @@
|
|
1
|
-
|
1
|
+
ENV['RAILS_ENV'] = 'test'
|
2
2
|
|
3
|
-
require '
|
3
|
+
require 'active_record'
|
4
4
|
require 'minitest/autorun'
|
5
|
-
require 'minitest/reporters'
|
6
|
-
require 'awesome_print'
|
7
5
|
require 'data_cleansing'
|
8
|
-
|
9
|
-
MiniTest::Reporters.use! MiniTest::Reporters::SpecReporter.new
|
6
|
+
require 'awesome_print'
|
10
7
|
|
11
8
|
SemanticLogger.add_appender(file_name: 'test.log', formatter: :color)
|
12
9
|
SemanticLogger.default_level = :debug
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: data_cleansing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Reid Morrison
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -79,15 +79,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
79
|
- !ruby/object:Gem::Version
|
80
80
|
version: '0'
|
81
81
|
requirements: []
|
82
|
-
|
83
|
-
rubygems_version: 2.5.1
|
82
|
+
rubygems_version: 3.0.3
|
84
83
|
signing_key:
|
85
84
|
specification_version: 4
|
86
|
-
summary: Data Cleansing framework for Ruby, Rails,
|
85
|
+
summary: Data Cleansing framework for Ruby, Rails, and Mongoid.
|
87
86
|
test_files:
|
88
|
-
- test/
|
89
|
-
- test/cleaners_test.rb
|
87
|
+
- test/test_db.sqlite3
|
90
88
|
- test/data_cleansing_test.rb
|
89
|
+
- test/active_record_test.rb
|
91
90
|
- test/ruby_test.rb
|
92
|
-
- test/test_db.sqlite3
|
93
91
|
- test/test_helper.rb
|
92
|
+
- test/cleaners_test.rb
|