blog-generator 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/blog-generator.rb +1 -0
- data/lib/blog-generator/post.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0391794145b3135fa2c3a6736919b3f58742d454'
|
4
|
+
data.tar.gz: '028a972e33366a76aae5b794308695f6e5f4ed27'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e55f5cff6b5c9a7dec508b1e91686edc5c1ac8eb10c4821deb42d5c995ea896f039136a198b46308d84bb0f97f2ea6eab374551fb2f8f49d382fdafe517e5d0
|
7
|
+
data.tar.gz: f69267f97451399a5f12241ea75d6536381533e6dae90c9df89358c71975567ad5ead5efffacd8afdbe2fca5e373704106481d5f352a2f10f5f5f48046496955
|
data/lib/blog-generator.rb
CHANGED
@@ -62,6 +62,7 @@ module BlogGenerator
|
|
62
62
|
def validate_linked_posts!
|
63
63
|
@posts.each do |post|
|
64
64
|
post.links.each do |link|
|
65
|
+
next unless post.metadata[:path].start_with?('/posts/')
|
65
66
|
unless @posts.any? { |post| post.metadata[:path] == link }
|
66
67
|
raise "Post #{post.slug} links #{link}, but there is no such post."
|
67
68
|
end
|
data/lib/blog-generator/post.rb
CHANGED