exercism-config 0.87.0 → 0.89.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/workflows/pause-community-contributions.yml +22 -0
- data/.gitignore +2 -0
- data/.ruby-version +1 -1
- data/README.md +2 -0
- data/lib/exercism_config/retrieve_secrets.rb +7 -1
- data/lib/exercism_config/version.rb +1 -1
- data/settings/local.yml +1 -0
- data/settings/secrets.yml +7 -0
- metadata +4 -3
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 1710d2fd75778b017a29df02e7c236d320ec6e562e221f7b6c4723ec908d8321
         | 
| 4 | 
            +
              data.tar.gz: 5f61e24f861feb0ee626cab1161aedb723b55f7cc3bcdd865047e665096bee7f
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 6f95cf47fcc16941a290bd1aa5b8a523184be88ab0471479e44db8db8aac4db79e973a6d0aafa0d6fa854486163da93d719e78fe1a61da12d71914d24f6d62e6
         | 
| 7 | 
            +
              data.tar.gz: 8e81ae560fdca7919a17c98a2d243861a1445c4d6a44d35d348909ab77b7e5556770167598f53d2a75e2425902e6eef22c7bf95388c2efcb34d16aefd084cca6
         | 
| @@ -0,0 +1,22 @@ | |
| 1 | 
            +
            name: Pause Community Contributions
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            on:
         | 
| 4 | 
            +
              issues:
         | 
| 5 | 
            +
                types:
         | 
| 6 | 
            +
                  - opened
         | 
| 7 | 
            +
              pull_request_target:
         | 
| 8 | 
            +
                types:
         | 
| 9 | 
            +
                  - opened
         | 
| 10 | 
            +
             | 
| 11 | 
            +
            permissions:
         | 
| 12 | 
            +
              issues: write
         | 
| 13 | 
            +
              pull-requests: write
         | 
| 14 | 
            +
             | 
| 15 | 
            +
            jobs:
         | 
| 16 | 
            +
              pause:
         | 
| 17 | 
            +
                if: github.repository_owner == 'exercism' # Stops this job from running on forks
         | 
| 18 | 
            +
                uses: exercism/github-actions/.github/workflows/community-contributions.yml@main
         | 
| 19 | 
            +
                with:
         | 
| 20 | 
            +
                  forum_category: support
         | 
| 21 | 
            +
                secrets:
         | 
| 22 | 
            +
                  github_membership_token: ${{ secrets.COMMUNITY_CONTRIBUTIONS_WORKFLOW_TOKEN }}
         | 
    
        data/.gitignore
    CHANGED
    
    
    
        data/.ruby-version
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            ruby-3. | 
| 1 | 
            +
            ruby-3.2.1
         | 
    
        data/README.md
    CHANGED
    
    | @@ -32,6 +32,8 @@ Exercism.secrets.github_omniauth_app_secret | |
| 32 32 | 
             
            Exercism.secrets.github_webhooks_secret
         | 
| 33 33 | 
             
            Exercism.secrets.hcaptcha_site_key
         | 
| 34 34 | 
             
            Exercism.secrets.hcaptcha_secret
         | 
| 35 | 
            +
            Exercism.secrets.recaptcha_site_key
         | 
| 36 | 
            +
            Exercism.secrets.recaptcha_secret_key
         | 
| 35 37 |  | 
| 36 38 | 
             
            # Helper methods (create new clients)
         | 
| 37 39 | 
             
            Exercism.dynamodb_client
         | 
| @@ -16,7 +16,13 @@ module ExercismConfig | |
| 16 16 | 
             
                  secrets_file = File.expand_path('../../settings/secrets.yml', __dir__)
         | 
| 17 17 | 
             
                  secrets = YAML.safe_load(ERB.new(File.read(secrets_file)).result)
         | 
| 18 18 |  | 
| 19 | 
            -
                   | 
| 19 | 
            +
                  personal_secrets_file = "#{Dir.home}/.config/exercism/secrets.yml"
         | 
| 20 | 
            +
                  if File.exist?(personal_secrets_file)
         | 
| 21 | 
            +
                    personal_secrets = YAML.safe_load(ERB.new(File.read(personal_secrets_file)).result)
         | 
| 22 | 
            +
                    Exercism::Secrets.new(secrets.merge(personal_secrets))
         | 
| 23 | 
            +
                  else
         | 
| 24 | 
            +
                    Exercism::Secrets.new(secrets)
         | 
| 25 | 
            +
                  end
         | 
| 20 26 | 
             
                end
         | 
| 21 27 |  | 
| 22 28 | 
             
                def retrieve_from_aws
         | 
    
        data/settings/local.yml
    CHANGED
    
    | @@ -6,6 +6,7 @@ anycable_rpc_host: 127.0.0.1:50051 | |
| 6 6 | 
             
            tooling_redis_url: redis://127.0.0.1:6379/3
         | 
| 7 7 | 
             
            snippet_generator_url: http://local.exercism.io:3024/extract_snippet
         | 
| 8 8 | 
             
            lines_of_code_counter_url: http://local.exercism.io:3025/count_lines_of_code
         | 
| 9 | 
            +
            chatgpt_proxy_url: http://local.exercism.io:3026/chatgpt_proxy
         | 
| 9 10 |  | 
| 10 11 | 
             
            # DynamoDB config
         | 
| 11 12 | 
             
            dynamodb_tooling_jobs_table: tooling_jobs
         | 
    
        data/settings/secrets.yml
    CHANGED
    
    | @@ -13,3 +13,10 @@ slack_api_token: "some-token" | |
| 13 13 | 
             
            google_api_key: "some-google-api-key"
         | 
| 14 14 | 
             
            discourse_oauth_secret: "some-discourse-oauth-secret"
         | 
| 15 15 | 
             
            discourse_api_key: "some-discourse-api-key"
         | 
| 16 | 
            +
            recaptcha_site_key: "some-recaptcha_site_key"
         | 
| 17 | 
            +
            recaptcha_secret_key: "some-recaptcha_secret_key"
         | 
| 18 | 
            +
            coinbase_webhooks_secret: "some-coinbase-secret"
         | 
| 19 | 
            +
            paypal_webhook_id: "some-paypal-webhook-id"
         | 
| 20 | 
            +
            paypal_client_id: "some-paypal-client-id"
         | 
| 21 | 
            +
            paypal_client_secret: "some-paypal-client-secret"
         | 
| 22 | 
            +
            chatgpt_access_token: "some-token"
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: exercism-config
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0. | 
| 4 | 
            +
              version: 0.89.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Jeremy Walker
         | 
| 8 8 | 
             
            autorequire:
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date:  | 
| 11 | 
            +
            date: 2023-04-23 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: aws-sdk-dynamodb
         | 
| @@ -203,6 +203,7 @@ extra_rdoc_files: [] | |
| 203 203 | 
             
            files:
         | 
| 204 204 | 
             
            - ".appends/.github/labels.yml"
         | 
| 205 205 | 
             
            - ".github/labels.yml"
         | 
| 206 | 
            +
            - ".github/workflows/pause-community-contributions.yml"
         | 
| 206 207 | 
             
            - ".github/workflows/rubocop.yml"
         | 
| 207 208 | 
             
            - ".github/workflows/sync-labels.yml"
         | 
| 208 209 | 
             
            - ".github/workflows/tests.yml"
         | 
| @@ -258,7 +259,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 258 259 | 
             
                - !ruby/object:Gem::Version
         | 
| 259 260 | 
             
                  version: '0'
         | 
| 260 261 | 
             
            requirements: []
         | 
| 261 | 
            -
            rubygems_version: 3. | 
| 262 | 
            +
            rubygems_version: 3.4.6
         | 
| 262 263 | 
             
            signing_key:
         | 
| 263 264 | 
             
            specification_version: 4
         | 
| 264 265 | 
             
            summary: Retrieves stored config for Exercism
         |