unicode-name 1.13.3 → 1.13.5

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
  SHA256:
3
- metadata.gz: 7d5b492a10c5d32a1452b2c01a98dce50e1dbeedbe75b5fc3d73aae7cac013d8
4
- data.tar.gz: d1b1cd8ced4f9685c31833b15e7d441469ec3117911f46a13b07cbd7ea33426b
3
+ metadata.gz: 40860ae3f1383eea3baa5318343328370a9b38b36168c20c4c4ad4794e0070bc
4
+ data.tar.gz: f31fcb7d998c105658422bc45bfdf10a2f9221291a23803bc1bca55386a0fe0c
5
5
  SHA512:
6
- metadata.gz: 20e926fc2271e4421359f767a0b601c52e37c012c8bb804c1318df4bf8d50686bfd8206d6c0bf26454921e14aae237c255c734e15aaede0ef875a398a91757e7
7
- data.tar.gz: c2c46f3bd4dd9b83f32343c7d18e15a16a1af440a51db7c0512f3acdd0382a6b5cb7653653b3ed9695ebd277172b7d8c15bedda517ce9d8028b4db0bf475f4bb
6
+ metadata.gz: 4aa9c925535d43ec7d2ab6188a1b8e4be585066f372303ae51b09155b4807a5a24794e828b8751d175b4d3b1f6155837211d4d05d04e46c2b0cf527513ac4036
7
+ data.tar.gz: '0800e4ad45735cd5f18e4a9d585b7a36d6f52b9dd8449b2ce32f7042521e762356b9eaee61c601d8abbcab11f3577ff859ca6f9b97911d2110bf2709bbf755c0'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 1.13.5
4
+
5
+ - Fix Ruby warning, patch by @scivola
6
+
7
+ ### 1.13.4
8
+
9
+ - Fix regression introduced in 1.13.2 that some more CJK ideographs were missing
10
+
3
11
  ### 1.13.3
4
12
 
5
13
  - Fix regression introduced in 1.13.2 that some CJK ideographs were missing
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- unicode-name (1.13.3)
4
+ unicode-name (1.13.5)
5
5
  unicode-types (~> 1.10)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -4,9 +4,7 @@ Return Unicode codepoint names, aliases, and labels.
4
4
 
5
5
  Unicode version: **16.0.0** (September 2024)
6
6
 
7
- Supported Rubies: **3.3**, **3.2**, **3.1**, **3.0**
8
-
9
- Old Rubies that might still work: **2.X**
7
+ Supported Rubies: **3.x** (**2.X** might still work)
10
8
 
11
9
  ## Usage
12
10
 
data/data/name.marshal.gz CHANGED
Binary file
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Unicode
4
4
  module Name
5
- VERSION = "1.13.3"
5
+ VERSION = "1.13.5"
6
6
  UNICODE_VERSION = "16.0.0"
7
7
  DATA_DIRECTORY = File.expand_path(File.dirname(__FILE__) + "/../../../data/").freeze
8
8
  INDEX_FILENAME = (DATA_DIRECTORY + "/name.marshal.gz").freeze
data/lib/unicode/name.rb CHANGED
@@ -18,7 +18,7 @@ module Unicode
18
18
 
19
19
  INDEX[:CP_RANGES].each{|prefix, range|
20
20
  if range.any?{ |range| codepoint >= range[0] && codepoint <= range[1] }
21
- return "%s%.4X" %[prefix, codepoint]
21
+ return "%s%.4X" % [prefix, codepoint]
22
22
  end
23
23
  }
24
24
 
@@ -28,6 +28,7 @@ describe Unicode::Name do
28
28
  assert_equal "TANGUT IDEOGRAPH-18D00", Unicode::Name.of("𘴀")
29
29
  assert_equal "NUSHU CHARACTER-1B171", Unicode::Name.of("𛅱")
30
30
  assert_equal "CJK COMPATIBILITY IDEOGRAPH-2F9B1", Unicode::Name.of("𧃒")
31
+ assert_equal "CJK COMPATIBILITY IDEOGRAPH-F978", Unicode::Name.of("兩")
31
32
  end
32
33
 
33
34
  it "will return nil for characters without name" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unicode-name
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.13.3
4
+ version: 1.13.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Lelis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-09 00:00:00.000000000 Z
11
+ date: 2024-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unicode-types