natto 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 19f7494661f2cb06fed6e5393c4ce1ca334b78db
4
- data.tar.gz: 353a07f63b6379fb6d58a8003756991eaf22872a
3
+ metadata.gz: 4cc7091811cdce6afd1d2487f3f9aa84a8a2f261
4
+ data.tar.gz: 982361945ade6b421d325cca9d7f3990dafc2ad8
5
5
  SHA512:
6
- metadata.gz: 8d8396ce0e81b3d85850cb57f761f491ec20321ccce36290622eb48d4e08d9c965e7bcf0ae0271345815253769347b36173877c91beb892390dd07b36c3f5328
7
- data.tar.gz: 5521ac30602ac19b8a484a9462e37daf422c559cf645b2a196da519e22cf742170c09d202424814c342b3f93052815427d90e09112ee3b804ca2dda31c6ba178
6
+ metadata.gz: f5828ce9704c9d7554e3c6a22381b7934390e13d66d43e824c444eccbb5f839c991e0bc7dd9901054c1c01ac92ecf6c779879e9d5136cac0af80a59dc38386b2
7
+ data.tar.gz: 686a917526089d6a6f3ad8ad511b242abd9cc958ea51e2c666308fc59998a1a548086ffd8422f1968936edec9faa580b435a2c7127a549ce0659050962d57ba9
data/CHANGELOG CHANGED
@@ -1,4 +1,7 @@
1
1
  ## CHANGELOG
2
+ - __2016/06/18__: 1.1.1 release
3
+ - Issue 68: Speed up for accessing field of Struct.
4
+ - Updating LICENSE and copyright for year 2016.
2
5
 
3
6
  - __2015/12/24__: 1.1.0 release
4
7
  - Issue 64: undefined method 'mecab_model_destory' for Natto::MeCab:Class
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2015, Brooke M. Fujita.
1
+ Copyright (c) 2016, 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 © 2015, Brooke M. Fujita. All rights reserved. Please see the {file:LICENSE} file for further details.
326
+ Copyright © 2016, 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) 2015, Brooke M. Fujita.
4
+ # Copyright (c) 2016, 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) 2015, Brooke M. Fujita.
240
+ # Copyright (c) 2016, Brooke M. Fujita.
241
241
  # All rights reserved.
242
242
  #
243
243
  # Redistribution and use in source and binary forms, with or without
@@ -623,7 +623,7 @@ module Natto
623
623
  class MeCabError < RuntimeError; end
624
624
  end
625
625
 
626
- # Copyright (c) 2015, Brooke M. Fujita.
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
@@ -116,7 +116,7 @@ module Natto
116
116
  end
117
117
  end
118
118
 
119
- # Copyright (c) 2015, Brooke M. Fujita.
119
+ # Copyright (c) 2016, Brooke M. Fujita.
120
120
  # All rights reserved.
121
121
  #
122
122
  # Redistribution and use in source and binary forms, with or without
@@ -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
- return self[member_sym] if self.members.include?(member_sym)
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) 2015, Brooke M. Fujita.
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
@@ -26,10 +26,10 @@
26
26
  # `Natto`.
27
27
  module Natto
28
28
  # Version string for this Rubygem.
29
- VERSION = "1.1.0"
29
+ VERSION = "1.1.1"
30
30
  end
31
31
 
32
- # Copyright (c) 2015, Brooke M. Fujita.
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.0
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: 2015-12-24 00:00:00.000000000 Z
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
- 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.
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.4.5.1
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