middleman-alias 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/features/virtual-directory.feature +5 -0
- data/lib/middleman-alias/extension.rb +3 -1
- data/lib/middleman-alias/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7235e2fc0b0b428aad124a959cfb019e80c0c091
|
4
|
+
data.tar.gz: cb5c504d5e1b58cc2911a5e902476a5467335fe6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 324aa1600bf89c6effb53b90faeca378633005cc5e87ae0b18ee363be6e26037cfdfb163d7f4770fe036aaa0cb10d74e8396243eb290db7dbcd7821f9dd0f289
|
7
|
+
data.tar.gz: ce48ac4831ce2d8592c049091d0c9212ead421e7edd1d8b0db63a6e6b553752457faa34472fd1c586830798aa27803b400ed92972aec9c8f160e5aa2d7018c71
|
@@ -9,7 +9,9 @@ module Middleman
|
|
9
9
|
def manipulate_resource_list(resources)
|
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$/)
|
14
|
+
Sitemap::Resource.new(@app.sitemap, alias_url).tap do |p|
|
13
15
|
p.proxy_to("alias.html")
|
14
16
|
p.add_metadata locals: {
|
15
17
|
destination: resource.url
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-alias
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Green
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: middleman-core
|
@@ -95,6 +95,7 @@ files:
|
|
95
95
|
- features/alias.feature
|
96
96
|
- features/generator_cli.feature
|
97
97
|
- features/support/env.rb
|
98
|
+
- features/virtual-directory.feature
|
98
99
|
- fixtures/alias-app/config.rb
|
99
100
|
- fixtures/alias-app/source/alias.html.erb
|
100
101
|
- fixtures/alias-app/source/bar.html.erb
|
@@ -136,3 +137,4 @@ test_files:
|
|
136
137
|
- features/alias.feature
|
137
138
|
- features/generator_cli.feature
|
138
139
|
- features/support/env.rb
|
140
|
+
- features/virtual-directory.feature
|