cirro-ruby-client 2.2.2 → 2.3.1

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: e38b544e357fb8b73b991bb73e6b6409710963e99ee8c466b44d2004e7ef9756
4
- data.tar.gz: 75514bb4366e628f4f4a3ea7322882b53d8d0163aab6f98b726137c5a80d834c
3
+ metadata.gz: b96a2d8386607d8195f026487fee28c3ec2c90bb0c856ae0884b292695964382
4
+ data.tar.gz: 6254da6f6ea9764405fe28bd2eaa920668b43a66888cb9d53f84afdb42aa4ea0
5
5
  SHA512:
6
- metadata.gz: 796756299cd7a820817becfe69dcec2dfafdbe0329a8680c00b20a5e2e3ce83ec5a4fbc90c355e0dfe19f90d33168bd492b3246cc530920116d40c9d01553986
7
- data.tar.gz: 15b64781700c3492eabb97e29fd232f7708c27eae3767326d50943c85d0d25b3b763acaaf3afccbbd6dcffcccf07d2bced2e50510d3cd999116fe520edce3ef1
6
+ metadata.gz: b7c7f973b10a802f68e40062f997987e7d81b368eae2003db652e862ecb0faab50d8f01b6ec9f2e53d65446b50cd5ccba4f4b175802eccb2dab15140e473a707
7
+ data.tar.gz: 525921b72d73440602000369cd614555ef24348bb9f5a93c5eb1d8e0d0407fe0ec022dbfd7b3e172e144b4c7cc663df31619fe42e8eaa8c9169574e85b20369b
data/.gitignore CHANGED
@@ -8,6 +8,9 @@
8
8
  /tmp/
9
9
  .idea/
10
10
 
11
+ .ruby-version
12
+ .ruby-gemset
13
+
11
14
  # rspec failure tracking
12
15
  .rspec_status
13
16
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cirro-ruby-client (2.2.2)
4
+ cirro-ruby-client (2.3.1)
5
5
  activesupport
6
6
  faraday (< 1.2.0)
7
7
  faraday_middleware
@@ -11,14 +11,13 @@ PATH
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- activemodel (6.1.7)
15
- activesupport (= 6.1.7)
16
- activesupport (6.1.7)
14
+ activemodel (7.0.4)
15
+ activesupport (= 7.0.4)
16
+ activesupport (7.0.4)
17
17
  concurrent-ruby (~> 1.0, >= 1.0.2)
18
18
  i18n (>= 1.6, < 2)
19
19
  minitest (>= 5.1)
20
20
  tzinfo (~> 2.0)
21
- zeitwerk (~> 2.3)
22
21
  addressable (2.8.0)
23
22
  public_suffix (>= 2.0.2, < 5.0)
24
23
  ast (2.4.1)
@@ -54,7 +53,7 @@ GEM
54
53
  coderay (~> 1.1)
55
54
  method_source (~> 1.0)
56
55
  public_suffix (4.0.6)
57
- rack (3.0.0)
56
+ rack (3.0.1)
58
57
  rainbow (3.0.0)
59
58
  rake (12.3.3)
60
59
  regexp_parser (1.8.1)
@@ -94,7 +93,6 @@ GEM
94
93
  addressable (>= 2.3.6)
95
94
  crack (>= 0.3.2)
96
95
  hashdiff (>= 0.4.0, < 2.0.0)
97
- zeitwerk (2.6.0)
98
96
 
99
97
  PLATFORMS
100
98
  ruby
@@ -1,7 +1,7 @@
1
1
  # rubocop:disable Style/MutableConstant
2
2
  module CirroIO
3
3
  module Client
4
- VERSION = '2.2.2'
4
+ VERSION = '2.3.1'
5
5
  end
6
6
  end
7
7
  # rubocop:enable Style/MutableConstant
@@ -12,6 +12,7 @@ require 'cirro_io_v2/resources/gig_time_activity'
12
12
  require 'cirro_io_v2/resources/payout'
13
13
  require 'cirro_io_v2/resources/gig_invitation'
14
14
  require 'cirro_io_v2/resources/user'
15
+ require 'cirro_io_v2/resources/space_invitation'
15
16
 
16
17
  require 'cirro_io_v2/responses/base'
17
18
  require 'cirro_io_v2/responses/responses'
@@ -64,6 +65,10 @@ module CirroIOV2
64
65
  Resources::User.new(self)
65
66
  end
66
67
 
68
+ def SpaceInvitation
69
+ Resources::SpaceInvitation.new(self)
70
+ end
71
+
67
72
  def GigInvitation
68
73
  Resources::GigInvitation.new(self)
69
74
  end
@@ -76,8 +81,8 @@ module CirroIOV2
76
81
  Resources::GigResult.new(self)
77
82
  end
78
83
 
79
- def GigTimePayout
80
- Resources::GigTimePayout.new(self)
84
+ def GigTimeActivity
85
+ Resources::GigTimeActivity.new(self)
81
86
  end
82
87
 
83
88
  def Payout
@@ -0,0 +1,10 @@
1
+ module CirroIOV2
2
+ module Resources
3
+ class SpaceInvitation < Base
4
+ def create(params)
5
+ response = client.request_client.request(:post, resource_root, body: params)
6
+ Responses::SpaceInvitationResponse.new(response.body)
7
+ end
8
+ end
9
+ end
10
+ end
@@ -24,6 +24,10 @@ module CirroIOV2
24
24
  include Base
25
25
  end
26
26
 
27
+ SpaceInvitationResponse = Struct.new(:id, :object, :token, :subject, :email, :name, :inviter_name, :skip_background_check, :expires_at) do
28
+ include Base
29
+ end
30
+
27
31
  GigResponse = Struct.new(:id,
28
32
  :object,
29
33
  :title,
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.2.2
4
+ version: 2.3.1
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-10-05 00:00:00.000000000 Z
11
+ date: 2022-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -140,6 +140,7 @@ files:
140
140
  - lib/cirro_io_v2/resources/notification_topic.rb
141
141
  - lib/cirro_io_v2/resources/notification_topic_preference.rb
142
142
  - lib/cirro_io_v2/resources/payout.rb
143
+ - lib/cirro_io_v2/resources/space_invitation.rb
143
144
  - lib/cirro_io_v2/resources/user.rb
144
145
  - lib/cirro_io_v2/responses/base.rb
145
146
  - lib/cirro_io_v2/responses/responses.rb