cirro-ruby-client 2.5.2 → 2.5.4

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: 7e8249fc79d497382ffbc1eff15e7cd198b5abe8715e3ee97dfffcb838366631
4
- data.tar.gz: 74516d29dd83166327797043e042ab16037b84af307696b5e1b09b4ff25b8e3d
3
+ metadata.gz: 8d694c3e8f8646a2c7249e229314685156169bf169a68fa1d90e2b2947b7e935
4
+ data.tar.gz: '09668fe924234babd35f8ad7e90e251b21552081d8e804927bfecaa7cd9f6708'
5
5
  SHA512:
6
- metadata.gz: 191a7984c3209d283928ecbdc23b8464b05814acee5c63e02abeff9ab834740322552b322050ec1993af8a10eb8eae32e14369a4862d4bf152fd0190ac939492
7
- data.tar.gz: fd9be254f2be62238e6391e18071f1e73fb4ef6dbfcd88755a00ce91a2c5e5814977c7bc3abe07b68baf302fa16d248efe71965e64e2bae729a0268b1eb2d7e0
6
+ metadata.gz: f6c3029d82c79445bf754d8427a7afccb785f6a931ebdb5771bb704f25352cf3d5ffa072000c17fdc2dc21a310f758f8e203fce6a13eb04fd8aa6863346d4ddf
7
+ data.tar.gz: 8371438b9268425f9f02157720e423135af303974c022204552fb39faf6e81dfda3e988e2aa5a356f6c4a998070015ddb6a13b2378a524762caed91f55ee91de
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cirro-ruby-client (2.5.2)
4
+ cirro-ruby-client (2.5.4)
5
5
  activesupport
6
6
  faraday (< 1.2.0)
7
7
  faraday_middleware
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
- [![CircleCI](https://circleci.com/gh/test-IO/cirro-ruby-client/tree/master.svg?style=svg)](https://circleci.com/gh/test-IO/cirro-ruby-client/tree/master)
5
+ [![CircleCI](https://circleci.com/gh/test-IO/cirro-ruby-client/tree/master.svg?style=svg&circle-token=a77e4eac5646768d681283763d2a29a55a221d7c)](https://circleci.com/gh/test-IO/cirro-ruby-client/tree/master)
6
6
 
7
7
  ## Installation
8
8
 
@@ -1,7 +1,7 @@
1
1
  # rubocop:disable Style/MutableConstant
2
2
  module CirroIO
3
3
  module Client
4
- VERSION = '2.5.2'
4
+ VERSION = '2.5.4'
5
5
  end
6
6
  end
7
7
  # rubocop:enable Style/MutableConstant
@@ -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.2
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: 2022-12-15 00:00:00.000000000 Z
11
+ date: 2023-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport