zaikio-hub 0.12.0 → 0.14.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: 3af7cc3326e84ad917b843cfd280dcbe73c771987f2e578c502b2aee9ac7e577
4
- data.tar.gz: 500105cb6254ea8aaae1264458950204aa48017c9906395811948bc6b84389a2
3
+ metadata.gz: ea8a749439ca4171d952577b4d30d7ed1167ff917dfecf03d5952505c6a0df0c
4
+ data.tar.gz: 72fc9bdbdf68983330f3b9ab845f7962c0061fcac90636fd147e16d17b4e31ce
5
5
  SHA512:
6
- metadata.gz: 2cc38dcbd294cefa9f8286c3df5ffa4059d64861b93b3840bdae4f7a05a88a533c7f9c0dcc76aaaa905ecb8d7a2ead9c46c88e3ad54a04a217135efc3f386fb2
7
- data.tar.gz: 0376f5cafebe36260aa962b8f398ddb707d5e49b6d8a4fd48a66f28abb4e076464e660aeaf30ae58636871c109857dffaab851769a763870ac51a16e1a263a17
6
+ metadata.gz: 0a2bc2122bc328b976576f0ced1eb2a939daa632d81ed536088dd6e959f12c8c2029abbbb8edb33f8698bc0ff844aa48edee686a9a8917a96e1ce136671fde87
7
+ data.tar.gz: 59e446e5032fa300d1c86c751d8290af4bcc0ecd784e1eb80fb8e01eb1e560151b4d76323b609d74e4a4baa13cbe10e5ec9653b2ec4e8761ba4dccb964450789
data/CHANGELOG.md CHANGED
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.14.0] - 2023-04-03
11
+
12
+ * **BREAKING** Remove `Software` asset type
13
+ * **BREAKING** Remove `Asset#specification`
14
+
15
+ ## [0.13.0] - 2023-03-24
16
+
17
+ * Add `Zaikio::Hub::SubscriptionInvitation`
18
+
10
19
  ## [0.12.0] - 2023-02-09
11
20
 
12
21
  * Update client-helpers and introduce default timeouts
@@ -108,8 +117,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
108
117
  ### Added
109
118
  - Added subscriptions (migration required)
110
119
 
111
- [Unreleased]: https://github.com/zaikio/zaikio-hub-ruby/compare/v0.12.0..HEAD
112
- [0.11.2]: https://github.com/zaikio/zaikio-hub-ruby/compare/v0.11.2..v0.12.0
120
+ [Unreleased]: https://github.com/zaikio/zaikio-hub-ruby/compare/v0.14.0..HEAD
121
+ [0.14.0]: https://github.com/zaikio/zaikio-hub-ruby/compare/v0.13.0..v0.14.0
122
+ [0.13.0]: https://github.com/zaikio/zaikio-hub-ruby/compare/v0.12.0..v0.13.0
123
+ [0.12.0]: https://github.com/zaikio/zaikio-hub-ruby/compare/v0.11.2..v0.12.0
113
124
  [0.11.2]: https://github.com/zaikio/zaikio-hub-ruby/compare/v0.11.1..v0.11.2
114
125
  [0.11.1]: https://github.com/zaikio/zaikio-hub-ruby/compare/v0.11.0..v0.11.1
115
126
  [0.11.0]: https://github.com/zaikio/zaikio-hub-ruby/compare/v0.10.0..v0.11.0
data/README.md CHANGED
@@ -52,7 +52,6 @@ Zaikio::Hub.with_token(token) do
52
52
  # Note that .all understands pagination headers and will fetch all pages
53
53
  organization.members.all
54
54
  organization.machines.all
55
- organization.software.all
56
55
  organization.sites.all
57
56
  organization.sites.find('123')
58
57
  organization.business_relationships.all
@@ -30,17 +30,6 @@ module Zaikio
30
30
  end
31
31
  end
32
32
 
33
- def specification
34
- prefix = if Zaikio::Hub.current_token_data.subject_type == "Person"
35
- "person/organizations/#{owner_id || organization_id}/"
36
- else
37
- ""
38
- end
39
- self.class.request(:get,
40
- "#{prefix}#{collection_name}/#{id}/#{singular_name}_specification")
41
- &.body&.dig("data")
42
- end
43
-
44
33
  private
45
34
 
46
35
  def collection_name
@@ -27,8 +27,6 @@ module Zaikio
27
27
  uri: "organization/memberships(/:id)"
28
28
  has_many :business_relationships, class_name: "Zaikio::Hub::BusinessRelationship",
29
29
  uri: "organization/business_relationships(/:id)"
30
- has_many :software, class_name: "Zaikio::Hub::Software",
31
- uri: "software(/:id)"
32
30
  has_many :machines, class_name: "Zaikio::Hub::Machine",
33
31
  uri: "machines(/:id)"
34
32
  has_many :specialists, class_name: "Zaikio::Hub::Specialist",
@@ -15,8 +15,6 @@ module Zaikio
15
15
  # Associations
16
16
  has_many :memberships, class_name: "Zaikio::Hub::Membership",
17
17
  uri: "person/organizations/:organization_id/memberships"
18
- has_many :software, class_name: "Zaikio::Hub::Software",
19
- uri: "person/organizations/:organization_id/software"
20
18
  has_many :machines, class_name: "Zaikio::Hub::Machine",
21
19
  uri: "person/organizations/:organization_id/machines"
22
20
  has_many :specialists, class_name: "Zaikio::Hub::Specialist",
@@ -0,0 +1,14 @@
1
+ module Zaikio
2
+ module Hub
3
+ class SubscriptionInvitation < Base
4
+ uri "subscription_invitations(/:id)"
5
+
6
+ include_root_in_json :subscription_invitation
7
+
8
+ # Attributes
9
+ attributes :updated_at, :created_at, :app_name, :plan, :organization_name,
10
+ :contact_person, :starting_at, :expires_at, :invitation_url, :created_at,
11
+ :updated_at
12
+ end
13
+ end
14
+ end
@@ -1,5 +1,5 @@
1
1
  module Zaikio
2
2
  module Hub
3
- VERSION = "0.12.0".freeze
3
+ VERSION = "0.14.0".freeze
4
4
  end
5
5
  end
data/lib/zaikio/hub.rb CHANGED
@@ -14,7 +14,6 @@ require "zaikio/hub/business_relationship"
14
14
  require "zaikio/hub/organization"
15
15
  require "zaikio/hub/person"
16
16
  require "zaikio/hub/machine"
17
- require "zaikio/hub/software"
18
17
  require "zaikio/hub/specialist"
19
18
  require "zaikio/hub/address"
20
19
  require "zaikio/hub/site"
@@ -26,6 +25,7 @@ require "zaikio/hub/revoked_access_token"
26
25
  require "zaikio/hub/connection"
27
26
  require "zaikio/hub/app"
28
27
  require "zaikio/hub/subscription"
28
+ require "zaikio/hub/subscription_invitation"
29
29
  require "zaikio/hub/test_account"
30
30
  require "zaikio/hub/token_data"
31
31
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zaikio-hub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - crispymtn
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-02-09 00:00:00.000000000 Z
13
+ date: 2023-04-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: concurrent-ruby
@@ -153,9 +153,9 @@ files:
153
153
  - lib/zaikio/hub/revoked_access_token.rb
154
154
  - lib/zaikio/hub/role.rb
155
155
  - lib/zaikio/hub/site.rb
156
- - lib/zaikio/hub/software.rb
157
156
  - lib/zaikio/hub/specialist.rb
158
157
  - lib/zaikio/hub/subscription.rb
158
+ - lib/zaikio/hub/subscription_invitation.rb
159
159
  - lib/zaikio/hub/test_account.rb
160
160
  - lib/zaikio/hub/token_data.rb
161
161
  - lib/zaikio/hub/version.rb
@@ -1,20 +0,0 @@
1
- module Zaikio
2
- module Hub
3
- class Software < Base
4
- include Asset
5
-
6
- uri "software(/:id)"
7
- include_root_in_json :software
8
-
9
- # Attributes
10
- attributes :name, :updated_at, :created_at, :site_id, :kind, :owner_id,
11
- :vendor_id, :vendor
12
-
13
- private
14
-
15
- def collection_name
16
- "software"
17
- end
18
- end
19
- end
20
- end