maprename 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/maprename/content_parser.rb +1 -1
- data/lib/maprename/mapping_parser.rb +1 -1
- data/lib/maprename/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 126175a0aee5ca802d477f7426c29ff1abc087bff0e9a7f2c3b7a2596ba7884c
|
4
|
+
data.tar.gz: 649c6b3ff280f7e6485b34d4a356ab70938d800cc2760d54c46c41faa6b97346
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 318abd0e9fa25b0dd19b5e038dab8bc0cd50a3bf217862e200f985f5824599447feb3905e2b3c8f03b1ab3fe025fccd8ee17ffe29d6c55f89c68407f325a433b
|
7
|
+
data.tar.gz: 7d237b92a7154c292fa7e876745ec955b6ff700a717497a719614ba02c374c11cf37094cfd767041aaed08ccf8e4c6cb2ef777e0d0baa558ec03eacf3baaf1b0
|
data/Gemfile.lock
CHANGED
@@ -29,7 +29,7 @@ module Maprename
|
|
29
29
|
|
30
30
|
def read_file_content(file)
|
31
31
|
encoding = config[:encoding] || 'UTF-8'
|
32
|
-
content = IO.read(file, encoding: encoding)
|
32
|
+
content = IO.read(file, encoding: encoding).encode('UTF-8')
|
33
33
|
if config[:pre_processor]
|
34
34
|
IO.popen(config[:pre_processor]) do |pipe|
|
35
35
|
pipe.write(content)
|
@@ -24,7 +24,7 @@ module Maprename
|
|
24
24
|
def build_content
|
25
25
|
encoding = config[:encoding] || 'UTF-8'
|
26
26
|
separator = config[:column_separator] || "\t"
|
27
|
-
content = IO.readlines(config[:file], encoding: encoding).map(
|
27
|
+
content = IO.readlines(config[:file], encoding: encoding).map { |l| l.chomp.encode('UTF-8') }
|
28
28
|
debug " MappingParser total mapping lines: #{content.size}"
|
29
29
|
if config[:first_line_as_column_defination]
|
30
30
|
config[:columns] = content.first.split(separator).each_with_index.map do |(c, i)|
|
data/lib/maprename/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maprename
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Liu Xiang
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|