frontmatter 0.2.0 → 0.3.0

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
  SHA256:
3
- metadata.gz: e7ce738ca9e4a18643a9c0b63ef84b214d7cc91ab75d916788bd530ae2dee882
4
- data.tar.gz: b3d88aa80401197e4916112bebc29258f9d67fe8c394b8a64b0f36c08bfe09c3
3
+ metadata.gz: 19224bd7303e90ceda71f41744556a75eb04d7841b3e1a9d0543f9bdb13016b3
4
+ data.tar.gz: ddf9d6e8a1f92edeacf2ec658cf60d8df01900dd7affa61f8e2736d5653a473d
5
5
  SHA512:
6
- metadata.gz: 66651ceee2f386c2f53fa4f6ca2995d77016fcd47be4c84e463c54f5fc2cd164dd4b59f31b3d104a2e51893df02d3aa3e07a6c4549dbf0e0f3365bf9be6fd07d
7
- data.tar.gz: d71632ec4ff53750c092b2c5176d617866adf4b633eea4b1ca841ddeb7440202adfb55e52ea7e2310420f58a1ea9047b3f537254030ba142a634d4edf168815e
6
+ metadata.gz: c9e976a6ceba24ca73748d3b6145e4e184b00bd0e02063da55352c2e66367cb86d8a644b3d73aa7312dc87794d63a85131d01c6a27142d1427f65310c833760b
7
+ data.tar.gz: a54fd9f78ece2163831650e56a066c5910ededfc0bd2aeae2370b627c202e79f95837ff86c3d9c70dad54e2cbcbce316faae8082822424021a54b3451c2ea4df
@@ -1,7 +1,7 @@
1
1
  module Frontmatter
2
2
  class Page
3
3
  extend ActiveModel::Naming
4
- attr_reader :slug
4
+ attr_reader :slug, :frontmatter
5
5
 
6
6
  def self.all
7
7
  Dir[pages_directory]
@@ -15,7 +15,7 @@ module Frontmatter
15
15
 
16
16
  def handler_for_template
17
17
  ApplicationController.new.view_paths.paths.first
18
- .extract_handler_and_format_and_variant(path_without_yaml)
18
+ .send(:extract_handler_and_format_and_variant, path_without_yaml)
19
19
  .first
20
20
  end
21
21
 
@@ -1,3 +1,3 @@
1
1
  module Frontmatter
2
- VERSION = '0.2.0'
2
+ VERSION = '0.3.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frontmatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Hearth
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-24 00:00:00.000000000 Z
11
+ date: 2020-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties