natto 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +4 -0
- data/LICENSE +1 -1
- data/README.md +1 -1
- data/lib/natto.rb +1 -1
- data/lib/natto/binding.rb +1 -1
- data/lib/natto/natto.rb +9 -5
- data/lib/natto/option_parse.rb +1 -1
- data/lib/natto/struct.rb +1 -1
- data/lib/natto/version.rb +2 -2
- metadata +5 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f45f85d078d7859201a2218cf4f84757b512baf
|
4
|
+
data.tar.gz: 673af20612534d456a26b6da4f1f2194db3cfd97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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 ©
|
326
|
+
Copyright © 2019, Brooke M. Fujita. All rights reserved. Please see the {file:LICENSE} file for further details.
|
data/lib/natto.rb
CHANGED
data/lib/natto/binding.rb
CHANGED
data/lib/natto/natto.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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)
|
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
|
data/lib/natto/option_parse.rb
CHANGED
data/lib/natto/struct.rb
CHANGED
data/lib/natto/version.rb
CHANGED
@@ -26,10 +26,10 @@
|
|
26
26
|
# `Natto`.
|
27
27
|
module Natto
|
28
28
|
# Version string for this Rubygem.
|
29
|
-
VERSION = "1.1.
|
29
|
+
VERSION = "1.1.2"
|
30
30
|
end
|
31
31
|
|
32
|
-
# Copyright (c)
|
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.
|
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:
|
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:
|
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.
|
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
|