flutterby 0.6.0 → 0.6.1
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/CHANGES.md +5 -0
- data/lib/flutterby/node.rb +2 -2
- data/lib/flutterby/server.rb +5 -2
- data/lib/flutterby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61b0c4ca2efadccd773934db550b83c9a4762fc7
|
4
|
+
data.tar.gz: ca66952bc4efc4b24a9e3c3ca3f2c0adf6cfa30a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16248a165efdbc52640ec2c60bc7d829c63160925c19c453347f112ad5f335fc5cf854b25d153914160986cf238247f6beae3cd2181b5f275b6884eb889d8d76
|
7
|
+
data.tar.gz: 211b3e00e83d442c0562f90fa0f606c2a3a241cc1ccad6e5076c60584395d346cb9d623be7b5d08c760e3ddc05c260ef382555d2b349841a9c7adf6504c0afb2
|
data/CHANGES.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Version History
|
2
2
|
|
3
|
+
### 0.6.1 (2017-01-29)
|
4
|
+
|
5
|
+
- **FIXED:** Front matter is now extracted using a non-greedy regular expression, fixing the problem with `---` horizontal rules in Markdown bodies.
|
6
|
+
|
7
|
+
|
3
8
|
### 0.6.0 (2017-01-26)
|
4
9
|
|
5
10
|
- **NEW:** Within a view context, you can now invoke `render(node, as: "foo")`, and it will use a `_foo` partial in the same folder as `node`, passing `node` as a `foo` local. This allows you to easily apply decorator partials to nodes.
|
data/lib/flutterby/node.rb
CHANGED
@@ -232,12 +232,12 @@ module Flutterby
|
|
232
232
|
def extract_frontmatter!
|
233
233
|
if @source
|
234
234
|
# YAML Front Matter
|
235
|
-
if @source.sub!(/\A\-\-\-\n(
|
235
|
+
if @source.sub!(/\A\-\-\-\n(.+?)\n\-\-\-\n/m, "")
|
236
236
|
@data.merge! YAML.load($1)
|
237
237
|
end
|
238
238
|
|
239
239
|
# TOML Front Matter
|
240
|
-
if @source.sub!(/\A\+\+\+\n(
|
240
|
+
if @source.sub!(/\A\+\+\+\n(.+?)\n\+\+\+\n/m, "")
|
241
241
|
@data.merge! TOML.parse($1)
|
242
242
|
end
|
243
243
|
end
|
data/lib/flutterby/server.rb
CHANGED
@@ -16,8 +16,11 @@ module Flutterby
|
|
16
16
|
# puts "removed absolute path: #{removed}"
|
17
17
|
|
18
18
|
Flutterby.logger.info "Change detected, reloading everything!"
|
19
|
-
|
20
|
-
|
19
|
+
time = Benchmark.realtime do
|
20
|
+
@root.reload!
|
21
|
+
@root.stage!
|
22
|
+
end
|
23
|
+
Flutterby.logger.info "Reloaded complete tree in #{sprintf("%.1fms", time * 1000).colorize(:green)}"
|
21
24
|
end
|
22
25
|
|
23
26
|
# Set up Rack app
|
data/lib/flutterby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flutterby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hendrik Mans
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|