jekyll-time-to-read 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jekyll-time-to-read.rb +1 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d06eda2796d75024ea39be2abd06e4f39b08d4e4
4
- data.tar.gz: e08be79ccb3864203a07eadd2ba3085ca4928b67
3
+ metadata.gz: 2d6787672f85f16288bab35985e04163bd1eaec9
4
+ data.tar.gz: 0b1ce5a13709c74d1610790f0b003ea3e5c823c5
5
5
  SHA512:
6
- metadata.gz: a64f97150e9e1d68cbfa4ed87c83afb7619947a89f39b25c2aef4830e96494c15d19a0509f6db3638152534be7a8b2570b0427f4f7a5ab9c5e17351cdadff126
7
- data.tar.gz: 4fbc0a1efb7c552727031604fe8ea7c03f93ffaf4eed02ac22a03fa21db48e5ac0f2c46d58b3d4040eb2c7536ad785fb4c9b3e994f6e3aff70f35d57c656b516
6
+ metadata.gz: 86ea41fe47156c6be6c45b2f8a68a6e1252e9ab78d0cbcb6e93337ac6cc70931d881e3a07b0ace0acb0b70e2c6526f41fbccd03800e36cd6dc3ec8b006b091bb
7
+ data.tar.gz: 8775f9512dec87714b9e42cf6b6315521181af6089ab663fc301a92ebedb21c18dc8ea8ead6898d9b9ad0fc6236a0cf053688d4dc596ad469b01e4f64964f27f
@@ -1,7 +1,6 @@
1
1
  # Outputs the reading time, as a number
2
2
 
3
3
  # Read this in "about 4 minutes"
4
- # Put into your _plugins dir in your Jekyll site
5
4
  # Usage: Read this in {{ page.content | reading_time_as_i }}
6
5
 
7
6
  WORD_PER_MINUTE = 180
@@ -25,7 +24,6 @@ end
25
24
  # Outputs the reading time, as a string
26
25
 
27
26
  # Read this in "about four minutes"
28
- # Put into your _plugins dir in your Jekyll site
29
27
  # Usage: Read this in {{ page.content | reading_time_as_s }}
30
28
 
31
29
  module ReadingTimeFilterAsString
@@ -33,7 +31,6 @@ module ReadingTimeFilterAsString
33
31
  minutes, minutes_label = calculate_time(input)
34
32
 
35
33
  case minutes
36
- when 1 then minutes_s = 'one'
37
34
  when 2 then minutes_s = 'two'
38
35
  when 3 then minutes_s = 'three'
39
36
  when 4 then minutes_s = 'four'
@@ -42,6 +39,7 @@ module ReadingTimeFilterAsString
42
39
  when 7 then minutes_s = 'seven'
43
40
  when 8 then minutes_s = 'eight'
44
41
  when 9 then minutes_s = 'nine'
42
+ else minutes_s = minutes
45
43
  end
46
44
 
47
45
  minutes > 0 ? "#{minutes_s} #{minutes_label}" : "less than one minute"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-time-to-read
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen J. Torikian