arkaan 1.2.12 → 1.2.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/arkaan/concerns.rb +5 -4
- data/lib/arkaan/concerns/typable.rb +17 -0
- data/lib/arkaan/monitoring/gateway.rb +1 -0
- data/lib/arkaan/monitoring/instance.rb +1 -4
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ca48ba891cbeae5b9769f3964d30cf539b142d1
|
4
|
+
data.tar.gz: 02faf9cddf2ded9f719feb244fedee6de1165b20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcaa2c9d0f39d03c940f8ae03130f5db279430feed8b0a89c5ebad40d9a6d49052cafb236d41672d3784ecdd5a788c8cfe17513ebcc84100efa465f0a1b3a1a6
|
7
|
+
data.tar.gz: edae503ae73996ac913c4eb3e1888d9e47b032d085fb814d6a79ad8184e51f7c56a6f0f3d425064badef5190ba5420b6823e25495ea1ad393d41d2a1046ea1bd
|
data/lib/arkaan/concerns.rb
CHANGED
@@ -2,10 +2,11 @@ module Arkaan
|
|
2
2
|
# This module holds the shared concerns to include in the desired models.
|
3
3
|
# @author Vincent Courtois <courtois.vincent@outlook.com>
|
4
4
|
module Concerns
|
5
|
-
autoload :
|
6
|
-
autoload :Activable, 'arkaan/concerns/activable'
|
5
|
+
autoload :Activable , 'arkaan/concerns/activable'
|
7
6
|
autoload :Diagnosticable, 'arkaan/concerns/diagnosticable'
|
8
|
-
autoload :Enumerable, 'arkaan/concerns/enumerable'
|
9
|
-
autoload :Premiumable, 'arkaan/concerns/premiumable'
|
7
|
+
autoload :Enumerable , 'arkaan/concerns/enumerable'
|
8
|
+
autoload :Premiumable , 'arkaan/concerns/premiumable'
|
9
|
+
autoload :Sluggable , 'arkaan/concerns/sluggable'
|
10
|
+
autoload :Typable , 'arkaan/concerns/typable'
|
10
11
|
end
|
11
12
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Arkaan
|
2
|
+
module Concerns
|
3
|
+
# Concerns for the objects that can be activated or deactivated, included the corresponding scopes.
|
4
|
+
# @author Vincent Courtois <courtois.vincent@outlook.com>
|
5
|
+
module Typable
|
6
|
+
extend ActiveSupport::Concern
|
7
|
+
|
8
|
+
included do
|
9
|
+
include Arkaan::Concerns::Enumerable
|
10
|
+
|
11
|
+
# @!attribute [rw] type
|
12
|
+
# @return [Symbol] the type of the instance, determining its way of being deployed, restarted, etc.
|
13
|
+
enum_field :type, [:heroku, :local], default: :heroku
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -7,6 +7,7 @@ module Arkaan
|
|
7
7
|
include Mongoid::Timestamps
|
8
8
|
include Arkaan::Concerns::Activable
|
9
9
|
include Arkaan::Concerns::Diagnosticable
|
10
|
+
include Arkaan::Concerns::Typable
|
10
11
|
|
11
12
|
# @!attribute [rw] url
|
12
13
|
# @return [String] the URL of the gateway, where the requests will be issued.
|
@@ -6,7 +6,7 @@ module Arkaan
|
|
6
6
|
include Mongoid::Document
|
7
7
|
include Mongoid::Timestamps
|
8
8
|
include Arkaan::Concerns::Activable
|
9
|
-
include Arkaan::Concerns::
|
9
|
+
include Arkaan::Concerns::Typable
|
10
10
|
|
11
11
|
# @!attribute [rw] url
|
12
12
|
# @return [String] the URL of the instance, where the requests will be issued.
|
@@ -14,9 +14,6 @@ module Arkaan
|
|
14
14
|
# @!attribute [rw] running
|
15
15
|
# @return [Boolean] the running status of the instance, indicating if it can be used or not.
|
16
16
|
field :running, type: Boolean, default: false
|
17
|
-
# @!attribute [rw] type
|
18
|
-
# @return [Symbol] the type of the instance, determining its way of being deployed, restarted, etc.
|
19
|
-
enum_field :type, [:heroku, :local], default: :heroku
|
20
17
|
# @!attribute [rw] data
|
21
18
|
# @return [Hash] the additional datas for this instance (for example for an Heroku instance it's all the data provided by the API)
|
22
19
|
field :data, type: Hash, default: {}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arkaan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vincent Courtois
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -269,6 +269,7 @@ files:
|
|
269
269
|
- lib/arkaan/concerns/enumerable.rb
|
270
270
|
- lib/arkaan/concerns/premiumable.rb
|
271
271
|
- lib/arkaan/concerns/sluggable.rb
|
272
|
+
- lib/arkaan/concerns/typable.rb
|
272
273
|
- lib/arkaan/decorators.rb
|
273
274
|
- lib/arkaan/decorators/errors.rb
|
274
275
|
- lib/arkaan/decorators/errors/env_variable_missing.rb
|