mecab-light 0.2.1 → 0.2.2

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: 77a05bf9485489ccba812f53eb6976d9688fa170
4
- data.tar.gz: 5352eec6b99dd1f96754a70a54e06d0c8e773c68
3
+ metadata.gz: 974e912e189f8360bb6262bd58cd1d429bf3c0e8
4
+ data.tar.gz: 30c75d49c243b6607af51332cff756d882760cf3
5
5
  SHA512:
6
- metadata.gz: 11117258db644f31ae7fd45f2c7df69aa474aaebf34b3945d1defa1deced0514f155206904f7065c5beeaaaaaf9fe27baa71852c6905f31ba57e4a080381655a
7
- data.tar.gz: 162454bcaede7008c631d391204e86b48a36064e3eac4ebb5d31c3a4cb93497c9951b46929ad56cb33ce8a15352895409651b798be6dc175c2450cc9043faf5a
6
+ metadata.gz: 00e60f2b160e885a58cbab9ce939b62846968e89b2b34d8fb18ba6cb658041297b9272949b0939b535f1e934ad89c96d0ba31e11d1deeb04165aa07d878dc4c0
7
+ data.tar.gz: 98223a90310d0be19a82f7084faaf4536431b2ec4e4ed25547c9b3c87f3969f4e3731726ee005c41438b7eb0d1b6f1c6625d800834496a60b778bdf28a27aaa4
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # MeCab::Light [![Build Status](https://travis-ci.org/hadzimme/mecab-light.png)](https://travis-ci.org/hadzimme/mecab-light)
2
2
 
3
- Use a sequence of results as an Enumerable object.
3
+ Use a sequence of morphemes as an Enumerable object.
4
4
 
5
5
  ## Installation
6
6
 
@@ -30,6 +30,7 @@ tagger = MeCab::Light::Tagger.new
30
30
  string = 'この文を形態素解析してください。'
31
31
  result = tagger.parse(string)
32
32
  result[0].surface #=> "この"
33
+ result.kind_of?(Enumerable) #=> true
33
34
  result.map{|morpheme| morpheme.surface }
34
35
  #=> ["この", "文", "を", "形態素", "解析", "し", "て", "ください", "。"]
35
36
  ```
@@ -37,7 +37,7 @@ rb_mecab_light_binding_parse_to_s(VALUE self, VALUE str)
37
37
  }
38
38
 
39
39
  void
40
- Init_mecab_light_binding()
40
+ Init_binding()
41
41
  {
42
42
  VALUE rb_mMeCab, rb_mMeCab_Light, rb_cMeCab_Light_Binding;
43
43
 
@@ -1,7 +1,7 @@
1
1
  require 'mkmf'
2
2
 
3
3
  if have_header('mecab.h') && have_library('mecab')
4
- create_makefile('mecab_light_binding')
4
+ create_makefile('mecab/light/binding')
5
5
  else
6
6
  puts 'Install MeCab and give it another try.'
7
7
  end
@@ -1,5 +1,5 @@
1
1
  module MeCab
2
2
  module Light
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
data/lib/mecab/light.rb CHANGED
@@ -2,4 +2,4 @@ require 'mecab/light/version'
2
2
  require 'mecab/light/morpheme'
3
3
  require 'mecab/light/result'
4
4
  require 'mecab/light/tagger'
5
- require 'mecab_light_binding'
5
+ require 'mecab/light/binding'
data/mecab-light.gemspec CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |gem|
8
8
  gem.version = MeCab::Light::VERSION
9
9
  gem.authors = ["Hajime WAKAHARA"]
10
10
  gem.email = ["hajime.wakahara@gmail.com"]
11
- gem.description = %q{Use a sequence of results as an Enumerable object.}
12
- gem.summary = %q{A Thin Wrapper for mecab-ruby}
11
+ gem.description = %q{Use a sequence of morphemes as an Enumerable object.}
12
+ gem.summary = %q{An simple interface for MeCab (UNOFFICIAL)}
13
13
  gem.homepage = "https://github.com/hadzimme/mecab-light"
14
14
 
15
15
  gem.files = `git ls-files`.split($/)
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
19
  gem.required_ruby_version = '>= 1.9'
20
- gem.extensions << 'ext/extconf.rb'
20
+ gem.extensions << 'ext/mecab/light/extconf.rb'
21
21
 
22
22
  gem.add_development_dependency 'rake'
23
23
  gem.add_development_dependency 'rspec'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mecab-light
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hajime WAKAHARA
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-02 00:00:00.000000000 Z
11
+ date: 2013-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -38,12 +38,12 @@ dependencies:
38
38
  - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- description: Use a sequence of results as an Enumerable object.
41
+ description: Use a sequence of morphemes as an Enumerable object.
42
42
  email:
43
43
  - hajime.wakahara@gmail.com
44
44
  executables: []
45
45
  extensions:
46
- - ext/extconf.rb
46
+ - ext/mecab/light/extconf.rb
47
47
  extra_rdoc_files: []
48
48
  files:
49
49
  - .gitignore
@@ -51,10 +51,9 @@ files:
51
51
  - LICENSE.txt
52
52
  - README.md
53
53
  - Rakefile
54
- - ext/extconf.rb
55
- - ext/mecab_light_binding.c
54
+ - ext/mecab/light/binding.c
55
+ - ext/mecab/light/extconf.rb
56
56
  - lib/mecab/light.rb
57
- - lib/mecab/light/binding.rb
58
57
  - lib/mecab/light/morpheme.rb
59
58
  - lib/mecab/light/result.rb
60
59
  - lib/mecab/light/tagger.rb
@@ -83,6 +82,6 @@ rubyforge_project:
83
82
  rubygems_version: 2.0.0
84
83
  signing_key:
85
84
  specification_version: 4
86
- summary: A Thin Wrapper for mecab-ruby
85
+ summary: An simple interface for MeCab (UNOFFICIAL)
87
86
  test_files:
88
87
  - spec/mecab_spec.rb
@@ -1,10 +0,0 @@
1
- module MeCab
2
- module Light
3
- module Binding
4
- extend FFI::Library
5
- ffi_lib 'mecab'
6
- attach_function :mecab_new2, [:string], :pointer
7
- attach_function :mecab_sparse_tostr, [:pointer, :string], :string
8
- end
9
- end
10
- end