contentfs 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -2
- data/lib/contentfs/content.rb +4 -2
- data/lib/contentfs/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82a9b603b9239b87457c9783f5908964a92e42d2962ad28cbcec82f67520f9a2
|
4
|
+
data.tar.gz: 97852ac7a01d5d050427a4b0e0e3a0687d794365dccee532bd3737a66f823517
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4622e5fe7621c3a5b13d9a54c2f7af22d5129a04e182a2da57cbd73e678a1aa1613c7abc45559182ed74b4d8afd497b8200395bbc28f0eeb5907856f77d415a3
|
7
|
+
data.tar.gz: 999012506f5131e5448b4d8e4c665bd93a7d9dfb2b09043095b5c7b8e2cc98d4c6c7bc87d4c34559151f87bddd8600d357a09512ca1ca546feaf8627f5fec0c2
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,12 @@
|
|
1
|
-
## v0.1.
|
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
|
|
data/lib/contentfs/content.rb
CHANGED
@@ -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
|
data/lib/contentfs/version.rb
CHANGED