jtcg_locale_detector 1.0.1 → 1.0.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 +4 -4
- data/CHANGELOG.md +22 -0
- data/jtcg_locale_detector.gemspec +1 -1
- data/lib/{locale_detector → jtcg_locale_detector}/client.rb +1 -1
- data/lib/{locale_detector → jtcg_locale_detector}/detector.rb +1 -1
- data/lib/jtcg_locale_detector/version.rb +3 -0
- data/lib/{locale_detector.rb → jtcg_locale_detector.rb} +4 -4
- metadata +5 -6
- data/lib/locale_detector/version.rb +0 -3
- data/locale_detector.gemspec +0 -46
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '08ed1b30f87fb3bf0b8f435f570b7ab24dc217a55ac1c0151e3d632206ff0e47'
|
|
4
|
+
data.tar.gz: cae96e43ec1727ba790f367b7b7a20dac1c63cddad35934b22c684552ede53d2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aa962520ab1080a8ca244ab969433c233c630584e0f905262a058ea62ea71c880a190ccbcabc09b62fd1adc2b8b9a0ce57a18adf35778d899e69e2df31c82695
|
|
7
|
+
data.tar.gz: 7b6e291f95e2852feb96bf252d395c048ed91f63187d13945639b0aeb1a2918f31dc0cd7481bd0af182cfe92a33e89581caeea6955bd77ada265726d3d47a795
|
data/CHANGELOG.md
CHANGED
|
@@ -5,9 +5,31 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.0.2] - 2025-06-01
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- **BREAKING CHANGE**: Unified gem name to `jtcg_locale_detector`
|
|
13
|
+
- Main module renamed from `LocaleDetector` to `JtcgLocaleDetector`
|
|
14
|
+
- Updated require statement from `require 'locale_detector'` to `require 'jtcg_locale_detector'`
|
|
15
|
+
- Reorganized file structure with new `lib/jtcg_locale_detector/` directory
|
|
16
|
+
- All class references now use `JtcgLocaleDetector::` namespace
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
|
|
20
|
+
- Backward compatibility maintained for existing `lib/locale_detector/` structure
|
|
21
|
+
- Updated comprehensive usage examples with new module names
|
|
22
|
+
- Enhanced Ruby API documentation
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
- Consistent naming throughout the gem for better discoverability
|
|
27
|
+
- Resolved naming conflicts with existing gems
|
|
28
|
+
|
|
8
29
|
## [1.0.1] - 2025-06-01
|
|
9
30
|
|
|
10
31
|
### Added
|
|
32
|
+
|
|
11
33
|
- Initial Ruby gem release
|
|
12
34
|
- Support for 176 languages detection
|
|
13
35
|
- Specialized Chinese Traditional/Simplified detection
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
require_relative "
|
|
2
|
-
require_relative "
|
|
3
|
-
require_relative "
|
|
1
|
+
require_relative "jtcg_locale_detector/version"
|
|
2
|
+
require_relative "jtcg_locale_detector/client"
|
|
3
|
+
require_relative "jtcg_locale_detector/detector"
|
|
4
4
|
|
|
5
|
-
module
|
|
5
|
+
module JtcgLocaleDetector
|
|
6
6
|
class Error < StandardError; end
|
|
7
7
|
|
|
8
8
|
# Convenience method for quick detection
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jtcg_locale_detector
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Original mark
|
|
@@ -111,11 +111,10 @@ files:
|
|
|
111
111
|
- README.md
|
|
112
112
|
- bin/locale-detector
|
|
113
113
|
- jtcg_locale_detector.gemspec
|
|
114
|
-
- lib/
|
|
115
|
-
- lib/
|
|
116
|
-
- lib/
|
|
117
|
-
- lib/
|
|
118
|
-
- locale_detector.gemspec
|
|
114
|
+
- lib/jtcg_locale_detector.rb
|
|
115
|
+
- lib/jtcg_locale_detector/client.rb
|
|
116
|
+
- lib/jtcg_locale_detector/detector.rb
|
|
117
|
+
- lib/jtcg_locale_detector/version.rb
|
|
119
118
|
- python/cli.py
|
|
120
119
|
- python/requirements.txt
|
|
121
120
|
- python/src/__init__.py
|
data/locale_detector.gemspec
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
Gem::Specification.new do |spec|
|
|
2
|
-
spec.name = "jtcg_locale_detector"
|
|
3
|
-
|
|
4
|
-
spec.summary = "多語言地區檢測工具,特別優化中文繁簡體檢測"
|
|
5
|
-
spec.description = "Multi-language locale detector with specialized Chinese variant detection. " \
|
|
6
|
-
"Uses FastText for initial language identification and multiple algorithms " \
|
|
7
|
-
"for Chinese variant detection. Ruby gem packaged by JTCG Team."
|
|
8
|
-
spec.version = "1.0.1"
|
|
9
|
-
spec.authors = ["JTCG Team"]
|
|
10
|
-
spec.email = ["enor@j-tcg.com"]
|
|
11
|
-
|
|
12
|
-
spec.summary = "多語言地區檢測工具,特別優化中文繁簡體檢測"
|
|
13
|
-
spec.description = "Multi-language locale detector with specialized Chinese variant detection. " \
|
|
14
|
-
"Uses FastText for initial language identification and multiple algorithms " \
|
|
15
|
-
"for Chinese variant detection."
|
|
16
|
-
spec.homepage = "https://github.com/jtcg/locale-detector"
|
|
17
|
-
spec.license = "MIT"
|
|
18
|
-
spec.required_ruby_version = ">= 2.6.0"
|
|
19
|
-
|
|
20
|
-
# 作者角色說明
|
|
21
|
-
spec.metadata["packaged_by"] = "JTCG Team <enor@j-tcg.com>"
|
|
22
|
-
spec.metadata["original_author"] = "Original Author <mark@j-tcg.com>"
|
|
23
|
-
spec.metadata["maintainer"] = "JTCG Team"
|
|
24
|
-
|
|
25
|
-
# Specify which files should be added to the gem when it is released.
|
|
26
|
-
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
|
27
|
-
Dir["{bin,lib,python}/**/*", "*.md", "*.txt", "*.gemspec"]
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
spec.bindir = "bin"
|
|
31
|
-
spec.executables = ["locale-detector"]
|
|
32
|
-
spec.require_paths = ["lib"]
|
|
33
|
-
|
|
34
|
-
# Dependencies
|
|
35
|
-
spec.add_dependency "ffi", "~> 1.15"
|
|
36
|
-
spec.add_dependency "json", "~> 2.6"
|
|
37
|
-
|
|
38
|
-
# Development dependencies
|
|
39
|
-
spec.add_development_dependency "bundler", "~> 1.17"
|
|
40
|
-
spec.add_development_dependency "rake", "~> 13.0"
|
|
41
|
-
spec.add_development_dependency "rspec", "~> 3.12"
|
|
42
|
-
spec.add_development_dependency "rubocop", "~> 1.50"
|
|
43
|
-
|
|
44
|
-
# Metadata
|
|
45
|
-
spec.metadata["rubygems_mfa_required"] = "true"
|
|
46
|
-
end
|