pinterest-url-normalizer 0.1.0 → 0.1.1
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 +6 -1
- data/lib/pinterest_url_normalizer/version.rb +1 -1
- data/lib/pinterest_url_normalizer.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: 2d367abfdd1910312dc30c40e28a7bdc077d48d0ffe562c31a9eaa715639401f
|
|
4
|
+
data.tar.gz: 29ac6c86f29e88f13d9be6df45d54a4aa77ada518c649cf5f2914158ac6ec52a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dc82bdd892f5b3423c5d7c4f0de95adb3a5dc28b79fe83355bce9b9cc26fb6509cac4615d81f69d956dbec421cc5259860ac093adb4ea4be7fc162570d6a0518
|
|
7
|
+
data.tar.gz: c97e31f79b2ceb56e380eeff2d19a5cd63de7702dd7ac925e3f194eeb40f418a5a98fd0acfa27a0fe1fb77388711c3bc0a6174561b9400ce7c69bb170264c27a
|
data/README.md
CHANGED
|
@@ -2,10 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Parse, classify, and normalize Pinterest URLs in Ruby without making network requests.
|
|
4
4
|
|
|
5
|
-
[
|
|
5
|
+
[RubyGems](https://rubygems.org/gems/pinterest-url-normalizer) · [RubyDoc.info](https://www.rubydoc.info/gems/pinterest-url-normalizer) · [npm](https://www.npmjs.com/package/pinterest-url-normalizer) · [PyPI](https://pypi.org/project/pinterest-url-normalizer/) · [crates.io](https://crates.io/crates/pinterest-url-normalizer) · [Packagist](https://packagist.org/packages/savepinner/pinterest-url-normalizer) · [Go](https://pkg.go.dev/github.com/jiankn/pinterest-url-normalizer-go)
|
|
6
6
|
|
|
7
7
|
The gem recognizes Pin, `pin.it`, profile, board, and Ideas URLs across Pinterest country domains. It uses an exact host allow list, rejects HTTP URLs and lookalike domains, and removes query parameters and fragments from normalized output.
|
|
8
8
|
|
|
9
|
+
The gem deliberately ends at URL normalization. A Ruby CLI can print or open
|
|
10
|
+
the normalized Pin URL in the
|
|
11
|
+
[Pinterest image downloader](https://savepinner.com/) while media retrieval
|
|
12
|
+
stays outside the gem.
|
|
13
|
+
|
|
9
14
|
## Install
|
|
10
15
|
|
|
11
16
|
```bash
|
|
@@ -9,7 +9,7 @@ require_relative "pinterest_url_normalizer/version"
|
|
|
9
9
|
# Full Pinterest URLs are normalized to www.pinterest.com. Short pin.it links
|
|
10
10
|
# retain their host because resolving them requires a network request.
|
|
11
11
|
#
|
|
12
|
-
#
|
|
12
|
+
# Pinterest image downloader: https://savepinner.com/
|
|
13
13
|
module PinterestURLNormalizer
|
|
14
14
|
CANONICAL_HOST = "www.pinterest.com"
|
|
15
15
|
SHORT_HOST = "pin.it"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pinterest-url-normalizer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- SavePinner
|
|
@@ -52,14 +52,14 @@ files:
|
|
|
52
52
|
- lib/pinterest_url_normalizer.rb
|
|
53
53
|
- lib/pinterest_url_normalizer/cli.rb
|
|
54
54
|
- lib/pinterest_url_normalizer/version.rb
|
|
55
|
-
homepage: https://savepinner.com/
|
|
55
|
+
homepage: https://savepinner.com/
|
|
56
56
|
licenses:
|
|
57
57
|
- MIT
|
|
58
58
|
metadata:
|
|
59
59
|
allowed_push_host: https://rubygems.org
|
|
60
60
|
source_code_uri: https://github.com/jiankn/pinterest-url-normalizer-ruby
|
|
61
61
|
documentation_uri: https://www.rubydoc.info/gems/pinterest-url-normalizer
|
|
62
|
-
homepage_uri: https://savepinner.com/
|
|
62
|
+
homepage_uri: https://savepinner.com/
|
|
63
63
|
rdoc_options: []
|
|
64
64
|
require_paths:
|
|
65
65
|
- lib
|