cirro-ruby-client 1.2.3 → 1.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dcb633e6af68286109c3f5329c596be38609e12bfc74f8db3532b62b5d7a198a
4
- data.tar.gz: 1043a463fdd431cf96fb4abe6c85de402c3c39c00056c830eb701457f0a2f246
3
+ metadata.gz: '019901c543aede3628f96a1a896fe8f360c9d1bef28c5c5908b9d6786eda490e'
4
+ data.tar.gz: 84c7707fa65dff0b0522bd9868d479be10afe8834e65d455297aab34438f1ed4
5
5
  SHA512:
6
- metadata.gz: 19b4504bb063bcf4ba2575c785928c7cc7a5b358e10fbf5bb17a39a5dd1b0b5b647e416c4450686682cf5e78ee88a62dbdcb452fc0a4e053731a4a2aaa406f67
7
- data.tar.gz: bddcf4a2f30da9ae1e6ba56a1099b57957f50cefeb642e226e08ae974f756d3a874b739380732f3d937e7b9f5386639c4046903ffddd766b294c26d1ed24f2d4
6
+ metadata.gz: 1233f3235a156f2bb8df4cc000abd2291a0e5dcc27da3b1a039047a7776ffca02b793b4e21341b2664efe9ad7c252b08cdc309b647c98455740207bdbf013c79
7
+ data.tar.gz: 1116480d6e73e27e1217b6d0cca698d8f66258157bbc26290e2a1416711f1f32014500d3b68d408b43271743a3cd3868b6332c2920c60e6e696c0736c9cfe474
data/Gemfile.lock CHANGED
@@ -1,22 +1,23 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cirro-ruby-client (1.2.1)
4
+ cirro-ruby-client (1.3.0)
5
+ faraday (< 1.2.0)
5
6
  faraday_middleware
6
- json_api_client
7
+ json_api_client (>= 1.10.0)
7
8
  jwt
8
9
 
9
10
  GEM
10
11
  remote: https://rubygems.org/
11
12
  specs:
12
- activemodel (6.0.3.4)
13
- activesupport (= 6.0.3.4)
14
- activesupport (6.0.3.4)
13
+ activemodel (6.1.1)
14
+ activesupport (= 6.1.1)
15
+ activesupport (6.1.1)
15
16
  concurrent-ruby (~> 1.0, >= 1.0.2)
16
- i18n (>= 0.7, < 2)
17
- minitest (~> 5.1)
18
- tzinfo (~> 1.1)
19
- zeitwerk (~> 2.2, >= 2.2.2)
17
+ i18n (>= 1.6, < 2)
18
+ minitest (>= 5.1)
19
+ tzinfo (~> 2.0)
20
+ zeitwerk (~> 2.3)
20
21
  addressable (2.7.0)
21
22
  public_suffix (>= 2.0.2, < 5.0)
22
23
  ast (2.4.1)
@@ -43,7 +44,7 @@ GEM
43
44
  rack (>= 0.2)
44
45
  jwt (2.2.2)
45
46
  method_source (1.0.0)
46
- minitest (5.14.2)
47
+ minitest (5.14.3)
47
48
  multipart-post (2.1.1)
48
49
  parallel (1.19.2)
49
50
  parser (2.7.2.0)
@@ -84,10 +85,9 @@ GEM
84
85
  rubocop-rspec (1.43.2)
85
86
  rubocop (~> 0.87)
86
87
  ruby-progressbar (1.10.1)
87
- ruby2_keywords (0.0.2)
88
- thread_safe (0.3.6)
89
- tzinfo (1.2.8)
90
- thread_safe (~> 0.1)
88
+ ruby2_keywords (0.0.4)
89
+ tzinfo (2.0.4)
90
+ concurrent-ruby (~> 1.0)
91
91
  unicode-display_width (1.7.0)
92
92
  webmock (3.9.1)
93
93
  addressable (>= 2.3.6)
@@ -8,7 +8,7 @@ require 'cirro_io/client/base'
8
8
  require 'cirro_io/client/gig_invitation'
9
9
  require 'cirro_io/client/app_user'
10
10
  require 'cirro_io/client/app_worker'
11
- require 'cirro_io/client/worker_invitation_filter'
11
+ require 'cirro_io/client/worker_filter'
12
12
  require 'cirro_io/client/gig_task'
13
13
  require 'cirro_io/client/gig_result'
14
14
  require 'cirro_io/client/gig_time_activity'
@@ -1,16 +1,16 @@
1
1
  module CirroIO
2
2
  module Client
3
3
  class Gig < Base
4
- has_one :worker_invitation_filter
4
+ has_one :worker_filter
5
5
  has_many :gig_tasks
6
6
  has_many :gig_results
7
7
  has_many :gig_time_activities
8
8
 
9
9
  # rubocop:disable Metrics/AbcSize
10
- def bulk_create_with(worker_invitation_filter, gig_tasks)
10
+ def bulk_create_with(worker_filter, gig_tasks)
11
11
  payload = { data: { attributes: attributes, relationships: {} } }
12
12
  payload[:data][:relationships][:gig_tasks] = gig_tasks.map(&:attributes)
13
- payload[:data][:relationships][:worker_invitation_filter] = worker_invitation_filter.attributes
13
+ payload[:data][:relationships][:worker_filter] = worker_filter.attributes
14
14
 
15
15
  response = self.class.custom_post('bulk/gigs', format_to_dashed_keys(payload))
16
16
 
@@ -1,7 +1,7 @@
1
1
  # rubocop:disable Style/MutableConstant
2
2
  module CirroIO
3
3
  module Client
4
- VERSION = '1.2.3'
4
+ VERSION = '1.3.0'
5
5
  end
6
6
  end
7
7
  # rubocop:enable Style/MutableConstant
@@ -1,6 +1,6 @@
1
1
  module CirroIO
2
2
  module Client
3
- class WorkerInvitationFilter < Base
3
+ class WorkerFilter < Base
4
4
  end
5
5
  end
6
6
  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.2.3
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cirro Dev Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-16 00:00:00.000000000 Z
11
+ date: 2021-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -101,7 +101,7 @@ files:
101
101
  - lib/cirro_io/client/jwt_authentication.rb
102
102
  - lib/cirro_io/client/response_debugging_middleware.rb
103
103
  - lib/cirro_io/client/version.rb
104
- - lib/cirro_io/client/worker_invitation_filter.rb
104
+ - lib/cirro_io/client/worker_filter.rb
105
105
  homepage: https://cirro.io/api-docs/v1#cirro-api-documentation
106
106
  licenses:
107
107
  - MIT