zendesk_apps_support 4.43.0 → 4.43.2
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
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 427b686a3fdbaa78da1eb4218d77696da4c4a4757f10c04ef738e1c1db1a9b7b
         | 
| 4 | 
            +
              data.tar.gz: bdeb0fba162d75b6283d073170bc8d9f5abcb457dc1229de931aec84c2810335
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: e5621dc06b479267692805d5b27f34b55a553a596322c031178515af5db496023c86043922a48696da8dcd75ac3f6afc3f32d6c54e87ab8d3773440d9cd96e6a
         | 
| 7 | 
            +
              data.tar.gz: bf264686f96208b0a8d7abd336817c61ab1441be978e5d6274b7ded2eb2e10773191887a50ae7b70e23bd7d541dcd10434aabce297be52cfc4f85576322bbd67
         | 
| @@ -31,7 +31,11 @@ module ZendeskAppsSupport | |
| 31 31 | 
             
                  @warnings = []
         | 
| 32 32 | 
             
                end
         | 
| 33 33 |  | 
| 34 | 
            -
                def validate( | 
| 34 | 
            +
                def validate(options = {})
         | 
| 35 | 
            +
                  marketplace = options.fetch(:marketplace, true)
         | 
| 36 | 
            +
                  skip_marketplace_translations = options.fetch(:skip_marketplace_translations, false)
         | 
| 37 | 
            +
                  error_on_password_parameter = options.fetch(:error_on_password_parameter, false)
         | 
| 38 | 
            +
             | 
| 35 39 | 
             
                  errors = []
         | 
| 36 40 | 
             
                  errors << Validations::Manifest.call(self, error_on_password_parameter: error_on_password_parameter)
         | 
| 37 41 |  | 
| @@ -61,8 +65,8 @@ module ZendeskAppsSupport | |
| 61 65 | 
             
                  errors.flatten.compact
         | 
| 62 66 | 
             
                end
         | 
| 63 67 |  | 
| 64 | 
            -
                def validate!( | 
| 65 | 
            -
                  errors = validate( | 
| 68 | 
            +
                def validate!(opts = {})
         | 
| 69 | 
            +
                  errors = validate(opts)
         | 
| 66 70 | 
             
                  raise errors.first if errors.any?
         | 
| 67 71 | 
             
                  true
         | 
| 68 72 | 
             
                end
         | 
| @@ -22,7 +22,7 @@ module ZendeskAppsSupport | |
| 22 22 | 
             
                        return [ValidationError.new(:missing_manifest)]
         | 
| 23 23 | 
             
                      end
         | 
| 24 24 |  | 
| 25 | 
            -
                      package.warnings << password_parameter_warning  | 
| 25 | 
            +
                      package.warnings << password_parameter_warning if !error_on_password_parameter && password_param_present?(package.manifest)
         | 
| 26 26 |  | 
| 27 27 | 
             
                      collate_manifest_errors(package, error_on_password_parameter)
         | 
| 28 28 | 
             
                    rescue JSON::ParserError => e
         | 
| @@ -33,6 +33,10 @@ module ZendeskAppsSupport | |
| 33 33 |  | 
| 34 34 | 
             
                    private
         | 
| 35 35 |  | 
| 36 | 
            +
                    def password_param_present?(manifest)
         | 
| 37 | 
            +
                      manifest.parameters.any? { |p| p.type == 'password' }
         | 
| 38 | 
            +
                    end
         | 
| 39 | 
            +
             | 
| 36 40 | 
             
                    def collate_manifest_errors(package, error_on_password_parameter)
         | 
| 37 41 | 
             
                      manifest = package.manifest
         | 
| 38 42 |  | 
| @@ -214,7 +218,7 @@ module ZendeskAppsSupport | |
| 214 218 |  | 
| 215 219 | 
             
                    def deprecate_password_parameter_type(manifest)
         | 
| 216 220 | 
             
                      secure_settings_link = 'https://developer.zendesk.com/documentation/apps/app-developer-guide/making-api-requests-from-a-zendesk-app/#using-secure-settings'
         | 
| 217 | 
            -
                      if manifest | 
| 221 | 
            +
                      if password_param_present?(manifest)
         | 
| 218 222 | 
             
                        ValidationError.new(:password_parameter_type_deprecated, link: secure_settings_link)
         | 
| 219 223 | 
             
                      end
         | 
| 220 224 | 
             
                    end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: zendesk_apps_support
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 4.43. | 
| 4 | 
            +
              version: 4.43.2
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - James A. Rosen
         | 
| @@ -11,7 +11,7 @@ authors: | |
| 11 11 | 
             
            autorequire:
         | 
| 12 12 | 
             
            bindir: bin
         | 
| 13 13 | 
             
            cert_chain: []
         | 
| 14 | 
            -
            date: 2025- | 
| 14 | 
            +
            date: 2025-10-13 00:00:00.000000000 Z
         | 
| 15 15 | 
             
            dependencies:
         | 
| 16 16 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 17 17 | 
             
              name: i18n
         |