characteristics 0.3.0 → 0.3.1

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
  SHA1:
3
- metadata.gz: fde954a2c2f2028fb7656a57c18a6556416a2f2f
4
- data.tar.gz: 1856bc93124425900c7785c2107965d6620ef194
3
+ metadata.gz: de978fd64342c2dd2b12cee0a86b0091481435fb
4
+ data.tar.gz: 829b05c91801308ce59a65380d6e0a4894a82ce5
5
5
  SHA512:
6
- metadata.gz: 7d2e5f27972d6db2c3164ca9a915fd59ed69e2b99f4ec4fb4084a73be0fe8283b5c619c8b3bc6f06547a46592c3ac74bbaf07c2dd1c1afa1bfb5eb98aa6f0719
7
- data.tar.gz: 52c27cda5f0e20b7d7b1a7f99c0fc505e2250d6a8263850bb889fb1841ad95984f0f67c3e1d7203c3efac00284fd3d8f92d7fbb36df8881f16586bf4610f9333
6
+ metadata.gz: 7c1c6cc3e2f27120f9d8fed885be4947f50084eb454e318fa449f5e2c4133aa7fe8323c0255cdf7071a9b69e4087d620109f730f02fc3722787d6a6e727c48b8
7
+ data.tar.gz: 3946512a880937497f8173e1b2ea6086480518beddc41d6ec83f2406036055e3098a9d0836bb06006f7657c763a6d9dd3c72a1524c26692d8a8a7746a365dc36
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 0.3.1
4
+
5
+ * Add two Khmer blanks (U+17B4, U+17B5)
6
+ * Add one Kaithi blank (U+110B1)
7
+ * Add one Syriac blank (U+070F)
8
+ * Add one Arabic blank (U+061C)
9
+ * Make general category readable for UnicodeCharacteristics
10
+
3
11
  ### 0.3.0
4
12
 
5
13
  * Add soft-hyphen to single byte encodings
data/Gemfile CHANGED
@@ -3,3 +3,4 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  gem 'minitest'
6
+ gem 'rake'
data/Gemfile.lock ADDED
@@ -0,0 +1,23 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ characteristics (0.3.1)
5
+ unicode-categories (~> 1.1, >= 1.1.2)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ minitest (5.10.1)
11
+ rake (12.0.0)
12
+ unicode-categories (1.1.2)
13
+
14
+ PLATFORMS
15
+ ruby
16
+
17
+ DEPENDENCIES
18
+ characteristics!
19
+ minitest
20
+ rake
21
+
22
+ BUNDLED WITH
23
+ 1.14.5
data/README.md CHANGED
@@ -33,10 +33,14 @@ char_info.format? # => true / false
33
33
 
34
34
  This library knows of four different kinds of encodings:
35
35
 
36
- - **:unicode** Unicode familiy of multibyte encodings (*UTF-X*)
37
- - **:ascii** 7-Bit ASCII (*US-ASCII*)
38
- - **:binary** Arbitrary string (*ASCII-8BIT*)
39
- - **:byte** Known single byte encoding (*ISO-8859-X*, *Windows-125X*, *IBMX*, *CP85X*, *macX*, *TIS-620*, *Windows-874*, **KOI-X**)
36
+ - **:unicode** Unicode familiy of multi-byte encodings
37
+ - *UTF-X*
38
+ - **:byte** Known single-byte encoding
39
+ - *ISO-8859-X*, *Windows-125X*, *IBMX*, *CP85X*, *macX*, *TIS-620*, *Windows-874*, *KOI-X*
40
+ - **:ascii** 7-Bit ASCII
41
+ - *US-ASCII*
42
+ - **:binary** Arbitrary string
43
+ - *ASCII-8BIT*
40
44
 
41
45
  Other encodings are not supported, yet.
42
46
 
@@ -5,9 +5,13 @@ class UnicodeCharacteristics < Characteristics
5
5
  0x0009,
6
6
  0x0020,
7
7
  0x00AD,
8
+ 0x061C,
9
+ 0x070F,
8
10
  0x115F,
9
11
  0x1160,
10
12
  0x1680,
13
+ 0x17B4,
14
+ 0x17B5,
11
15
  0x180E,
12
16
  0x2000,
13
17
  0x2001,
@@ -40,6 +44,7 @@ class UnicodeCharacteristics < Characteristics
40
44
  0x3164,
41
45
  0x2800,
42
46
  0xFEFF,
47
+ 0x110B1,
43
48
  0x1BCA0,
44
49
  0x1BCA1,
45
50
  0x1BCA2,
@@ -64,6 +69,8 @@ class UnicodeCharacteristics < Characteristics
64
69
  0x2029,
65
70
  ].freeze
66
71
 
72
+ attr_reader :category
73
+
67
74
  def initialize(char)
68
75
  super
69
76
 
@@ -1,4 +1,3 @@
1
1
  class Characteristics
2
- VERSION = "0.3.0".freeze
2
+ VERSION = "0.3.1".freeze
3
3
  end
4
-
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: characteristics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Lelis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-14 00:00:00.000000000 Z
11
+ date: 2017-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unicode-categories
@@ -43,6 +43,7 @@ files:
43
43
  - CHANGELOG.md
44
44
  - CODE_OF_CONDUCT.md
45
45
  - Gemfile
46
+ - Gemfile.lock
46
47
  - MIT-LICENSE.txt
47
48
  - README.md
48
49
  - Rakefile