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

Merged
merged 12 commits into from
Jan 6, 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
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
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
## 4.0.0.beta4 - 2025-01-06

[BREAKING] This release introduces our new `clerk-http-client` gem, which is a generated directly from the Clerk API OpenAPI specs. This will help to ensure that the SDK is always in sync with the Clerk API.

- feat: Add support for the `clerk-http-client` gem [https://github.com/clerk/clerk-sdk-ruby/pull/77]
- feat: Add support for Revalidation [https://github.com/clerk/clerk-sdk-ruby/pull/77]
- feat: Add support for Rails API mode [https://github.com/clerk/clerk-sdk-ruby/pull/77]
- feat: Add support for Sinatra [https://github.com/clerk/clerk-sdk-ruby/pull/77]
- feat: Middleware cache defaults to `Rails.cache` -> `ActiveSupport::Cache::MemoryStore` (if available) -> no caching [https://github.com/clerk/clerk-sdk-ruby/pull/77]
- chore: Refactor Clerk helper methods for Rails and Rack [https://github.com/clerk/clerk-sdk-ruby/pull/77]
- fix: Update configuration naming of `api_key` to `secret_key` [https://github.com/clerk/clerk-sdk-ruby/pull/77]
- docs: Add example applications for Rails, Sinatra, and Rack under `apps/` [https://github.com/clerk/clerk-sdk-ruby/pull/77]

## 4.0.0.beta3 - 2024-04-02

- fix: Make publishable_key and secret_key required without making the envs required [https://github.com/clerk/clerk-sdk-ruby/pull/53]
Expand Down
29 changes: 26 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,32 @@

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"
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

gem "minitest", "~> 5.0"
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