unicode-eaw 1.0.0 → 2.0.0

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: becf526d7b10aa2e5346b4df00dd720257219948b34b058bed41a0325904d759
4
- data.tar.gz: f308d3fc0bf777a083a7e327578e198a2edcdaf5207a9f6fd598476ffb94e59d
3
+ metadata.gz: 906e62f838fd4060215a93de79cdca94e7206e5f693a09dd6fd065f18a61f67e
4
+ data.tar.gz: 9072e0d5ff4447fceefeb5f7ee759ee2da674da79fe1078cb45affcac5b6091a
5
5
  SHA512:
6
- metadata.gz: fb09e177d7c9f2afb573e2a15846aace1caaa33da442a40b3f0a35f70c25fd5e802e2de8016df2921242fe21f796db347bf1cb4d7cdcc649c7947b089b21160e
7
- data.tar.gz: '08900013cc1f1df817146c429469485d8561a4cec73d6ca1a21e7461add1f4af92c55ab83d60de3c707b2cdf7b9e7422184a897fc976166d79c442b3e1c435cb'
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.width('A') #=> :Na ## Narrow
30
- Unicode::Eaw.width('A') #=> :F ## Fullwidth
31
- Unicode::Eaw.width('ア') #=> :W ## Wide
32
- Unicode::Eaw.width('ア') #=> :H ## Halfwidth
33
- Unicode::Eaw.width('α') #=> :A ## Ambiguous
34
- Unicode::Eaw.width('À') #=> :N ## Neutral
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.
@@ -1,5 +1,5 @@
1
1
  module Unicode
2
2
  module Eaw
3
- VERSION = "1.0.0"
3
+ VERSION = "2.0.0"
4
4
  end
5
5
  end
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 width(ch)
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 :width
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: 1.0.0
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-04 00:00:00.000000000 Z
11
+ date: 2019-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler