yass 0.5.1 → 0.6.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/lib/yass/liquid_filters.rb +5 -0
- data/lib/yass/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18181b3e885b9090e2762e55e71daa470ccca3412a5443e420294801aee2df19
|
4
|
+
data.tar.gz: 64a1a13fe168ab5b06993275d2a6e401a93f7870af4958c3651b2b6ca5c4c46f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b78a2210e4cd074f360bb6313526dd7a99fb2113cb28c5f540631e91aed3ec3a6fba7702665d430542c4184e142a281dd4321ec84064eb9faae16eee20d229c6
|
7
|
+
data.tar.gz: eeb68ad56783c4c7c545e446dca271a023c71756955d3b9f017afc034131a3b02c19fc858b06ae739c0e947b015279001dfc6dd617d57565db512e71a04eaffa
|
data/lib/yass/liquid_filters.rb
CHANGED
@@ -16,6 +16,11 @@ module Yass
|
|
16
16
|
|
17
17
|
def match(str, regex) = Regexp.new(regex).match? str
|
18
18
|
|
19
|
+
def where_match(objects, field, regex)
|
20
|
+
regex = Regexp.new(regex)
|
21
|
+
objects.select { |obj| regex =~ obj[field].to_s }
|
22
|
+
end
|
23
|
+
|
19
24
|
private
|
20
25
|
|
21
26
|
def strip_index? = context.registers[:source].config.strip_index
|
data/lib/yass/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordan Hollinger
|
@@ -52,7 +52,7 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '5.0'
|
55
|
-
description:
|
55
|
+
description: An astonishingly un-opinionated static site generator
|
56
56
|
email: jordan.hollinger@gmail.com
|
57
57
|
executables:
|
58
58
|
- yass
|
@@ -101,5 +101,5 @@ requirements: []
|
|
101
101
|
rubygems_version: 3.4.19
|
102
102
|
signing_key:
|
103
103
|
specification_version: 4
|
104
|
-
summary:
|
104
|
+
summary: Yet Another Static Site (generator)
|
105
105
|
test_files: []
|