twingly-url 6.0.1 → 6.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +8 -7
- data/lib/twingly/url.rb +4 -0
- data/lib/twingly/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 355ad48737800d572edaef873db9d4961a91b219362aa9ac101f54bbda9f13c7
|
|
4
|
+
data.tar.gz: cfc463a7908cd63d328591d3a827ea90c81b435cad397f244b76370d07348f08
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8dd4e6b50a8af5e58ac4803fc4ff55508beb81e8edce3ea9cb234b3fa346a0b8b3f0dff75aef69cacfd6dd269dae1a97934e05bc969a07e5432076c14c9f8906
|
|
7
|
+
data.tar.gz: b82cd19b2b1512954e0407d2271c0219749c1588443ab95116ec9d23724ea21481c5eb31e37e4a1bd76494ca43c9652d10f2153d099dc12cbaf79396cd008bba
|
data/README.md
CHANGED
|
@@ -174,13 +174,13 @@ Run tests with
|
|
|
174
174
|
|
|
175
175
|
### Profiling
|
|
176
176
|
|
|
177
|
-
|
|
177
|
+
There's some profiling tasks available through Rake
|
|
178
178
|
|
|
179
179
|
cd profile/
|
|
180
|
-
bundle
|
|
181
|
-
bundle exec rake
|
|
180
|
+
bundle # Install dependencies
|
|
181
|
+
bundle exec rake -T # Show available tasks
|
|
182
182
|
|
|
183
|
-
Note that this isn't a benchmark, we're using [ruby-prof] which will slow things down.
|
|
183
|
+
Note that this isn't a benchmark, we're using [ruby-prof] and [memory_profiler] which will slow things down.
|
|
184
184
|
|
|
185
185
|
## Release workflow
|
|
186
186
|
|
|
@@ -190,16 +190,17 @@ Note that this isn't a benchmark, we're using [ruby-prof] which will slow things
|
|
|
190
190
|
|
|
191
191
|
* Bump the version in `lib/twingly/version.rb` in a commit, no need to push (the release task does that).
|
|
192
192
|
|
|
193
|
+
* Ensure you are signed in to RubyGems.org as [twingly][twingly-rubygems] with `gem signin`.
|
|
194
|
+
|
|
193
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.
|
|
194
196
|
|
|
195
197
|
bundle exec rake release
|
|
196
198
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
* 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.
|
|
199
|
+
* 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`. You need to commit and push manually.
|
|
200
200
|
|
|
201
201
|
github_changelog_generator
|
|
202
202
|
|
|
203
203
|
[twingly-rubygems]: https://rubygems.org/profiles/twingly
|
|
204
204
|
[ruby-prof]: http://ruby-prof.rubyforge.org/
|
|
205
|
+
[memory_profiler]: https://github.com/SamSaffron/memory_profiler
|
|
205
206
|
[examples]: examples/url.rb
|
data/lib/twingly/url.rb
CHANGED
|
@@ -22,9 +22,13 @@ module Twingly
|
|
|
22
22
|
Addressable::URI::InvalidURIError,
|
|
23
23
|
PublicSuffix::DomainInvalid,
|
|
24
24
|
].freeze
|
|
25
|
+
CARRIAGE_RETURN = "\u000D"
|
|
26
|
+
LINE_FEED = "\u000A"
|
|
25
27
|
NBSP = "\u00A0"
|
|
26
28
|
SPACE = "\u0020"
|
|
27
29
|
WHITESPACE_CHARS = [
|
|
30
|
+
CARRIAGE_RETURN,
|
|
31
|
+
LINE_FEED,
|
|
28
32
|
NBSP,
|
|
29
33
|
SPACE,
|
|
30
34
|
].join.freeze
|
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: 6.0.
|
|
4
|
+
version: 6.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Twingly AB
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-08-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|
|
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
114
114
|
- !ruby/object:Gem::Version
|
|
115
115
|
version: '0'
|
|
116
116
|
requirements: []
|
|
117
|
-
rubygems_version: 3.0.
|
|
117
|
+
rubygems_version: 3.0.4
|
|
118
118
|
signing_key:
|
|
119
119
|
specification_version: 4
|
|
120
120
|
summary: Ruby library for URL handling
|