jekyllpress 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG +4 -2
- data/lib/jekyllpress/version.rb +1 -1
- data/lib/jekyllpress.rb +6 -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: 937ac076867443fc073e49570b2061cc0a972501
|
|
4
|
+
data.tar.gz: 2061fb6f098fdb556e914b96114a60a48ceef8bc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6bc7c98243b99d5614ef869d3f33433e7f143c41fe21eff75cdf83d03a513ccc86a11c121f75a43e07b76822a06355cb8bdc5305b6ae50a0b21a07b0544480e6
|
|
7
|
+
data.tar.gz: 6af782949dd3db4018b43ceb2c7617663543bb051262231252a42fea27fc0a0fe07f838c733dd02bc5823562b25045236e91a7199aee798895da9cbac196da31
|
data/CHANGELOG
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
d1d64f0 (HEAD, origin/master, master) fix: reset @jekyll_config after reading location of configuration file.
|
|
2
|
+
4822f67 (tag: v0.1.2) Update CHANGELOG, bump VERSION.
|
|
3
|
+
6eed295 fix: left binding.pry in the code :((
|
|
4
|
+
5cd3348 (tag: v0.1.1) Update CHANGELOG, bump VERSION.
|
|
3
5
|
263acca fix: use thor actions to inject redirect_from into post.
|
|
4
6
|
61a16b8 new: Add options to redirect to specify the permalink template and force overwriting.
|
|
5
7
|
dbb8b67 (tag: v0.1.0) new: Add CHANGELOG.
|
data/lib/jekyllpress/version.rb
CHANGED
data/lib/jekyllpress.rb
CHANGED
|
@@ -118,7 +118,8 @@ redirect_from:
|
|
|
118
118
|
def with_config(options={})
|
|
119
119
|
raise "no block given at #{caller[1]}" unless block_given?
|
|
120
120
|
self.class.source_root(jekyll_config["source"])
|
|
121
|
-
|
|
121
|
+
config_reset
|
|
122
|
+
yield jekyll_config(options)
|
|
122
123
|
end
|
|
123
124
|
|
|
124
125
|
def with_posts(options={})
|
|
@@ -158,6 +159,10 @@ redirect_from:
|
|
|
158
159
|
# @jekyll_config ||= Jekyll.configuration(options)
|
|
159
160
|
end
|
|
160
161
|
|
|
162
|
+
def config_reset
|
|
163
|
+
@jekyll_config = nil
|
|
164
|
+
end
|
|
165
|
+
|
|
161
166
|
def new_ext
|
|
162
167
|
jekyll_config["markdown_ext"].split(',').first
|
|
163
168
|
end
|