contentfs 0.1.0 → 0.1.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
  SHA256:
3
- metadata.gz: b815f957fcccb235ddec7a7cd90ae7392727a949e50883bbcf9425c4904b5fba
4
- data.tar.gz: 0e20ede1a87ef3fa34f7755740489322039f760580406b44d35914fb6103aff2
3
+ metadata.gz: 82a9b603b9239b87457c9783f5908964a92e42d2962ad28cbcec82f67520f9a2
4
+ data.tar.gz: 97852ac7a01d5d050427a4b0e0e3a0687d794365dccee532bd3737a66f823517
5
5
  SHA512:
6
- metadata.gz: 36c32a237713fdd88a28ce5c6fe0770c0aefa0275e5d350f31a56a363976d83c72428ea6ab89e79645d1c28c0fbfc681704c0dd7856069efcbc7034546398168
7
- data.tar.gz: a7abf1c49c7cdaadcdb855ed1a5965eb4f3f0623fa63f7a86b03ac72c1f0f2e05bc427d06c84dfcab75aa8323df93e983aba043ffb1c39594e0a1753cd7acfbc
6
+ metadata.gz: 4622e5fe7621c3a5b13d9a54c2f7af22d5129a04e182a2da57cbd73e678a1aa1613c7abc45559182ed74b4d8afd497b8200395bbc28f0eeb5907856f77d415a3
7
+ data.tar.gz: 999012506f5131e5448b4d8e4c665bd93a7d9dfb2b09043095b5c7b8e2cc98d4c6c7bc87d4c34559151f87bddd8600d357a09512ca1ca546feaf8627f5fec0c2
@@ -1,6 +1,12 @@
1
- ## v0.1.0
1
+ ## v0.1.1
2
+
2
3
  *unreleased*
3
4
 
5
+ * `fix` [#5](https://github.com/metabahn/contentfs/pull/5) Remove front-matter from content ([bryanp](https://github.com/bryanp))
6
+
7
+ ## v0.1.0
8
+
9
+ *unreleased*
4
10
 
5
11
  * `add` [#4](https://github.com/metabahn/contentfs/pull/4) Expose namespaces for databases and content ([bryanp](https://github.com/bryanp))
6
12
  * `add` [#3](https://github.com/metabahn/contentfs/pull/3) Introduce `Database#nested` for iterating over databases ([bryanp](https://github.com/bryanp))
@@ -8,8 +14,8 @@
8
14
  * `add` [#1](https://github.com/metabahn/contentfs/pull/1) Introduce `Database#find` for safer traversal ([bryanp](https://github.com/bryanp))
9
15
 
10
16
  ## [v0.0.0](https://github.com/metabahn/contentfs/releases/tag/v0.0.0)
11
- *released on 2020-11-11*
12
17
 
18
+ *released on 2020-11-11*
13
19
 
14
20
  * Initial release.
15
21
 
@@ -29,9 +29,11 @@ module ContentFS
29
29
  @prefix = prefix
30
30
  @format = extname.to_s[1..-1]&.to_sym
31
31
  @slug = Slug.build(remainder)
32
- @content = path.read
33
- @metadata = metadata.merge(parse_metadata(@content))
34
32
  @namespace = namespace.dup << @slug
33
+
34
+ content = path.read
35
+ @metadata = metadata.merge(parse_metadata(content))
36
+ @content = content.gsub(FRONT_MATTER_REGEXP, "")
35
37
  end
36
38
 
37
39
  def to_s
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ContentFS
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
 
6
6
  def self.version
7
7
  VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contentfs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Powell