middleman-alias 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7235e2fc0b0b428aad124a959cfb019e80c0c091
4
- data.tar.gz: cb5c504d5e1b58cc2911a5e902476a5467335fe6
3
+ metadata.gz: 9e459db1e42529ea5a80a6edf53cc0460ba042b2
4
+ data.tar.gz: 3e2eb036036e5a6a0e25be82e12aef8e20867025
5
5
  SHA512:
6
- metadata.gz: 324aa1600bf89c6effb53b90faeca378633005cc5e87ae0b18ee363be6e26037cfdfb163d7f4770fe036aaa0cb10d74e8396243eb290db7dbcd7821f9dd0f289
7
- data.tar.gz: ce48ac4831ce2d8592c049091d0c9212ead421e7edd1d8b0db63a6e6b553752457faa34472fd1c586830798aa27803b400ed92972aec9c8f160e5aa2d7018c71
6
+ metadata.gz: 99c3e65a144941c371c08124d5890b1b747b0946f606b8bebe70a35b08166668a62ff2067794d963d9f0c690255032e742d62aa6df21a03d251f000f34e08177
7
+ data.tar.gz: bf1543cde5edc7025e6b7fb09dd90337547ccce4fc7c2127ef995017511d64b45c937f4f4485b8d54d4e65c70c9389d13c921ea9e51d6fd292abdfefdc8d8129
@@ -1,5 +1,5 @@
1
1
  Feature: Virtual directories
2
2
  Given a fixture app "alias-app"
3
- When I go to "/posts/2010/01/01/virtual-test"
3
+ When I go to "/posts/2010/01/01/virtual-test/"
4
4
  Then I should see "You are being redirected"
5
5
 
@@ -10,7 +10,7 @@ module Middleman
10
10
  resources.each do |resource|
11
11
  if resource.data["alias"]
12
12
  alias_url = resource.data["alias"]
13
- alias_url += "/index.html" unless alias_url.match(/\.html$/)
13
+ alias_url += "/index.html" if alias_url.match(/\/$/)
14
14
  Sitemap::Resource.new(@app.sitemap, alias_url).tap do |p|
15
15
  p.proxy_to("alias.html")
16
16
  p.add_metadata locals: {
@@ -1,3 +1,3 @@
1
1
  module MiddlemanAlias
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-alias
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Green