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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '019901c543aede3628f96a1a896fe8f360c9d1bef28c5c5908b9d6786eda490e'
|
|
4
|
+
data.tar.gz: 84c7707fa65dff0b0522bd9868d479be10afe8834e65d455297aab34438f1ed4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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.
|
|
13
|
-
activesupport (= 6.
|
|
14
|
-
activesupport (6.
|
|
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 (>=
|
|
17
|
-
minitest (
|
|
18
|
-
tzinfo (~>
|
|
19
|
-
zeitwerk (~> 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.
|
|
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.
|
|
88
|
-
|
|
89
|
-
|
|
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)
|
data/lib/cirro_io/client.rb
CHANGED
|
@@ -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/
|
|
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'
|
data/lib/cirro_io/client/gig.rb
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
module CirroIO
|
|
2
2
|
module Client
|
|
3
3
|
class Gig < Base
|
|
4
|
-
has_one :
|
|
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(
|
|
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][:
|
|
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
|
|
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.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
|
|
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/
|
|
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
|