contentfs 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/contentfs/database.rb +7 -5
- data/lib/contentfs/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5386e4d1a1ef23527ec457ecb544d4d36d02e44811fe81f87db93f4188d82145
|
4
|
+
data.tar.gz: f44614daf6d97aabd4d83a0e2339dd8d20e19d742b8b8403c37fc2967dd40925
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39ee593b9c158d2093d5a8bc59a8d8510adb8a206d4b786a0465347e79f12323806765be999be8ad7fd14bccb4e32134696c1f851fa466a1a515d3b44d7ecc63
|
7
|
+
data.tar.gz: f1ab2b7a9cc994b5d91cef392fa8d4a4c1bedaac69428ceb9552143b7f969391ec32a16ae1240c66da616a80440945bfae9f8a30e010bcd47f2f36f7aa89e3ef
|
data/CHANGELOG.md
CHANGED
data/lib/contentfs/database.rb
CHANGED
@@ -40,6 +40,12 @@ module ContentFS
|
|
40
40
|
{}
|
41
41
|
end
|
42
42
|
|
43
|
+
content_path = path.join.glob("_content.*")[0]
|
44
|
+
|
45
|
+
@content = if content_path&.exist?
|
46
|
+
Content.load(content_path, metadata: @metadata, namespace: @namespace)
|
47
|
+
end
|
48
|
+
|
43
49
|
children, nested = {}, {}
|
44
50
|
Pathname.new(path).glob("*") do |path|
|
45
51
|
next if path.basename.to_s.start_with?("_")
|
@@ -50,11 +56,7 @@ module ContentFS
|
|
50
56
|
else
|
51
57
|
content = Content.load(path, metadata: @metadata, namespace: @namespace)
|
52
58
|
|
53
|
-
|
54
|
-
@content = content
|
55
|
-
else
|
56
|
-
children[content.slug] = content
|
57
|
-
end
|
59
|
+
children[content.slug] = content
|
58
60
|
end
|
59
61
|
end
|
60
62
|
|
data/lib/contentfs/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contentfs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryan Powell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A structured content file system.
|
14
14
|
email: bryan@metabahn.com
|