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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aaa79d7d4b6d42abb898e01b65d8628910b116c0
4
- data.tar.gz: 28642fba892e47a24b141d9aaeb8d0e4851947ad
3
+ metadata.gz: 61b0c4ca2efadccd773934db550b83c9a4762fc7
4
+ data.tar.gz: ca66952bc4efc4b24a9e3c3ca3f2c0adf6cfa30a
5
5
  SHA512:
6
- metadata.gz: c6cb96a3e41dd21a7a0903ba6bd3b3d5f47ab30d2d6aff21d57385dc2dfe9e8b1d408e3d2f35b08d3d55ff389a71b5d5924ae29ae94d778ffa8a8f5e20fc4570
7
- data.tar.gz: e65316a8cee9c3c93244491c801c5582f1be68ca7df225e976d3ac5855616d7d854c603b969ebd6bc4b4eba520626e96d4a998d06b00118abd3b8609397580c5
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.
@@ -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(.+)\n\-\-\-\n/m, "")
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(.+)\n\+\+\+\n/m, "")
240
+ if @source.sub!(/\A\+\+\+\n(.+?)\n\+\+\+\n/m, "")
241
241
  @data.merge! TOML.parse($1)
242
242
  end
243
243
  end
@@ -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
- @root.reload!
20
- @root.stage!
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
@@ -1,3 +1,3 @@
1
1
  module Flutterby
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
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.0
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-26 00:00:00.000000000 Z
11
+ date: 2017-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler