utf8_sanitizer 1.02 → 1.03
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.
- checksums.yaml +4 -4
- data/.gitignore +1 -2
- data/README.md +1 -1
- data/Rakefile +1 -1
- data/lib/utf8_sanitizer/csv/{seeds_dirty_1.csv → seed.csv} +0 -0
- data/lib/utf8_sanitizer/version.rb +1 -1
- metadata +2 -10
- data/lib/utf8_sanitizer/csv/extensions.csv +0 -1
- data/lib/utf8_sanitizer/csv/seeds_clean.csv +0 -3074
- data/lib/utf8_sanitizer/csv/seeds_dirty.csv +0 -28407
- data/lib/utf8_sanitizer/csv/seeds_mega.csv +0 -16670
- data/lib/utf8_sanitizer/csv/seeds_mini.csv +0 -100
- data/lib/utf8_sanitizer/csv/seeds_mini.csv, +0 -0
- data/lib/utf8_sanitizer/csv/seeds_mini_10.csv +0 -11
- data/lib/utf8_sanitizer/csv/seeds_mini_2_bug.csv +0 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f3af373906de0aed05e9ec71862c16d3f7490848c54c3ead081da4c079ff7d6e
|
|
4
|
+
data.tar.gz: 85fb56afd39099e4b703069636cade9a0f29466bbc5bcdf83844fb074e60391a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d8126f79434982d50f062f655819033dbc4e4aa0c8033e636bd459497c8391b78200b21a228dbd4d6e8c645247cf773355bf26a6bc37a1e22a4674df4056711c
|
|
7
|
+
data.tar.gz: 614d7e2f06747ac19afcee095365bff4a4dadf6020f6e78ff53f968c26aeb15901523eaeef9be77e8ef2a09e4b680376b6f8c801dc28520a980fb07de01b484e
|
data/.gitignore
CHANGED
data/README.md
CHANGED
|
@@ -96,7 +96,7 @@ The `:stats` are a breakdown of the results. `:defective_rows` and `:error_rows`
|
|
|
96
96
|
|
|
97
97
|
Below is an example of the returned data (`:stats`, `:file_path`, `:data`)
|
|
98
98
|
|
|
99
|
-
|
|
99
|
+
`sanitized_data` is a local variable, which you can name anything you like, but it must be assigned in the following syntax: `[:data][:valid_data]` and `[:data][:encoded_data]`, etc.
|
|
100
100
|
|
|
101
101
|
```
|
|
102
102
|
{ stats:
|
data/Rakefile
CHANGED
|
@@ -15,7 +15,7 @@ task :console do
|
|
|
15
15
|
ARGV.clear
|
|
16
16
|
orig_hashes = [{ :row_id=>"1", :url=>"stanleykaufman.com", :act_name=>"Stanley Chevrolet Kaufman\x99_\xCC", :street=>"825 E Fair St", :city=>"Kaufman", :state=>"TX", :zip=>"75142", :phone=>"(888) 457-4391\r\n" }]
|
|
17
17
|
|
|
18
|
-
# sanitized_data = Utf8Sanitizer.sanitize(file_path: './lib/utf8_sanitizer/csv/
|
|
18
|
+
# sanitized_data = Utf8Sanitizer.sanitize(file_path: './lib/utf8_sanitizer/csv/seed.csv')
|
|
19
19
|
# sanitized_data = Utf8Sanitizer.sanitize(data: orig_hashes)
|
|
20
20
|
sanitized_data = Utf8Sanitizer.sanitize
|
|
21
21
|
puts sanitized_data.inspect
|
|
File without changes
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: utf8_sanitizer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '1.
|
|
4
|
+
version: '1.03'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adam Booth
|
|
@@ -200,15 +200,7 @@ files:
|
|
|
200
200
|
- bin/console
|
|
201
201
|
- bin/setup
|
|
202
202
|
- lib/utf8_sanitizer.rb
|
|
203
|
-
- lib/utf8_sanitizer/csv/
|
|
204
|
-
- lib/utf8_sanitizer/csv/seeds_clean.csv
|
|
205
|
-
- lib/utf8_sanitizer/csv/seeds_dirty.csv
|
|
206
|
-
- lib/utf8_sanitizer/csv/seeds_dirty_1.csv
|
|
207
|
-
- lib/utf8_sanitizer/csv/seeds_mega.csv
|
|
208
|
-
- lib/utf8_sanitizer/csv/seeds_mini.csv
|
|
209
|
-
- lib/utf8_sanitizer/csv/seeds_mini.csv,
|
|
210
|
-
- lib/utf8_sanitizer/csv/seeds_mini_10.csv
|
|
211
|
-
- lib/utf8_sanitizer/csv/seeds_mini_2_bug.csv
|
|
203
|
+
- lib/utf8_sanitizer/csv/seed.csv
|
|
212
204
|
- lib/utf8_sanitizer/utf.rb
|
|
213
205
|
- lib/utf8_sanitizer/version.rb
|
|
214
206
|
- utf8_sanitizer.gemspec
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
aaa
|