sutty-liquid 0.7.2 → 0.7.3

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: 8a055c727c2c4f960fa8d9bf769add3e1f76a7287f80f0232ed368ba7b444df3
4
- data.tar.gz: 24b5f07c35b6a299b5390e7c90b3b5e4b642457098de79e10758eac359d30f51
3
+ metadata.gz: 9a2dc602d9ee70024c92652320544e0bd8d6642ba492255f7f75f3d93588fe22
4
+ data.tar.gz: 65ca9819809b019451f6bcb17ab22968f5128fe4159e55646ca3014d4d1f6591
5
5
  SHA512:
6
- metadata.gz: e17c4ee5e491311f589ebb7f142edc0a1fb71f1a860eff5de048e8f121900116dd6fe6e9c10201690c71f437018c71865edb5edc384a8978c571ce1d66cd3793
7
- data.tar.gz: 690b1f9fbf7906c1d000feb7d3728b6413a305414c5f9234d8a6ea6ce75f695fd41cc6fd87533a4b5429a47761282924fbe5b5b9bb9834b7b69bfc8f6469b513
6
+ metadata.gz: 97875bdb08224bbdf068cad30267efba723124acc3ced69af70ac2547e24532251756deb224be2769420e168db41f26d41056e3c8b04815eae9578d7fb807e1c
7
+ data.tar.gz: 0ef9112d9a058819be5ce74a19d1f646572fc8dec9f6ded1280ed78dc91e6ee885a38cd35191a82da0f85cecb09dd5205eeebf2b9fd92d10069b992874920589
@@ -11,20 +11,20 @@ module Jekyll
11
11
  # {{ page.date | date_local: '%e de %B de %Y' }}
12
12
  #
13
13
  # @see {_data/es.yml}
14
- # @param [String|Date]
14
+ # @param [String|Date|Time|DateTime]
15
15
  # @param [String]
16
16
  # @return [String]
17
17
  def date_local(input, format)
18
18
  require 'date'
19
19
 
20
- input = Date.parse(input) if input.is_a? String
20
+ input = ::Jekyll::Utils.parse_date(input) unless input.respond_to? :mon
21
21
 
22
22
  # Return early if we don't need to translate
23
23
  return input.strftime(format) unless /%(|\^)[aAbBpP]/ =~ format
24
24
 
25
25
  input.strftime translate_localization_format(input, format)
26
- rescue ArgumentError
27
- Jekyll.logger.warn "#{input} is not a valid Date"
26
+ rescue ArgumentError, TypeError, ::Jekyll::Errors::InvalidDateError => e
27
+ Jekyll.logger.warn "#{input} is not a valid date: #{e.message}"
28
28
  input
29
29
  end
30
30
 
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.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - f
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-19 00:00:00.000000000 Z
11
+ date: 2021-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll