unicode-numeric_value 1.4.0 → 1.5.0

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: 976cf3675a193fb798058afdedde9d5c21a071400785a6c7daaeb44f1ac84451
4
- data.tar.gz: 9e2f808ed94e88f13a830990781ebfd6c0acabb2e11500e37cb37109d0c85e79
3
+ metadata.gz: df7c137520c6196d1a4152cb872efd5bc1b0b791296d540defef4158788237de
4
+ data.tar.gz: b90aa2acdea27529f5b3cb0bc18ab53f41158caa124514ed2a19ed72197cd958
5
5
  SHA512:
6
- metadata.gz: 9a28d233ceceb0ec19cc6994e546cc111af13a065135437ce10b0309657fadba6b2534f8151a97556cc0012cf84c23d161691fde18c64ee45e48d39a1e2ea219
7
- data.tar.gz: ec4fac3330ed17b80708ab866f78de75f2d9f1eceddea7da8aee9a5d512e31a1a994656c98a27dbf238bb714ae4b773dbfd6605dd22087999c5f96795b1f55cd
6
+ metadata.gz: 54db17fa744da7c4b0dec1564be34bd6503ab4867f9885f87bdaf8114d0e65a589bb7063e7d469f2c105431df5b9309389a5c3542430deded7a378539662be43
7
+ data.tar.gz: 14a80e898fbb4b256d5b1e7c98fdcaec86f68330d07a294ef3cd0bd74b94b2209466674141419933d9d60c18d98b8ce1322a52a9ff77642ddc69ea76fc772bd5
@@ -4,18 +4,20 @@ language: ruby
4
4
  script: bundle exec ruby spec/unicode_numeric_value_spec.rb
5
5
 
6
6
  rvm:
7
- - ruby-head
8
- - 2.5.1
9
- - 2.4.4
10
- - 2.3.7
7
+ - 2.6.1
8
+ - 2.5.3
9
+ - 2.4.5
10
+ - 2.3.8
11
11
  - 2.2
12
12
  - 2.1
13
13
  - 2.0
14
+ - ruby-head
14
15
  - jruby-head
15
- - jruby-9.1.16.0
16
+ - jruby-9.2.6.0
16
17
 
17
18
  matrix:
18
19
  allow_failures:
20
+ - rvm: 2.3.8
19
21
  - rvm: 2.2
20
22
  - rvm: 2.1
21
23
  - rvm: 2.0
@@ -1,5 +1,9 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 1.5.0
4
+
5
+ * Unicode 12
6
+
3
7
  ### 1.4.0
4
8
 
5
9
  * Unicode 11
@@ -1,4 +1,4 @@
1
- Copyright (c) 2016-2018 Jan Lelis, mail@janlelis.de
1
+ Copyright (c) 2016-2019 Jan Lelis, mail@janlelis.de
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,12 +1,12 @@
1
- # Unicode::NumericValue [![[version]](https://badge.fury.io/rb/unicode-numeric_value.svg)](http://badge.fury.io/rb/unicode-numeric_value) [![[travis]](https://travis-ci.org/janlelis/unicode-numeric_value.png)](https://travis-ci.org/janlelis/unicode-numeric_value)
1
+ # Unicode::NumericValue [![[version]](https://badge.fury.io/rb/unicode-numeric_value.svg)](https://badge.fury.io/rb/unicode-numeric_value) [![[travis]](https://travis-ci.org/janlelis/unicode-numeric_value.png)](https://travis-ci.org/janlelis/unicode-numeric_value)
2
2
 
3
3
  Convert a Unicode character into its numeric value.
4
4
 
5
- Unicode version: **11.0.0**
5
+ Unicode version: **12.0.0** (March 2019)
6
6
 
7
- Supported Rubies: **2.5**, **2.4**, **2.3**
7
+ Supported Rubies: **2.6**, **2.5**, **2.4**
8
8
 
9
- Old Rubies that might still work: **2.2**, **2.1**, **2.0**
9
+ Old Rubies that might still work: **2.3**, **2.2**, **2.1**, **2.0**
10
10
 
11
11
  ## Gemfile
12
12
 
@@ -26,6 +26,7 @@ Unicode::NumericValue.of("Ⅷ") # => 8
26
26
  Unicode::NumericValue.of("⓳") # => 19
27
27
  Unicode::NumericValue.of("¾") # => (3/4)
28
28
  Unicode::NumericValue.of("༳") # => (-1/2)
29
+ Unicode::NumericValue.of("𑿀") # => (1/320)
29
30
  Unicode::NumericValue.of("𖭡") # => 1000000000000
30
31
  Unicode::NumericValue.of("五") # => 5
31
32
  Unicode::NumericValue.of("A") # => nil
@@ -1417,6 +1418,27 @@ Codepoint | Character | Numeric Value | Name
1417
1418
  U+11DA7 | 𑶧 | 7 | GUNJALA GONDI DIGIT SEVEN
1418
1419
  U+11DA8 | 𑶨 | 8 | GUNJALA GONDI DIGIT EIGHT
1419
1420
  U+11DA9 | 𑶩 | 9 | GUNJALA GONDI DIGIT NINE
1421
+ U+11FC0 | 𑿀 | (1/320) | TAMIL FRACTION ONE THREE-HUNDRED-AND-TWENTIETH
1422
+ U+11FC1 | 𑿁 | (1/160) | TAMIL FRACTION ONE ONE-HUNDRED-AND-SIXTIETH
1423
+ U+11FC2 | 𑿂 | (1/80) | TAMIL FRACTION ONE EIGHTIETH
1424
+ U+11FC3 | 𑿃 | (1/64) | TAMIL FRACTION ONE SIXTY-FOURTH
1425
+ U+11FC4 | 𑿄 | (1/40) | TAMIL FRACTION ONE FORTIETH
1426
+ U+11FC5 | 𑿅 | (1/32) | TAMIL FRACTION ONE THIRTY-SECOND
1427
+ U+11FC6 | 𑿆 | (3/80) | TAMIL FRACTION THREE EIGHTIETHS
1428
+ U+11FC7 | 𑿇 | (3/64) | TAMIL FRACTION THREE SIXTY-FOURTHS
1429
+ U+11FC8 | 𑿈 | (1/20) | TAMIL FRACTION ONE TWENTIETH
1430
+ U+11FC9 | 𑿉 | (1/16) | TAMIL FRACTION ONE SIXTEENTH-1
1431
+ U+11FCA | 𑿊 | (1/16) | TAMIL FRACTION ONE SIXTEENTH-2
1432
+ U+11FCB | 𑿋 | (1/10) | TAMIL FRACTION ONE TENTH
1433
+ U+11FCC | 𑿌 | (1/8) | TAMIL FRACTION ONE EIGHTH
1434
+ U+11FCD | 𑿍 | (3/20) | TAMIL FRACTION THREE TWENTIETHS
1435
+ U+11FCE | 𑿎 | (3/16) | TAMIL FRACTION THREE SIXTEENTHS
1436
+ U+11FCF | 𑿏 | (1/5) | TAMIL FRACTION ONE FIFTH
1437
+ U+11FD0 | 𑿐 | (1/4) | TAMIL FRACTION ONE QUARTER
1438
+ U+11FD1 | 𑿑 | (1/2) | TAMIL FRACTION ONE HALF-1
1439
+ U+11FD2 | 𑿒 | (1/2) | TAMIL FRACTION ONE HALF-2
1440
+ U+11FD3 | 𑿓 | (3/4) | TAMIL FRACTION THREE QUARTERS
1441
+ U+11FD4 | 𑿔 | (1/320) | TAMIL FRACTION DOWNSCALING FACTOR KIIZH
1420
1442
  U+12400 | 𒐀 | 2 | CUNEIFORM NUMERIC SIGN TWO ASH
1421
1443
  U+12401 | 𒐁 | 3 | CUNEIFORM NUMERIC SIGN THREE ASH
1422
1444
  U+12402 | 𒐂 | 4 | CUNEIFORM NUMERIC SIGN FOUR ASH
@@ -1673,6 +1695,26 @@ Codepoint | Character | Numeric Value | Name
1673
1695
  U+1D7FD | 𝟽 | 7 | MATHEMATICAL MONOSPACE DIGIT SEVEN
1674
1696
  U+1D7FE | 𝟾 | 8 | MATHEMATICAL MONOSPACE DIGIT EIGHT
1675
1697
  U+1D7FF | 𝟿 | 9 | MATHEMATICAL MONOSPACE DIGIT NINE
1698
+ U+1E140 | 𞅀 | 0 | NYIAKENG PUACHUE HMONG DIGIT ZERO
1699
+ U+1E141 | 𞅁 | 1 | NYIAKENG PUACHUE HMONG DIGIT ONE
1700
+ U+1E142 | 𞅂 | 2 | NYIAKENG PUACHUE HMONG DIGIT TWO
1701
+ U+1E143 | 𞅃 | 3 | NYIAKENG PUACHUE HMONG DIGIT THREE
1702
+ U+1E144 | 𞅄 | 4 | NYIAKENG PUACHUE HMONG DIGIT FOUR
1703
+ U+1E145 | 𞅅 | 5 | NYIAKENG PUACHUE HMONG DIGIT FIVE
1704
+ U+1E146 | 𞅆 | 6 | NYIAKENG PUACHUE HMONG DIGIT SIX
1705
+ U+1E147 | 𞅇 | 7 | NYIAKENG PUACHUE HMONG DIGIT SEVEN
1706
+ U+1E148 | 𞅈 | 8 | NYIAKENG PUACHUE HMONG DIGIT EIGHT
1707
+ U+1E149 | 𞅉 | 9 | NYIAKENG PUACHUE HMONG DIGIT NINE
1708
+ U+1E2F0 | 𞋰 | 0 | WANCHO DIGIT ZERO
1709
+ U+1E2F1 | 𞋱 | 1 | WANCHO DIGIT ONE
1710
+ U+1E2F2 | 𞋲 | 2 | WANCHO DIGIT TWO
1711
+ U+1E2F3 | 𞋳 | 3 | WANCHO DIGIT THREE
1712
+ U+1E2F4 | 𞋴 | 4 | WANCHO DIGIT FOUR
1713
+ U+1E2F5 | 𞋵 | 5 | WANCHO DIGIT FIVE
1714
+ U+1E2F6 | 𞋶 | 6 | WANCHO DIGIT SIX
1715
+ U+1E2F7 | 𞋷 | 7 | WANCHO DIGIT SEVEN
1716
+ U+1E2F8 | 𞋸 | 8 | WANCHO DIGIT EIGHT
1717
+ U+1E2F9 | 𞋹 | 9 | WANCHO DIGIT NINE
1676
1718
  U+1E8C7 | 𞣇 | 1 | MENDE KIKAKUI DIGIT ONE
1677
1719
  U+1E8C8 | 𞣈 | 2 | MENDE KIKAKUI DIGIT TWO
1678
1720
  U+1E8C9 | 𞣉 | 3 | MENDE KIKAKUI DIGIT THREE
@@ -1758,6 +1800,66 @@ Codepoint | Character | Numeric Value | Name
1758
1800
  U+1ECB2 | 𞲲 | 2 | INDIC SIYAQ NUMBER ALTERNATE TWO
1759
1801
  U+1ECB3 | 𞲳 | 10000 | INDIC SIYAQ NUMBER ALTERNATE TEN THOUSAND
1760
1802
  U+1ECB4 | 𞲴 | 100000 | INDIC SIYAQ ALTERNATE LAKH MARK
1803
+ U+1ED01 | 𞴁 | 1 | OTTOMAN SIYAQ NUMBER ONE
1804
+ U+1ED02 | 𞴂 | 2 | OTTOMAN SIYAQ NUMBER TWO
1805
+ U+1ED03 | 𞴃 | 3 | OTTOMAN SIYAQ NUMBER THREE
1806
+ U+1ED04 | 𞴄 | 4 | OTTOMAN SIYAQ NUMBER FOUR
1807
+ U+1ED05 | 𞴅 | 5 | OTTOMAN SIYAQ NUMBER FIVE
1808
+ U+1ED06 | 𞴆 | 6 | OTTOMAN SIYAQ NUMBER SIX
1809
+ U+1ED07 | 𞴇 | 7 | OTTOMAN SIYAQ NUMBER SEVEN
1810
+ U+1ED08 | 𞴈 | 8 | OTTOMAN SIYAQ NUMBER EIGHT
1811
+ U+1ED09 | 𞴉 | 9 | OTTOMAN SIYAQ NUMBER NINE
1812
+ U+1ED0A | 𞴊 | 10 | OTTOMAN SIYAQ NUMBER TEN
1813
+ U+1ED0B | 𞴋 | 20 | OTTOMAN SIYAQ NUMBER TWENTY
1814
+ U+1ED0C | 𞴌 | 30 | OTTOMAN SIYAQ NUMBER THIRTY
1815
+ U+1ED0D | 𞴍 | 40 | OTTOMAN SIYAQ NUMBER FORTY
1816
+ U+1ED0E | 𞴎 | 50 | OTTOMAN SIYAQ NUMBER FIFTY
1817
+ U+1ED0F | 𞴏 | 60 | OTTOMAN SIYAQ NUMBER SIXTY
1818
+ U+1ED10 | 𞴐 | 70 | OTTOMAN SIYAQ NUMBER SEVENTY
1819
+ U+1ED11 | 𞴑 | 80 | OTTOMAN SIYAQ NUMBER EIGHTY
1820
+ U+1ED12 | 𞴒 | 90 | OTTOMAN SIYAQ NUMBER NINETY
1821
+ U+1ED13 | 𞴓 | 100 | OTTOMAN SIYAQ NUMBER ONE HUNDRED
1822
+ U+1ED14 | 𞴔 | 200 | OTTOMAN SIYAQ NUMBER TWO HUNDRED
1823
+ U+1ED15 | 𞴕 | 300 | OTTOMAN SIYAQ NUMBER THREE HUNDRED
1824
+ U+1ED16 | 𞴖 | 400 | OTTOMAN SIYAQ NUMBER FOUR HUNDRED
1825
+ U+1ED17 | 𞴗 | 500 | OTTOMAN SIYAQ NUMBER FIVE HUNDRED
1826
+ U+1ED18 | 𞴘 | 600 | OTTOMAN SIYAQ NUMBER SIX HUNDRED
1827
+ U+1ED19 | 𞴙 | 700 | OTTOMAN SIYAQ NUMBER SEVEN HUNDRED
1828
+ U+1ED1A | 𞴚 | 800 | OTTOMAN SIYAQ NUMBER EIGHT HUNDRED
1829
+ U+1ED1B | 𞴛 | 900 | OTTOMAN SIYAQ NUMBER NINE HUNDRED
1830
+ U+1ED1C | 𞴜 | 1000 | OTTOMAN SIYAQ NUMBER ONE THOUSAND
1831
+ U+1ED1D | 𞴝 | 2000 | OTTOMAN SIYAQ NUMBER TWO THOUSAND
1832
+ U+1ED1E | 𞴞 | 3000 | OTTOMAN SIYAQ NUMBER THREE THOUSAND
1833
+ U+1ED1F | 𞴟 | 4000 | OTTOMAN SIYAQ NUMBER FOUR THOUSAND
1834
+ U+1ED20 | 𞴠 | 5000 | OTTOMAN SIYAQ NUMBER FIVE THOUSAND
1835
+ U+1ED21 | 𞴡 | 6000 | OTTOMAN SIYAQ NUMBER SIX THOUSAND
1836
+ U+1ED22 | 𞴢 | 7000 | OTTOMAN SIYAQ NUMBER SEVEN THOUSAND
1837
+ U+1ED23 | 𞴣 | 8000 | OTTOMAN SIYAQ NUMBER EIGHT THOUSAND
1838
+ U+1ED24 | 𞴤 | 9000 | OTTOMAN SIYAQ NUMBER NINE THOUSAND
1839
+ U+1ED25 | 𞴥 | 10000 | OTTOMAN SIYAQ NUMBER TEN THOUSAND
1840
+ U+1ED26 | 𞴦 | 20000 | OTTOMAN SIYAQ NUMBER TWENTY THOUSAND
1841
+ U+1ED27 | 𞴧 | 30000 | OTTOMAN SIYAQ NUMBER THIRTY THOUSAND
1842
+ U+1ED28 | 𞴨 | 40000 | OTTOMAN SIYAQ NUMBER FORTY THOUSAND
1843
+ U+1ED29 | 𞴩 | 50000 | OTTOMAN SIYAQ NUMBER FIFTY THOUSAND
1844
+ U+1ED2A | 𞴪 | 60000 | OTTOMAN SIYAQ NUMBER SIXTY THOUSAND
1845
+ U+1ED2B | 𞴫 | 70000 | OTTOMAN SIYAQ NUMBER SEVENTY THOUSAND
1846
+ U+1ED2C | 𞴬 | 80000 | OTTOMAN SIYAQ NUMBER EIGHTY THOUSAND
1847
+ U+1ED2D | 𞴭 | 90000 | OTTOMAN SIYAQ NUMBER NINETY THOUSAND
1848
+ U+1ED2F | 𞴯 | 2 | OTTOMAN SIYAQ ALTERNATE NUMBER TWO
1849
+ U+1ED30 | 𞴰 | 3 | OTTOMAN SIYAQ ALTERNATE NUMBER THREE
1850
+ U+1ED31 | 𞴱 | 4 | OTTOMAN SIYAQ ALTERNATE NUMBER FOUR
1851
+ U+1ED32 | 𞴲 | 5 | OTTOMAN SIYAQ ALTERNATE NUMBER FIVE
1852
+ U+1ED33 | 𞴳 | 6 | OTTOMAN SIYAQ ALTERNATE NUMBER SIX
1853
+ U+1ED34 | 𞴴 | 7 | OTTOMAN SIYAQ ALTERNATE NUMBER SEVEN
1854
+ U+1ED35 | 𞴵 | 8 | OTTOMAN SIYAQ ALTERNATE NUMBER EIGHT
1855
+ U+1ED36 | 𞴶 | 9 | OTTOMAN SIYAQ ALTERNATE NUMBER NINE
1856
+ U+1ED37 | 𞴷 | 10 | OTTOMAN SIYAQ ALTERNATE NUMBER TEN
1857
+ U+1ED38 | 𞴸 | 400 | OTTOMAN SIYAQ ALTERNATE NUMBER FOUR HUNDRED
1858
+ U+1ED39 | 𞴹 | 600 | OTTOMAN SIYAQ ALTERNATE NUMBER SIX HUNDRED
1859
+ U+1ED3A | 𞴺 | 2000 | OTTOMAN SIYAQ ALTERNATE NUMBER TWO THOUSAND
1860
+ U+1ED3B | 𞴻 | 10000 | OTTOMAN SIYAQ ALTERNATE NUMBER TEN THOUSAND
1861
+ U+1ED3C | 𞴼 | (1/2) | OTTOMAN SIYAQ FRACTION ONE HALF
1862
+ U+1ED3D | 𞴽 | (1/6) | OTTOMAN SIYAQ FRACTION ONE SIXTH
1761
1863
  U+1F100 | 🄀 | 0 | DIGIT ZERO FULL STOP
1762
1864
  U+1F101 | 🄁 | 0 | DIGIT ZERO COMMA
1763
1865
  U+1F102 | 🄂 | 1 | DIGIT ONE COMMA
@@ -1788,10 +1890,9 @@ Codepoint | Character | Numeric Value | Name
1788
1890
  U+2626D | 𦉭 | 4 | CJK UNIFIED IDEOGRAPH-2626D
1789
1891
  U+2F890 | 廾 | 9 | CJK COMPATIBILITY IDEOGRAPH-2F890
1790
1892
 
1791
-
1792
1893
  See [unicode-x](https://github.com/janlelis/unicode-x) for more Unicode related micro libraries.
1793
1894
 
1794
1895
  ## MIT License
1795
1896
 
1796
- - Copyright (C) 2016-2018 Jan Lelis <http://janlelis.com>. Released under the MIT license.
1897
+ - Copyright (C) 2016-2019 Jan Lelis <http://janlelis.com>. Released under the MIT license.
1797
1898
  - Unicode data: http://www.unicode.org/copyright.html#Exhibit1
@@ -1,9 +1,10 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Unicode
2
4
  module NumericValue
3
- VERSION = "1.4.0".freeze
4
- UNICODE_VERSION = "11.0.0".freeze
5
- DATA_DIRECTORY = File.expand_path(File.dirname(__FILE__) + '/../../../data/').freeze
6
- INDEX_FILENAME = (DATA_DIRECTORY + '/numeric_value.marshal.gz').freeze
5
+ VERSION = "1.5.0"
6
+ UNICODE_VERSION = "12.0.0"
7
+ DATA_DIRECTORY = File.expand_path(File.dirname(__FILE__) + "/../../../data/").freeze
8
+ INDEX_FILENAME = (DATA_DIRECTORY + "/numeric_value.marshal.gz").freeze
7
9
  end
8
10
  end
9
-
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unicode-numeric_value
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Lelis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-05 00:00:00.000000000 Z
11
+ date: 2019-03-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: "[Unicode 11.0.0] Convert a Unicode character into its numeric value."
13
+ description: "[Unicode 12.0.0] Convert a Unicode character into its numeric value."
14
14
  email:
15
15
  - mail@janlelis.de
16
16
  executables: []
@@ -53,8 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  requirements: []
56
- rubyforge_project:
57
- rubygems_version: 2.7.6
56
+ rubygems_version: 3.0.1
58
57
  signing_key:
59
58
  specification_version: 4
60
59
  summary: Convert a Unicode character into its numeric value.