kiosk 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/kiosk/rewrite/node_rewrite.rb +1 -1
- data/lib/kiosk/version.rb +1 -1
- data/lib/kiosk/word_press/page.rb +3 -4
- metadata +2 -2
data/lib/kiosk/version.rb
CHANGED
@@ -42,12 +42,11 @@ module Kiosk
|
|
42
42
|
#
|
43
43
|
def slug
|
44
44
|
begin
|
45
|
-
#parse the url
|
46
45
|
uri = URI.parse(url)
|
47
|
-
#get the route from the original site uri
|
46
|
+
# get the route from the original site uri
|
48
47
|
route = uri.route_from(Kiosk.origin.site_uri)
|
49
|
-
#return just the path
|
50
|
-
route.path
|
48
|
+
# return just the path without any trailing /
|
49
|
+
route.path.sub(/\/$/, '')
|
51
50
|
rescue
|
52
51
|
attributes[:slug]
|
53
52
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: kiosk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.3.
|
5
|
+
version: 0.3.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Daniel Duvall
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-06-21 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: nokogiri
|