workos 5.31.0 → 5.31.1
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/.github/workflows/release.yml +58 -25
- data/.github/workflows/version-bump.yml +80 -0
- data/Gemfile.lock +3 -1
- data/Rakefile +8 -0
- data/lib/workos/organization_membership.rb +3 -1
- data/lib/workos/version.rb +1 -1
- data/workos.gemspec +1 -0
- metadata +18 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a5e37c10b9ae34685d2545d670ca866dbda73c22df75fc1a2e8d79c159d3a2c7
|
|
4
|
+
data.tar.gz: a6f6e36847db549930e7a18ae58e9e95a9c249eb7a93e4466f14109e50e7fddd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 37ce63e77ccf9dd05b0d85837c5e1334ae155cd9beb0500d9b3faa3dd985c9638f54f77ff5cd1f350e3d283db23ac16f7a08bd972f308852a6f5eb4c63ebfa79
|
|
7
|
+
data.tar.gz: 77b058f1b59efe3a390817173d8a4b45557d41f95385196af8c999e4130ddc83a7a306b68714a7c5c2f7cc695db2e21192599792bce156918bce435a0b2d9b7f
|
|
@@ -1,43 +1,76 @@
|
|
|
1
1
|
name: Release
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
release:
|
|
8
|
-
types: [released]
|
|
4
|
+
pull_request:
|
|
5
|
+
types: [closed]
|
|
6
|
+
branches: [main]
|
|
9
7
|
|
|
10
8
|
defaults:
|
|
11
9
|
run:
|
|
12
10
|
shell: bash
|
|
13
11
|
|
|
14
12
|
jobs:
|
|
15
|
-
|
|
16
|
-
name:
|
|
13
|
+
create-release:
|
|
14
|
+
name: Create GitHub Release
|
|
15
|
+
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'version-bump')
|
|
17
16
|
runs-on: ubuntu-latest
|
|
17
|
+
permissions:
|
|
18
|
+
contents: write
|
|
19
|
+
outputs:
|
|
20
|
+
version: ${{ steps.get-version.outputs.version }}
|
|
18
21
|
steps:
|
|
19
|
-
-
|
|
20
|
-
|
|
22
|
+
- name: Generate token
|
|
23
|
+
id: generate-token
|
|
24
|
+
uses: actions/create-github-app-token@v2
|
|
21
25
|
with:
|
|
22
|
-
|
|
23
|
-
|
|
26
|
+
app-id: ${{ vars.SDK_BOT_APP_ID }}
|
|
27
|
+
private-key: ${{ secrets.SDK_BOT_PRIVATE_KEY }}
|
|
24
28
|
|
|
25
|
-
- name:
|
|
26
|
-
|
|
27
|
-
|
|
29
|
+
- name: Checkout
|
|
30
|
+
uses: actions/checkout@v6
|
|
31
|
+
with:
|
|
32
|
+
token: ${{ steps.generate-token.outputs.token }}
|
|
28
33
|
|
|
29
|
-
- name:
|
|
30
|
-
|
|
31
|
-
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
|
|
34
|
+
- name: Get version from version.rb
|
|
35
|
+
id: get-version
|
|
32
36
|
run: |
|
|
33
|
-
|
|
37
|
+
VERSION=$(grep "VERSION = " lib/workos/version.rb | sed "s/.*VERSION = '\(.*\)'/\1/")
|
|
38
|
+
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
|
34
39
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
40
|
+
- name: Create Release
|
|
41
|
+
uses: softprops/action-gh-release@v2
|
|
42
|
+
with:
|
|
43
|
+
tag_name: v${{ steps.get-version.outputs.version }}
|
|
44
|
+
name: v${{ steps.get-version.outputs.version }}
|
|
45
|
+
generate_release_notes: true
|
|
46
|
+
token: ${{ steps.generate-token.outputs.token }}
|
|
39
47
|
|
|
40
|
-
|
|
48
|
+
publish:
|
|
49
|
+
name: Publish to RubyGems
|
|
50
|
+
needs: create-release
|
|
51
|
+
runs-on: ubuntu-latest
|
|
52
|
+
permissions:
|
|
53
|
+
id-token: write
|
|
54
|
+
contents: read
|
|
55
|
+
steps:
|
|
56
|
+
- name: Configure RubyGems credentials
|
|
57
|
+
uses: rubygems/configure-rubygems-credentials@main
|
|
58
|
+
with:
|
|
59
|
+
role-to-assume: rg_oidc_akr_fn8dx45asckvmsnd2kka
|
|
60
|
+
|
|
61
|
+
- name: Checkout
|
|
62
|
+
uses: actions/checkout@v6
|
|
41
63
|
|
|
42
|
-
|
|
43
|
-
|
|
64
|
+
- name: Setup Ruby
|
|
65
|
+
uses: ruby/setup-ruby@v1
|
|
66
|
+
with:
|
|
67
|
+
ruby-version: "3.2"
|
|
68
|
+
bundler-cache: true
|
|
69
|
+
|
|
70
|
+
- name: Run tests
|
|
71
|
+
run: bundle exec rspec
|
|
72
|
+
|
|
73
|
+
- name: Publish to RubyGems
|
|
74
|
+
run: |
|
|
75
|
+
bundle exec rake build
|
|
76
|
+
gem push pkg/workos-${{ needs.create-release.outputs.version }}.gem --host https://rubygems.org
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
name: Version Bump
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
bump_type:
|
|
7
|
+
description: "Version bump type"
|
|
8
|
+
required: true
|
|
9
|
+
type: choice
|
|
10
|
+
options:
|
|
11
|
+
- patch
|
|
12
|
+
- minor
|
|
13
|
+
- major
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
bump-version:
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
permissions:
|
|
19
|
+
contents: write
|
|
20
|
+
pull-requests: write
|
|
21
|
+
steps:
|
|
22
|
+
- name: Generate token
|
|
23
|
+
id: generate-token
|
|
24
|
+
uses: actions/create-github-app-token@v2
|
|
25
|
+
with:
|
|
26
|
+
app-id: ${{ vars.SDK_BOT_APP_ID }}
|
|
27
|
+
private-key: ${{ secrets.SDK_BOT_PRIVATE_KEY }}
|
|
28
|
+
|
|
29
|
+
- name: Checkout
|
|
30
|
+
uses: actions/checkout@v6
|
|
31
|
+
with:
|
|
32
|
+
token: ${{ steps.generate-token.outputs.token }}
|
|
33
|
+
|
|
34
|
+
- name: Configure Git
|
|
35
|
+
run: |
|
|
36
|
+
git config user.name "workos-bot[bot]"
|
|
37
|
+
git config user.email "workos-bot[bot]@users.noreply.github.com"
|
|
38
|
+
|
|
39
|
+
- name: Read current version
|
|
40
|
+
id: current-version
|
|
41
|
+
run: |
|
|
42
|
+
CURRENT_VERSION=$(grep "VERSION = " lib/workos/version.rb | sed "s/.*VERSION = '\(.*\)'/\1/")
|
|
43
|
+
echo "version=$CURRENT_VERSION" >> $GITHUB_OUTPUT
|
|
44
|
+
|
|
45
|
+
- name: Bump version
|
|
46
|
+
id: bump-version
|
|
47
|
+
run: |
|
|
48
|
+
CURRENT_VERSION="${{ steps.current-version.outputs.version }}"
|
|
49
|
+
IFS='.' read -r MAJOR MINOR PATCH <<< "$CURRENT_VERSION"
|
|
50
|
+
|
|
51
|
+
case "${{ github.event.inputs.bump_type }}" in
|
|
52
|
+
major)
|
|
53
|
+
NEW_VERSION="$((MAJOR + 1)).0.0"
|
|
54
|
+
;;
|
|
55
|
+
minor)
|
|
56
|
+
NEW_VERSION="$MAJOR.$((MINOR + 1)).0"
|
|
57
|
+
;;
|
|
58
|
+
patch)
|
|
59
|
+
NEW_VERSION="$MAJOR.$MINOR.$((PATCH + 1))"
|
|
60
|
+
;;
|
|
61
|
+
esac
|
|
62
|
+
|
|
63
|
+
echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
|
|
64
|
+
|
|
65
|
+
- name: Update version in version.rb
|
|
66
|
+
run: |
|
|
67
|
+
sed -i "s/VERSION = '.*'/VERSION = '${{ steps.bump-version.outputs.new_version }}'/" lib/workos/version.rb
|
|
68
|
+
|
|
69
|
+
- name: Create Pull Request
|
|
70
|
+
uses: peter-evans/create-pull-request@v7
|
|
71
|
+
with:
|
|
72
|
+
token: ${{ steps.generate-token.outputs.token }}
|
|
73
|
+
commit-message: "v${{ steps.bump-version.outputs.new_version }}"
|
|
74
|
+
title: "v${{ steps.bump-version.outputs.new_version }}"
|
|
75
|
+
body: |
|
|
76
|
+
Bumps version from ${{ steps.current-version.outputs.version }} to ${{ steps.bump-version.outputs.new_version }}.
|
|
77
|
+
|
|
78
|
+
This PR was automatically created by the version-bump workflow.
|
|
79
|
+
branch: version-bump-${{ steps.bump-version.outputs.new_version }}
|
|
80
|
+
labels: version-bump
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
workos (5.31.
|
|
4
|
+
workos (5.31.1)
|
|
5
5
|
encryptor (~> 3.0)
|
|
6
6
|
jwt (~> 2.8)
|
|
7
7
|
|
|
@@ -30,6 +30,7 @@ GEM
|
|
|
30
30
|
public_suffix (5.0.4)
|
|
31
31
|
racc (1.8.1)
|
|
32
32
|
rainbow (3.1.1)
|
|
33
|
+
rake (13.3.1)
|
|
33
34
|
regexp_parser (2.10.0)
|
|
34
35
|
rexml (3.4.2)
|
|
35
36
|
rspec (3.9.0)
|
|
@@ -73,6 +74,7 @@ PLATFORMS
|
|
|
73
74
|
|
|
74
75
|
DEPENDENCIES
|
|
75
76
|
bundler (>= 2.0.1)
|
|
77
|
+
rake
|
|
76
78
|
rspec (~> 3.9.0)
|
|
77
79
|
rubocop (~> 1.71)
|
|
78
80
|
vcr (~> 6.0)
|
data/Rakefile
ADDED
|
@@ -7,7 +7,7 @@ module WorkOS
|
|
|
7
7
|
class OrganizationMembership
|
|
8
8
|
include HashProvider
|
|
9
9
|
|
|
10
|
-
attr_accessor :id, :user_id, :organization_id, :status, :role, :roles, :created_at, :updated_at
|
|
10
|
+
attr_accessor :id, :user_id, :organization_id, :status, :role, :roles, :custom_attributes, :created_at, :updated_at
|
|
11
11
|
|
|
12
12
|
def initialize(json)
|
|
13
13
|
hash = JSON.parse(json, symbolize_names: true)
|
|
@@ -18,6 +18,7 @@ module WorkOS
|
|
|
18
18
|
@status = hash[:status]
|
|
19
19
|
@role = hash[:role]
|
|
20
20
|
@roles = hash[:roles]
|
|
21
|
+
@custom_attributes = hash[:custom_attributes]
|
|
21
22
|
@created_at = hash[:created_at]
|
|
22
23
|
@updated_at = hash[:updated_at]
|
|
23
24
|
end
|
|
@@ -30,6 +31,7 @@ module WorkOS
|
|
|
30
31
|
status: status,
|
|
31
32
|
role: role,
|
|
32
33
|
roles: roles,
|
|
34
|
+
custom_attributes: custom_attributes,
|
|
33
35
|
created_at: created_at,
|
|
34
36
|
updated_at: updated_at,
|
|
35
37
|
}
|
data/lib/workos/version.rb
CHANGED
data/workos.gemspec
CHANGED
|
@@ -25,6 +25,7 @@ Gem::Specification.new do |spec|
|
|
|
25
25
|
spec.add_dependency 'jwt', '~> 2.8'
|
|
26
26
|
|
|
27
27
|
spec.add_development_dependency 'bundler', '>= 2.0.1'
|
|
28
|
+
spec.add_development_dependency 'rake'
|
|
28
29
|
spec.add_development_dependency 'rspec', '~> 3.9.0'
|
|
29
30
|
spec.add_development_dependency 'rubocop', '~> 1.71'
|
|
30
31
|
spec.add_development_dependency 'vcr', '~> 6.0'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: workos
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.31.
|
|
4
|
+
version: 5.31.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- WorkOS
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-02-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: encryptor
|
|
@@ -52,6 +52,20 @@ dependencies:
|
|
|
52
52
|
- - ">="
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: 2.0.1
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: rake
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - ">="
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '0'
|
|
62
|
+
type: :development
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - ">="
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '0'
|
|
55
69
|
- !ruby/object:Gem::Dependency
|
|
56
70
|
name: rspec
|
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -120,6 +134,7 @@ files:
|
|
|
120
134
|
- ".github/renovate.json"
|
|
121
135
|
- ".github/workflows/ci.yml"
|
|
122
136
|
- ".github/workflows/release.yml"
|
|
137
|
+
- ".github/workflows/version-bump.yml"
|
|
123
138
|
- ".gitignore"
|
|
124
139
|
- ".rspec"
|
|
125
140
|
- ".rubocop.yml"
|
|
@@ -129,6 +144,7 @@ files:
|
|
|
129
144
|
- Gemfile.lock
|
|
130
145
|
- LICENSE
|
|
131
146
|
- README.md
|
|
147
|
+
- Rakefile
|
|
132
148
|
- bin/build
|
|
133
149
|
- bin/console
|
|
134
150
|
- bin/publish
|