natto 1.0.0 → 1.0.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 -1
- data/lib/natto/option_parse.rb +2 -2
- data/lib/natto/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3362919b92beb932e4563d50ff42d59f6134d623
|
|
4
|
+
data.tar.gz: 7c69f6c200a5f1c1e62268a01661fdc402b6b9c1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 54b53f255666424a00412fd09d14e80ef58227e745bda061e93a8d6afb1ea95a2dbbde46a68919d53b1143d625f317d67d700e97615ce78c8bd0dc472236b1dd
|
|
7
|
+
data.tar.gz: 75727524bc1d9fd8dfed2ccfc63043f651eee34ee7fa2408dd940f15e553d839645d819c7e00d8fb4d57f407464df6d317322e256a185301346e0972d2efbe1c
|
data/CHANGELOG
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
## CHANGELOG
|
|
2
2
|
|
|
3
|
+
- __2015/07/20: 1.0.1 release.
|
|
4
|
+
- Issue 62: Ruby warning: shadowing outer local variable - opts
|
|
5
|
+
|
|
3
6
|
- __2015/04/14__: 1.0.0 release.
|
|
4
7
|
- Issue 36: Fixed @param documentation
|
|
5
8
|
- Issue 37: README and bullet points under Automatic Configuration
|
|
@@ -12,7 +15,6 @@
|
|
|
12
15
|
- Issue 52: Downloads and license badges for README.md & API docs
|
|
13
16
|
- Issue 55: Node parsing with --all-morphs option missing surface values
|
|
14
17
|
|
|
15
|
-
|
|
16
18
|
- __2015/03/31__: 0.9.9 release.
|
|
17
19
|
- Issue 21/34: Implemented boundary constraint parsing.
|
|
18
20
|
- Issue 26: Removing deprecated methods parse_as_nodes, parse_as_strings, readnodes and readlines.
|
data/lib/natto/option_parse.rb
CHANGED
|
@@ -48,7 +48,7 @@ module Natto
|
|
|
48
48
|
def parse_mecab_options(options={})
|
|
49
49
|
h = {}
|
|
50
50
|
if options.is_a? String
|
|
51
|
-
|
|
51
|
+
parser = OptionParser.new do |opts|
|
|
52
52
|
opts.on('-r', '--rcfile ARG') { |arg| h[:rcfile] = arg.strip }
|
|
53
53
|
opts.on('-d', '--dicdir ARG') { |arg| h[:dicdir] = arg.strip }
|
|
54
54
|
opts.on('-u', '--userdic ARG') { |arg| h[:userdic] = arg.strip }
|
|
@@ -70,7 +70,7 @@ module Natto
|
|
|
70
70
|
opts.on('-t', '--theta ARG') { |arg| h[:theta] = arg.strip.to_f }
|
|
71
71
|
opts.on('-c', '--cost-factor ARG') { |arg| h[:cost_factor] = arg.strip.to_i }
|
|
72
72
|
end
|
|
73
|
-
|
|
73
|
+
parser.parse!(options.split)
|
|
74
74
|
else
|
|
75
75
|
SUPPORTED_OPTS.values.each do |k|
|
|
76
76
|
if options.has_key?(k)
|
data/lib/natto/version.rb
CHANGED
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.0.
|
|
4
|
+
version: 1.0.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: 2015-
|
|
11
|
+
date: 2015-07-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ffi
|