cirro-ruby-client 2.5.0 → 2.5.2

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: 9e01d27afc3b2ca9afac09783df0cae430395f2a00d1b7fb6a617e4b0231dfa7
4
- data.tar.gz: 9ef82082045a4020406ffe7a4b4ac6bbebfcba9dfcd614db5cb3f9d2a8c65567
3
+ metadata.gz: 7e8249fc79d497382ffbc1eff15e7cd198b5abe8715e3ee97dfffcb838366631
4
+ data.tar.gz: 74516d29dd83166327797043e042ab16037b84af307696b5e1b09b4ff25b8e3d
5
5
  SHA512:
6
- metadata.gz: '084b92fe22623087cb81e08927ffafbbf8968f9852fc401cc2fa86b8535d28118f1a5b991aa9542c376e5a582b5d7206bac34c09a3bb123c535ab3698f62bd19'
7
- data.tar.gz: ff6163af97d57acf598157839e908ec7eec1cb584e9f0a4b6a411c30f27055f418eb6bd5b5b3616dec4607298a02f5fcb6812a3447530eaad51e71f17707b07b
6
+ metadata.gz: 191a7984c3209d283928ecbdc23b8464b05814acee5c63e02abeff9ab834740322552b322050ec1993af8a10eb8eae32e14369a4862d4bf152fd0190ac939492
7
+ data.tar.gz: fd9be254f2be62238e6391e18071f1e73fb4ef6dbfcd88755a00ce91a2c5e5814977c7bc3abe07b68baf302fa16d248efe71965e64e2bae729a0268b1eb2d7e0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cirro-ruby-client (2.5.0)
4
+ cirro-ruby-client (2.5.2)
5
5
  activesupport
6
6
  faraday (< 1.2.0)
7
7
  faraday_middleware
data/README.md CHANGED
@@ -150,6 +150,12 @@ client.User.create
150
150
  ```
151
151
 
152
152
  ## Gig
153
+ ### Find a gig
154
+
155
+ ```ruby
156
+ client.Gig.find(ID)
157
+ # => Gig object
158
+ ```
153
159
  ### Create a gig
154
160
 
155
161
  ```ruby
@@ -385,13 +391,13 @@ client.NotificationTemplate.update(
385
391
  "subject": "New Bug Comment",
386
392
  "body": "Hello {{recipient_first_name}}, you got {{pluralize count, 'new comment', 'new comments'}}"
387
393
  )
388
- ```
394
+ ```
389
395
 
390
396
  ### Delete a notification template
391
397
 
392
398
  ```ruby
393
399
  client.NotificationTemplate.delete('1')
394
- ```
400
+ ```
395
401
  ## Notifcation Topic Preference
396
402
  ### List all
397
403
 
@@ -1,7 +1,7 @@
1
1
  # rubocop:disable Style/MutableConstant
2
2
  module CirroIO
3
3
  module Client
4
- VERSION = '2.5.0'
4
+ VERSION = '2.5.2'
5
5
  end
6
6
  end
7
7
  # rubocop:enable Style/MutableConstant
@@ -1,6 +1,11 @@
1
1
  module CirroIOV2
2
2
  module Resources
3
3
  class Gig < Base
4
+ def find(id)
5
+ response = client.request_client.request(:get, [resource_root, id].join('/'))
6
+ Responses::GigResponse.new(response.body)
7
+ end
8
+
4
9
  def create(params)
5
10
  response = client.request_client.request(:post, resource_root, body: params)
6
11
  Responses::GigResponse.new(response.body)
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.0
4
+ version: 2.5.2
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-06 00:00:00.000000000 Z
11
+ date: 2022-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport