Skip to content

Commit

Permalink
Bump gems
Browse files Browse the repository at this point in the history
  • Loading branch information
miharekar committed Feb 7, 2025
1 parent 89c3c5f commit 3958a20
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 29 deletions.
34 changes: 18 additions & 16 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -81,29 +81,31 @@ GEM
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
uri (>= 0.13.1)
actual_db_schema (0.8.1)
actual_db_schema (0.8.2)
activerecord
activesupport
ast
csv
parser
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
amazing_print (1.7.2)
annotaterb (4.13.0)
appsignal (4.3.3)
appsignal (4.4.0)
logger
rack
ast (2.4.2)
aws-eventstream (1.3.0)
aws-partitions (1.1046.0)
aws-sdk-core (3.217.1)
aws-partitions (1.1047.0)
aws-sdk-core (3.218.0)
aws-eventstream (~> 1, >= 1.3.0)
aws-partitions (~> 1, >= 1.992.0)
aws-sigv4 (~> 1.9)
jmespath (~> 1, >= 1.6.1)
aws-sdk-kms (1.97.0)
aws-sdk-kms (1.98.0)
aws-sdk-core (~> 3, >= 3.216.0)
aws-sigv4 (~> 1.5)
aws-sdk-s3 (1.179.0)
aws-sdk-s3 (1.180.0)
aws-sdk-core (~> 3, >= 3.216.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.5)
Expand Down Expand Up @@ -197,7 +199,7 @@ GEM
json (2.9.1)
jwt (2.10.1)
base64
kamal (2.5.0)
kamal (2.5.1)
activesupport (>= 7.0)
base64 (~> 0.2)
bcrypt_pbkdf (~> 1.0)
Expand Down Expand Up @@ -246,7 +248,7 @@ GEM
railties (>= 7.1)
stimulus-rails
turbo-rails
msgpack (1.7.5)
msgpack (1.8.0)
multi_xml (0.7.1)
bigdecimal (~> 3.1)
multipart-post (2.4.1)
Expand Down Expand Up @@ -380,7 +382,7 @@ GEM
ffi (~> 1.0)
rbs (3.8.1)
logger
rdoc (6.11.0)
rdoc (6.12.0)
psych (>= 4.0.0)
regexp_parser (2.10.0)
reline (0.6.0)
Expand Down Expand Up @@ -423,13 +425,13 @@ GEM
rubocop-minitest
rubocop-performance
rubocop-rails
ruby-lsp (0.23.8)
ruby-lsp (0.23.9)
language_server-protocol (~> 3.17.0)
prism (>= 1.2, < 2.0)
rbs (>= 3, < 4)
sorbet-runtime (>= 0.5.10782)
ruby-progressbar (1.13.0)
ruby-vips (2.2.2)
ruby-vips (2.2.3)
ffi (~> 1.12)
logger
securerandom (0.4.1)
Expand All @@ -446,7 +448,7 @@ GEM
activejob (>= 7.2)
activerecord (>= 7.2)
railties (>= 7.2)
solid_cache (1.0.6)
solid_cache (1.0.7)
activejob (>= 7.2)
activerecord (>= 7.2)
railties (>= 7.2)
Expand All @@ -457,7 +459,7 @@ GEM
fugit (~> 1.11.0)
railties (>= 7.1)
thor (~> 1.3.1)
sorbet-runtime (0.5.11805)
sorbet-runtime (0.5.11810)
sqlite3 (2.5.0-aarch64-linux-gnu)
sqlite3 (2.5.0-arm64-darwin)
sqlite3 (2.5.0-x86_64-linux-gnu)
Expand All @@ -474,9 +476,9 @@ GEM
tailwindcss-rails (4.0.0)
railties (>= 7.0.0)
tailwindcss-ruby (~> 4.0)
tailwindcss-ruby (4.0.3-aarch64-linux-gnu)
tailwindcss-ruby (4.0.3-arm64-darwin)
tailwindcss-ruby (4.0.3-x86_64-linux-gnu)
tailwindcss-ruby (4.0.4-aarch64-linux-gnu)
tailwindcss-ruby (4.0.4-arm64-darwin)
tailwindcss-ruby (4.0.4-x86_64-linux-gnu)
temple (0.10.3)
thor (1.3.2)
thruster (0.1.10-aarch64-linux)
Expand Down
11 changes: 0 additions & 11 deletions app/lib/lemon_squeezy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,6 @@
require "uri"

class LemonSqueezy
class SignatureVerificationError < StandardError; end

class APIError < StandardError
attr_reader :code

def initialize(message, code)
@code = code
super(message)
end
end

def create_checkout(data)
Client.new("/checkouts", method: :post, data:).make_request
end
Expand Down
13 changes: 11 additions & 2 deletions app/lib/lemon_squeezy/client.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
class LemonSqueezy
class Client
prepend MemoWise
class SignatureVerificationError < StandardError; end

class APIError < StandardError
attr_reader :code

def initialize(message, code)
@code = code
super(message)
end
end

class Client
BASE_URL = "https://api.lemonsqueezy.com/v1".freeze

attr_reader :api_key, :uri, :request_class, :data, :params
Expand Down

0 comments on commit 3958a20

Please sign in to comment.