unicode-eaw 1.0.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -6
- data/lib/unicode/eaw/version.rb +1 -1
- data/lib/unicode/eaw.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 906e62f838fd4060215a93de79cdca94e7206e5f693a09dd6fd065f18a61f67e
|
4
|
+
data.tar.gz: 9072e0d5ff4447fceefeb5f7ee759ee2da674da79fe1078cb45affcac5b6091a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3283639a14117b307cb7333d3ce01ecaf1a4d4c2a717885d8499a1f3316162d8079cf841932411c92a91ea73cf8879613acb8c4334d6cc8c60ecb03bab58bcd2
|
7
|
+
data.tar.gz: 0a37264438f6c24d5f1f6ed713ed05ed465de6bd170630e81b98dba008e90358cecef475603e5d536d564275e01ece38e020d5c88f17c15d40f86d157a48cad7
|
data/README.md
CHANGED
@@ -26,14 +26,20 @@ Or install it yourself as:
|
|
26
26
|
## Usage
|
27
27
|
|
28
28
|
```ruby
|
29
|
-
Unicode::Eaw.
|
30
|
-
Unicode::Eaw.
|
31
|
-
Unicode::Eaw.
|
32
|
-
Unicode::Eaw.
|
33
|
-
Unicode::Eaw.
|
34
|
-
Unicode::Eaw.
|
29
|
+
Unicode::Eaw.property('A') #=> :Na ## Narrow
|
30
|
+
Unicode::Eaw.property('A') #=> :F ## Fullwidth
|
31
|
+
Unicode::Eaw.property('ア') #=> :W ## Wide
|
32
|
+
Unicode::Eaw.property('ア') #=> :H ## Halfwidth
|
33
|
+
Unicode::Eaw.property('α') #=> :A ## Ambiguous
|
34
|
+
Unicode::Eaw.property('À') #=> :N ## Neutral
|
35
35
|
```
|
36
36
|
|
37
|
+
## Changelog
|
38
|
+
|
39
|
+
### 2.0.0
|
40
|
+
|
41
|
+
Breaking change: rename `Eaw.width` to `Eaw.property`
|
42
|
+
|
37
43
|
## Development
|
38
44
|
|
39
45
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/lib/unicode/eaw/version.rb
CHANGED
data/lib/unicode/eaw.rb
CHANGED
@@ -5,7 +5,7 @@ module Unicode
|
|
5
5
|
module Eaw
|
6
6
|
class Error < StandardError; end
|
7
7
|
|
8
|
-
def
|
8
|
+
def property(ch)
|
9
9
|
cp = ch[0].ord
|
10
10
|
left = 0
|
11
11
|
right = DATA.length - 1
|
@@ -35,6 +35,6 @@ module Unicode
|
|
35
35
|
return :N
|
36
36
|
end
|
37
37
|
|
38
|
-
module_function :
|
38
|
+
module_function :property
|
39
39
|
end
|
40
40
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unicode-eaw
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- takahashim
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|