smallpict 0.0.1 → 0.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 +1 -1
- data/lib/smallpict/errors.rb +1 -1
- data/lib/smallpict/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 565675254d5e7cd7e11bdaced638c047936b1b43a9b91c6e145f09389718d48e
|
|
4
|
+
data.tar.gz: 21c1e92af87a8f68e7707f4c0859891d2599177a4d65758c043c50cdd515e21c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7608905f03dae3e5bc6c18e8caafa8d8e501f817dff05cfdc9a09be3a453de686c692d04d8995aa7d014c7cb8378ef54186e7c0e82e1df9374d99ab508250504
|
|
7
|
+
data.tar.gz: 66bd8b1ae819fd398fff79301686a2b10e47449b9dce602abf14774b12614ca73f8f148ff6019ec3b0a1c05d81e9d26d496b371669d4b7a6e9d494a5be0ded93
|
data/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Official Ruby gem for the [SmallPict Image Optimization API](https://smallpict.app) — high-performance next-gen image transcoding (AVIF, WebP), smart compression, Edge CDN delivery, cache purging, and Rails ActiveStorage support.
|
|
4
4
|
|
|
5
|
-
[](https://rubygems.org/gems/smallpict)
|
|
6
6
|
[](LICENSE)
|
|
7
7
|
[](https://www.ruby-lang.org)
|
|
8
8
|
|
data/lib/smallpict/errors.rb
CHANGED
|
@@ -26,7 +26,7 @@ module SmallPict
|
|
|
26
26
|
def self.sanitize(msg)
|
|
27
27
|
return "" if msg.nil? || msg.empty?
|
|
28
28
|
|
|
29
|
-
sanitized = msg.to_s.gsub(/sp_(
|
|
29
|
+
sanitized = msg.to_s.gsub(/sp_(test|sdk|wp)_[a-zA-Z0-9_-]{10,}/) do |match|
|
|
30
30
|
if match.length > 14
|
|
31
31
|
"#{match[0..9]}...#{match[-4..]}"
|
|
32
32
|
else
|
data/lib/smallpict/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: smallpict
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- SmallPict Engineering
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-09-
|
|
11
|
+
date: 2026-09-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|