kirico 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
  SHA1:
3
- metadata.gz: b8dbe4cd6dfa085f207852e7431ba7b2aa5dffcd
4
- data.tar.gz: c094454efe621dc43b18a6c45c530f64a8900bda
3
+ metadata.gz: 10155f831caf738428eafb8fc722834d425ae579
4
+ data.tar.gz: eb78ac5a1a2d995657d412b795294200b05a3c5a
5
5
  SHA512:
6
- metadata.gz: f7ba0f28942b2d12f89a4d389a73498b5907b9bbb3d19f01027d1796bc0df8650ce3b82cfe6f0ddc0b0e0f6a3ff4ad7750fbec70bce2cc4cbea3ee2bcbf25231
7
- data.tar.gz: 75f57b616bf35e1be655a877b2ad585973ece84792e1fb10855f2de248f632f480728f6711919c08ebf24cba07b6dc9dd7802e3b22e4b13bd480b2901880a9eb
6
+ metadata.gz: 6ea27daa5fbef4c6a0dc29a2c0ca5abbe606490fbc7ed6cbddc1a983116f62d4d6c82923624d606f003833fc80ccb332143825a1eb6991f2781bc6094171774b
7
+ data.tar.gz: 08b0b2c92c52b6634a9683d760297fb9fd206fa40a63c762fa08694c58d87e1cd43cf552e49be2e4a2b4f85f22062550f4b41c9068e7d3a39ebe150fdefef042
@@ -64,7 +64,7 @@ module Kirico
64
64
  old_address_yomi,
65
65
  old_address,
66
66
  memo
67
- ].join(',')
67
+ ].map { |attr| attr.to_s.encode('Shift_JIS') }.join(',')
68
68
  end
69
69
  end
70
70
  end
@@ -42,7 +42,7 @@ module Kirico
42
42
  name,
43
43
  owner_name,
44
44
  tel_number
45
- ].join(',')
45
+ ].map { |attr| attr.to_s.encode('Shift_JIS') }.join(',')
46
46
  end
47
47
  end
48
48
  end
@@ -12,7 +12,7 @@ module Kirico
12
12
  end
13
13
 
14
14
  def to_csv
15
- [nil, COUNT].join(',')
15
+ [nil, COUNT].map { |attr| attr.to_s.encode('Shift_JIS') }.join(',')
16
16
  end
17
17
  end
18
18
  end
@@ -8,7 +8,7 @@ module Kirico
8
8
  IDENTIFIER = '[kanri]'
9
9
 
10
10
  def to_csv
11
- [IDENTIFIER].join(',')
11
+ [IDENTIFIER].map { |attr| attr.to_s.encode('Shift_JIS') }.join(',')
12
12
  end
13
13
  end
14
14
  end
@@ -8,7 +8,7 @@ module Kirico
8
8
  IDENTIFIER = '[data]'
9
9
 
10
10
  def to_csv
11
- [IDENTIFIER].join(',')
11
+ [IDENTIFIER].map { |attr| attr.to_s.encode('Shift_JIS') }.join(',')
12
12
  end
13
13
  end
14
14
  end
@@ -33,7 +33,7 @@ module Kirico
33
33
  fd_seq_number,
34
34
  fmt_ymd_created_at,
35
35
  MAIN_DOC_CODE
36
- ].join(',')
36
+ ].map { |attr| attr.to_s.encode('Shift_JIS') }.join(',')
37
37
  end
38
38
  end
39
39
  end
@@ -29,8 +29,9 @@ module Kirico
29
29
  Kirico::CompanyCount.new.to_csv,
30
30
  @company.to_csv,
31
31
  Kirico::DataIdentifier.new.to_csv,
32
- @records.map(&:to_csv).join("\n")
33
- ].join("\n")
32
+ @records.map(&:to_csv).join("\r\n"),
33
+ ''
34
+ ].join("\r\n")
34
35
  end
35
36
 
36
37
  private
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Kirico
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kirico
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
  - kakipo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-20 00:00:00.000000000 Z
11
+ date: 2017-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport