sutty-liquid 0.1.0 → 0.1.1

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 +11 -8
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 81333c89b59cad5385818ac402bcc0244658a98dc9b496fee75e68d45faa2258
4
- data.tar.gz: 968f495314e62640ffe33e35185c0adea4714b871af4c61cc3d03a84be57fed7
3
+ metadata.gz: 80dcc3abc95fa1284a2fe605cbea560484b2d711351f60175bb3aba0cc85b2c5
4
+ data.tar.gz: a2d79c43e542447a4acf8146c8f80e49a68cc78582aa6f72314da55a68decdf8
5
5
  SHA512:
6
- metadata.gz: 87282ed8f35f93a4f444e33f00a7b241b2183ef46ce9fd53643cd0a55bfe056a0fd06ba0271fb5adefa811e207f067b535a9d2420e6a40adf8eddfc2b334ea83
7
- data.tar.gz: 92ac5d127e885a00d88d02488902eb0acea5c0e8aa44a871763f3b4e394520affa8ff6b1b163529b9ff3a40e8f1d4670b6da44fe8c1ecd9e1aa28f1b5f775987
6
+ metadata.gz: 7a843c2327f75c56684fd34873c999657b4aafcf2bc48e38b593eb0c571d9dde655109a235c309a949e9dd7b705b968476433b423660179e7bcc3ddb2623c0d4
7
+ data.tar.gz: 7686d8f2e1317a112a2d86cb479789d2b6316426e6b72eaf035fd105b9f2cc74fa1940f6693fe56184eb3fb5d466b8dea879169568e1361d91c71912ef02ca27
@@ -1,14 +1,17 @@
1
+ # frozen_string_literal: true
1
2
 
2
3
  module Jekyll
3
- module Sample
4
- # Returns a random item from an Array
5
- #
6
- # @input [Array]
7
- # @return [Any]
8
- def sample(input)
9
- return unless input.respond_to? :sample
4
+ module Filters
5
+ module Sample
6
+ # Returns a random item from an Array
7
+ #
8
+ # @input [Array]
9
+ # @return [Any]
10
+ def sample(input)
11
+ return unless input.respond_to? :sample
10
12
 
11
- input.sample
13
+ input.sample
14
+ end
12
15
  end
13
16
  end
14
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sutty-liquid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - f