tomograph 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/tomograph/api_blueprint/json_schema.rb +1 -1
- data/lib/tomograph/path.rb +6 -0
- data/lib/tomograph/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7bbbc30c0b54bf90c58e8f8f5248673d0052a74c
|
4
|
+
data.tar.gz: 099337cd6e0cdcc9d0cdb323cfcfa14cb2d649f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96f3eef614a44ccb70e809a66a6a35d2d4ede03cab5ac9abd441fac640fad0624b247bcb71245e7a448930337265ebf1e9cf81f2121e2388475e69bc1b26e71b
|
7
|
+
data.tar.gz: 1ec43d46a0889ed787a109a2ac599239deb3bb7ac7aff1b368118c9c39a5f36ae054f3da7adb63c78f67ee626c248e55da2b050182bc4c2a0a185d349b1e4273
|
data/CHANGELOG.md
CHANGED
@@ -26,7 +26,7 @@ module Tomograph
|
|
26
26
|
@to_resources = @documentation.group_by { |action| action['resource'] }
|
27
27
|
@to_resources = @to_resources.each_with_object({}) do |(resource, actions), resource_map|
|
28
28
|
requests = actions.map do |action|
|
29
|
-
"#{action['method']} #{action['path']}"
|
29
|
+
"#{action['method']} #{@prefix}#{action['path']}"
|
30
30
|
end
|
31
31
|
resource_map[resource] = requests
|
32
32
|
end
|
data/lib/tomograph/path.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
module Tomograph
|
2
2
|
class Path
|
3
|
+
attr_reader :path
|
4
|
+
|
3
5
|
def initialize(path)
|
4
6
|
unless path && !path.empty?
|
5
7
|
@path = ''
|
@@ -29,6 +31,10 @@ module Tomograph
|
|
29
31
|
@path
|
30
32
|
end
|
31
33
|
|
34
|
+
def ==(other)
|
35
|
+
other.instance_of? self.class and other.path == path
|
36
|
+
end
|
37
|
+
|
32
38
|
private
|
33
39
|
|
34
40
|
def delete_till_the_end(beginning_with)
|
data/lib/tomograph/version.rb
CHANGED