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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5413ed3a8f4a8882a5fcfe94b180039542076848e1f5b5fd4783900b535d21c6
4
- data.tar.gz: 1dddd6568a6e81bcd18fe3f05351d6adc6f0d47c1fb56825d3c442c2ff45a272
3
+ metadata.gz: 126175a0aee5ca802d477f7426c29ff1abc087bff0e9a7f2c3b7a2596ba7884c
4
+ data.tar.gz: 649c6b3ff280f7e6485b34d4a356ab70938d800cc2760d54c46c41faa6b97346
5
5
  SHA512:
6
- metadata.gz: 8186efbee034f623b47946737c0b10d6fe5220e34e29ef4e499cc79c3a1c5f26d9c57b3041400527d03b4f76afdad56045edf44afe63af64ac116fd22e129f38
7
- data.tar.gz: 5f91247b950189b99f8692593ea9ab4a748f214aac6eba647aa75c015473469934bfa4f6a64e64cc92b1ea4ee9b5e09d5fc35a368da4164ba98b5d3486f330e0
6
+ metadata.gz: 318abd0e9fa25b0dd19b5e038dab8bc0cd50a3bf217862e200f985f5824599447feb3905e2b3c8f03b1ab3fe025fccd8ee17ffe29d6c55f89c68407f325a433b
7
+ data.tar.gz: 7d237b92a7154c292fa7e876745ec955b6ff700a717497a719614ba02c374c11cf37094cfd767041aaed08ccf8e4c6cb2ef777e0d0baa558ec03eacf3baaf1b0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- maprename (0.1.1)
4
+ maprename (0.1.2)
5
5
  activesupport
6
6
 
7
7
  GEM
@@ -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(&:chomp)
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)|
@@ -1,3 +1,3 @@
1
1
  module Maprename
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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-03-27 00:00:00.000000000 Z
11
+ date: 2020-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport