jekyll-time-to-read 0.1.1 → 0.1.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-time-to-read.rb +2 -2
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b56b5dd25a1af0b6c73dfbae80b4cfd53253e29
|
4
|
+
data.tar.gz: 4e1f0428970e8a79e01105140c871fdd6b61baed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6e47c23745b1039e19a0a70f12f8d11cefd3688a89415464d30b79cd0f87110aac5a1325019eab927a0ec8af68dba64ef5fe0bd7faf5ea9dada1ee482b59a59
|
7
|
+
data.tar.gz: c9873621b867b36952d56aa06b8db16adaf42b40a2e603fd5587548c6b792035dcf7c46f955785c2c30756956cd12a3169f93781b4deccd9cfdc08c043d94e38
|
data/lib/jekyll-time-to-read.rb
CHANGED
@@ -15,7 +15,7 @@ end
|
|
15
15
|
module ReadingTimeFilterAsInteger
|
16
16
|
def reading_time_as_i( input )
|
17
17
|
minutes, minutes_label = calculate_time(input)
|
18
|
-
minutes > 0 ? "#{minutes} #{minutes_label}" : "
|
18
|
+
minutes > 0 ? "#{minutes} #{minutes_label}" : "Less than 1 minute"
|
19
19
|
end
|
20
20
|
|
21
21
|
Liquid::Template.register_filter(ReadingTimeFilterAsInteger)
|
@@ -42,7 +42,7 @@ module ReadingTimeFilterAsString
|
|
42
42
|
else minutes_s = minutes
|
43
43
|
end
|
44
44
|
|
45
|
-
minutes > 0 ? "#{minutes_s} #{minutes_label}" : "
|
45
|
+
minutes > 0 ? "#{minutes_s} #{minutes_label}" : "Less than one minute"
|
46
46
|
end
|
47
47
|
|
48
48
|
Liquid::Template.register_filter(ReadingTimeFilterAsString)
|
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-time-to-read
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Garen J. Torikian
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 2.13.0
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 2.13.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
description:
|
@@ -69,17 +69,17 @@ require_paths:
|
|
69
69
|
- lib
|
70
70
|
required_ruby_version: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
|
-
- -
|
72
|
+
- - ">="
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
75
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
76
|
requirements:
|
77
|
-
- -
|
77
|
+
- - ">="
|
78
78
|
- !ruby/object:Gem::Version
|
79
79
|
version: '0'
|
80
80
|
requirements: []
|
81
81
|
rubyforge_project:
|
82
|
-
rubygems_version: 2.
|
82
|
+
rubygems_version: 2.4.5.1
|
83
83
|
signing_key:
|
84
84
|
specification_version: 4
|
85
85
|
summary: A liquid tag for Jekyll to indicate the time it takes to read an article.
|