restforce 5.1.0 → 5.1.1
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/CHANGELOG.md +5 -0
- data/Gemfile +1 -1
- data/README.md +2 -2
- data/lib/restforce/concerns/picklists.rb +1 -1
- data/lib/restforce/error_code.rb +6 -0
- data/lib/restforce/version.rb +1 -1
- metadata +3 -3
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 68aba674731ec407d63a766c8bcf13a6a243e757e89b32c8bed07c07a2ee2a9e
         | 
| 4 | 
            +
              data.tar.gz: 1529b415da1c3d34ff477aea87116d147d5e2bd3e74ebde236ef9292545fad54
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 5fc24ced1a9e38b622040d0b51ea3cd3aa2d4afc994ee41a8825ee2038c1f7379c56c2a32044a938102fe47030f02183549bdd91837ffab88320d99af13d27c5
         | 
| 7 | 
            +
              data.tar.gz: 1a0be3c634cb0b9bcea1b38463b09e62e54ceee49b44e30e852e42c14c91761eff4cf8a6a786611682cb0ba309704d85243499c00358b6e411ded15e805f421e
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    | @@ -1,3 +1,8 @@ | |
| 1 | 
            +
            ## 5.1.1 (Oct 13, 2021)
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            * Handle the `INVALID_REPLICATION_DATE` error returned by Salesforce (@michaelwnyc)
         | 
| 4 | 
            +
            * Handle the `BIG_OBJECT_UNSUPPORTED_OPERATION` error returned by Salesforce (@remon)
         | 
| 5 | 
            +
             | 
| 1 6 | 
             
            ## 5.1.0 (Aug 26, 2021)
         | 
| 2 7 |  | 
| 3 8 | 
             
            * Add official support for Ruby 3.0 (@timrogers)
         | 
    
        data/Gemfile
    CHANGED
    
    | @@ -12,6 +12,6 @@ gem 'rspec', '~> 3.10.0' | |
| 12 12 | 
             
            gem 'rspec-collection_matchers', '~> 1.2.0'
         | 
| 13 13 | 
             
            gem 'rspec-its', '~> 1.3.0'
         | 
| 14 14 | 
             
            gem 'rspec_junit_formatter', '~> 0.4.1'
         | 
| 15 | 
            -
            gem 'rubocop', '~> 1. | 
| 15 | 
            +
            gem 'rubocop', '~> 1.22.1'
         | 
| 16 16 | 
             
            gem 'simplecov', '~> 0.21.2'
         | 
| 17 17 | 
             
            gem 'webmock', '~> 3.14.0'
         | 
    
        data/README.md
    CHANGED
    
    | @@ -25,7 +25,7 @@ Features include: | |
| 25 25 |  | 
| 26 26 | 
             
            Add this line to your application's Gemfile:
         | 
| 27 27 |  | 
| 28 | 
            -
                gem 'restforce', '~> 5.1. | 
| 28 | 
            +
                gem 'restforce', '~> 5.1.1'
         | 
| 29 29 |  | 
| 30 30 | 
             
            And then execute:
         | 
| 31 31 |  | 
| @@ -35,7 +35,7 @@ Or install it yourself as: | |
| 35 35 |  | 
| 36 36 | 
             
                $ gem install restforce
         | 
| 37 37 |  | 
| 38 | 
            -
            __As of version 5. | 
| 38 | 
            +
            __As of version 5.1.0, this gem is only compatible with Ruby 2.6.0 and later.__ If you're using an earlier Ruby version:
         | 
| 39 39 |  | 
| 40 40 | 
             
            * for Ruby 2.5, use version 5.0.6 or earlier
         | 
| 41 41 | 
             
            * for Ruby 2.4, use version 4.3.0 or earlier
         | 
| @@ -85,7 +85,7 @@ module Restforce | |
| 85 85 | 
             
                    def valid?(picklist_entry)
         | 
| 86 86 | 
             
                      valid_for = picklist_entry['validFor'].ljust(16, 'A').unpack1('m').
         | 
| 87 87 | 
             
                                  unpack('C*')
         | 
| 88 | 
            -
                      (valid_for[index >> 3] & (0x80 >> index % 8)).positive?
         | 
| 88 | 
            +
                      (valid_for[index >> 3] & (0x80 >> (index % 8))).positive?
         | 
| 89 89 | 
             
                    end
         | 
| 90 90 | 
             
                  end
         | 
| 91 91 | 
             
                end
         | 
    
        data/lib/restforce/error_code.rb
    CHANGED
    
    | @@ -31,6 +31,8 @@ module Restforce | |
| 31 31 |  | 
| 32 32 | 
             
                class BccSelfNotAllowedIfBccComplianceEnabled < ResponseError; end
         | 
| 33 33 |  | 
| 34 | 
            +
                class BigObjectUnsupportedOperation < ResponseError; end
         | 
| 35 | 
            +
             | 
| 34 36 | 
             
                class CannotCascadeProductActive < ResponseError; end
         | 
| 35 37 |  | 
| 36 38 | 
             
                class CannotChangeFieldTypeOfApexReferencedField < ResponseError; end
         | 
| @@ -237,6 +239,8 @@ module Restforce | |
| 237 239 |  | 
| 238 240 | 
             
                class InvalidReadOnlyUserDml < ResponseError; end
         | 
| 239 241 |  | 
| 242 | 
            +
                class InvalidReplicationDate < ResponseError; end
         | 
| 243 | 
            +
             | 
| 240 244 | 
             
                class InvalidSaveAsActivityFlag < ResponseError; end
         | 
| 241 245 |  | 
| 242 246 | 
             
                class InvalidSessionId < ResponseError; end
         | 
| @@ -413,6 +417,7 @@ module Restforce | |
| 413 417 | 
             
               BccNotAllowedIfBccComplianceEnabled,
         | 
| 414 418 | 
             
                  "BCC_SELF_NOT_ALLOWED_IF_BCC_COMPLIANCE_ENABLED" =>
         | 
| 415 419 | 
             
               BccSelfNotAllowedIfBccComplianceEnabled,
         | 
| 420 | 
            +
                  "BIG_OBJECT_UNSUPPORTED_OPERATION" => BigObjectUnsupportedOperation,
         | 
| 416 421 | 
             
                  "CANNOT_CASCADE_PRODUCT_ACTIVE" => CannotCascadeProductActive,
         | 
| 417 422 | 
             
                  "CANNOT_CHANGE_FIELD_TYPE_OF_APEX_REFERENCED_FIELD" =>
         | 
| 418 423 | 
             
               CannotChangeFieldTypeOfApexReferencedField,
         | 
| @@ -523,6 +528,7 @@ module Restforce | |
| 523 528 | 
             
                  "INVALID_PARTNER_NETWORK_STATUS" => InvalidPartnerNetworkStatus,
         | 
| 524 529 | 
             
                  "INVALID_PERSON_ACCOUNT_OPERATION" => InvalidPersonAccountOperation,
         | 
| 525 530 | 
             
                  "INVALID_READ_ONLY_USER_DML" => InvalidReadOnlyUserDml,
         | 
| 531 | 
            +
                  "INVALID_REPLICATION_DATE" => InvalidReplicationDate,
         | 
| 526 532 | 
             
                  "INVALID_SAVE_AS_ACTIVITY_FLAG" => InvalidSaveAsActivityFlag,
         | 
| 527 533 | 
             
                  "INVALID_SESSION_ID" => InvalidSessionId,
         | 
| 528 534 | 
             
                  "INVALID_STATUS" => InvalidStatus,
         | 
    
        data/lib/restforce/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: restforce
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 5.1. | 
| 4 | 
            +
              version: 5.1.1
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Tim Rogers
         | 
| @@ -9,7 +9,7 @@ authors: | |
| 9 9 | 
             
            autorequire:
         | 
| 10 10 | 
             
            bindir: bin
         | 
| 11 11 | 
             
            cert_chain: []
         | 
| 12 | 
            -
            date: 2021- | 
| 12 | 
            +
            date: 2021-10-13 00:00:00.000000000 Z
         | 
| 13 13 | 
             
            dependencies:
         | 
| 14 14 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 15 15 | 
             
              name: faraday
         | 
| @@ -251,7 +251,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 251 251 | 
             
                - !ruby/object:Gem::Version
         | 
| 252 252 | 
             
                  version: '0'
         | 
| 253 253 | 
             
            requirements: []
         | 
| 254 | 
            -
            rubygems_version: 3. | 
| 254 | 
            +
            rubygems_version: 3.2.22
         | 
| 255 255 | 
             
            signing_key:
         | 
| 256 256 | 
             
            specification_version: 4
         | 
| 257 257 | 
             
            summary: A lightweight Ruby client for the Salesforce REST API
         |