decant 0.3.0 → 0.4.0
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/decant/content.rb +7 -0
- data/lib/decant/version.rb +1 -1
- metadata +3 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d32c0ae7327b06ec1bb31a9d48fedef546f4fad06f842a62e0f55c991b2a7ca
|
4
|
+
data.tar.gz: 5c12770cb43243d034b513d40e36684cc775a31866eb4f909751a44eb25da7c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e60a0037d18fc03e59704e16c2915ea2c108e7d91e9e811c75f61aadd993e7199880257e96a86ef68681ef5004e61f21dc7c3a08cfefd3a33221fdcddff3a7e5
|
7
|
+
data.tar.gz: db533bba59b5c0ccae359cc5a8f7f8b839b9d76d4765f77d95b5141224237335a91ac91e35883a3ceb34e88b9ea97672e7b58d183c1b5f2f8aad98316398d1d2
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## Version 0.4.0 - 2025-06-30
|
4
|
+
|
5
|
+
- Add `Content.glob` which uses its collection's glob method and returns instances of the class.
|
6
|
+
|
3
7
|
## Version 0.3.0 - 2024-11-19
|
4
8
|
|
5
9
|
- Add `Content#relative_path` which returns a file's relative path within its collection.
|
data/lib/decant/content.rb
CHANGED
@@ -47,6 +47,13 @@ module Decant
|
|
47
47
|
end
|
48
48
|
end
|
49
49
|
end
|
50
|
+
|
51
|
+
# @param pattern [String]
|
52
|
+
#
|
53
|
+
# @return [Array<Content>]
|
54
|
+
def glob(pattern)
|
55
|
+
collection.glob(pattern).map { |path| new(path) }
|
56
|
+
end
|
50
57
|
end
|
51
58
|
|
52
59
|
# The relative path of the file within its collection.
|
data/lib/decant/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Pickles
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies: []
|
13
12
|
description: A dependency-free frontmatter-aware framework-agnostic wrapper around
|
14
13
|
a directory of static content
|
@@ -40,7 +39,6 @@ metadata:
|
|
40
39
|
source_code_uri: https://github.com/benpickles/decant
|
41
40
|
changelog_uri: https://github.com/benpickles/decant/blob/main/CHANGELOG.md
|
42
41
|
rubygems_mfa_required: 'true'
|
43
|
-
post_install_message:
|
44
42
|
rdoc_options: []
|
45
43
|
require_paths:
|
46
44
|
- lib
|
@@ -55,8 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
55
53
|
- !ruby/object:Gem::Version
|
56
54
|
version: '0'
|
57
55
|
requirements: []
|
58
|
-
rubygems_version: 3.
|
59
|
-
signing_key:
|
56
|
+
rubygems_version: 3.6.7
|
60
57
|
specification_version: 4
|
61
58
|
summary: A dependency-free frontmatter-aware framework-agnostic wrapper around a directory
|
62
59
|
of static content
|