jekyll-read-time 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll-read-time/filter.rb +4 -4
- data/lib/jekyll-read-time/version.rb +1 -1
- 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: bfcbd3508d92dbd67fe4395f11c4d9258941b45f
|
4
|
+
data.tar.gz: f1cf4045456f7bd309cea263c6448e37c9c24eb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82928913d77a23b7e43aaf2ba75f504ecf8c3655035aef5ede9ad288cf2a4d2b324b3ea0c8a59ec7a5c0d94cd0b68f3f0f1151f67e157bfc7e77a898e0bc4dc7
|
7
|
+
data.tar.gz: 742883b366cc5a718605e6e018dc1c2d69a8fd44b7ac1a4f30a5b0ff155f8658dd8a61e0c529e8a66519d23e73df9221b1d28f92474457cd74c7e6d40fa90960
|
@@ -12,7 +12,7 @@ module JekyllReadTime
|
|
12
12
|
|
13
13
|
module ReadingTimeFilter
|
14
14
|
def read_time( input )
|
15
|
-
minutes = calculate_time(input)
|
15
|
+
minutes = JekyllReadTime::calculate_time(input)
|
16
16
|
case minutes
|
17
17
|
when 2 then minutes_s = 'two'
|
18
18
|
when 3 then minutes_s = 'three'
|
@@ -26,14 +26,14 @@ module JekyllReadTime
|
|
26
26
|
end
|
27
27
|
minutes > 0 ? "#{minutes_s} minute read" : "less than one minute read"
|
28
28
|
end
|
29
|
-
Liquid::Template.register_filter(ReadingTimeFilter)
|
29
|
+
Liquid::Template.register_filter(JekyllReadTime::ReadingTimeFilter)
|
30
30
|
end
|
31
31
|
|
32
32
|
module ReadingTimeFilterShort
|
33
33
|
def read_time_short( input )
|
34
|
-
minutes = calculate_time(input)
|
34
|
+
minutes = JekyllReadTime::calculate_time(input)
|
35
35
|
minutes > 0 ? "#{minutes} min read" : "1 min read"
|
36
36
|
end
|
37
|
-
Liquid::Template.register_filter(ReadingTimeFilterShort)
|
37
|
+
Liquid::Template.register_filter(JekyllReadTime::ReadingTimeFilterShort)
|
38
38
|
end
|
39
39
|
end
|