zaikio-hub 0.14.0 → 0.15.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: ea8a749439ca4171d952577b4d30d7ed1167ff917dfecf03d5952505c6a0df0c
4
- data.tar.gz: 72fc9bdbdf68983330f3b9ab845f7962c0061fcac90636fd147e16d17b4e31ce
3
+ metadata.gz: b3a06258d3161849a8f111e927d88e502405c7cf24301b72130907d59281ffc5
4
+ data.tar.gz: 2cf3695a82952eb6bc9a295b1161d2f99c2c57c7c00d7416e2ddeb93e8509f4d
5
5
  SHA512:
6
- metadata.gz: 0a2bc2122bc328b976576f0ced1eb2a939daa632d81ed536088dd6e959f12c8c2029abbbb8edb33f8698bc0ff844aa48edee686a9a8917a96e1ce136671fde87
7
- data.tar.gz: 59e446e5032fa300d1c86c751d8290af4bcc0ecd784e1eb80fb8e01eb1e560151b4d76323b609d74e4a4baa13cbe10e5ec9653b2ec4e8761ba4dccb964450789
6
+ metadata.gz: ed8875be23befc07adf22fca585d132d636ee2599bf614e3e6216234a88931fde2625197eccd9b482a6ee72e4cd5afc365a30362b9c321d9f91b41d82ba0de77
7
+ data.tar.gz: f03cdcaa76ebab4929f9a664b535bcd03c36f0b55654107e78a4b32c4f0211b7f92b2c2ea5f1a2636d929255ef692919c732588139c39df6288a424b6212eb86
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.15.1]
11
+
12
+ * Add translations for `kind` attribute for `Machine` and `Specialist`
13
+
14
+ ## [0.15.0] - 2023-04-12
15
+
16
+ * Add `capabilities` attribute to `Machine` and `Specialist`
17
+ * Add `Zaikio::Hub::Asset.capabilities` method for a list of all capabilities
18
+
10
19
  ## [0.14.0] - 2023-04-03
11
20
 
12
21
  * **BREAKING** Remove `Software` asset type
@@ -117,7 +126,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
117
126
  ### Added
118
127
  - Added subscriptions (migration required)
119
128
 
120
- [Unreleased]: https://github.com/zaikio/zaikio-hub-ruby/compare/v0.14.0..HEAD
129
+ [Unreleased]: https://github.com/zaikio/zaikio-hub-ruby/compare/v0.15.1..HEAD
130
+ [0.15.1]: https://github.com/zaikio/zaikio-hub-ruby/compare/v0.15.0..v0.15.1
131
+ [0.15.0]: https://github.com/zaikio/zaikio-hub-ruby/compare/v0.14.0..v0.15.0
121
132
  [0.14.0]: https://github.com/zaikio/zaikio-hub-ruby/compare/v0.13.0..v0.14.0
122
133
  [0.13.0]: https://github.com/zaikio/zaikio-hub-ruby/compare/v0.12.0..v0.13.0
123
134
  [0.12.0]: https://github.com/zaikio/zaikio-hub-ruby/compare/v0.11.2..v0.12.0
@@ -0,0 +1,91 @@
1
+ de:
2
+ activemodel:
3
+ attributes:
4
+ "zaikio/hub/machine/capability":
5
+ ctp: CTP
6
+ digital_printing: Digitaldruck
7
+ digital_web_printing: Digitaler Rollendruck
8
+ inkjet_printing: Inkjet-Druck
9
+ inkjet_web_printing: Inkjet-Rollendruck
10
+ offset_printing: Offsetdruck
11
+ offset_uv_printing: UV-Offsetdruck
12
+ offset_uvle_printing: Offset-UVLE-Druck
13
+ offset_web_printing: Offset-Rollendruck
14
+ offset_web_uv_printing: Offset-Rollen-UV-Druck
15
+ offset_web_uvle_printing: Offset-Rollen-UVLE-Druck
16
+ flexo_printing: Flexodruck
17
+ letterpress_printing: Buchdruck
18
+ pad_printing: Tampondruck
19
+ pre_cutting: Vorschneiden
20
+ cutting: Schneiden
21
+ intermediate_cutting: Zwischenschneiden
22
+ folding: Falten
23
+ laminating: Laminieren
24
+ perfect_binding: Perfekte Bindung
25
+ hole_drilling: Löcher bohren
26
+ comb_binding: Kamm-Bindung
27
+ embossing: Prägen
28
+ engraving: Gravieren
29
+ foil_stamping: Folie prägen
30
+ gluing: Kleben
31
+ head_banding: Kopfbinden
32
+ perforating: Perforieren
33
+ ring_binding: Ringbindung
34
+ saddle_stitching: Sattelnaht
35
+ spiral_binding: Spiralbindung
36
+ strip_binding: Streifenbindung
37
+ thread_sewing: Fadenheftung
38
+ envelope_stuffing: Umschlag füllen
39
+ counting: Zählen
40
+ wrapping: Verpacken
41
+ boxing: Paketverpacken
42
+ shrink_wrapping: Schrumpffolienverpackung
43
+ addressing: Adressieren
44
+ franking: Frankieren
45
+ "zaikio/hub/machine/kind":
46
+ adhesive_binder: Klebehefter
47
+ binder: Bindemaschine
48
+ book_puncher: Buchhefter
49
+ box_maker: Kartonagenbauer
50
+ box_packer: Kartonagenpacker
51
+ case_maker: Faltschachtelbauer
52
+ corner_rounder: Eckenrundungsgerät
53
+ ctp: Computer-zu-Platte
54
+ cutter: Schneidemaschine
55
+ digital_press: Digitaldruckmaschine
56
+ drill: Bohrmaschine
57
+ drill_puncher: Bohrhefter
58
+ eyeletter: Blickfang
59
+ flexo_press: Flexodruckmaschine
60
+ folder: Falzmaschine
61
+ gatherer: Sammelmaschine
62
+ inkjet_press: Tintenstrahldruckmaschine
63
+ laminator: Laminiermaschine
64
+ letterpress_press: Buchdruckmaschine
65
+ notcher: Nieter
66
+ offset_press: Offsetdruckmaschine
67
+ pad_press: Pad-Druckmaschine
68
+ perforator: Perforator
69
+ platesetter: Plattenbelichter
70
+ shape_cutter: Formschneider
71
+ silkscreen_press: Siebdruckmaschine
72
+ spindle_drill: Spindeldrill
73
+ stitcher: Heftmaschine
74
+ thread_sewer: Fadenhefter
75
+ trimmer: Schneidemaschine
76
+ web_digital_press: Web Digitaldruckmaschine
77
+ web_inkjet_press: Web Tintenstrahldruckmaschine
78
+ web_offset_press: Web Offsetdruckmaschine
79
+ web_silkscreen_press: Web Siebdruckmaschine
80
+ "zaikio/hub/specialist/capability":
81
+ envelope_stuffing: Umschlag füllen
82
+ counting: Zählen
83
+ wrapping: Verpacken
84
+ boxing: Paketverpacken
85
+ shrink_wrapping: Schrumpffolienverpackung
86
+ addressing: Adressieren
87
+ franking: Frankieren
88
+ "zaikio/hub/specialist/kind":
89
+ other: Andere
90
+ boxing: Verpackung
91
+ shipping: Versand
@@ -0,0 +1,91 @@
1
+ en:
2
+ activemodel:
3
+ attributes:
4
+ "zaikio/hub/machine/capability":
5
+ ctp: CTP
6
+ digital_printing: Digital printing
7
+ digital_web_printing: Digital web printing
8
+ inkjet_printing: Inkjet printing
9
+ inkjet_web_printing: Inkjet web printing
10
+ offset_printing: Offset printing
11
+ offset_uv_printing: Offset UV printing
12
+ offset_uvle_printing: Offset UVLE printing
13
+ offset_web_printing: Offset web printing
14
+ offset_web_uv_printing: Offset web UV printing
15
+ offset_web_uvle_printing: Offset web UVLE printing
16
+ flexo_printing: Flexo printing
17
+ letterpress_printing: Letterpress printing
18
+ pad_printing: Pad printing
19
+ pre_cutting: Pre cutting
20
+ cutting: Cutting
21
+ intermediate_cutting: Intermediate cutting
22
+ folding: Folding
23
+ laminating: Laminating
24
+ perfect_binding: Perfect binding
25
+ hole_drilling: Hole drilling
26
+ comb_binding: Comb binding
27
+ embossing: Embossing
28
+ engraving: Engraving
29
+ foil_stamping: Foil stamping
30
+ gluing: Gluing
31
+ head_banding: Head banding
32
+ perforating: Perforating
33
+ ring_binding: Ring binding
34
+ saddle_stitching: Saddle stitching
35
+ spiral_binding: Spiral binding
36
+ strip_binding: Strip binding
37
+ thread_sewing: Thread sewing
38
+ envelope_stuffing: Envelope stuffing
39
+ counting: Counting
40
+ wrapping: Wrapping
41
+ boxing: Boxing
42
+ shrink_wrapping: Shrink wrapping
43
+ addressing: Addressing
44
+ franking: Franking
45
+ "zaikio/hub/machine/kind":
46
+ adhesive_binder: Adhesive Binder
47
+ binder: Binder
48
+ book_puncher: Book Puncher
49
+ box_maker: Box Maker
50
+ box_packer: Box Packer
51
+ case_maker: Case Maker
52
+ corner_rounder: Corner Rounder
53
+ ctp: CTP
54
+ cutter: Cutter
55
+ digital_press: Digital Press
56
+ drill: Drill
57
+ drill_puncher: Drill Puncher
58
+ eyeletter: Eyeletter
59
+ flexo_press: Flexo Press
60
+ folder: Folder
61
+ gatherer: Gatherer
62
+ inkjet_press: Inkjet Press
63
+ laminator: Laminator
64
+ letterpress_press: Letterpress Press
65
+ notcher: Notcher
66
+ offset_press: Offset Press
67
+ pad_press: Pad Press
68
+ perforator: Perforator
69
+ platesetter: Platesetter
70
+ shape_cutter: Shape Cutter
71
+ silkscreen_press: Silkscreen Press
72
+ spindle_drill: Spindle Drill
73
+ stitcher: Stitcher
74
+ thread_sewer: Thread Sewer
75
+ trimmer: Trimmer
76
+ web_digital_press: Web Digital Press
77
+ web_inkjet_press: Web Inkjet Press
78
+ web_offset_press: Web Offset Press
79
+ web_silkscreen_press: Web Silkscreen Press
80
+ "zaikio/hub/specialist/capability":
81
+ envelope_stuffing: Envelope stuffing
82
+ counting: Counting
83
+ wrapping: Wrapping
84
+ boxing: Boxing
85
+ shrink_wrapping: Shrink wrapping
86
+ addressing: Addressing
87
+ franking: Franking
88
+ "zaikio/hub/specialist/kind":
89
+ other: Other
90
+ boxing: Boxing
91
+ shipping: Shipping
@@ -3,6 +3,19 @@ module Zaikio
3
3
  module Asset
4
4
  extend ActiveSupport::Concern
5
5
 
6
+ # Constants
7
+ def self.capabilities
8
+ %w[
9
+ ctp digital_printing digital_web_printing inkjet_printing inkjet_web_printing
10
+ offset_printing offset_uv_printing offset_uvle_printing offset_web_printing
11
+ offset_web_uv_printing offset_web_uvle_printing flexo_printing letterpress_printing
12
+ pad_printing pre_cutting cutting intermediate_cutting folding laminating perfect_binding
13
+ hole_drilling comb_binding embossing engraving foil_stamping gluing head_banding
14
+ perforating ring_binding saddle_stitching spiral_binding strip_binding thread_sewing
15
+ envelope_stuffing counting wrapping boxing shrink_wrapping addressing franking
16
+ ].freeze
17
+ end
18
+
6
19
  included do
7
20
  # Callbacks
8
21
  after_create :make_organization_owner
@@ -7,7 +7,7 @@ module Zaikio
7
7
  include_root_in_json :machine
8
8
 
9
9
  # Attributes
10
- attributes :name, :updated_at, :created_at, :site_id, :kind,
10
+ attributes :name, :updated_at, :created_at, :site_id, :kind, :capabilities,
11
11
  :manufacturer_id, :serial_number, :manufacturer, :owner_id
12
12
  end
13
13
  end
@@ -7,7 +7,7 @@ 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
10
+ attributes :name, :updated_at, :created_at, :site_id, :kind, :owner_id, :capabilities
11
11
  end
12
12
  end
13
13
  end
@@ -1,5 +1,5 @@
1
1
  module Zaikio
2
2
  module Hub
3
- VERSION = "0.14.0".freeze
3
+ VERSION = "0.15.1".freeze
4
4
  end
5
5
  end
data/lib/zaikio/hub.rb CHANGED
@@ -42,6 +42,7 @@ module Zaikio
42
42
  yield(configuration)
43
43
 
44
44
  Base.connection = create_connection
45
+ I18n.load_path += Dir["#{File.expand_path('../../config/locales', __dir__)}/*.yml"]
45
46
  end
46
47
 
47
48
  def with_token(token, &block)
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.14.0
4
+ version: 0.15.1
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-03 00:00:00.000000000 Z
13
+ date: 2023-04-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: concurrent-ruby
@@ -26,6 +26,20 @@ dependencies:
26
26
  - - ">="
27
27
  - !ruby/object:Gem::Version
28
28
  version: '0'
29
+ - !ruby/object:Gem::Dependency
30
+ name: i18n
31
+ requirement: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: '0'
36
+ type: :runtime
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
29
43
  - !ruby/object:Gem::Dependency
30
44
  name: jwt
31
45
  requirement: !ruby/object:Gem::Requirement
@@ -133,6 +147,8 @@ files:
133
147
  - MIT-LICENSE
134
148
  - README.md
135
149
  - Rakefile
150
+ - config/locales/de.yml
151
+ - config/locales/en.yml
136
152
  - lib/zaikio/hub.rb
137
153
  - lib/zaikio/hub/address.rb
138
154
  - lib/zaikio/hub/app.rb