saddle 0.0.37 → 0.0.38

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.
@@ -77,9 +77,13 @@ module Saddle
77
77
 
78
78
  # Get the url path for this endpoint/action combo
79
79
  def _path(action=nil)
80
- paths = _path_array()
81
- paths << action unless action.nil?
82
- '/' + paths.join('/')
80
+ if defined?(self.class::ABSOLUTE_PATH)
81
+ [self.class::ABSOLUTE_PATH, action].compact.join('/')
82
+ else
83
+ paths = _path_array()
84
+ paths << action unless action.nil?
85
+ paths.join('/')
86
+ end
83
87
  end
84
88
 
85
89
  def _path_array
@@ -1,3 +1,3 @@
1
1
  module Saddle
2
- VERSION = '0.0.37'
2
+ VERSION = '0.0.38'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saddle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.37
4
+ version: 0.0.38
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: