zaikio-hub 0.15.3 → 0.17.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: b7f22a9e4ddf1212ae0c41001392422826c0645cc8adc56678cf37a54e402f5a
4
- data.tar.gz: 528ac669196b3e79308e29d64caf8928490208ddd094e8e546c5e9694645f1b0
3
+ metadata.gz: f893074c1bd1a277fb19b5cc8f1a3ef37aad7264178f3a97994533ebbdacba57
4
+ data.tar.gz: 41f0bd66b6e312eb9fef892dcaf0b79ffb592298f0594be7c308632c94bd5247
5
5
  SHA512:
6
- metadata.gz: c0b0ed3424f88f44a7b9652199b19d0b279a6606ee0df8afae9cbfcdaaa7b2a5ad6783d2eb337c081d86473600c95489ae6ec7f34282e007139d78ac0b66da60
7
- data.tar.gz: 18a875e050d3c0cf437cf5291ca7d91c1f5a19d0714faa50a25ccfab68ef917b64d988920c4e115a065e7acac40abc31f0257a183089c30f165bbe10ef523c93
6
+ metadata.gz: 662e72746b5adc8c70d3e23115cfec025b3c0e6364079022602e788b8bacbd1513b86269dad818f58410d45288ab2ff4050691bdcf0e870c7613bd9ca1fc41ec
7
+ data.tar.gz: a508fc44552b52054eae17c72b35d9a568b9e0782470c22baec593e7e0e7324906b8bf02a154390cfeaefc4e1ec997ac8f83b19e0fab31650cde9fb9f37490fd
data/CHANGELOG.md CHANGED
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.17.0]
11
+
12
+ - Add `reference` attribute to `Machine` and `Specialist`
13
+
14
+ ## [0.16.0]
15
+
16
+ - Support `availabilities` for `Machine` and `Specialist`
17
+
10
18
  ## [0.15.3]
11
19
 
12
20
  - Improve german and english translations
@@ -134,7 +142,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
134
142
  ### Added
135
143
  - Added subscriptions (migration required)
136
144
 
137
- [Unreleased]: https://github.com/zaikio/zaikio-hub-ruby/compare/v0.15.3..HEAD
145
+ [Unreleased]: https://github.com/zaikio/zaikio-hub-ruby/compare/v0.17.0..HEAD
146
+ [0.17.0]: https://github.com/zaikio/zaikio-hub-ruby/compare/v0.16.0..v0.17.0
147
+ [0.16.0]: https://github.com/zaikio/zaikio-hub-ruby/compare/v0.15.3..v0.16.0
138
148
  [0.15.3]: https://github.com/zaikio/zaikio-hub-ruby/compare/v0.15.2..v0.15.3
139
149
  [0.15.2]: https://github.com/zaikio/zaikio-hub-ruby/compare/v0.15.1..v0.15.2
140
150
  [0.15.1]: https://github.com/zaikio/zaikio-hub-ruby/compare/v0.15.0..v0.15.1
@@ -0,0 +1,11 @@
1
+ module Zaikio
2
+ module Hub
3
+ class Availability < Base
4
+ include_root_in_json :availability
5
+
6
+ attributes :machine_id, :mode, :starts_at, :ends_at, :date, :weekday, :reason, :capacity,
7
+ :description, :machine_id, :specialist_id, :created_at, :updated_at, :starts_at_hm,
8
+ :ends_at_hm
9
+ end
10
+ end
11
+ end
@@ -8,7 +8,11 @@ module Zaikio
8
8
 
9
9
  # Attributes
10
10
  attributes :name, :updated_at, :created_at, :site_id, :kind, :capabilities,
11
- :manufacturer_id, :serial_number, :manufacturer, :owner_id
11
+ :manufacturer_id, :serial_number, :manufacturer, :owner_id, :reference
12
+
13
+ # Associations
14
+ has_many :availabilities, class_name: "Zaikio::Hub::Availability",
15
+ uri: "machines/:machine_id/availabilities"
12
16
 
13
17
  def self.kinds
14
18
  %w[sheetfed_digital_press web_digital_press digital_press sheetfed_offset_press
@@ -7,7 +7,12 @@ module Zaikio
7
7
  include_root_in_json :specialist
8
8
 
9
9
  # Attributes
10
- attributes :name, :updated_at, :created_at, :site_id, :kind, :owner_id, :capabilities
10
+ attributes :name, :updated_at, :created_at, :site_id, :kind, :owner_id,
11
+ :capabilities, :reference
12
+
13
+ # Associations
14
+ has_many :availabilities, class_name: "Zaikio::Hub::Availability",
15
+ uri: "specialists/:specialist_id/availabilities"
11
16
 
12
17
  def self.kinds
13
18
  %w[shipping other boxing].freeze
@@ -1,5 +1,5 @@
1
1
  module Zaikio
2
2
  module Hub
3
- VERSION = "0.15.3".freeze
3
+ VERSION = "0.17.0".freeze
4
4
  end
5
5
  end
data/lib/zaikio/hub.rb CHANGED
@@ -15,6 +15,7 @@ require "zaikio/hub/organization"
15
15
  require "zaikio/hub/person"
16
16
  require "zaikio/hub/machine"
17
17
  require "zaikio/hub/specialist"
18
+ require "zaikio/hub/availability"
18
19
  require "zaikio/hub/address"
19
20
  require "zaikio/hub/site"
20
21
  require "zaikio/hub/membership"
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.15.3
4
+ version: 0.17.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-04-24 00:00:00.000000000 Z
13
+ date: 2023-05-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: concurrent-ruby
@@ -153,6 +153,7 @@ files:
153
153
  - lib/zaikio/hub/address.rb
154
154
  - lib/zaikio/hub/app.rb
155
155
  - lib/zaikio/hub/asset.rb
156
+ - lib/zaikio/hub/availability.rb
156
157
  - lib/zaikio/hub/base.rb
157
158
  - lib/zaikio/hub/basic_auth_middleware.rb
158
159
  - lib/zaikio/hub/business_relationship.rb