versionist 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/versionist/routing.rb +1 -0
- data/lib/versionist/version.rb +1 -1
- metadata +3 -3
data/lib/versionist/routing.rb
CHANGED
@@ -36,6 +36,7 @@ module Versionist
|
|
36
36
|
path = Versionist::VersioningStrategy::Path.new(config)
|
37
37
|
# Use the :as option and strip out non-word characters from the path to avoid this:
|
38
38
|
# https://github.com/rails/rails/issues/3224
|
39
|
+
config[:path].slice!(0) if config[:path] =~ /^\//
|
39
40
|
route_hash = {:module => config[:module], :as => config[:path].gsub(/\W/, '_')}
|
40
41
|
route_hash.merge!({:defaults => config[:defaults]}) if config.has_key?(:defaults)
|
41
42
|
namespace(config[:path], route_hash, &block)
|
data/lib/versionist/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: versionist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.2.
|
5
|
+
version: 0.2.3
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Brian Ploetz
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-07-12 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -105,7 +105,7 @@ rubyforge_project:
|
|
105
105
|
rubygems_version: 1.8.17
|
106
106
|
signing_key:
|
107
107
|
specification_version: 3
|
108
|
-
summary: versionist-0.2.
|
108
|
+
summary: versionist-0.2.3
|
109
109
|
test_files: []
|
110
110
|
|
111
111
|
has_rdoc:
|