icu4x-data-recommended 0.6.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 48bea54d5362ea8c023b958baa45dd39edfb3194df8ceb38b1e699c068579dc9
4
+ data.tar.gz: fa3d7897d99b51ff78b16315d8426c2eaf302defd8f6347fe701d9cb2f93cc66
5
+ SHA512:
6
+ metadata.gz: c849a35b4942d94f0a1671ee52f9ceb5f965d1b868ab2b4efcc9fe19d2b7d22ff88e1cec54c9571a74f03d9cd23300948ac28e2c6d29ce4c2d7aab3d5f811a5b
7
+ data.tar.gz: 4dd907e74448c60211c57decf66f0a4d8518538dfcac9fbfd6318988519b5255d167c0ae6871afac1c526e46b1f13153c3d92e3ae5ac7c4c5485660f4a36b6fa
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2025 OZAWA Sakuro
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # icu4x-data-recommended
2
+
3
+ Pre-generated ICU4X locale data (recommended locales (164)).
4
+
5
+ ## Installation
6
+
7
+ Add to your Gemfile:
8
+
9
+ ```ruby
10
+ gem "icu4x"
11
+ gem "icu4x-data-recommended"
12
+ ```
13
+
14
+ ## Usage
15
+
16
+ ```ruby
17
+ require "icu4x"
18
+ require "icu4x/data/recommended"
19
+
20
+ # The default provider is now automatically configured.
21
+ locale = ICU4X::Locale.parse("ja-JP")
22
+ formatter = ICU4X::DateTimeFormat.new(locale, date_style: :long)
23
+ formatter.format(Time.now) #=> "2026年1月1日"
24
+ ```
25
+
26
+ ## Locale Coverage
27
+
28
+ This gem includes locales with recommended CLDR coverage.
29
+
30
+ For more information about CLDR coverage levels, see:
31
+ https://cldr.unicode.org/index/cldr-spec/coverage-levels
32
+
33
+ ## License
34
+
35
+ This gem is available under the MIT License.
36
+
37
+ The locale data is derived from the Unicode Common Locale Data Repository (CLDR)
38
+ and is available under the Unicode License v3.
39
+ See https://www.unicode.org/license.txt for details.
Binary file
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "icu4x"
4
+ require "pathname"
5
+
6
+ ICU4X.configure do |config|
7
+ config.data_path = Pathname(__dir__).join("../../../data/recommended.postcard")
8
+ end
metadata ADDED
@@ -0,0 +1,63 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: icu4x-data-recommended
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.6.1
5
+ platform: ruby
6
+ authors:
7
+ - OZAWA Sakuro
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2026-01-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: icu4x
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.6.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.6.1
27
+ description: Recommended locales (164)
28
+ email:
29
+ - 10973+sakuro@users.noreply.github.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - LICENSE.txt
35
+ - README.md
36
+ - data/recommended.postcard
37
+ - lib/icu4x/data/recommended.rb
38
+ homepage: https://github.com/sakuro/icu4x
39
+ licenses:
40
+ - MIT
41
+ metadata:
42
+ homepage_uri: https://github.com/sakuro/icu4x
43
+ rubygems_mfa_required: 'true'
44
+ post_install_message:
45
+ rdoc_options: []
46
+ require_paths:
47
+ - lib
48
+ required_ruby_version: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: '3.2'
53
+ required_rubygems_version: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: '0'
58
+ requirements: []
59
+ rubygems_version: 3.4.19
60
+ signing_key:
61
+ specification_version: 4
62
+ summary: Pre-generated ICU4X locale data (recommended)
63
+ test_files: []