natto 1.1.0 → 1.1.1
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/CHANGELOG +3 -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 +1 -1
- data/lib/natto/option_parse.rb +1 -1
- data/lib/natto/struct.rb +3 -2
- data/lib/natto/version.rb +2 -2
- metadata +8 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4cc7091811cdce6afd1d2487f3f9aa84a8a2f261
|
4
|
+
data.tar.gz: 982361945ade6b421d325cca9d7f3990dafc2ad8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5828ce9704c9d7554e3c6a22381b7934390e13d66d43e824c444eccbb5f839c991e0bc7dd9901054c1c01ac92ecf6c779879e9d5136cac0af80a59dc38386b2
|
7
|
+
data.tar.gz: 686a917526089d6a6f3ad8ad511b242abd9cc958ea51e2c666308fc59998a1a548086ffd8422f1968936edec9faa580b435a2c7127a549ce0659050962d57ba9
|
data/CHANGELOG
CHANGED
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 © 2016, 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
@@ -623,7 +623,7 @@ module Natto
|
|
623
623
|
class MeCabError < RuntimeError; end
|
624
624
|
end
|
625
625
|
|
626
|
-
# Copyright (c)
|
626
|
+
# Copyright (c) 2016, Brooke M. Fujita.
|
627
627
|
# All rights reserved.
|
628
628
|
#
|
629
629
|
# Redistribution and use in source and binary forms, with or without
|
data/lib/natto/option_parse.rb
CHANGED
data/lib/natto/struct.rb
CHANGED
@@ -15,7 +15,8 @@ module Natto
|
|
15
15
|
# @raise [NoMethodError] if `attr_name` is not a member of this MeCab struct
|
16
16
|
def method_missing(attr_name)
|
17
17
|
member_sym = attr_name.id2name.to_sym
|
18
|
-
|
18
|
+
self[member_sym]
|
19
|
+
rescue ArgumentError # `member_sym` field doesn't exist.
|
19
20
|
raise(NoMethodError.new("undefined method '#{attr_name}' for #{self}"))
|
20
21
|
end
|
21
22
|
end
|
@@ -306,7 +307,7 @@ module Natto
|
|
306
307
|
end
|
307
308
|
end
|
308
309
|
|
309
|
-
# Copyright (c)
|
310
|
+
# Copyright (c) 2016, Brooke M. Fujita.
|
310
311
|
# All rights reserved.
|
311
312
|
#
|
312
313
|
# Redistribution and use in source and binary forms, with or without
|
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.1"
|
30
30
|
end
|
31
31
|
|
32
|
-
# Copyright (c)
|
32
|
+
# Copyright (c) 2016, 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.1
|
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: 2016-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -52,8 +52,11 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
description:
|
56
|
-
|
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
|
+
'
|
57
60
|
email: buruzaemon@gmail.com
|
58
61
|
executables: []
|
59
62
|
extensions: []
|
@@ -91,7 +94,7 @@ requirements:
|
|
91
94
|
- MeCab 0.996
|
92
95
|
- FFI, 1.9.0 or greater
|
93
96
|
rubyforge_project:
|
94
|
-
rubygems_version: 2.
|
97
|
+
rubygems_version: 2.5.1
|
95
98
|
signing_key:
|
96
99
|
specification_version: 4
|
97
100
|
summary: A gem leveraging FFI (foreign function interface), natto combines the Ruby
|