twingly-url 5.0.0 → 5.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/twingly/public_suffix_list.rb +4 -2
- data/lib/twingly/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 100512d83805007da0320d53ae13c9cac4818ade
|
4
|
+
data.tar.gz: e1e1922747293928f0f9a135401598fd121a7628
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83d0965890d3f3b8a49d9db8e391542263b834fd4bb54fa2a1824604ac7199737a553e8b0bb6185cf7bd47204836feb24beb2888253cf6afc528c10479a3e30a
|
7
|
+
data.tar.gz: cbf25223758ea0055efdd386163dbca8543b21935ef04235b5735ffaa3e6256f6f0d2afcb752ba88b300ad4734f5c1c227b45355dcd62e7caf6f976d3a8b336b
|
data/README.md
CHANGED
@@ -192,12 +192,12 @@ Note that this isn't a benchmark, we're using [ruby-prof] which will slow things
|
|
192
192
|
|
193
193
|
* Bump the version in `lib/twingly/version.rb` in a commit, no need to push (the release task does that).
|
194
194
|
|
195
|
-
* Make sure you are logged in as [twingly][twingly-rubygems] at RubyGems.org.
|
196
|
-
|
197
195
|
* Build and [publish](http://guides.rubygems.org/publishing/) the gem. This will create the proper tag in git, push the commit and tag and upload to RubyGems.
|
198
196
|
|
199
197
|
bundle exec rake release
|
200
198
|
|
199
|
+
* If you are not logged in as [twingly][twingly-rubygems] with ruby gems, the rake task will fail and tell you to set credentials via `gem push`, do that and run the `release` task again. It will be okay.
|
200
|
+
|
201
201
|
* Update the changelog with [GitHub Changelog Generator](https://github.com/skywinder/github-changelog-generator/) (`gem install github_changelog_generator` if you don't have it, set `CHANGELOG_GITHUB_TOKEN` to a personal access token to avoid rate limiting by GitHub). This command will update `CHANGELOG.md`, commit and push manually.
|
202
202
|
|
203
203
|
github_changelog_generator
|
@@ -1,3 +1,4 @@
|
|
1
|
+
require "addressable/idna"
|
1
2
|
require "public_suffix"
|
2
3
|
|
3
4
|
module Twingly
|
@@ -7,8 +8,9 @@ module Twingly
|
|
7
8
|
private_constant :ACE_PREFIX
|
8
9
|
|
9
10
|
# Extend the PSL with ASCII form of all internationalized domain names
|
10
|
-
def self.with_punycoded_names
|
11
|
-
|
11
|
+
def self.with_punycoded_names(encoding: Encoding::UTF_8)
|
12
|
+
list_path = PublicSuffix::List::DEFAULT_LIST_PATH
|
13
|
+
list_data = File.read(list_path, encoding: encoding)
|
12
14
|
list = PublicSuffix::List.parse(list_data, private_domains: false)
|
13
15
|
|
14
16
|
punycoded_names(list).each do |punycoded_name|
|
data/lib/twingly/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twingly-url
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Twingly AB
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|