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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dda6a3b2c795f26a54307637aeaa14b44f2035f0
4
- data.tar.gz: 53b0944ea5822e7e3ab2e38bb07e0bc44d8336de
3
+ metadata.gz: 3362919b92beb932e4563d50ff42d59f6134d623
4
+ data.tar.gz: 7c69f6c200a5f1c1e62268a01661fdc402b6b9c1
5
5
  SHA512:
6
- metadata.gz: aa4d39e5e0b2a11449a55f7c002a257444af14d1e534316ede57f5d2aedb64d95e9b00f5f77396f6701068e4203873856c91fea0fbe07d9ddf949e2913aa5a99
7
- data.tar.gz: db01e6275b7348af0c58adcf0f7c7f62a29549bea5cff29c3e15e001550deebd8c10c66d0c88ce2ed6d9715d5d0681c4b2e3a554becd4c8d73f506777fe83287
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.
@@ -48,7 +48,7 @@ module Natto
48
48
  def parse_mecab_options(options={})
49
49
  h = {}
50
50
  if options.is_a? String
51
- opts = OptionParser.new do |opts|
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
- opts.parse!(options.split)
73
+ parser.parse!(options.split)
74
74
  else
75
75
  SUPPORTED_OPTS.values.each do |k|
76
76
  if options.has_key?(k)
@@ -26,7 +26,7 @@
26
26
  # `Natto`.
27
27
  module Natto
28
28
  # Version string for this Rubygem.
29
- VERSION = "1.0.0"
29
+ VERSION = "1.0.1"
30
30
  end
31
31
 
32
32
  # Copyright (c) 2015, Brooke M. Fujita.
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.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-04-14 00:00:00.000000000 Z
11
+ date: 2015-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi