contentfs 0.1.1 → 0.2.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: 82a9b603b9239b87457c9783f5908964a92e42d2962ad28cbcec82f67520f9a2
4
- data.tar.gz: 97852ac7a01d5d050427a4b0e0e3a0687d794365dccee532bd3737a66f823517
3
+ metadata.gz: 83ec7d32c2ea2f8781ea440e9a2240f1d516401ee66aeb00d2ca930a5f5b5394
4
+ data.tar.gz: d30868419f6f99ab4ed87525b5c0e6cfcbc1177ddd182f8d99c3239247ca4341
5
5
  SHA512:
6
- metadata.gz: 4622e5fe7621c3a5b13d9a54c2f7af22d5129a04e182a2da57cbd73e678a1aa1613c7abc45559182ed74b4d8afd497b8200395bbc28f0eeb5907856f77d415a3
7
- data.tar.gz: 999012506f5131e5448b4d8e4c665bd93a7d9dfb2b09043095b5c7b8e2cc98d4c6c7bc87d4c34559151f87bddd8600d357a09512ca1ca546feaf8627f5fec0c2
6
+ metadata.gz: a5a5d4dde7a7911b252f0082e571c1d82c3913048ad0ace5ffff6588f177d8f4893687d5bb465d60db98a5f300e80b447dbcefef89f83e05724dca6b72906477
7
+ data.tar.gz: a7763f0bb3a268dc7b3a5e40f57e166ceb328289304af2781ca947ed219df2d76bda69832e4ae244c6c46dfd6912954184a02cb89c64edab2199747d72eb9d6c
@@ -1,12 +1,18 @@
1
- ## v0.1.1
1
+ ## v0.2.0
2
2
 
3
3
  *unreleased*
4
4
 
5
+ * `add` [#6](https://github.com/metabahn/contentfs/pull/6) Expose database metadata ([bryanp](https://github.com/bryanp))
6
+
7
+ ## [v0.1.1](https://github.com/metabahn/contentfs/releases/tag/v0.1.1)
8
+
9
+ *released on 2020-11-13*
10
+
5
11
  * `fix` [#5](https://github.com/metabahn/contentfs/pull/5) Remove front-matter from content ([bryanp](https://github.com/bryanp))
6
12
 
7
- ## v0.1.0
13
+ ## [v0.1.0](https://github.com/metabahn/contentfs/releases/tag/v0.1.0)
8
14
 
9
- *unreleased*
15
+ *released on 2020-11-12*
10
16
 
11
17
  * `add` [#4](https://github.com/metabahn/contentfs/pull/4) Expose namespaces for databases and content ([bryanp](https://github.com/bryanp))
12
18
  * `add` [#3](https://github.com/metabahn/contentfs/pull/3) Introduce `Database#nested` for iterating over databases ([bryanp](https://github.com/bryanp))
@@ -18,7 +18,7 @@ module ContentFS
18
18
 
19
19
  METADATA_FILE = "_metadata.yml"
20
20
 
21
- attr_reader :prefix, :slug, :namespace
21
+ attr_reader :prefix, :slug, :namespace, :metadata
22
22
 
23
23
  def initialize(path:, namespace: [], root: false)
24
24
  path = Pathname.new(path)
@@ -36,7 +36,7 @@ module ContentFS
36
36
 
37
37
  metadata_path = path.join(METADATA_FILE)
38
38
 
39
- metadata = if metadata_path.exist?
39
+ @metadata = if metadata_path.exist?
40
40
  YAML.safe_load(metadata_path.read).to_h
41
41
  else
42
42
  {}
@@ -49,7 +49,7 @@ module ContentFS
49
49
  database = Database.load(path, namespace: @namespace, root: false)
50
50
  @nested[database.slug] = database
51
51
  else
52
- content = Content.load(path, metadata: metadata, namespace: @namespace)
52
+ content = Content.load(path, metadata: @metadata, namespace: @namespace)
53
53
 
54
54
  if content.slug == :content
55
55
  @content = content
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ContentFS
4
- VERSION = "0.1.1"
4
+ VERSION = "0.2.0"
5
5
 
6
6
  def self.version
7
7
  VERSION
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.1.1
4
+ version: 0.2.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-13 00:00:00.000000000 Z
11
+ date: 2020-11-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A structured content file system.
14
14
  email: bryan@metabahn.com