Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: drop universalid dependency #3654

Merged
merged 2 commits into from
Feb 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ PATH
prop_initializer (>= 0.2.0)
turbo-rails (>= 2.0.0)
turbo_power (>= 0.6.0)
universalid
view_component (>= 3.7.0)
zeitwerk (>= 2.6.12)

Expand Down Expand Up @@ -162,7 +161,6 @@ GEM
bindex (0.8.1)
bootsnap (1.18.4)
msgpack (~> 1.2)
brotli (0.6.0)
builder (3.3.0)
bump (0.10.0)
bundler-integrity (1.0.9)
Expand All @@ -181,9 +179,6 @@ GEM
coercible (1.0.0)
descendants_tracker (~> 0.0.1)
concurrent-ruby (1.3.5)
config (5.5.2)
deep_merge (~> 1.2, >= 1.2.1)
ostruct
connection_pool (2.5.0)
countries (7.1.0)
unaccent (~> 0.3)
Expand All @@ -206,7 +201,6 @@ GEM
debug (1.10.0)
irb (~> 1.10)
reline (>= 0.3.8)
deep_merge (1.2.2)
derailed_benchmarks (2.1.2)
benchmark-ips (~> 2)
dead_end
Expand Down Expand Up @@ -666,12 +660,6 @@ GEM
unicode-display_width (3.1.4)
unicode-emoji (~> 4.0, >= 4.0.4)
unicode-emoji (4.0.4)
universalid (0.1.7)
activesupport (>= 6.1)
brotli (>= 0.4)
config (>= 5.0)
msgpack (>= 1.7)
zeitwerk (>= 2.6)
uri (1.0.2)
useragent (0.16.11)
view_component (3.21.0)
Expand Down
8 changes: 4 additions & 4 deletions app/helpers/avo/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,14 @@ def container_classes
container_is_full_width? ? "" : "2xl:container 2xl:mx-auto"
end

# encode params
# encode & encrypt params
def e(value)
URI::UID.build(value).payload
Avo::Services::EncryptionService.encrypt(message: value, purpose: :return_to, serializer: Marshal)
end

# decode params
# decrypt & decode params
def d(value)
URI::UID.from_payload(value).decode
Avo::Services::EncryptionService.decrypt(message: value, purpose: :return_to, serializer: Marshal)
rescue
value
end
Expand Down
1 change: 0 additions & 1 deletion avo.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,4 @@ Gem::Specification.new do |spec|
spec.add_dependency "docile"
spec.add_dependency "inline_svg"
spec.add_dependency "prop_initializer", ">= 0.2.0"
spec.add_dependency "universalid"
end
Loading