jekyll-timeago 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/Appraisals +1 -1
- data/gemfiles/jekyll_v3.gemfile +1 -1
- data/jekyll-timeago.gemspec +2 -2
- data/lib/jekyll-timeago/core.rb +1 -1
- data/lib/jekyll-timeago/version.rb +1 -1
- data/spec/jekyll-timeago_spec.rb +1 -1
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 534bfa373797db655ca8c1c99ee7fd5d3384aab7
|
4
|
+
data.tar.gz: bcd74e33c76fe04d39b4835ef1ade56017143767
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6e3faef952bf144f33841300603ae96d7be487072b49424bdd09468c65016e3985d9b34f38f57f10d5eadb898ff0083b5e85b4416d421d690b363c0a3dff97d
|
7
|
+
data.tar.gz: 848257b166e211eafa2e7637071f48c7630a2fda9c9f92e74a705cd21c4cb9836baf7412e2325a2f0d9d5c9eb8c317b3585f67fbb2783b50396cc73957ae81c6
|
data/.travis.yml
CHANGED
data/Appraisals
CHANGED
data/gemfiles/jekyll_v3.gemfile
CHANGED
data/jekyll-timeago.gemspec
CHANGED
@@ -5,8 +5,8 @@ Gem::Specification.new do |spec|
|
|
5
5
|
spec.version = Jekyll::Timeago::VERSION
|
6
6
|
spec.authors = ["markets"]
|
7
7
|
spec.email = ["srmarc.ai@gmail.com"]
|
8
|
-
spec.description = "
|
9
|
-
spec.summary = "
|
8
|
+
spec.description = "A Ruby library to compute distance of dates in words. Originally built for Jekyll, as a Liquid extension. It also supports localization and futures."
|
9
|
+
spec.summary = "A date helper to compute distance of dates in words."
|
10
10
|
spec.homepage = "https://github.com/markets/jekyll-timeago"
|
11
11
|
spec.license = "MIT"
|
12
12
|
|
data/lib/jekyll-timeago/core.rb
CHANGED
@@ -48,7 +48,7 @@ module Jekyll
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def validate_depth!(depth)
|
51
|
-
(1..MAX_DEPTH_LEVEL).include?(depth) or raise("Invalid depth level: #{depth.inspect}")
|
51
|
+
(1..MAX_DEPTH_LEVEL).include?(depth) or raise(ArgumentError, "Invalid depth level: #{depth.inspect}")
|
52
52
|
depth
|
53
53
|
end
|
54
54
|
|
data/spec/jekyll-timeago_spec.rb
CHANGED
@@ -39,7 +39,7 @@ describe Jekyll::Timeago do
|
|
39
39
|
end
|
40
40
|
|
41
41
|
it 'does not accept invalid depth' do
|
42
|
-
expect { timeago(today, sample_date, "depth" => 5) }.to raise_error
|
42
|
+
expect { timeago(today, sample_date, "depth" => 5) }.to raise_error(ArgumentError)
|
43
43
|
end
|
44
44
|
|
45
45
|
it 'accepts a hash (options) as a second parameter (implicit "to")' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-timeago
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- markets
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -94,8 +94,8 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
-
description:
|
98
|
-
and futures
|
97
|
+
description: A Ruby library to compute distance of dates in words. Originally built
|
98
|
+
for Jekyll, as a Liquid extension. It also supports localization and futures.
|
99
99
|
email:
|
100
100
|
- srmarc.ai@gmail.com
|
101
101
|
executables:
|
@@ -150,8 +150,7 @@ rubyforge_project:
|
|
150
150
|
rubygems_version: 2.2.2
|
151
151
|
signing_key:
|
152
152
|
specification_version: 4
|
153
|
-
summary:
|
154
|
-
futures supported.
|
153
|
+
summary: A date helper to compute distance of dates in words.
|
155
154
|
test_files:
|
156
155
|
- spec/jekyll-timeago_spec.rb
|
157
156
|
- spec/source/_config.yml
|