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

feat: v4 updates #77

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
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
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 spec
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
35 changes: 32 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,38 @@

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
github "clerk/clerk-sdk-ruby-backend" do
gem "clerk-sdk-ruby-backend"
end

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 "rb-fsevent", "~> 0.11", ">= 0.11.2", platform: [:ruby], require: false
gem "rerun", "~> 0.14", require: false
gem "sinatra", "~> 4.1", require: false
gem "standard", "~> 1.42"
gem "wdm", "~> 0.2", platform: [:mswin, :windows]
end

group :development, :test do
gem "rspec", "~> 3.0"
gem "rspec-rails", "~> 7.1"
gem "guard-rspec", "~> 4.7", require: false
gem "guard-rake", "~> 1.0", require: false
end

group :test do
gem "simplecov", require: false
gem "climate_control", require: false
end
Loading
Loading