linkhum-url 0.1.2 → 0.1.3

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: 149759d5df9572e66a76c54488440775366fbdce
4
- data.tar.gz: ef7fb7cba5c2c8a5af0787c2ee4d83f90eee3303
3
+ metadata.gz: eb8c7762ad429c30b01e5fef3c0f00bf6fb0d707
4
+ data.tar.gz: e683f0f660e842ddb534b1700dc227ec54285563
5
5
  SHA512:
6
- metadata.gz: 4a5e52c506981a6da241325f8e6c461935e6567d05d9724e3939c411258ff008d09b001b39c076d834925373f346f433fd9480d2fd62683f6af9efb18a65722e
7
- data.tar.gz: f2fbd2619a0e99b92866f703d51ef954e4d4a3952a333d6fcab974e28549dc599eb7092dd933d602959784dc0e45b1bc2b9b6cf05e12d8746ad66364a85b0d2f
6
+ metadata.gz: 7c6376e51aeb013b235862e2b5585d60203e4c72f17a48ac06a8d3a0d1c6bd87c6a87c3a2d4cc66042289a21301c757e31a4075b2133ef2c6e4f606e671dbfd4
7
+ data.tar.gz: 5c5e6600911f6f95554a9768d54819e229fb2c46f6122cc73ba644a5f0b2e14b6d67cfad19b07dcb8b4be2e26d70d110dbe0101f6f1f0e110f3de8bb004d1ae9
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ 0.1.3:
2
+
3
+ * Handle IDNs which begin with ASCII;
4
+
1
5
  0.1.2:
2
6
 
3
7
  * Handle explicit port numbers in URLs;
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2016 Alexey Makhotkin
3
+ Copyright (c) 2016-2017 Alexey Makhotkin
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -42,4 +42,4 @@ embedding etc.
42
42
 
43
43
  `linkhum-url` released under MIT License.
44
44
 
45
- Copyright (C) Alexey Makhotkin, 2016.
45
+ Copyright (C) Alexey Makhotkin, 2016-2017.
data/lib/linkhum/url.rb CHANGED
@@ -10,7 +10,7 @@ module Linkhum
10
10
  human_readable = { scheme: au.scheme, userinfo: au.userinfo }
11
11
  url_encoded = { scheme: au.scheme, userinfo: au.userinfo }
12
12
 
13
- if au.host =~ /\Axn--/
13
+ if au.host =~ /\bxn--/
14
14
  human_readable[:host] = Idna.toUnicode(au.host)
15
15
  else
16
16
  human_readable[:host] = au.host
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linkhum-url
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Makhotkin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-15 00:00:00.000000000 Z
11
+ date: 2017-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable