cirro-ruby-client 1.4.0 → 1.5.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/Gemfile.lock +6 -6
- data/lib/cirro_io/client.rb +1 -0
- data/lib/cirro_io/client/app_worker.rb +1 -0
- data/lib/cirro_io/client/base.rb +9 -9
- data/lib/cirro_io/client/payout.rb +7 -0
- data/lib/cirro_io/client/version.rb +1 -1
- metadata +7 -7
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: b40b51067875bc8f05dbf8d6d3ef70713369437b84f7f02d34ad9ebc12e6f1f5
         | 
| 4 | 
            +
              data.tar.gz: 95d7598c00eb3ad3fcd7d2c357252620792dde5653ef3ca6a002753c2a9a5c91
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: aa7585fece3356f8511010df5f8b7635946da195b66350dd10cd7d0c964b18616ad53291ee12f287d37819666f73098569b550b8c6e9a6568a9d8b37edd230fc
         | 
| 7 | 
            +
              data.tar.gz: 4c4bb7c02b948a2a8786be6e622aaf5dac1ef9cc1fe046cee66dd15cafaa3f2d27595e1749e014d186ae72987108c79a277e08eeced5bdfa5e42756053b4e012
         | 
    
        data/Gemfile.lock
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            PATH
         | 
| 2 2 | 
             
              remote: .
         | 
| 3 3 | 
             
              specs:
         | 
| 4 | 
            -
                cirro-ruby-client (1. | 
| 4 | 
            +
                cirro-ruby-client (1.5.0)
         | 
| 5 5 | 
             
                  faraday (< 1.2.0)
         | 
| 6 6 | 
             
                  faraday_middleware
         | 
| 7 7 | 
             
                  json_api_client (>= 1.10.0)
         | 
| @@ -10,9 +10,9 @@ PATH | |
| 10 10 | 
             
            GEM
         | 
| 11 11 | 
             
              remote: https://rubygems.org/
         | 
| 12 12 | 
             
              specs:
         | 
| 13 | 
            -
                activemodel (6.1. | 
| 14 | 
            -
                  activesupport (= 6.1. | 
| 15 | 
            -
                activesupport (6.1. | 
| 13 | 
            +
                activemodel (6.1.3.2)
         | 
| 14 | 
            +
                  activesupport (= 6.1.3.2)
         | 
| 15 | 
            +
                activesupport (6.1.3.2)
         | 
| 16 16 | 
             
                  concurrent-ruby (~> 1.0, >= 1.0.2)
         | 
| 17 17 | 
             
                  i18n (>= 1.6, < 2)
         | 
| 18 18 | 
             
                  minitest (>= 5.1)
         | 
| @@ -42,9 +42,9 @@ GEM | |
| 42 42 | 
             
                  faraday (>= 0.15.2, < 1.2.0)
         | 
| 43 43 | 
             
                  faraday_middleware (>= 0.9.0, < 1.2.0)
         | 
| 44 44 | 
             
                  rack (>= 0.2)
         | 
| 45 | 
            -
                jwt (2.2. | 
| 45 | 
            +
                jwt (2.2.3)
         | 
| 46 46 | 
             
                method_source (1.0.0)
         | 
| 47 | 
            -
                minitest (5.14. | 
| 47 | 
            +
                minitest (5.14.4)
         | 
| 48 48 | 
             
                multipart-post (2.1.1)
         | 
| 49 49 | 
             
                parallel (1.19.2)
         | 
| 50 50 | 
             
                parser (2.7.2.0)
         | 
    
        data/lib/cirro_io/client.rb
    CHANGED
    
    
    
        data/lib/cirro_io/client/base.rb
    CHANGED
    
    | @@ -4,10 +4,16 @@ module CirroIO | |
| 4 4 | 
             
                  self.route_format = :dasherized_route
         | 
| 5 5 | 
             
                  self.json_key_format = :dasherized_key
         | 
| 6 6 |  | 
| 7 | 
            -
                  # https://github.com/JsonApiClient/json_api_client/issues/215
         | 
| 7 | 
            +
                  # HACK: https://github.com/JsonApiClient/json_api_client/issues/215
         | 
| 8 | 
            +
                  # Used for initialization as well
         | 
| 8 9 | 
             
                  def self.site=(url)
         | 
| 9 | 
            -
                    super | 
| 10 | 
            -
             | 
| 10 | 
            +
                    super.tap do
         | 
| 11 | 
            +
                      connection true do |connection|
         | 
| 12 | 
            +
                        connection.use JwtAuthentication
         | 
| 13 | 
            +
                        connection.use Faraday::Response::Logger
         | 
| 14 | 
            +
                        # connection.use ResponseDebuggingMiddleware # for debugging or while adding new specs
         | 
| 15 | 
            +
                      end
         | 
| 16 | 
            +
                    end
         | 
| 11 17 | 
             
                  end
         | 
| 12 18 |  | 
| 13 19 | 
             
                  def self.custom_post(endpoint, payload)
         | 
| @@ -25,9 +31,3 @@ module CirroIO | |
| 25 31 | 
             
                end
         | 
| 26 32 | 
             
              end
         | 
| 27 33 | 
             
            end
         | 
| 28 | 
            -
             | 
| 29 | 
            -
            CirroIO::Client::Base.connection do |connection|
         | 
| 30 | 
            -
              connection.use CirroIO::Client::JwtAuthentication
         | 
| 31 | 
            -
              connection.use Faraday::Response::Logger
         | 
| 32 | 
            -
              # connection.use CirroIO::Client::ResponseDebuggingMiddleware # This middleware can be injected during debugging or while adding new specs
         | 
| 33 | 
            -
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: cirro-ruby-client
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1. | 
| 4 | 
            +
              version: 1.5.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Cirro Dev Team
         | 
| 8 | 
            -
            autorequire:
         | 
| 8 | 
            +
            autorequire: 
         | 
| 9 9 | 
             
            bindir: exe
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2021- | 
| 11 | 
            +
            date: 2021-06-09 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: jwt
         | 
| @@ -100,6 +100,7 @@ files: | |
| 100 100 | 
             
            - lib/cirro_io/client/gig_task.rb
         | 
| 101 101 | 
             
            - lib/cirro_io/client/gig_time_activity.rb
         | 
| 102 102 | 
             
            - lib/cirro_io/client/jwt_authentication.rb
         | 
| 103 | 
            +
            - lib/cirro_io/client/payout.rb
         | 
| 103 104 | 
             
            - lib/cirro_io/client/response_debugging_middleware.rb
         | 
| 104 105 | 
             
            - lib/cirro_io/client/version.rb
         | 
| 105 106 | 
             
            - lib/cirro_io/client/worker_filter.rb
         | 
| @@ -110,7 +111,7 @@ metadata: | |
| 110 111 | 
             
              homepage_uri: https://cirro.io/api-docs/v1#cirro-api-documentation
         | 
| 111 112 | 
             
              source_code_uri: https://github.com/test-IO/cirro-ruby-client
         | 
| 112 113 | 
             
              changelog_uri: https://github.com/test-IO/cirro-ruby-client/CHANGELOG.md
         | 
| 113 | 
            -
            post_install_message:
         | 
| 114 | 
            +
            post_install_message: 
         | 
| 114 115 | 
             
            rdoc_options: []
         | 
| 115 116 | 
             
            require_paths:
         | 
| 116 117 | 
             
            - lib
         | 
| @@ -125,9 +126,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 125 126 | 
             
                - !ruby/object:Gem::Version
         | 
| 126 127 | 
             
                  version: '0'
         | 
| 127 128 | 
             
            requirements: []
         | 
| 128 | 
            -
             | 
| 129 | 
            -
             | 
| 130 | 
            -
            signing_key:
         | 
| 129 | 
            +
            rubygems_version: 3.1.2
         | 
| 130 | 
            +
            signing_key: 
         | 
| 131 131 | 
             
            specification_version: 4
         | 
| 132 132 | 
             
            summary: Ruby client library for Cirro API
         | 
| 133 133 | 
             
            test_files: []
         |