zaikio-hub 0.15.3 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/lib/zaikio/hub/availability.rb +11 -0
- data/lib/zaikio/hub/machine.rb +4 -0
- data/lib/zaikio/hub/specialist.rb +4 -0
- data/lib/zaikio/hub/version.rb +1 -1
- data/lib/zaikio/hub.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a213b895dd1c0ecb399aafa3adec599fb7b1c149219b956486b459e3fd01e65e
|
4
|
+
data.tar.gz: 23fa363c649c77f2a3768a71720f0b03368e6292d8c8975a28f2b4a906b6743b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 698c948206ee591211dea973a442c6fba4f343d7699798b0c7100db7ad37ca3a48a8aaa6ebc40f814709dabb1e6069b0140af02beee68bd5cfba22443fc5eed2
|
7
|
+
data.tar.gz: 04d25a9c1639ac7cb07776f6137b323bfe0dc96b021cfd8ea2adc8d7871b3e0a6988bffb48bc007e402b810f7bdc1646343c5e95ecb586bbfdfd4a19d3a3492b
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
7
7
|
|
8
8
|
## [Unreleased]
|
9
9
|
|
10
|
+
## [0.16.0]
|
11
|
+
|
12
|
+
- Support `availabilities` for `Machine` and `Specialist`
|
13
|
+
|
10
14
|
## [0.15.3]
|
11
15
|
|
12
16
|
- Improve german and english translations
|
@@ -134,7 +138,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
134
138
|
### Added
|
135
139
|
- Added subscriptions (migration required)
|
136
140
|
|
137
|
-
[Unreleased]: https://github.com/zaikio/zaikio-hub-ruby/compare/v0.
|
141
|
+
[Unreleased]: https://github.com/zaikio/zaikio-hub-ruby/compare/v0.16.0..HEAD
|
142
|
+
[0.16.0]: https://github.com/zaikio/zaikio-hub-ruby/compare/v0.15.3..v0.16.0
|
138
143
|
[0.15.3]: https://github.com/zaikio/zaikio-hub-ruby/compare/v0.15.2..v0.15.3
|
139
144
|
[0.15.2]: https://github.com/zaikio/zaikio-hub-ruby/compare/v0.15.1..v0.15.2
|
140
145
|
[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
|
data/lib/zaikio/hub/machine.rb
CHANGED
@@ -10,6 +10,10 @@ module Zaikio
|
|
10
10
|
attributes :name, :updated_at, :created_at, :site_id, :kind, :capabilities,
|
11
11
|
:manufacturer_id, :serial_number, :manufacturer, :owner_id
|
12
12
|
|
13
|
+
# Associations
|
14
|
+
has_many :availabilities, class_name: "Zaikio::Hub::Availability",
|
15
|
+
uri: "machines/:machine_id/availabilities"
|
16
|
+
|
13
17
|
def self.kinds
|
14
18
|
%w[sheetfed_digital_press web_digital_press digital_press sheetfed_offset_press
|
15
19
|
web_offset_press offset_press cutter shape_cutter folder box_maker
|
@@ -9,6 +9,10 @@ module Zaikio
|
|
9
9
|
# Attributes
|
10
10
|
attributes :name, :updated_at, :created_at, :site_id, :kind, :owner_id, :capabilities
|
11
11
|
|
12
|
+
# Associations
|
13
|
+
has_many :availabilities, class_name: "Zaikio::Hub::Availability",
|
14
|
+
uri: "specialists/:specialist_id/availabilities"
|
15
|
+
|
12
16
|
def self.kinds
|
13
17
|
%w[shipping other boxing].freeze
|
14
18
|
end
|
data/lib/zaikio/hub/version.rb
CHANGED
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.
|
4
|
+
version: 0.16.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-
|
13
|
+
date: 2023-04-28 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
|