jekyll-timeago 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll-timeago/filter.rb +1 -1
- data/lib/jekyll-timeago/version.rb +1 -1
- data/spec/jekyll_timeago_spec.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3e837b2ed5dcbda0f670f70fff6b3fb452cfcbd
|
4
|
+
data.tar.gz: 2ee469fdc89b8ff0d59523e8194b4ae9e442b0fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79a66d9cd557b7e65812ece1a6f05a6aba977bb8ec1eda548ddce07686b86fe428da0c66d2fa83caba844355d70bcc165fda5a82d17e612b941e65502b4cf94a
|
7
|
+
data.tar.gz: e1e6cd96779c0a83dc23e00c4b10b5260e8578ed73ae891e5d2446f23d672abf2e3feb1ce783142347df1444c3fe2d01ed1b1a93c651926b71621a2294c90e94
|
@@ -58,7 +58,7 @@ module Jekyll
|
|
58
58
|
def setup
|
59
59
|
@options = {
|
60
60
|
:depth => jekyll_config['depth'] || DEFAULT_DEPTH_LEVEL,
|
61
|
-
:today => jekyll_config['
|
61
|
+
:today => jekyll_config['today'] || 'today',
|
62
62
|
:yesterday => jekyll_config['yesterday'] || 'yesterday',
|
63
63
|
:tomorrow => jekyll_config['tomorrow'] || 'tomorrow',
|
64
64
|
:and => jekyll_config['and'] ||'and',
|
data/spec/jekyll_timeago_spec.rb
CHANGED
@@ -55,6 +55,7 @@ describe Jekyll::Timeago do
|
|
55
55
|
expect(timeago('2010-1-1', '2012-1-1')).to eql('2 years ago')
|
56
56
|
expect(timeago('2010/1/1', '2012/1/1')).to eql('2 years ago')
|
57
57
|
expect(timeago('Jan 2010, 1', 'Jan 2012, 1')).to eql('2 years ago')
|
58
|
+
expect(timeago('2014-10-06 20:00:00', '2014-10-07 20:00:00')).to eql('yesterday')
|
58
59
|
end
|
59
60
|
|
60
61
|
it 'allow to change level of detail' do
|