zenweb 3.10.0 → 3.10.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5febe4a0a9de6f9ee3ec7abe552561e6c2d14775
4
- data.tar.gz: b422b7ec60e68338d26de19062336a29bd7b9df9
3
+ metadata.gz: 3737a3b87e86c85728272600f7ae0a1f8f55d564
4
+ data.tar.gz: d3bdb4f609b52e54d3754bf3eede3ca0f8fdf584
5
5
  SHA512:
6
- metadata.gz: a20d9d354d7fb0874100f6ebcda980f8323d14a8e88ee6afc7a4979a9bf7732a5ff9e934b0c06d25b307870bf2048d55c10b539bf1ef6aaa20cb496d141d53f7
7
- data.tar.gz: 4f02f19c9b4441553d8d33a8e8998ca725b4168f61021117fa3584df1a77c6128b319bcad10f25dcc940eabe6d385b22de59cfc27e1c8be56bc86345054476e4
6
+ metadata.gz: 8e47e0cac3bb1f56c6ff9b049fc7e8f356a4ac7bc25d7848d7be8f6b34252ea9c3be128e1bc00ca830cac84ff974412a22fe6b752b5e00f29dbd0bdb7a193769
7
+ data.tar.gz: 8434b923ad69c434d5fccc2c0034588a30d75bafc04cb36a07e9a76691eb366ff64d9fc7e7655d317ae8c220bd4bd1f7537836448c41fef20c5216c6f42fbb79
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/History.txt CHANGED
@@ -1,3 +1,9 @@
1
+ === 3.10.1 / 2016-11-16
2
+
3
+ * 1 bug fix:
4
+
5
+ * Added page path to unknown layout exception message. (thagomizer)
6
+
1
7
  === 3.10.0 / 2016-10-09
2
8
 
3
9
  * 7 minor enhancements:
data/lib/zenweb.rb CHANGED
@@ -6,7 +6,7 @@ require "time"
6
6
 
7
7
  module Zenweb
8
8
  # duh
9
- VERSION = "3.10.0"
9
+ VERSION = "3.10.1"
10
10
  end
11
11
 
12
12
  require "zenweb/site"
data/lib/zenweb/page.rb CHANGED
@@ -310,6 +310,9 @@ module Zenweb
310
310
  @layout = site.layout self.config["layout"]
311
311
  end
312
312
  @layout
313
+ rescue => e
314
+ e.message.concat " for page #{path.inspect}"
315
+ raise e
313
316
  end
314
317
 
315
318
  ##
@@ -370,6 +370,16 @@ class TestZenwebPage < Minitest::Test
370
370
  assert_includes e.message, err
371
371
  end
372
372
 
373
+ def test_layout_nil_string
374
+ e = assert_raises RuntimeError do
375
+ page.config.h["layout"] = "nil"
376
+ page.layout
377
+ end
378
+
379
+ exp = 'unknown layout "nil" for page "blog/2012-01-02-page1.html.md"'
380
+ assert_equal exp, e.message
381
+ end
382
+
373
383
  def test_parent
374
384
  site.scan
375
385
  self.page = site.pages[page.path]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zenweb
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.10.0
4
+ version: 3.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -30,7 +30,7 @@ cert_chain:
30
30
  E4oJcnPkJAr0rw504JGtlZtONZQblwmRJOIdXzolaE3NRGUzGVOUSptZppAKiavY
31
31
  fO6tdKQc/5RfA8oQEkg8hrxA5PQSz4TOFJGLpFvIapEk6tMruQ0bHgkhr9auXg==
32
32
  -----END CERTIFICATE-----
33
- date: 2016-10-09 00:00:00.000000000 Z
33
+ date: 2016-11-17 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: rake
metadata.gz.sig CHANGED
Binary file