fusionauth_client 1.50.0 → 1.51.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: 13fca66205c78f0e7713d67c9472b5b644b08666f2b0ff69b46997bb7d828511
4
+ data.tar.gz: b56c7c13048361ef7907e182710ca2c96182a28f446f5a7012ed9837c8c98e5b
5
5
  SHA512:
6
- metadata.gz: d6133b62a0e93ff2b0b054639af56e8da4e3de5a718c9cd2df4ce163a3be0d32daaec61de53fb593a93652636eb106bad730d4101eb04d30d68414450a34c277
7
- data.tar.gz: e9162071e4335fbdc8d4b99c70039609788d50b04c2e81e14907890fb4630519813d1ef8e20917b66584389903f7d7fb3ef9b6bed26f48b393d0512cc9964748
6
+ metadata.gz: fcf912401674250d3ce13a698b8579fa388b75b54823ecae30b9c073af9aaa15b93851a854578664b30a6eccd4d37cc109cf9a4dec11702776dbe9347403d0c6
7
+ data.tar.gz: 40c42731f45e9c80d8b0fa8cad3b757db9f01c7077e1f6911bb932274589d18184925ebc37fbd419b1d8035803dee7ebd1938773a8f5aa796f78aafb3a3959b5
@@ -0,0 +1,87 @@
1
+ # Run locally with act:
2
+ #
3
+ # act pull_request [--input command=[command]] \
4
+ # --platform fusionauth-builder=[ecr-repo-name]/fusionauth-builder:latest] \
5
+ # --workflows ./.github/workflows/release.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-builder
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-builder
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.51.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.51.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") {
data/doc/created.rid CHANGED
@@ -1,2 +1,2 @@
1
- Wed, 24 Apr 2024 20:42:14 +0000
2
- lib/fusionauth/fusionauth_client.rb Wed, 24 Apr 2024 20:41:58 +0000
1
+ Thu, 06 Jun 2024 22:24:58 +0000
2
+ lib/fusionauth/fusionauth_client.rb Thu, 06 Jun 2024 22:24:43 +0000
Binary file
Binary file
Binary file
@@ -19,7 +19,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
19
19
 
20
20
  Gem::Specification.new do |spec|
21
21
  spec.name = 'fusionauth_client'
22
- spec.version = '1.50.0'
22
+ spec.version = '1.51.0'
23
23
  spec.authors = ['Brian Pontarelli', 'Daniel DeGroff']
24
24
  spec.email = %w(brian@fusionauth.io daniel@fusionauth.io)
25
25
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fusionauth_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.50.0
4
+ version: 1.51.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Pontarelli
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2024-04-25 00:00:00.000000000 Z
12
+ date: 2024-06-06 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: This library contains the Ruby client library that helps you connect
15
15
  your application to FusionAuth.
@@ -24,6 +24,7 @@ files:
24
24
  - ".github/fusionauth/.env"
25
25
  - ".github/fusionauth/docker-compose.yml"
26
26
  - ".github/fusionauth/kickstart.json"
27
+ - ".github/workflows/deploy.yaml"
27
28
  - ".github/workflows/docs.yml"
28
29
  - ".github/workflows/test.yml"
29
30
  - ".gitignore"
@@ -108,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
109
  - !ruby/object:Gem::Version
109
110
  version: '0'
110
111
  requirements: []
111
- rubygems_version: 3.3.5
112
+ rubygems_version: 3.4.22
112
113
  signing_key:
113
114
  specification_version: 4
114
115
  summary: The Ruby client library for FusionAuth