unicode-display_width 1.6.0 → 1.6.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
  SHA256:
3
- metadata.gz: 10ca31e7ad272c1de317efe8f06084454ab6c6237420a4b53ca7a3d971f97795
4
- data.tar.gz: 36040f82af948c1ff176fd7bbb5fe69573ca9964f2a67b792adea6781d7ae034
3
+ metadata.gz: 6dfb872e7eb5a783e35c208ac71c5f81230018b3f0e75d1eacbc2e1ea823605c
4
+ data.tar.gz: 5036056409aa80e14d838e9a9145b723a5714d27eb02b410b4e2241a2d24be66
5
5
  SHA512:
6
- metadata.gz: e3301a45f349a743af722cdd4c75dbef7d34422b9f20618bc0c573a556866f6186c93673bc1ad55ef9c9be8a50f5f003456e87ddaa5b903f82bafb96f745ea71
7
- data.tar.gz: c1f3255554f9a14f913c8009222ca4064173bbc608b20c4132806b374d2215114d46e0b27e569027f2f9dd66f1c3afba04cb8565f78c2849495eca36ca4e12bb
6
+ metadata.gz: fd88d4cf4bbb4be2fff50f300248adefaf936180fb035499f3c7ada5d6d6e5a936cbc32fe0bda5a9dcf1cdad32456467b75a6d3f25168b367fd655c77bac2a6b
7
+ data.tar.gz: b4297f0a293ef2f3c0e728f8ca07404fd5c40383efd6dfd499a06633be0d66b8ab69d61de658a7d327b47a6e817b613a47fdeb076c3664c3783c47b78d9cdfc2
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.6.1
4
+
5
+ - Fix that ambiguous and overwrite options where ignored for emoji-measuring
6
+
3
7
  ## 1.6.0
4
8
 
5
9
  - Unicode 12.1
@@ -1,6 +1,6 @@
1
1
  The MIT LICENSE
2
2
 
3
- Copyright (c) 2011, 2015-2019 Jan Lelis
3
+ Copyright (c) 2011, 2015-2020 Jan Lelis
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -4,7 +4,7 @@ Determines the monospace display width of a string in Ruby. Implementation based
4
4
 
5
5
  Unicode version: **12.1.0** (May 2019)
6
6
 
7
- Supported Rubies: **2.6**, **2.5**, **2.4**
7
+ Supported Rubies: **2.7**, **2.6**, **2.5**, **2.4**
8
8
 
9
9
  Old Rubies that might still work: **2.3**, **2.2**, **2.1**, **2.0**, **1.9**
10
10
 
@@ -118,7 +118,7 @@ See [unicode-x](https://github.com/janlelis/unicode-x) for more Unicode related
118
118
 
119
119
  ## Copyright & Info
120
120
 
121
- - Copyright (c) 2011, 2015-2019 Jan Lelis, https://janlelis.com, released under the MIT
121
+ - Copyright (c) 2011, 2015-2020 Jan Lelis, https://janlelis.com, released under the MIT
122
122
  license
123
123
  - Early versions based on runpaint's unicode-data interface: Copyright (c) 2009 Run Paint Run Run
124
124
  - Unicode data: https://www.unicode.org/copyright.html#Exhibit1
@@ -19,7 +19,7 @@ module Unicode
19
19
  total_width + (overwrite[codepoint] || width || 1)
20
20
  }
21
21
 
22
- res -= emoji_extra_width_of(string) if options[:emoji]
22
+ res -= emoji_extra_width_of(string, ambiguous, overwrite) if options[:emoji]
23
23
  res < 0 ? 0 : res
24
24
  end
25
25
 
@@ -1,6 +1,6 @@
1
1
  module Unicode
2
2
  module DisplayWidth
3
- VERSION = '1.6.0'
3
+ VERSION = '1.6.1'
4
4
  UNICODE_VERSION = "12.1.0".freeze
5
5
  DATA_DIRECTORY = File.expand_path(File.dirname(__FILE__) + '/../../../data/').freeze
6
6
  INDEX_FILENAME = (DATA_DIRECTORY + '/display_width.marshal.gz').freeze
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unicode-display_width
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.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: 2019-05-08 00:00:00.000000000 Z
11
+ date: 2020-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -40,7 +40,8 @@ dependencies:
40
40
  version: '10.4'
41
41
  description: "[Unicode 12.1.0] Determines the monospace display width of a string
42
42
  using EastAsianWidth.txt, Unicode general category, and other data."
43
- email: mail@janlelis.de
43
+ email:
44
+ - hi@ruby.consulting
44
45
  executables: []
45
46
  extensions: []
46
47
  extra_rdoc_files:
@@ -79,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
80
  - !ruby/object:Gem::Version
80
81
  version: '0'
81
82
  requirements: []
82
- rubygems_version: 3.0.3
83
+ rubygems_version: 3.0.6
83
84
  signing_key:
84
85
  specification_version: 4
85
86
  summary: Determines the monospace display width of a string in Ruby.