tallty_import_export 1.1.3 → 1.1.5

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: 284928193ebed0e079f44ba98ee7a2f0d51c05f0c1ea5100dd68973940f56369
4
- data.tar.gz: 75dbf1351c7a08ce445b508ea60aba31da811fcfc87e9355c5f8c710f66be47a
3
+ metadata.gz: 6c88cdd228b9e696c23fcc9d363f41a3f33234ded32d72f1b8a18c431b619466
4
+ data.tar.gz: e383cc130f3a07b517e99800c7310374d2c6138606a7b617195a94b7a217f67a
5
5
  SHA512:
6
- metadata.gz: 8d335d50b6059608dcdb41cc3f44e16f75746d900d698ff1ea3960de8d2541b0fdfadf9b7fceeadef33f70906a3c4673f8247c6aa9406195826f0b45a9977d5e
7
- data.tar.gz: e72f4ddf2a9bb43f00d031aa74c56723870b63ce0b548110d6c3112a0945dbd21f789759a88834fb1101f24c61e30ce179bd14dea19001c2e4bb81f5e7721c9e
6
+ metadata.gz: dc542ab629693bc3f31d2aa06506b369df701b80116599600be86f00369bb1432192b1c248d0bdda2a248662e28a7909006b40d35a413a3048930c2e213871ee
7
+ data.tar.gz: 249c2248047c014de7e0075fa22b2aaedeea79716c766124dbe84d6b617d8cb404f6e08dba11938dd2b2cbd770af9c9d2c2ff07d818a44ceb50152b9892871fe
@@ -211,15 +211,14 @@ module TalltyImportExport
211
211
  if r.is_a?(Array)
212
212
  r.try(m) || r.try(:[], m.to_i)
213
213
  else
214
- begin
215
- r.try(:[], m)
216
- rescue StandardError
217
- nil
218
- end || begin
219
- r.try(:[], m.to_sym)
220
- rescue StandardError
221
- nil
222
- end || r.try(m)
214
+ data = r.try(:[], m) rescue nil
215
+ if data.nil?
216
+ data = r.try(:[], m.to_sym) rescue nil
217
+ end
218
+ if data.nil?
219
+ data = r.try(m) rescue nil
220
+ end
221
+ data
223
222
  end
224
223
  end
225
224
  end
@@ -1,3 +1,3 @@
1
1
  module TalltyImportExport
2
- VERSION = '1.1.3'
2
+ VERSION = '1.1.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tallty_import_export
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - liyijie
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-11-22 00:00:00.000000000 Z
11
+ date: 2022-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: zip-zip