jruby-stemmer 0.0.1-java → 0.0.2-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/jruby-stemmer.gemspec +1 -0
- data/lib/jruby-stemmer.rb +2 -1
- data/lib/jruby-stemmer/version.rb +1 -1
- metadata +27 -37
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 64259c949e620373d74863d9396076d0dee8854c
|
4
|
+
data.tar.gz: 8e4e5bc80bc3e381069526123f5d03f322efe56c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: '09f923c8c50be564f7917b63ac579b00b32e7b1433eecc98387183b93c3fc728557fafd4793170fca52a4baf7b735f3322d994510c47ed16de7564107e460977'
|
7
|
+
data.tar.gz: 6b223af6ae4f1cd72ec43342a0b4b774fe19e807e195a8b0c5bfaa832d32a5bb060ff3291a91240b5f533c1a586cc0e062369092d0f5edc54ed410c9a04de850
|
data/jruby-stemmer.gemspec
CHANGED
@@ -11,6 +11,7 @@ Gem::Specification.new do |gem|
|
|
11
11
|
gem.description = %q{Native java implementation of a string stemming algorithm. JRuby replacement for `fast-stemmer` gem under MRI.}
|
12
12
|
gem.summary = %q{Fast string stemming in JRuby}
|
13
13
|
gem.homepage = "https://github.com/caius/jruby-stemmer"
|
14
|
+
gem.license = 'MIT'
|
14
15
|
|
15
16
|
gem.files = `git ls-files`.split($/)
|
16
17
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
data/lib/jruby-stemmer.rb
CHANGED
@@ -6,9 +6,10 @@ module JRuby
|
|
6
6
|
require "jruby"
|
7
7
|
# include_package 'org.tartarus.martin.porter_stemmer'
|
8
8
|
require_relative "java-stemmer"
|
9
|
+
java_import 'org.tartarus.martin.porter_stemmer.Stemmer'
|
9
10
|
|
10
11
|
def self.stem string
|
11
|
-
stemmer =
|
12
|
+
stemmer = Stemmer.new
|
12
13
|
java_string = string.to_java_string
|
13
14
|
stemmer.add java_string.toCharArray, java_string.length
|
14
15
|
stemmer.stem
|
metadata
CHANGED
@@ -1,53 +1,45 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jruby-stemmer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 0.0.1
|
4
|
+
version: 0.0.2
|
6
5
|
platform: java
|
7
6
|
authors:
|
8
7
|
- Caius Durling
|
9
|
-
autorequire:
|
8
|
+
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2017-11-21 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rake-compiler
|
16
|
-
version_requirements: !ruby/object:Gem::Requirement
|
17
|
-
requirements:
|
18
|
-
- - ">="
|
19
|
-
- !ruby/object:Gem::Version
|
20
|
-
version: !binary |-
|
21
|
-
MA==
|
22
|
-
none: false
|
23
15
|
requirement: !ruby/object:Gem::Requirement
|
24
16
|
requirements:
|
25
17
|
- - ">="
|
26
18
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
28
|
-
MA==
|
29
|
-
none: false
|
30
|
-
prerelease: false
|
19
|
+
version: '0'
|
31
20
|
type: :development
|
32
|
-
|
33
|
-
name: rspec
|
21
|
+
prerelease: false
|
34
22
|
version_requirements: !ruby/object:Gem::Requirement
|
35
23
|
requirements:
|
36
24
|
- - ">="
|
37
25
|
- !ruby/object:Gem::Version
|
38
|
-
version:
|
39
|
-
|
40
|
-
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec
|
41
29
|
requirement: !ruby/object:Gem::Requirement
|
42
30
|
requirements:
|
43
31
|
- - ">="
|
44
32
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
46
|
-
MA==
|
47
|
-
none: false
|
48
|
-
prerelease: false
|
33
|
+
version: '0'
|
49
34
|
type: :development
|
50
|
-
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: Native java implementation of a string stemming algorithm. JRuby replacement
|
42
|
+
for `fast-stemmer` gem under MRI.
|
51
43
|
email:
|
52
44
|
- dev@caius.name
|
53
45
|
executables: []
|
@@ -66,8 +58,10 @@ files:
|
|
66
58
|
- lib/jruby-stemmer/version.rb
|
67
59
|
- spec/stemmer_spec.rb
|
68
60
|
homepage: https://github.com/caius/jruby-stemmer
|
69
|
-
licenses:
|
70
|
-
|
61
|
+
licenses:
|
62
|
+
- MIT
|
63
|
+
metadata: {}
|
64
|
+
post_install_message:
|
71
65
|
rdoc_options: []
|
72
66
|
require_paths:
|
73
67
|
- lib
|
@@ -75,21 +69,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
75
69
|
requirements:
|
76
70
|
- - ">="
|
77
71
|
- !ruby/object:Gem::Version
|
78
|
-
version:
|
79
|
-
MA==
|
80
|
-
none: false
|
72
|
+
version: '0'
|
81
73
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
82
74
|
requirements:
|
83
75
|
- - ">="
|
84
76
|
- !ruby/object:Gem::Version
|
85
|
-
version:
|
86
|
-
MA==
|
87
|
-
none: false
|
77
|
+
version: '0'
|
88
78
|
requirements: []
|
89
|
-
rubyforge_project:
|
90
|
-
rubygems_version:
|
91
|
-
signing_key:
|
92
|
-
specification_version:
|
79
|
+
rubyforge_project:
|
80
|
+
rubygems_version: 2.6.13
|
81
|
+
signing_key:
|
82
|
+
specification_version: 4
|
93
83
|
summary: Fast string stemming in JRuby
|
94
84
|
test_files:
|
95
85
|
- spec/stemmer_spec.rb
|