Skip to content

Commit

Permalink
feat: v4 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tmilewski committed Dec 16, 2024
1 parent 036432e commit 7a02f07
Show file tree
Hide file tree
Showing 53 changed files with 3,105 additions and 1,038 deletions.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CLERK_JS_URL=https://YOUR_SUBDOMAIN.clerk.accounts.dev/npm/@clerk/clerk-js@latest/dist/clerk.browser.js
CLERK_PUBLISHABLE_KEY=pk_test_******
CLERK_SECRET_KEY=sk_test_******
36 changes: 22 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
name: Ruby

on: [push,pull_request]
on:
push:
branches:
- main
pull_request:

jobs:
build:
test:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
strategy:
matrix:
ruby:
- "3.3.5"
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0.1
- name: Run the default task
run: |
gem install bundler -v 2.2.15
bundle install
bundle exec rake
env:
CLERK_PUBLISHABLE_KEY: 'pk_test_ZXhhbXBsZS5jb20k'
- name: Checkout
uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Unit Tests
run: bundle exec rake
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@
/tmp/

.byebug_history
.ruby-version
*.gem

.idea

# rspec failure tracking
.rspec_status

# Environment variables
.env
.env.*
!.env.example
3 changes: 3 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--format documentation
--color
--require spec_helper
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.3.5
27 changes: 24 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,30 @@

source "https://rubygems.org"

# Specify your gem's dependencies in clerk-sdk-ruby.gemspec
# Specify your gem's dependencies in clerk.gemspec
gemspec

gem "rake", "~> 13.0"
# TODO: Update when published
gem "clerk-sdk-ruby-backend", github: "clerk/clerk-sdk-ruby-backend", branch: "main"

gem "minitest", "~> 5.0"
group :development do
gem "activesupport", "~> 8.0", require: false
gem "dotenv", "~> 3.1", require: false
gem "puma", "~> 6.4", ">= 6.4.3", require: false
gem "rack", "~> 3.1", ">= 3.1.8", require: false
gem "rbs", "~> 3.6"
gem "rake", "~> 13.0"
gem "rackup", "~> 2.2", require: false
gem "sinatra", "~> 4.1", require: false
gem "standard", "~> 1.42"
end

group :development, :test do
gem "rspec", "~> 3.0"
gem "rspec-rails", "~> 7.1"
end

group :test do
gem "simplecov", require: false
gem "climate_control"
end
233 changes: 223 additions & 10 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,38 +1,251 @@
GIT
remote: https://github.com/clerk/clerk-sdk-ruby-backend.git
revision: 94f62fae14bc8ca403486d39df0dac274de773f4
branch: main
specs:
clerk-sdk-ruby-backend (1.0.0)
faraday (>= 1.0.1, < 3.0)
faraday-multipart
marcel

PATH
remote: .
specs:
clerk-sdk-ruby (4.0.0.beta3)
clerk-sdk-ruby (4.0.0.beta4)
concurrent-ruby (~> 1.1)
faraday (>= 1.4.1, < 3.0)
jwt (~> 2.5)

GEM
remote: https://rubygems.org/
specs:
base64 (0.1.1)
actionpack (8.0.1)
actionview (= 8.0.1)
activesupport (= 8.0.1)
nokogiri (>= 1.8.5)
rack (>= 2.2.4)
rack-session (>= 1.0.1)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
useragent (~> 0.16)
actionview (8.0.1)
activesupport (= 8.0.1)
builder (~> 3.1)
erubi (~> 1.11)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
activesupport (8.0.1)
base64
benchmark (>= 0.3)
bigdecimal
concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
logger (>= 1.4.2)
minitest (>= 5.1)
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
uri (>= 0.13.1)
ast (2.4.2)
base64 (0.2.0)
benchmark (0.4.0)
bigdecimal (3.1.8)
builder (3.3.0)
byebug (11.1.3)
concurrent-ruby (1.2.2)
faraday (2.7.11)
climate_control (1.2.0)
concurrent-ruby (1.3.4)
connection_pool (2.4.1)
crass (1.0.6)
date (3.4.1)
diff-lcs (1.5.1)
docile (1.4.1)
dotenv (3.1.6)
drb (2.2.1)
erubi (1.13.0)
faraday (2.12.2)
faraday-net_http (>= 2.0, < 3.5)
json
logger
faraday-multipart (1.0.4)
multipart-post (~> 2)
faraday-net_http (3.4.0)
net-http (>= 0.5.0)
i18n (1.14.6)
concurrent-ruby (~> 1.0)
io-console (0.8.0)
irb (1.14.2)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
json (2.9.0)
jwt (2.9.3)
base64
faraday-net_http (>= 2.0, < 3.1)
ruby2_keywords (>= 0.0.4)
faraday-net_http (3.0.2)
jwt (2.7.1)
minitest (5.20.0)
language_server-protocol (3.17.0.3)
lint_roller (1.1.0)
logger (1.6.3)
loofah (2.23.1)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
marcel (1.0.4)
minitest (5.25.4)
multipart-post (2.4.1)
mustermann (3.0.3)
ruby2_keywords (~> 0.0.1)
net-http (0.6.0)
uri
nio4r (2.7.4)
nokogiri (1.17.2-arm64-darwin)
racc (~> 1.4)
nokogiri (1.17.2-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.17.2-x86_64-linux)
racc (~> 1.4)
parallel (1.26.3)
parser (3.3.6.0)
ast (~> 2.4.1)
racc
psych (5.2.1)
date
stringio
puma (6.5.0)
nio4r (~> 2.0)
racc (1.8.1)
rack (3.1.8)
rack-protection (4.1.1)
base64 (>= 0.1.0)
logger (>= 1.6.0)
rack (>= 3.0.0, < 4)
rack-session (2.0.0)
rack (>= 3.0.0)
rack-test (2.1.0)
rack (>= 1.3)
rackup (2.2.1)
rack (>= 3)
rails-dom-testing (2.2.0)
activesupport (>= 5.0.0)
minitest
nokogiri (>= 1.6)
rails-html-sanitizer (1.6.2)
loofah (~> 2.21)
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
railties (8.0.1)
actionpack (= 8.0.1)
activesupport (= 8.0.1)
irb (~> 1.13)
rackup (>= 1.0.0)
rake (>= 12.2)
thor (~> 1.0, >= 1.2.2)
zeitwerk (~> 2.6)
rainbow (3.1.1)
rake (13.1.0)
rbs (3.7.0)
logger
rdoc (6.9.1)
psych (>= 4.0.0)
regexp_parser (2.9.3)
reline (0.6.0)
io-console (~> 0.5)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.2)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.3)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-rails (7.1.0)
actionpack (>= 7.0)
activesupport (>= 7.0)
railties (>= 7.0)
rspec-core (~> 3.13)
rspec-expectations (~> 3.13)
rspec-mocks (~> 3.13)
rspec-support (~> 3.13)
rspec-support (3.13.2)
rubocop (1.69.2)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 2.9.3, < 3.0)
rubocop-ast (>= 1.36.2, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.37.0)
parser (>= 3.3.1.0)
rubocop-performance (1.23.0)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
securerandom (0.4.1)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.13.1)
simplecov_json_formatter (0.1.4)
sinatra (4.1.1)
logger (>= 1.6.0)
mustermann (~> 3.0)
rack (>= 3.0.0, < 4)
rack-protection (= 4.1.1)
rack-session (>= 2.0.0, < 3)
tilt (~> 2.0)
standard (1.43.0)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.0)
rubocop (~> 1.69.1)
standard-custom (~> 1.0.0)
standard-performance (~> 1.6)
standard-custom (1.0.2)
lint_roller (~> 1.0)
rubocop (~> 1.50)
standard-performance (1.6.0)
lint_roller (~> 1.1)
rubocop-performance (~> 1.23.0)
stringio (3.1.2)
thor (1.3.2)
tilt (2.4.0)
timecop (0.9.8)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (3.1.2)
unicode-emoji (~> 4.0, >= 4.0.4)
unicode-emoji (4.0.4)
uri (1.0.2)
useragent (0.16.11)
zeitwerk (2.7.1)

PLATFORMS
arm64-darwin-22
arm64-darwin-23
universal-darwin-21
x86_64-linux

DEPENDENCIES
activesupport (~> 8.0)
byebug (~> 11.1)
clerk-sdk-ruby!
minitest (~> 5.0)
clerk-sdk-ruby-backend!
climate_control
dotenv (~> 3.1)
puma (~> 6.4, >= 6.4.3)
rack (~> 3.1, >= 3.1.8)
rackup (~> 2.2)
rake (~> 13.0)
rbs (~> 3.6)
rspec (~> 3.0)
rspec-rails (~> 7.1)
simplecov
sinatra (~> 4.1)
standard (~> 1.42)
timecop (~> 0.9.4)

BUNDLED WITH
Expand Down
Loading

0 comments on commit 7a02f07

Please sign in to comment.