arkaan 0.5.9 → 0.5.10

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
  SHA1:
3
- metadata.gz: f28e5b8c082bd71145df0d5844b693a7ebc96091
4
- data.tar.gz: 3352fe590cbf35a24eb1aa969217b0a879c0b9fd
3
+ metadata.gz: 0457afc1c00ec42c0dfe5aea451727e30715821a
4
+ data.tar.gz: 7aa9901899f699eaeea2de3acf8d2dcc62b3d9ca
5
5
  SHA512:
6
- metadata.gz: f198c2928bdc582bf0377a34b3352323491da90f0c2f82a1dd9fd51d080fe708920c1ee751a77954f759bca39a5d1cb3bf95bc19388af1aca3ea608ccdf20588
7
- data.tar.gz: b19948992679adfae8e520346fedbecc80ff971991849df1efef5de4e68f05d4ebe133fa080a3320bc665dabbe1ff4b2cc85fa29ff12d5c71f3068f69707f5f6
6
+ metadata.gz: 6a78e5a10d51061d7eea0e59b9e2a9eda77c5fb7689f73fce38264d1f97f74da6e3891a90bb9a53c0371a739e33026ec98b64f8886c4344ffac9e6026b1b37e8
7
+ data.tar.gz: fc0a602f6d590bb96d5711f4844389e2bb0b3bc1cf61c00fe7a56af8c36b837c2c71bfb69c0d3ee6156eb3a5ae73f848bbeb5397f69b33c25d06e0590533fe88
@@ -14,6 +14,9 @@ module Arkaan
14
14
  # @!attribute [rw] running
15
15
  # @return [Boolean] the running status of the gateway, indicating if it can be used or not.
16
16
  field :running, type: Boolean, default: false
17
+ # @!attribute [rw] gateways
18
+ # @return [String] the uniq token for this gateway, identifying it in the micro services.
19
+ field :token, type: String
17
20
 
18
21
  scope :running , ->{ where(running: true) }
19
22
 
@@ -22,6 +25,10 @@ module Arkaan
22
25
  validates :url,
23
26
  presence: {message: 'gateway.url.blank'},
24
27
  format: {with: /\A(https?:\/\/)([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?\z/, message: 'gateway.url.format', if: :url?}
28
+
29
+ validates :token,
30
+ presence: {message: 'gateway.token.blank'},
31
+ uniqueness: {message: 'gateway.token.uniq'}
25
32
  end
26
33
  end
27
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arkaan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.9
4
+ version: 0.5.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent Courtois