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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b621ab5616dfc37ca938313d8b47e53ef40ca37
4
- data.tar.gz: 848d61604096bddf13e6248d4adbe5eeeab9f205
3
+ metadata.gz: 7bbbc30c0b54bf90c58e8f8f5248673d0052a74c
4
+ data.tar.gz: 099337cd6e0cdcc9d0cdb323cfcfa14cb2d649f7
5
5
  SHA512:
6
- metadata.gz: d01849bf00acd6939d1a2681083d22d846eed46cf2fca03948cc30de8bf6c83f7eec7eba0f4abba331df4c6abf37772bba6c1a0658243a5661b5edcab07b658a
7
- data.tar.gz: e9c176086865d22445808b337111dd80a831418dfdb555a6535cd5191bf46898586cb51bd5187e089fff896af9da34411b4045be799b8d6f450dabe7557f3d47
6
+ metadata.gz: 96f3eef614a44ccb70e809a66a6a35d2d4ede03cab5ac9abd441fac640fad0624b247bcb71245e7a448930337265ebf1e9cf81f2121e2388475e69bc1b26e71b
7
+ data.tar.gz: 1ec43d46a0889ed787a109a2ac599239deb3bb7ac7aff1b368118c9c39a5f36ae054f3da7adb63c78f67ee626c248e55da2b050182bc4c2a0a185d349b1e4273
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Change log
2
2
 
3
+ ### 2.2.1 - 2018-07-06
4
+
5
+ * bug fixes
6
+ * fix path missing prefix in Tomogram JSON to_resources
7
+
3
8
  ### 2.2.0 - 2018-07-05
4
9
 
5
10
  * API changes
@@ -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
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Tomograph
2
- VERSION = '2.2.0'.freeze
2
+ VERSION = '2.2.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tomograph
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - d.efimov