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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5c842338446cf451ce1bfc0530f3ef53552208a6
4
- data.tar.gz: b36802a8c3f58444b84254d73dfc5666a0d11b13
3
+ metadata.gz: 100512d83805007da0320d53ae13c9cac4818ade
4
+ data.tar.gz: e1e1922747293928f0f9a135401598fd121a7628
5
5
  SHA512:
6
- metadata.gz: 803792e18a70bf53df2fc8e50b380e02244985e43c632ced88932ab0c14baa914835d514ddfaa03d0a4441275580acaa9562cca2f28a346ab803cdf20f0ff491
7
- data.tar.gz: e169afed23eaabe22730db9416fa10c43a19629ee1374d97c83cf3a49de220b686137da39c2ab69e0f09fa7a6c097be3068d6a9f67ce077ae07d45ed99ae0bc6
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
- list_data = File.read(PublicSuffix::List::DEFAULT_LIST_PATH)
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|
@@ -1,5 +1,5 @@
1
1
  module Twingly
2
2
  class URL
3
- VERSION = "5.0.0"
3
+ VERSION = "5.0.1"
4
4
  end
5
5
  end
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.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-16 00:00:00.000000000 Z
11
+ date: 2016-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable