natto 1.1.1 → 1.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4cc7091811cdce6afd1d2487f3f9aa84a8a2f261
4
- data.tar.gz: 982361945ade6b421d325cca9d7f3990dafc2ad8
3
+ metadata.gz: 8f45f85d078d7859201a2218cf4f84757b512baf
4
+ data.tar.gz: 673af20612534d456a26b6da4f1f2194db3cfd97
5
5
  SHA512:
6
- metadata.gz: f5828ce9704c9d7554e3c6a22381b7934390e13d66d43e824c444eccbb5f839c991e0bc7dd9901054c1c01ac92ecf6c779879e9d5136cac0af80a59dc38386b2
7
- data.tar.gz: 686a917526089d6a6f3ad8ad511b242abd9cc958ea51e2c666308fc59998a1a548086ffd8422f1968936edec9faa580b435a2c7127a549ce0659050962d57ba9
6
+ metadata.gz: 6f53c1b8d5a2e050e13fab3c4945c33f3389595f0b43838fdf74be5a03baef71a10599f0e9ca041e75995d77de9d0362ae713a6eef6869b0dc04723c0e0f5262
7
+ data.tar.gz: 28f1458990275b6b995fc91578b0a8eb4eee3b430611539d13d58369e9245d0baaf40dccd569f884558266a4f7c5eb91bb10032ad71bae523bf4a098592f1f58
data/CHANGELOG CHANGED
@@ -1,4 +1,8 @@
1
1
  ## CHANGELOG
2
+ - __2019/01/12: 1.1.2 release
3
+ - Issue 73: Do not conceal original error in `parse_tostr` and `parse_tonodes`
4
+ - Updating LICENSE and copyright for year 2019.
5
+
2
6
  - __2016/06/18__: 1.1.1 release
3
7
  - Issue 68: Speed up for accessing field of Struct.
4
8
  - Updating LICENSE and copyright for year 2016.
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2016, Brooke M. Fujita.
1
+ Copyright (c) 2019, Brooke M. Fujita.
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without
data/README.md CHANGED
@@ -323,4 +323,4 @@ to a corresponding feature (String).
323
323
  Please see the {file:CHANGELOG} for this gem's release history.
324
324
 
325
325
  ## Copyright
326
- Copyright © 2016, Brooke M. Fujita. All rights reserved. Please see the {file:LICENSE} file for further details.
326
+ Copyright © 2019, Brooke M. Fujita. All rights reserved. Please see the {file:LICENSE} file for further details.
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  require 'natto/natto'
3
3
 
4
- # Copyright (c) 2016, Brooke M. Fujita.
4
+ # Copyright (c) 2019, Brooke M. Fujita.
5
5
  # All rights reserved.
6
6
  #
7
7
  # Redistribution and use in source and binary forms, with or without
@@ -237,7 +237,7 @@ module Natto
237
237
  end
238
238
  end
239
239
 
240
- # Copyright (c) 2016, Brooke M. Fujita.
240
+ # Copyright (c) 2019, Brooke M. Fujita.
241
241
  # All rights reserved.
242
242
  #
243
243
  # Redistribution and use in source and binary forms, with or without
@@ -335,8 +335,10 @@ module Natto
335
335
  retval = self.mecab_lattice_tostr(@lattice)
336
336
  end
337
337
  retval.force_encoding(Encoding.default_external)
338
- rescue
339
- raise(MeCabError.new(self.mecab_lattice_strerror(@lattice)))
338
+ rescue => ex
339
+ message = self.mecab_lattice_strerror(@lattice)
340
+ raise ex if message == ''
341
+ raise MeCabError.new(message)
340
342
  end
341
343
  }
342
344
 
@@ -416,8 +418,10 @@ module Natto
416
418
  end
417
419
  end
418
420
  nil
419
- rescue
420
- raise(MeCabError.new(self.mecab_lattice_strerror(@lattice)))
421
+ rescue => ex
422
+ message = self.mecab_lattice_strerror(@lattice)
423
+ raise ex if message == ''
424
+ raise MeCabError.new(message)
421
425
  end
422
426
  end
423
427
  }
@@ -623,7 +627,7 @@ module Natto
623
627
  class MeCabError < RuntimeError; end
624
628
  end
625
629
 
626
- # Copyright (c) 2016, Brooke M. Fujita.
630
+ # Copyright (c) 2019, Brooke M. Fujita.
627
631
  # All rights reserved.
628
632
  #
629
633
  # Redistribution and use in source and binary forms, with or without
@@ -116,7 +116,7 @@ module Natto
116
116
  end
117
117
  end
118
118
 
119
- # Copyright (c) 2016, Brooke M. Fujita.
119
+ # Copyright (c) 2019, Brooke M. Fujita.
120
120
  # All rights reserved.
121
121
  #
122
122
  # Redistribution and use in source and binary forms, with or without
@@ -307,7 +307,7 @@ module Natto
307
307
  end
308
308
  end
309
309
 
310
- # Copyright (c) 2016, Brooke M. Fujita.
310
+ # Copyright (c) 2019, Brooke M. Fujita.
311
311
  # All rights reserved.
312
312
  #
313
313
  # Redistribution and use in source and binary forms, with or without
@@ -26,10 +26,10 @@
26
26
  # `Natto`.
27
27
  module Natto
28
28
  # Version string for this Rubygem.
29
- VERSION = "1.1.1"
29
+ VERSION = "1.1.2"
30
30
  end
31
31
 
32
- # Copyright (c) 2016, Brooke M. Fujita.
32
+ # Copyright (c) 2019, Brooke M. Fujita.
33
33
  # All rights reserved.
34
34
  #
35
35
  # Redistribution and use in source and binary forms, with or without
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: natto
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke M. Fujita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-18 00:00:00.000000000 Z
11
+ date: 2019-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -52,11 +52,8 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- description: 'natto provides a naturally Ruby-esque interface to MeCab. It runs on
56
- both CRuby (mri/yarv) and JRuby (jvm). It works with MeCab installations on Windows,
57
- Unix/Linux, and OS X. No compiler is necessary, as natto is not a C extension.
58
-
59
- '
55
+ description: |
56
+ natto provides a naturally Ruby-esque interface to MeCab. It runs on both CRuby (mri/yarv) and JRuby (jvm). It works with MeCab installations on Windows, Unix/Linux, and OS X. No compiler is necessary, as natto is not a C extension.
60
57
  email: buruzaemon@gmail.com
61
58
  executables: []
62
59
  extensions: []
@@ -94,7 +91,7 @@ requirements:
94
91
  - MeCab 0.996
95
92
  - FFI, 1.9.0 or greater
96
93
  rubyforge_project:
97
- rubygems_version: 2.5.1
94
+ rubygems_version: 2.4.8
98
95
  signing_key:
99
96
  specification_version: 4
100
97
  summary: A gem leveraging FFI (foreign function interface), natto combines the Ruby