saddle 0.0.41 → 0.0.42
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.
- data/lib/saddle/endpoint.rb +4 -5
- data/lib/saddle/version.rb +1 -1
- metadata +2 -2
data/lib/saddle/endpoint.rb
CHANGED
@@ -84,12 +84,11 @@ module Saddle
|
|
84
84
|
else
|
85
85
|
_path_array()
|
86
86
|
end
|
87
|
-
# Strip out empty elements
|
88
|
-
pre_action_paths.compact!
|
89
|
-
pre_action_paths.reject! { |p| p.empty? }
|
90
87
|
# Join it with the action
|
91
|
-
pre_action_paths
|
92
|
-
|
88
|
+
paths = pre_action_paths + [action]
|
89
|
+
# Strip out empty elements
|
90
|
+
paths.reject! { |p| p.nil? || p.empty? }
|
91
|
+
"/#{paths.join('/')}"
|
93
92
|
end
|
94
93
|
|
95
94
|
def _path_array
|
data/lib/saddle/version.rb
CHANGED
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.
|
4
|
+
version: 0.0.42
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-08-
|
12
|
+
date: 2013-08-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|