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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 914884e96f6e9bee2e9cc733b6a3b0d842c63372
4
- data.tar.gz: 7aeb9ee62b16c4ffed8b938169bc2fe45166519e
2
+ SHA256:
3
+ metadata.gz: ce7b23f60579cdfba99620dbe8d73e42c6963216126b3e9a3db9985eb423bd25
4
+ data.tar.gz: dbf234f058f1d401fd81eb4f6863401f1daa2293ba57a072719aca008b3b621c
5
5
  SHA512:
6
- metadata.gz: 7ada2dac60031d67bca712b593d4e875c47e70ae5b40d9279dc075d6b19bec06f832cdc7f214d8b1d8b200a2e2d86c9b860e2e117e91ee0c8f4c092b14d8d11a
7
- data.tar.gz: 459703e92b0b344fe230282920480e356478fb07cec692b1c0b36387eee809edd41a5fe5b1e2d7ddd1b10d91adbf1186b81ed35d852c5a6eb8a1378ac2773eb8
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 Fixnum values
70
- cleansed_value = value.is_a?(Fixnum) ? value : value.dup
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
@@ -1,3 +1,3 @@
1
1
  module DataCleansing
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
Binary file
@@ -1,12 +1,9 @@
1
- $LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib'
1
+ ENV['RAILS_ENV'] = 'test'
2
2
 
3
- require 'yaml'
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.1
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: 2016-08-25 00:00:00.000000000 Z
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
- rubyforge_project:
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, Mongoid and MongoMapper.
85
+ summary: Data Cleansing framework for Ruby, Rails, and Mongoid.
87
86
  test_files:
88
- - test/active_record_test.rb
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