arkaan 0.7.19 → 0.7.20

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: 7600e95ffa796c17564879976e258e2be2d93120
4
- data.tar.gz: a0703ac0822608b541fc8afc5adc394677de44f4
3
+ metadata.gz: ea59fd72d90a9511ab93a193894a17677b560067
4
+ data.tar.gz: 897abf0eeb3ea0427856ac7c099c4517e2d8e4bd
5
5
  SHA512:
6
- metadata.gz: c19ada966e37f2d2028135e36fe7387f8f9c606c8250bb3428cb64a0fcdb6505d0c7593cf0536f812c39d762fd93ee81c08a3b1146c988d6eb2f543e5a92f7bc
7
- data.tar.gz: 9df8559123c96edd543cb253269643f26f7810306b93f089e4cb3d44d0251f29764e185fc128f1efeaaa562fd8e4c9ccd62dd85a994b250910acd3606e55d768
6
+ metadata.gz: d9741fb2843a9d51922ce59b4341285b5f1e7444858d262c453d0427a104b86e76ddabbb208a0f365e988c791c3701e5b5be48db6076de2eac9e854c47bbe15b
7
+ data.tar.gz: 43d8bd468041397f9198b942200a7ad02429ad05da1bd4bbe4b5d733e2aab879858a4eec2f4fbd928c2d1142264131a76b7154c4f7744bcd73734c2c8a48cd01
@@ -5,15 +5,10 @@ module Arkaan
5
5
  module Premiumable
6
6
  extend ActiveSupport::Concern
7
7
 
8
- # Module holding the class methods for the classes including this concern.
9
- # @author Vincent Courtois <courtois.vincent@outlook.com>
10
- module ClassMethods
11
- # Add the premium field when the module is included and this method is called.
12
- def make_premiumable
13
- # @!attribute [rw] premium
14
- # @return [Boolean] TRUE if the entity is made to be accessible only to premiuma pplications, FALSE otherwise.
15
- field :premium, type: Boolean, default: false
16
- end
8
+ included do
9
+ # @!attribute [rw] premium
10
+ # @return [Boolean] TRUE if the entity is made to be accessible only to premiuma pplications, FALSE otherwise.
11
+ field :premium, type: Boolean, default: false
17
12
  end
18
13
  end
19
14
  end
@@ -6,6 +6,7 @@ module Arkaan
6
6
  include Mongoid::Document
7
7
  include Mongoid::Timestamps
8
8
  include Arkaan::Concerns::Premiumable
9
+ include Arkaan::Concerns::Activable
9
10
 
10
11
  # @!attribute [rw] path
11
12
  # @return [String] the path (URI) of the route in the service?
@@ -14,8 +15,6 @@ module Arkaan
14
15
  # @return [String] the verb (HTTP method) of this route in the service.
15
16
  field :verb, type: String, default: 'get'
16
17
 
17
- make_premiumable
18
-
19
18
  # @!attribute [rw] service
20
19
  # @return [Arkaan::Monitoring::Service] the service in which this route is declared.
21
20
  belongs_to :service, class_name: 'Arkaan::Monitoring::Service', inverse_of: :routes
@@ -18,8 +18,6 @@ module Arkaan
18
18
 
19
19
  make_diagnosticable 'service'
20
20
 
21
- make_premiumable
22
-
23
21
  # @!attribute [rw] creator
24
22
  # @return [Arkaan::Account] the creator of this service.
25
23
  belongs_to :creator, class_name: 'Arkaan::Account', optional: true, inverse_of: :services
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.7.19
4
+ version: 0.7.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent Courtois