uri-idna 0.2.0 → 0.2.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: 6682f4500b6119fcd467ff88793d5a2d4522308ea4884cc6f69f04cb073d1089
4
- data.tar.gz: 1e63bd541e8020f789916a82950a81d2f67b8d29a882f45d7c4a369a10c15de1
3
+ metadata.gz: 90b0f85ec0c8f446c31e27d21bbec12432dd8420dad9cc832b49db7841b524fe
4
+ data.tar.gz: d82a9c301f37b391852206bc5fe82b01f2fc71750743a5e5309bdf9dd5b48f49
5
5
  SHA512:
6
- metadata.gz: 86032ea0573558c6386154a29265dddc81e8914a9720643bceab6f80de49d9f11ff2fc8bf5bfa789c84a515050457e9493937040541831a8d14394f49e15549d
7
- data.tar.gz: 493f974a03ccf2abc69e1090f2a61d029a5f2e47a3725f87bdc3bf6ced69a7d9e052a424ddc95268c0b26a4354c7b31d72268c9a404d4b16180e77db8c5ff009
6
+ metadata.gz: e6d00f5c92cc2413b6fc7c4d36e1ee94fd6ede4e4dba1e01d934313811ac5483226637d0c70d200a037448fc84b8445c6ecdd599000ff56647f7077c0cc0ab2e
7
+ data.tar.gz: 7281c010c9134b72d4f6d63014143dce1f8864ff3beb1fa53ab6e2103acc44a46ca4ba5677679435a16b18b680ccdbf9a4fe1bb06f313f12bcfcc677dbfbaec0
data/CHANGELOG.md CHANGED
@@ -7,21 +7,27 @@ and this project adheres to [Semantic Versioning].
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.2.1] - 2023-11-15
11
+
12
+ ### Changed
13
+
14
+ - Various performance and memory optimizations. ([@skryukov])
15
+
10
16
  ## [0.2.0] - 2023-11-14
11
17
 
12
18
  ### Added
13
19
 
14
- - WHATWG IDNA functions
20
+ - WHATWG IDNA functions. ([@skryukov])
15
21
 
16
22
  ### Changed
17
23
 
18
- - **BREAKING!** Names of options updated to match UTS46 flags
19
- - Unicode version updated to 15.1
20
- - UTS46 functions now support Revision 31
24
+ - **BREAKING!** Names of options updated to match UTS46 flags. ([@skryukov])
25
+ - Unicode version updated to 15.1. ([@skryukov])
26
+ - UTS46 functions now support Revision 31. ([@skryukov])
21
27
 
22
28
  ### Fixed
23
29
 
24
- - IDNA2008 functions now support not only labels, but full domains
30
+ - IDNA2008 functions now support not only labels, but full domains. ([@skryukov])
25
31
 
26
32
  ## [0.1.0] - 2023-08-05
27
33
 
data/README.md CHANGED
@@ -256,7 +256,7 @@ To specify Unicode version, use `VERSION` environment variable, e.g. `VERSION=15
256
256
 
257
257
  By default, used Unicode version is the one used by the Ruby version (`RbConfig::CONFIG["UNICODE_VERSION"]`).
258
258
 
259
- To set directory for generated files, use `DATA_DIR` environment variable, e.g. `DATA_DIR=lib/uri/idna/data bundle exec rake idna:generate`.
259
+ To set directory for generated files, use `DEST_DIR` environment variable, e.g. `DEST_DIR=lib/uri/idna/data bundle exec rake idna:generate`.
260
260
 
261
261
  Unicode data cached in the `tmp` directory by default, to change it, use `CACHE_DIR` environment variable, e.g. `CACHE_DIR=~/.cache/unicode_data bundle exec rake idna:generate`.
262
262
 
@@ -60,6 +60,12 @@ module URI
60
60
 
61
61
  [labels, trailing_dot]
62
62
  end
63
+
64
+ def check_bidi?
65
+ return @check_bidi if instance_variable_defined?(:@check_bidi)
66
+
67
+ @check_bidi = options.check_bidi? && Validation::Bidi.check?(domain_name)
68
+ end
63
69
  end
64
70
  end
65
71
  end