saddle 0.0.41 → 0.0.42

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 << action
92
- "/#{pre_action_paths.join('/')}"
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
@@ -1,3 +1,3 @@
1
1
  module Saddle
2
- VERSION = '0.0.41'
2
+ VERSION = '0.0.42'
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.41
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-14 00:00:00.000000000 Z
12
+ date: 2013-08-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport