engtagger 0.4.1 → 0.4.2

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
  SHA256:
3
- metadata.gz: fe357706e69ed72bec9569babe91cc8531e2c1d0eac71ac8d248bdd74b97ba98
4
- data.tar.gz: 02e6bb2ba29ecabf8e5087c5a2dc92ccad57ef3578fbd9c844f93188a4d39ced
3
+ metadata.gz: 043237e54c8a17bcf8871e4a45a6231fb84cf75a6a975cfb027f2bdc2cda7fa9
4
+ data.tar.gz: 6bc1e9161ade26750731d4d9c11ecad6e406dc3edfcc1774bd1e52970890c6dd
5
5
  SHA512:
6
- metadata.gz: 5e477b0d839e825e8d49135cb6d6c72c21555454d6f722d00b994442cdaaba2b1afa84ab8f22f82f64b9540a0e24914180c59a563830ea11b2a0239921d3e88e
7
- data.tar.gz: 49b02532d7ad940b25b19ba59df364fc553373371f7850f068729af3a339773417ad7f8d5e0e58ecc3facc6ef2168ae86bb9f94a46f9a412bf51d7de36fdab1e
6
+ metadata.gz: bcae03556ad6402de71668519418889b76b9b850e18719b5e91c5d9bd0095725676523fb4e9bc51114f11e01dd18c44d9d21bcab30cd5ef58b8780707030233e
7
+ data.tar.gz: 2f518f2f6968838cca458ec1ee51a614ae332b43dce59302ec6fe746b24923b868a682bb9b2d2c7c656989d68bc9d66ddc3a0d26869da6a98561748f23336cf9
data/.gitignore CHANGED
@@ -16,3 +16,6 @@ test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
18
  /.idea
19
+ .rubocop.yml
20
+ .solargraph.yml
21
+ .yardopts
data/Gemfile CHANGED
@@ -4,4 +4,6 @@ source "https://rubygems.org"
4
4
 
5
5
  gemspec
6
6
 
7
- gem "lru_redux"
7
+ gem "rake"
8
+ gem "test-unit"
9
+ gem "sin_lru_redux"
data/README.md CHANGED
@@ -147,7 +147,7 @@ sudo gem install engtagger
147
147
  2. Grant necessary permissions to your user:
148
148
 
149
149
  ```bash
150
- sudo chown -R $(whoami) /Library/Ruby/Gems/2.6.0/gems/engtagger-0.4.1
150
+ sudo chown -R $(whoami) /Library/Ruby/Gems/2.6.0/gems/engtagger-0.4.2
151
151
  ```
152
152
 
153
153
  **Note:** The path above assumes you are using Ruby version 2.6.0. If you are using a different version, you will need to modify the path accordingly. You can find your Ruby version by running `ruby -v`.
data/engtagger.gemspec CHANGED
@@ -18,5 +18,5 @@ Gem::Specification.new do |gem|
18
18
  gem.name = "engtagger"
19
19
  gem.require_paths = ["lib"]
20
20
  gem.version = EngTagger::VERSION
21
- gem.add_dependency "lru_redux"
21
+ gem.add_dependency "sin_lru_redux"
22
22
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class EngTagger
4
- VERSION = "0.4.1"
4
+ VERSION = "0.4.2"
5
5
  end
data/lib/engtagger.rb CHANGED
@@ -12,7 +12,7 @@ module BoundedSpaceMemoizable
12
12
  alias_method "__memoized__#{method}", method
13
13
  module_eval <<-MODEV
14
14
  def #{method}(*a)
15
- @__memoized_#{method}_cache ||= LruRedux::Cache.new(#{max_cache_size})
15
+ @__memoized_#{method}_cache ||= LruRedux::Cache.new(#{max_cache_size}, true)
16
16
  @__memoized_#{method}_cache[a] ||= __memoized__#{method}(*a)
17
17
  end
18
18
  MODEV
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: engtagger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoichiro Hasebe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-30 00:00:00.000000000 Z
11
+ date: 2025-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: lru_redux
14
+ name: sin_lru_redux
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.4.12
72
+ rubygems_version: 3.5.9
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: A probability based, corpus-trained English POS tagger