fusionauth_client 1.50.0 → 1.52.0
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/CODEOWNERS +4 -0
 - data/.github/workflows/deploy.yaml +87 -0
 - data/.github/workflows/docs.yml +16 -16
 - data/.github/workflows/test.yml +16 -14
 - data/Gemfile.lock +1 -1
 - data/build.savant +2 -2
 - data/doc/FusionAuth/FusionAuthClient.html +951 -834
 - data/doc/created.rid +2 -2
 - data/doc/js/navigation.js.gz +0 -0
 - data/doc/js/search_index.js +1 -1
 - data/doc/js/search_index.js.gz +0 -0
 - data/doc/js/searcher.js.gz +0 -0
 - data/doc/table_of_contents.html +15 -0
 - data/fusionauth-ruby-client.iml +5 -1
 - data/fusionauth_client.gemspec +1 -1
 - data/lib/fusionauth/fusionauth_client.rb +747 -718
 - metadata +5 -3
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 3bad49c0458dd31ccf7f81b5d1cd9f1e4230b8378c3ed0b2b1b0f0cf006b028e
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 82699e96462bc78944ae48137c7b4bc80763303082e94ad0f58c26deaa8fc843
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: e692e0e35951c4268f6f19d930b46a1c5a1f4e2371588a003f4dd1b8d56679ef9f48ec3b931408cb819464c9c612943d8cc319238da53af3229f19d359a6ada4
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 0fa182e50cf223190d0ec881ea4ed0bf1dff17237ff07c6a13e536c712effb4b9cf332f10fd822670f1008eef7a9c73789cfdf40254f30a93acaff406e915f90
         
     | 
    
        data/.github/CODEOWNERS
    ADDED
    
    
| 
         @@ -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
         
     | 
    
        data/.github/workflows/docs.yml
    CHANGED
    
    | 
         @@ -2,7 +2,8 @@ name: Generate Docs 
     | 
|
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            on:
         
     | 
| 
       4 
4 
     | 
    
         
             
              push:
         
     | 
| 
       5 
     | 
    
         
            -
                branches: 
     | 
| 
      
 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 
     | 
    
         
            -
             
     | 
| 
      
 15 
     | 
    
         
            +
                  - uses: actions/checkout@v4
         
     | 
| 
       15 
16 
     | 
    
         | 
| 
       16 
     | 
    
         
            -
             
     | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
       18 
     | 
    
         
            -
             
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
      
 17 
     | 
    
         
            +
                  - name: Set up Ruby
         
     | 
| 
      
 18 
     | 
    
         
            +
                    uses: ruby/setup-ruby@v1
         
     | 
| 
      
 19 
     | 
    
         
            +
                    with:
         
     | 
| 
      
 20 
     | 
    
         
            +
                      bundler-cache: true
         
     | 
| 
       20 
21 
     | 
    
         | 
| 
       21 
     | 
    
         
            -
             
     | 
| 
       22 
     | 
    
         
            -
             
     | 
| 
       23 
     | 
    
         
            -
             
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
       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'
         
     | 
    
        data/.github/workflows/test.yml
    CHANGED
    
    | 
         @@ -2,9 +2,11 @@ name: Test Library 
     | 
|
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            on:
         
     | 
| 
       4 
4 
     | 
    
         
             
              push:
         
     | 
| 
       5 
     | 
    
         
            -
                branches: 
     | 
| 
      
 5 
     | 
    
         
            +
                branches:
         
     | 
| 
      
 6 
     | 
    
         
            +
                  - main
         
     | 
| 
       6 
7 
     | 
    
         
             
              pull_request:
         
     | 
| 
       7 
     | 
    
         
            -
                branches: 
     | 
| 
      
 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 
     | 
    
         
            -
             
     | 
| 
      
 18 
     | 
    
         
            +
                  - uses: actions/checkout@v4
         
     | 
| 
       17 
19 
     | 
    
         | 
| 
       18 
     | 
    
         
            -
             
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
       20 
     | 
    
         
            -
             
     | 
| 
      
 20 
     | 
    
         
            +
                  - name: Set up FusionAuth
         
     | 
| 
      
 21 
     | 
    
         
            +
                    working-directory: .github/fusionauth
         
     | 
| 
      
 22 
     | 
    
         
            +
                    run: docker compose up -d
         
     | 
| 
       21 
23 
     | 
    
         | 
| 
       22 
     | 
    
         
            -
             
     | 
| 
       23 
     | 
    
         
            -
             
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
       25 
     | 
    
         
            -
             
     | 
| 
      
 24 
     | 
    
         
            +
                  - name: Set up Ruby
         
     | 
| 
      
 25 
     | 
    
         
            +
                    uses: ruby/setup-ruby@v1
         
     | 
| 
      
 26 
     | 
    
         
            +
                    with:
         
     | 
| 
      
 27 
     | 
    
         
            +
                      bundler-cache: true
         
     | 
| 
       26 
28 
     | 
    
         | 
| 
       27 
     | 
    
         
            -
             
     | 
| 
       28 
     | 
    
         
            -
             
     | 
| 
      
 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 
     | 
    
         
            -
             
     | 
| 
       31 
     | 
    
         
            -
             
     | 
| 
      
 32 
     | 
    
         
            +
                  - name: Run test suite
         
     | 
| 
      
 33 
     | 
    
         
            +
                    run: rake test
         
     | 
    
        data/Gemfile.lock
    CHANGED
    
    
    
        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. 
     | 
| 
      
 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. 
     | 
| 
      
 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") {
         
     |