sutty-liquid 0.7.3 → 0.7.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jekyll/filters/sample.rb +3 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a2dc602d9ee70024c92652320544e0bd8d6642ba492255f7f75f3d93588fe22
4
- data.tar.gz: 65ca9819809b019451f6bcb17ab22968f5128fe4159e55646ca3014d4d1f6591
3
+ metadata.gz: 217763268e487f10aec0b09212b07618f8a5ffedefd3afe52b8892462c616304
4
+ data.tar.gz: b1b4edef6669cf7388672c178f68463ca14492d1b306715280b85c3ecdb5bd19
5
5
  SHA512:
6
- metadata.gz: 97875bdb08224bbdf068cad30267efba723124acc3ced69af70ac2547e24532251756deb224be2769420e168db41f26d41056e3c8b04815eae9578d7fb807e1c
7
- data.tar.gz: 0ef9112d9a058819be5ce74a19d1f646572fc8dec9f6ded1280ed78dc91e6ee885a38cd35191a82da0f85cecb09dd5205eeebf2b9fd92d10069b992874920589
6
+ metadata.gz: 8493787622d5f8bc8dcda86c9a3e57be96e4d8192f46235e0c3477d70262aa13e7f96fb0f5edaf94585d314eb0d6196851fb44edab8a09ef1eab45912efbd7d0
7
+ data.tar.gz: 517de2fa67d73f37583a1ba38baea81cca79eb31e96988a260f217eb4a86e726b54ea5f8622d93689c52714306dd06aea6e81831c3d2cff40dc1498b66393c72
@@ -8,13 +8,14 @@ module Jekyll
8
8
  # Example usage:
9
9
  #
10
10
  # {{ site.posts | sample }}
11
+ # {{ site.posts | sample: 3 }}
11
12
  #
12
13
  # @input [Array]
13
14
  # @return [Any]
14
- def sample(input)
15
+ def sample(input, amount = 1)
15
16
  return unless input.respond_to? :sample
16
17
 
17
- input.sample
18
+ input.sample(amount)
18
19
  end
19
20
  end
20
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sutty-liquid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - f
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-15 00:00:00.000000000 Z
11
+ date: 2021-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll