fusionauth_client 1.50.0 → 1.52.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a22a0a8b25efafb5686e379bb4449e98648ef99ae3de8fc8de0f6747db206cba
4
- data.tar.gz: 72fa24a5ebc673f58141c71e1769aa2eefd72d07491754d01f1669630a9978c6
3
+ metadata.gz: 3bad49c0458dd31ccf7f81b5d1cd9f1e4230b8378c3ed0b2b1b0f0cf006b028e
4
+ data.tar.gz: 82699e96462bc78944ae48137c7b4bc80763303082e94ad0f58c26deaa8fc843
5
5
  SHA512:
6
- metadata.gz: d6133b62a0e93ff2b0b054639af56e8da4e3de5a718c9cd2df4ce163a3be0d32daaec61de53fb593a93652636eb106bad730d4101eb04d30d68414450a34c277
7
- data.tar.gz: e9162071e4335fbdc8d4b99c70039609788d50b04c2e81e14907890fb4630519813d1ef8e20917b66584389903f7d7fb3ef9b6bed26f48b393d0512cc9964748
6
+ metadata.gz: e692e0e35951c4268f6f19d930b46a1c5a1f4e2371588a003f4dd1b8d56679ef9f48ec3b931408cb819464c9c612943d8cc319238da53af3229f19d359a6ada4
7
+ data.tar.gz: 0fa182e50cf223190d0ec881ea4ed0bf1dff17237ff07c6a13e536c712effb4b9cf332f10fd822670f1008eef7a9c73789cfdf40254f30a93acaff406e915f90
@@ -0,0 +1,4 @@
1
+ # This is a managed file. Manual changes will be overwritten.
2
+ # https://github.com/FusionAuth/fusionauth-public-repos/
3
+
4
+ .github/ @fusionauth/owners @fusionauth/platform
@@ -0,0 +1,87 @@
1
+ # Run locally with act:
2
+ #
3
+ # act pull_request [--input command=[command]] \
4
+ # --platform fusionauth-standard=[ecr-repo-name]/fusionauth-standard:latest] \
5
+ # --workflows ./.github/workflows/deploy.yaml \
6
+ # --env-file <(aws configure export-credentials --profile [aws-profile] --format env)
7
+
8
+ name: Deploy
9
+
10
+ on:
11
+ push:
12
+ branches:
13
+ - main
14
+ pull_request:
15
+ branches:
16
+ - main
17
+ workflow_dispatch:
18
+ inputs:
19
+ command:
20
+ type: choice
21
+ options:
22
+ - build # build only
23
+ - publish # build & publish to rubygems
24
+ - release # build & release to svn
25
+ default: build
26
+
27
+ permissions:
28
+ contents: read
29
+
30
+ jobs:
31
+ build:
32
+ if: |
33
+ github.event_name == 'pull_request' ||
34
+ github.event_name == 'push' ||
35
+ github.event_name == 'workflow_dispatch' && inputs.command == 'build'
36
+ runs-on: fusionauth-standard
37
+ steps:
38
+ - name: checkout
39
+ uses: actions/checkout@v4
40
+
41
+ - name: compile
42
+ shell: bash -l {0}
43
+ run: sb compile
44
+
45
+ deploy:
46
+ if: |
47
+ github.event_name == 'workflow_dispatch' &&
48
+ (inputs.command == 'release' || inputs.command == 'publish')
49
+ runs-on: fusionauth-standard
50
+ steps:
51
+ - name: checkout
52
+ uses: actions/checkout@v4
53
+
54
+ - name: set aws credentials
55
+ uses: aws-actions/configure-aws-credentials@v4
56
+ with:
57
+ role-to-assume: arn:aws:iam::752443094709:role/github-actions
58
+ role-session-name: aws-auth-action
59
+ aws-region: us-west-2
60
+
61
+ - name: get secret
62
+ run: |
63
+ while IFS=$'\t' read -r key value; do
64
+ echo "::add-mask::${value}"
65
+ echo "${key}=${value}" >> $GITHUB_ENV
66
+ done < <(aws secretsmanager get-secret-value \
67
+ --region us-west-2 \
68
+ --secret-id platform/rubygems \
69
+ --query SecretString \
70
+ --output text | \
71
+ jq -r 'to_entries[] | [.key, .value] | @tsv')
72
+
73
+ - name: set gem credentials
74
+ run: |
75
+ mkdir -p ~/.gem
76
+ echo ":rubygems_api_key: ${{ env.API_KEY }}" > ~/.gem/credentials
77
+ chmod 600 ~/.gem/credentials
78
+
79
+ - name: release to svn
80
+ if: inputs.command == 'release'
81
+ shell: bash -l {0}
82
+ run: sb release
83
+
84
+ - name: publish to rubygems
85
+ if: inputs.command == 'publish'
86
+ shell: bash -l {0}
87
+ run: sb publish
@@ -2,7 +2,8 @@ name: Generate Docs
2
2
 
3
3
  on:
4
4
  push:
5
- branches: [ "master" ]
5
+ branches:
6
+ - main
6
7
 
7
8
  permissions:
8
9
  contents: write
@@ -11,21 +12,20 @@ jobs:
11
12
  build:
12
13
  runs-on: ubuntu-latest
13
14
  steps:
14
- - uses: actions/checkout@v4
15
+ - uses: actions/checkout@v4
15
16
 
16
- - name: Set up Ruby
17
- uses: ruby/setup-ruby@v1
18
- with:
19
- bundler-cache: true
17
+ - name: Set up Ruby
18
+ uses: ruby/setup-ruby@v1
19
+ with:
20
+ bundler-cache: true
20
21
 
21
- - name: Generate docs
22
- run: |
23
- rm -f doc/index.db
24
- rdoc --format=markdown lib/fusionauth/fusionauth_client.rb
25
-
26
- - name: Commit
27
- uses: EndBug/add-and-commit@v9
28
- with:
29
- add: 'doc/'
30
- message: ':memo: Updating docs'
22
+ - name: Generate docs
23
+ run: |
24
+ rm -f doc/index.db
25
+ rdoc --format=markdown lib/fusionauth/fusionauth_client.rb
31
26
 
27
+ - name: Commit
28
+ uses: EndBug/add-and-commit@v9
29
+ with:
30
+ add: 'doc/'
31
+ message: ':memo: Updating docs'
@@ -2,9 +2,11 @@ name: Test Library
2
2
 
3
3
  on:
4
4
  push:
5
- branches: [ "master" ]
5
+ branches:
6
+ - main
6
7
  pull_request:
7
- branches: [ "master" ]
8
+ branches:
9
+ - main
8
10
 
9
11
  permissions:
10
12
  contents: read
@@ -13,19 +15,19 @@ jobs:
13
15
  build:
14
16
  runs-on: ubuntu-latest
15
17
  steps:
16
- - uses: actions/checkout@v4
18
+ - uses: actions/checkout@v4
17
19
 
18
- - name: Set up FusionAuth
19
- working-directory: .github/fusionauth
20
- run: docker compose up -d
20
+ - name: Set up FusionAuth
21
+ working-directory: .github/fusionauth
22
+ run: docker compose up -d
21
23
 
22
- - name: Set up Ruby
23
- uses: ruby/setup-ruby@v1
24
- with:
25
- bundler-cache: true
24
+ - name: Set up Ruby
25
+ uses: ruby/setup-ruby@v1
26
+ with:
27
+ bundler-cache: true
26
28
 
27
- - name: Waiting for FusionAuth App
28
- run: timeout 30 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:9011)" != "200" ]]; do sleep 5; done' || false
29
+ - name: Waiting for FusionAuth App
30
+ run: timeout 30 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:9011)" != "200" ]]; do sleep 5; done' || false
29
31
 
30
- - name: Run test suite
31
- run: rake test
32
+ - name: Run test suite
33
+ run: rake test
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fusionauth_client (1.50.0)
4
+ fusionauth_client (1.52.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/build.savant CHANGED
@@ -15,7 +15,7 @@
15
15
  */
16
16
 
17
17
  pubVersion = ""
18
- project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.50.0", licenses: ["ApacheV2_0"]) {
18
+ project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.52.0", licenses: ["ApacheV2_0"]) {
19
19
  workflow {
20
20
  fetch {
21
21
  cache()
@@ -39,7 +39,7 @@ project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.50.0
39
39
  }
40
40
 
41
41
  // Plugins
42
- file = loadPlugin(id: "org.savantbuild.plugin:file:2.0.0-RC.6")
42
+ file = loadPlugin(id: "org.savantbuild.plugin:file:2.0.0-RC.7")
43
43
  release = loadPlugin(id: "org.savantbuild.plugin:release-git:2.0.0-RC.6")
44
44
 
45
45
  target(name: "clean", description: "Cleans build directory") {