easy_sheet_io 0.4.8.3 → 0.4.9
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/lib/easy_sheet_io/version.rb +1 -1
- data/lib/easy_sheet_io.rb +10 -2
- 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: d7640c37216da2bfd884b84c614c924e0a3eca722a357c2ccca408e9fee42fc8
|
|
4
|
+
data.tar.gz: '0668281347c6848a0cdde66ff3e9db439202ae1c476807f5dbaa75a73f5415b6'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2a7b3ab88ee7f34796898fe59db951d83d1c02c6c4d84aee9bba216abe5b3c57cfd2810b60d5af831a0b28459a6086d8539bbdf736781b6e5eaef09a3b46ba00
|
|
7
|
+
data.tar.gz: 9eed84c33a92b0f653241928bdccb10a070615767832820acf3ea14343d06a25527597c86d007b3dfd61c64b81d14c32a9dc4e82bcdeb432ab477f65ff70af57
|
data/lib/easy_sheet_io.rb
CHANGED
|
@@ -47,7 +47,11 @@ module EasySheetIo
|
|
|
47
47
|
# Converting Encode and Setting index.. rover not supported yet
|
|
48
48
|
if format.to_s == "daru" || format.nil?
|
|
49
49
|
ans.convert_enc!(from: encoding, to: "utf-8")
|
|
50
|
-
|
|
50
|
+
begin
|
|
51
|
+
ans.index = ind_orig if index
|
|
52
|
+
rescue
|
|
53
|
+
warn "Indexing failed (Parhaps due to duplicated index)."
|
|
54
|
+
end
|
|
51
55
|
end
|
|
52
56
|
|
|
53
57
|
return ans
|
|
@@ -68,7 +72,11 @@ module EasySheetIo
|
|
|
68
72
|
h, ind_orig = to_hash(a2d, index: index, **opt)
|
|
69
73
|
ans = to_df(h, format: format)
|
|
70
74
|
if format.to_s == "daru" || format.nil?
|
|
71
|
-
|
|
75
|
+
begin
|
|
76
|
+
ans.index = ind_orig if index
|
|
77
|
+
rescue
|
|
78
|
+
warn "Indexing failed (Parhaps due to duplicated index)."
|
|
79
|
+
end
|
|
72
80
|
end
|
|
73
81
|
return ans
|
|
74
82
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: easy_sheet_io
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- show-o-atakun
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-11-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: daru
|