cirro-ruby-client 1.4.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a307c4d56c69dc3de6ec6d7253069f4cd7ca67a9a8ea14ad2d5b8d1c07fef8cd
4
- data.tar.gz: a284adc2837156d46fdce366d6d84c6956419544dce82bf7b2f53299affbf95c
3
+ metadata.gz: b40b51067875bc8f05dbf8d6d3ef70713369437b84f7f02d34ad9ebc12e6f1f5
4
+ data.tar.gz: 95d7598c00eb3ad3fcd7d2c357252620792dde5653ef3ca6a002753c2a9a5c91
5
5
  SHA512:
6
- metadata.gz: 628d2c184935b720b57bf7b7466603a1c80921c78796e3e2f444f3d339cc4efd316de6dcbb3e199471d622961d84d08a0f2ffe9b33841d14cf6dd25fca32573e
7
- data.tar.gz: c651329be9cb1d61a0995c23617dd9d22ca2f8fd2ef0787af42dbb25a84f3e1a2862a469b69dfbca2ec1c538a2f6de74a631de53818ee547caa3119be8dc9007
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.0)
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.1)
14
- activesupport (= 6.1.1)
15
- activesupport (6.1.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.2)
45
+ jwt (2.2.3)
46
46
  method_source (1.0.0)
47
- minitest (5.14.3)
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)
@@ -14,6 +14,7 @@ require 'cirro_io/client/gig_task'
14
14
  require 'cirro_io/client/gig_result'
15
15
  require 'cirro_io/client/gig_time_activity'
16
16
  require 'cirro_io/client/gig'
17
+ require 'cirro_io/client/payout'
17
18
 
18
19
  module CirroIO
19
20
  module Client
@@ -3,6 +3,7 @@ module CirroIO
3
3
  class AppWorker < Base
4
4
  has_one :app_user
5
5
  has_many :gig_invitations
6
+ has_many :payouts
6
7
  end
7
8
  end
8
9
  end
@@ -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(url)
10
- connection.faraday.url_prefix = url
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
@@ -0,0 +1,7 @@
1
+ module CirroIO
2
+ module Client
3
+ class Payout < Base
4
+ has_one :app_worker
5
+ end
6
+ end
7
+ end
@@ -1,7 +1,7 @@
1
1
  # rubocop:disable Style/MutableConstant
2
2
  module CirroIO
3
3
  module Client
4
- VERSION = '1.4.0'
4
+ VERSION = '1.5.0'
5
5
  end
6
6
  end
7
7
  # rubocop:enable Style/MutableConstant
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.0
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-04-15 00:00:00.000000000 Z
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
- rubyforge_project:
129
- rubygems_version: 2.7.7
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: []