zaikio-mission_control 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/locales/de.yml +4 -0
- data/config/locales/en.yml +4 -0
- data/lib/zaikio/mission_control/configuration.rb +1 -1
- data/lib/zaikio/mission_control/intermediate_product.rb +14 -0
- data/lib/zaikio/mission_control/jobs/folder.rb +9 -0
- data/lib/zaikio/mission_control/jobs/folding_card.rb +9 -0
- data/lib/zaikio/mission_control/parts/folder.rb +8 -0
- data/lib/zaikio/mission_control/parts/folding_card.rb +8 -0
- data/lib/zaikio/mission_control/version.rb +1 -1
- data/lib/zaikio/mission_control/workstep.rb +34 -0
- data/lib/zaikio/mission_control.rb +2 -0
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ec4c85ff7c3aa05190a167ebc7ff944cd5866fcd596d973f620204a9dc587c8
|
4
|
+
data.tar.gz: b122daaaef138decc91215afcd7919a39ffb72aa8e8bb998e8c1d2beac086f12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ab1fcbb36d06feb296df7a3a0bfc853ed4bc340f397594c35bf4d8e33de8e75030c20316b99d880fdef1d1d1eb073cde04b74b944288c147d68674daa954da0
|
7
|
+
data.tar.gz: 6c93a4a3791fbfe1214027be00f5d0f9c60c5cf65752ef904327552cae76b883718f6196b23caa66fa9e04154de4a0a07119fad1f027c19100a192cf3faf672f
|
data/config/locales/de.yml
CHANGED
@@ -13,6 +13,8 @@ de:
|
|
13
13
|
"zaikio/mission_control/jobs/cover_letter": "Anschreiben"
|
14
14
|
"zaikio/mission_control/jobs/envelope": "Briefhülle"
|
15
15
|
"zaikio/mission_control/jobs/flyer": "Flugblatt-Faltblatt"
|
16
|
+
"zaikio/mission_control/jobs/folder": "Mappe"
|
17
|
+
"zaikio/mission_control/jobs/folding_card": "Klappkarte"
|
16
18
|
"zaikio/mission_control/jobs/hardcover_book": "Hardcover-Buch"
|
17
19
|
"zaikio/mission_control/jobs/label": "Aufkleber"
|
18
20
|
"zaikio/mission_control/jobs/leaflet": "Flugblatt"
|
@@ -41,6 +43,8 @@ de:
|
|
41
43
|
"zaikio/mission_control/parts/endpaper": "Vor- und Nachsatz"
|
42
44
|
"zaikio/mission_control/parts/envelope": "Briefhülle"
|
43
45
|
"zaikio/mission_control/parts/flyer": "Flugblatt-Faltblatt"
|
46
|
+
"zaikio/mission_control/parts/folder": "Mappe"
|
47
|
+
"zaikio/mission_control/parts/folding_card": "Klappkarte"
|
44
48
|
"zaikio/mission_control/parts/insert": "Believer"
|
45
49
|
"zaikio/mission_control/parts/jacket": "Buchumschlag"
|
46
50
|
"zaikio/mission_control/parts/label": "Aufkleber"
|
data/config/locales/en.yml
CHANGED
@@ -13,6 +13,8 @@ en:
|
|
13
13
|
"zaikio/mission_control/jobs/cover_letter": "Cover Letter"
|
14
14
|
"zaikio/mission_control/jobs/envelope": "Envelope"
|
15
15
|
"zaikio/mission_control/jobs/flyer": "Flyer"
|
16
|
+
"zaikio/mission_control/jobs/folder": "Folder"
|
17
|
+
"zaikio/mission_control/jobs/folding_card": "Folding Card"
|
16
18
|
"zaikio/mission_control/jobs/hardcover_book": "Hardcover Book"
|
17
19
|
"zaikio/mission_control/jobs/label": "Label"
|
18
20
|
"zaikio/mission_control/jobs/leaflet": "Leaflet"
|
@@ -40,6 +42,8 @@ en:
|
|
40
42
|
"zaikio/mission_control/parts/endpaper": "Endpaper"
|
41
43
|
"zaikio/mission_control/parts/envelope": "Envelope"
|
42
44
|
"zaikio/mission_control/parts/flyer": "Flyer"
|
45
|
+
"zaikio/mission_control/parts/folder": "Folder"
|
46
|
+
"zaikio/mission_control/parts/folding_card": "Folding Card"
|
43
47
|
"zaikio/mission_control/parts/insert": "Insert"
|
44
48
|
"zaikio/mission_control/parts/jacket": "Jacket"
|
45
49
|
"zaikio/mission_control/parts/label": "Label"
|
@@ -6,7 +6,7 @@ module Zaikio
|
|
6
6
|
def self.hosts
|
7
7
|
{
|
8
8
|
development: "https://data.zaikio.test/api/v1/",
|
9
|
-
test: "https://data.zaikio.
|
9
|
+
test: "https://data.sandbox.zaikio.com/api/v1/",
|
10
10
|
staging: "https://data.staging.zaikio.com/api/v1/",
|
11
11
|
sandbox: "https://data.sandbox.zaikio.com/api/v1/",
|
12
12
|
production: "https://data.zaikio.com/api/v1/"
|
@@ -0,0 +1,34 @@
|
|
1
|
+
module Zaikio
|
2
|
+
module MissionControl
|
3
|
+
class Workstep < Base
|
4
|
+
include_root_in_json :workstep
|
5
|
+
|
6
|
+
uri "worksteps(/:id)"
|
7
|
+
|
8
|
+
attributes :kind, :state, :progress, :expected_costs_for_work, :actual_costs_for_work,
|
9
|
+
:expected_costs_for_materials, :actual_costs_for_materials, :expected_total_costs,
|
10
|
+
:actual_total_costs, :expected_duration_for_preparation, :actual_duration_for_preparation,
|
11
|
+
:expected_duration_for_execution, :actual_duration_for_execution, :expected_duration_for_cleanup,
|
12
|
+
:actual_duration_for_cleanup, :actual_duration_for_exception, :expected_total_duration,
|
13
|
+
:actual_total_duration, :started_at, :completed_at, :canceled_at, :material_demands_ready_at,
|
14
|
+
:unfulfillable_material_demands_reported_at, :created_at, :updated_at, :network_role, :outsourced
|
15
|
+
|
16
|
+
# Associations
|
17
|
+
has_many :executions, class_name: "Zaikio::MissionControl::Execution", uri: "worksteps/:workstep_id/executions"
|
18
|
+
|
19
|
+
# TODO: change it to return a +Spyke+ +HasMany+ association
|
20
|
+
def created_intermediates
|
21
|
+
@created_intermediates ||= self["intermediates"]["created"].map do |slot|
|
22
|
+
Zaikio::MissionControl::IntermediateProduct.new(slot)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
# TODO: change it to return a +Spyke+ +HasMany+ association
|
27
|
+
def consumed_intermediates
|
28
|
+
@consumed_intermediates ||= get(:workstep)["intermediates"]["consumed"].map do |slot|
|
29
|
+
Zaikio::MissionControl::IntermediateProduct.new(slot)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -93,6 +93,8 @@ require "zaikio/mission_control/order_line_item"
|
|
93
93
|
require "zaikio/mission_control/shipping_option"
|
94
94
|
require "zaikio/mission_control/slot"
|
95
95
|
require "zaikio/mission_control/production_frame"
|
96
|
+
require "zaikio/mission_control/workstep"
|
97
|
+
require "zaikio/mission_control/intermediate_product"
|
96
98
|
|
97
99
|
module Zaikio
|
98
100
|
module MissionControl
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zaikio-mission_control
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zaikio GmbH
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -132,6 +132,7 @@ files:
|
|
132
132
|
- lib/zaikio/mission_control/finishings/spiral_binding.rb
|
133
133
|
- lib/zaikio/mission_control/finishings/strip_binding.rb
|
134
134
|
- lib/zaikio/mission_control/finishings/thread_sewing.rb
|
135
|
+
- lib/zaikio/mission_control/intermediate_product.rb
|
135
136
|
- lib/zaikio/mission_control/job.rb
|
136
137
|
- lib/zaikio/mission_control/jobs/base.rb
|
137
138
|
- lib/zaikio/mission_control/jobs/booklet.rb
|
@@ -145,6 +146,8 @@ files:
|
|
145
146
|
- lib/zaikio/mission_control/jobs/cover_letter.rb
|
146
147
|
- lib/zaikio/mission_control/jobs/envelope.rb
|
147
148
|
- lib/zaikio/mission_control/jobs/flyer.rb
|
149
|
+
- lib/zaikio/mission_control/jobs/folder.rb
|
150
|
+
- lib/zaikio/mission_control/jobs/folding_card.rb
|
148
151
|
- lib/zaikio/mission_control/jobs/hardcover_book.rb
|
149
152
|
- lib/zaikio/mission_control/jobs/label.rb
|
150
153
|
- lib/zaikio/mission_control/jobs/leaflet.rb
|
@@ -176,6 +179,8 @@ files:
|
|
176
179
|
- lib/zaikio/mission_control/parts/endpaper.rb
|
177
180
|
- lib/zaikio/mission_control/parts/envelope.rb
|
178
181
|
- lib/zaikio/mission_control/parts/flyer.rb
|
182
|
+
- lib/zaikio/mission_control/parts/folder.rb
|
183
|
+
- lib/zaikio/mission_control/parts/folding_card.rb
|
179
184
|
- lib/zaikio/mission_control/parts/insert.rb
|
180
185
|
- lib/zaikio/mission_control/parts/jacket.rb
|
181
186
|
- lib/zaikio/mission_control/parts/label.rb
|
@@ -192,6 +197,7 @@ files:
|
|
192
197
|
- lib/zaikio/mission_control/shipping_option.rb
|
193
198
|
- lib/zaikio/mission_control/slot.rb
|
194
199
|
- lib/zaikio/mission_control/version.rb
|
200
|
+
- lib/zaikio/mission_control/workstep.rb
|
195
201
|
homepage: https://www.zaikio.com/
|
196
202
|
licenses:
|
197
203
|
- MIT
|