arkaan 2.0.0 → 2.1.0

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
  SHA256:
3
- metadata.gz: edf2d8ccd56f2083589f47086566a40400b98295249d3b2cefe0dc980584cb86
4
- data.tar.gz: 1c27bc8b6fae7cec149f26f89ec9265892ff29d09e51a4b346cc57e2b171e6f1
3
+ metadata.gz: 4ac24b9a1965256ba6dee7471db0aa4be3d83edffa32478fe56a7e306869e995
4
+ data.tar.gz: c59db73326dddf95bb8e4e10283f122207b4924d27a91068596c43d0a8fb0f65
5
5
  SHA512:
6
- metadata.gz: 063cde9a9b391fcea46b43829e251c25649f98e063fa8344294b15168b5d0c90b63248e4102d503e19a6624cd082023a5ed279d95fb679c315eaeb4fed6525b2
7
- data.tar.gz: ee49a9fda2912e8efc873207914aec9e61c575290d742012458d86dfa75ec50b1631a3a65a4fb87d262ecb6bcecdd405204bdb5798de0cd086a244493dd2f897
6
+ metadata.gz: 025a125c48b204298b0365153eae8527e35a9b92defcf9a38c136895c5869de1a7fa86e4cc2a13aaf7b6578e8078be799844ae5817d1fb042775cb0165a8f3c5
7
+ data.tar.gz: 4d27a49e75b1199b355bf12dbe5ef3c3454045ee2c68b0c7114b903ad3e4e4a4dabd5ca184643179532950652c0b9cda64e646e326960e9262f1f1a27bfe7f7f
@@ -31,6 +31,12 @@ module Arkaan
31
31
 
32
32
  validates :verb,
33
33
  inclusion: {message: 'unknown', in: ['get', 'post', 'put', 'delete', 'patch', 'option']}
34
+
35
+ # Returns the complete path, enriched with the path of the service.
36
+ # @return [String] the complete path to access this route from the outside.
37
+ def complete_path
38
+ path == '/' ? service.path : "#{service.path}#{path}"
39
+ end
34
40
  end
35
41
  end
36
42
  end
@@ -1,3 +1,3 @@
1
1
  module Arkaan
2
- VERSION = '2.0.0'
2
+ VERSION = '2.1.0'
3
3
  end
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: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent Courtois
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-04 00:00:00.000000000 Z
11
+ date: 2019-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec