cirro-ruby-client 2.5.2 → 2.5.4
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 +1 -1
- data/README.md +1 -1
- data/lib/cirro_io/client/version.rb +1 -1
- data/lib/cirro_io_v2/resources/gig.rb +5 -0
- data/lib/cirro_io_v2/resources/gig_invitation.rb +2 -2
- data/lib/cirro_io_v2/responses/responses.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8d694c3e8f8646a2c7249e229314685156169bf169a68fa1d90e2b2947b7e935
|
|
4
|
+
data.tar.gz: '09668fe924234babd35f8ad7e90e251b21552081d8e804927bfecaa7cd9f6708'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f6c3029d82c79445bf754d8427a7afccb785f6a931ebdb5771bb704f25352cf3d5ffa072000c17fdc2dc21a310f758f8e203fce6a13eb04fd8aa6863346d4ddf
|
|
7
|
+
data.tar.gz: 8371438b9268425f9f02157720e423135af303974c022204552fb39faf6e81dfda3e988e2aa5a356f6c4a998070015ddb6a13b2378a524762caed91f55ee91de
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
This gem provides access to the [Cirro REST API](https://staging.cirro.io/api-docs/v1#cirro-api-documentation).
|
|
4
4
|
|
|
5
|
-
[](https://circleci.com/gh/test-IO/cirro-ruby-client/tree/master)
|
|
5
|
+
[](https://circleci.com/gh/test-IO/cirro-ruby-client/tree/master)
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
@@ -16,6 +16,11 @@ module CirroIOV2
|
|
|
16
16
|
Responses::GigResponse.new(response.body)
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
+
def delete(id)
|
|
20
|
+
response = client.request_client.request(:delete, "#{resource_root}/#{id}")
|
|
21
|
+
Responses::GigDeleteResponse.new(response.body)
|
|
22
|
+
end
|
|
23
|
+
|
|
19
24
|
def tasks(id, params)
|
|
20
25
|
response = client.request_client.request(:post, "#{resource_root}/#{id}/tasks", body: params)
|
|
21
26
|
Responses::GigTaskResponse.new(response.body)
|
|
@@ -6,8 +6,8 @@ module CirroIOV2
|
|
|
6
6
|
Responses::GigInvitationListResponse.new(response.body)
|
|
7
7
|
end
|
|
8
8
|
|
|
9
|
-
def accept(id)
|
|
10
|
-
response = client.request_client.request(:post, "#{resource_root}/#{id}/accept")
|
|
9
|
+
def accept(id, params = nil)
|
|
10
|
+
response = client.request_client.request(:post, "#{resource_root}/#{id}/accept", body: params)
|
|
11
11
|
Responses::GigInvitationResponse.new(response.body)
|
|
12
12
|
end
|
|
13
13
|
|
|
@@ -46,11 +46,15 @@ module CirroIOV2
|
|
|
46
46
|
include Base
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
+
GigDeleteResponse = Struct.new(:id, :object, :deleted) do
|
|
50
|
+
include Base
|
|
51
|
+
end
|
|
52
|
+
|
|
49
53
|
GigTaskResponse = Struct.new(:id, :object, :title, :base_price) do
|
|
50
54
|
include Base
|
|
51
55
|
end
|
|
52
56
|
|
|
53
|
-
GigInvitationResponse = Struct.new(:id, :object, :status, :gig_id, :user_id) do
|
|
57
|
+
GigInvitationResponse = Struct.new(:id, :object, :status, :gig_id, :user_id, :no_reward) do
|
|
54
58
|
include Base
|
|
55
59
|
end
|
|
56
60
|
|
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: 2.5.
|
|
4
|
+
version: 2.5.4
|
|
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:
|
|
11
|
+
date: 2023-01-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|