clerk-sdk-ruby 4.0.0.beta5 → 4.0.0.beta6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +9 -0
- data/apps/rails-api/Gemfile.lock +3 -3
- data/apps/rails-full/Gemfile.lock +3 -3
- data/bin/release +18 -0
- data/lib/clerk/rails.rb +1 -1
- data/lib/clerk/railtie.rb +3 -1
- data/lib/clerk/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aaed5e67ede82680d513f67c5e110f262ecb62af8c9a3cb4cacf4dfcf8a8079a
|
4
|
+
data.tar.gz: a8cf3491f982a7d00adaeeb834dffd7d2ab2f7f202ac20327e4b2286a1f38338
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e346a8cb1cacd47bbbf74a1b6ec2c6fd09fecbc64d6a3d61d462390281eea7d05246303d1d63abe924fb3ea1041602f2e1261968606a85d867339c3ae1cc80c6
|
7
|
+
data.tar.gz: 3fd4a43f852c79ac82ece2a6fc8c110d0b77258b483f36082e546a1ebdf85ca9bab25a68abce2adf7ff0a93ad42884376676088e53d2a420295d50e606af71b0
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -166,10 +166,19 @@ end
|
|
166
166
|
|
167
167
|
This gives your controller and views access to the following methods and more:
|
168
168
|
|
169
|
+
- `clerk.sdk.*`
|
169
170
|
- `clerk.session`
|
170
171
|
- `clerk.user`
|
171
172
|
- `clerk.user?`
|
172
173
|
|
174
|
+
### Skipping the Railtie
|
175
|
+
|
176
|
+
There are cases where you might not want to use the Railtie, for example, only using the SDK in a Rails application. To accomplish this, you can set the `CLERK_SKIP_RAILTIE` environment variable to `true`.
|
177
|
+
|
178
|
+
This will prevent the Railtie from being loaded and the Rack middleware from being added to the middleware stack.
|
179
|
+
|
180
|
+
You can still configure the SDK as normal, but you will need to call the SDK using `Clerk::SDK.new` instead of the `clerk.sdk` helper.
|
181
|
+
|
173
182
|
## Sinatra integration
|
174
183
|
|
175
184
|
The SDK enables the use of Extensions to add Clerk support to your Sinatra application.
|
data/apps/rails-api/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../..
|
3
3
|
specs:
|
4
|
-
clerk-sdk-ruby (4.0.0.
|
5
|
-
clerk-http-client (
|
4
|
+
clerk-sdk-ruby (4.0.0.beta6)
|
5
|
+
clerk-http-client (= 2.0.0.beta5)
|
6
6
|
concurrent-ruby (~> 1.1)
|
7
7
|
faraday (>= 1.4.1, < 3.0)
|
8
8
|
jwt (~> 2.5)
|
@@ -93,7 +93,7 @@ GEM
|
|
93
93
|
brakeman (7.0.0)
|
94
94
|
racc
|
95
95
|
builder (3.3.0)
|
96
|
-
clerk-http-client (0.0.
|
96
|
+
clerk-http-client (2.0.0.beta5)
|
97
97
|
faraday (>= 1.0.1, < 3.0)
|
98
98
|
faraday-multipart
|
99
99
|
marcel
|
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../..
|
3
3
|
specs:
|
4
|
-
clerk-sdk-ruby (4.0.0.
|
5
|
-
clerk-http-client (
|
4
|
+
clerk-sdk-ruby (4.0.0.beta6)
|
5
|
+
clerk-http-client (= 2.0.0.beta5)
|
6
6
|
concurrent-ruby (~> 1.1)
|
7
7
|
faraday (>= 1.4.1, < 3.0)
|
8
8
|
jwt (~> 2.5)
|
@@ -105,7 +105,7 @@ GEM
|
|
105
105
|
rack-test (>= 0.6.3)
|
106
106
|
regexp_parser (>= 1.5, < 3.0)
|
107
107
|
xpath (~> 3.2)
|
108
|
-
clerk-http-client (0.0.
|
108
|
+
clerk-http-client (2.0.0.beta5)
|
109
109
|
faraday (>= 1.0.1, < 3.0)
|
110
110
|
faraday-multipart
|
111
111
|
marcel
|
data/bin/release
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
set -eo pipefail
|
3
|
+
IFS=$'\n\t'
|
4
|
+
|
5
|
+
# Get the version number from the generated version file
|
6
|
+
VERSION=$(ruby -e "require './lib/clerk/version.rb'; puts Clerk::VERSION")
|
7
|
+
|
8
|
+
echo "Building and releasing version ${VERSION}"
|
9
|
+
|
10
|
+
# Remove any existing gem files
|
11
|
+
rm clerk-sdk-ruby-*.gem || true
|
12
|
+
|
13
|
+
# Build the gem
|
14
|
+
gem build clerk-sdk-ruby.gemspec
|
15
|
+
|
16
|
+
# Publish to RubyGems
|
17
|
+
gem push "clerk-sdk-ruby-${VERSION}.gem"
|
18
|
+
|
data/lib/clerk/rails.rb
CHANGED
data/lib/clerk/railtie.rb
CHANGED
@@ -6,7 +6,9 @@ module Clerk
|
|
6
6
|
module Rails
|
7
7
|
class Railtie < ::Rails::Railtie
|
8
8
|
initializer "clerk.configure_rails_initialization" do |app|
|
9
|
-
|
9
|
+
unless ENV["CLERK_SKIP_RAILTIE"]
|
10
|
+
app.middleware.use Clerk::Rack::Middleware
|
11
|
+
end
|
10
12
|
end
|
11
13
|
end
|
12
14
|
end
|
data/lib/clerk/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clerk-sdk-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0.
|
4
|
+
version: 4.0.0.beta6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Clerk
|
@@ -277,6 +277,7 @@ files:
|
|
277
277
|
- apps/sinatra/config.ru
|
278
278
|
- apps/sinatra/views/index.erb
|
279
279
|
- bin/console
|
280
|
+
- bin/release
|
280
281
|
- bin/setup
|
281
282
|
- clerk-sdk-ruby.gemspec
|
282
283
|
- docs/clerk-logo-dark.png
|