jekyll-timeago 0.12.1 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.travis.yml +5 -22
- data/Appraisals +4 -8
- data/Gemfile +3 -1
- data/LICENSE +1 -1
- data/README.md +13 -3
- data/bin/jekyll-timeago +11 -12
- data/gemfiles/jekyll_v3.gemfile +2 -1
- data/gemfiles/jekyll_v4.gemfile +8 -0
- data/jekyll-timeago.gemspec +2 -3
- data/lib/jekyll-timeago.rb +13 -1
- data/lib/jekyll-timeago/core.rb +22 -8
- data/lib/jekyll-timeago/version.rb +1 -1
- data/lib/locales/ca.yml +20 -0
- data/lib/locales/de.yml +1 -1
- data/lib/locales/en.yml +1 -1
- data/lib/locales/es.yml +1 -1
- data/lib/locales/fr.yml +1 -1
- data/lib/locales/it.yml +1 -1
- data/lib/locales/ja.yaml +20 -0
- data/lib/locales/pt.yml +1 -1
- data/lib/locales/ru.yml +24 -0
- data/lib/locales/zh_hans.yml +20 -0
- data/spec/jekyll-timeago_spec.rb +11 -2
- data/spec/source/_config.yml +5 -3
- data/spec/source/index.html +2 -1
- metadata +11 -23
- data/gemfiles/jekyll_v1.gemfile +0 -7
- data/gemfiles/jekyll_v2.gemfile +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9650395244a487a5c4fb18cca3eb55076a65f2050c6d1537a54fb3202a8338ad
|
4
|
+
data.tar.gz: 471232c523d47eb6d7eb09cbced7e5f497bb5ed32d0382361c3d37efc2489938
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f832ed979255fe23c548ce3cd1a6999cc8ec0518ac5acb7ae6569f99e3c105a341c13ab94ab5d681707f4018b9176dff366189c61d9748ec3388298e32a21f3
|
7
|
+
data.tar.gz: 56775c9e6256fa76fa214583e14cc642e2123e53d963523486391c6665a5513fc5ba4c14ecea2fcd03a9a771b7bee0998a2223ef63b80aeaf803003c4cb79e28
|
data/.travis.yml
CHANGED
@@ -1,33 +1,16 @@
|
|
1
1
|
language: ruby
|
2
|
-
|
3
2
|
cache: bundler
|
4
|
-
|
5
|
-
sudo: false
|
6
|
-
|
7
3
|
rvm:
|
8
4
|
- ruby-head
|
9
|
-
- 2.
|
10
|
-
- 2.
|
11
|
-
- 2.
|
5
|
+
- 2.7.2
|
6
|
+
- 2.6.3
|
7
|
+
- 2.5.5
|
8
|
+
- 2.4.5
|
12
9
|
|
13
10
|
gemfile:
|
14
11
|
- gemfiles/jekyll_v3.gemfile
|
15
|
-
- gemfiles/
|
16
|
-
- gemfiles/jekyll_v1.gemfile
|
12
|
+
- gemfiles/jekyll_v4.gemfile
|
17
13
|
|
18
14
|
matrix:
|
19
|
-
exclude:
|
20
|
-
- rvm: ruby-head
|
21
|
-
gemfile: gemfiles/jekyll_v2.gemfile
|
22
|
-
- rvm: ruby-head
|
23
|
-
gemfile: gemfiles/jekyll_v1.gemfile
|
24
|
-
- rvm: 2.5.1
|
25
|
-
gemfile: gemfiles/jekyll_v2.gemfile
|
26
|
-
- rvm: 2.5.1
|
27
|
-
gemfile: gemfiles/jekyll_v1.gemfile
|
28
|
-
- rvm: 2.4.4
|
29
|
-
gemfile: gemfiles/jekyll_v2.gemfile
|
30
|
-
- rvm: 2.4.4
|
31
|
-
gemfile: gemfiles/jekyll_v1.gemfile
|
32
15
|
allow_failures:
|
33
16
|
- rvm: ruby-head
|
data/Appraisals
CHANGED
@@ -1,11 +1,7 @@
|
|
1
|
-
appraise 'jekyll-
|
2
|
-
gem 'jekyll', '~>
|
1
|
+
appraise 'jekyll-v3' do
|
2
|
+
gem 'jekyll', '~> 3.8'
|
3
3
|
end
|
4
4
|
|
5
|
-
appraise 'jekyll-
|
6
|
-
gem 'jekyll', '~> 2
|
5
|
+
appraise 'jekyll-v4' do
|
6
|
+
gem 'jekyll', '~> 4.2'
|
7
7
|
end
|
8
|
-
|
9
|
-
appraise 'jekyll-v3' do
|
10
|
-
gem 'jekyll', '~> 3.8'
|
11
|
-
end
|
data/Gemfile
CHANGED
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -14,8 +14,9 @@ Main features:
|
|
14
14
|
- Localization
|
15
15
|
- Level of detail customization
|
16
16
|
- Command line utility
|
17
|
+
- Approximate distance, with customizable threshold, ie: `366 days` becomes `1 year ago` instead of `1 year and 1 day ago`
|
17
18
|
|
18
|
-
In fact, `jekyll-timeago` started as an extension for the [Liquid](https://github.com/Shopify/liquid) template engine, to be used in Jekyll and Octopress backed sites. But actually, you can use it easily
|
19
|
+
In fact, `jekyll-timeago` started as an extension for the [Liquid](https://github.com/Shopify/liquid) template engine, to be used in Jekyll and Octopress backed sites. But actually, you can use it easily on any Ruby project and even as a tool from the [terminal](#cli)!
|
19
20
|
|
20
21
|
Read more about the `Jekyll` integration [in this section](#jekyll-integration).
|
21
22
|
|
@@ -107,6 +108,15 @@ You are able to change the level of detail (from 1 up to 4, 2 by default) to get
|
|
107
108
|
=> "5 years, 5 months, 3 weeks and 4 days ago"
|
108
109
|
```
|
109
110
|
|
111
|
+
- `threshold`
|
112
|
+
|
113
|
+
The next component in the time must at least match this threshold to be picked. Set to 0 by default, so you don't get any approximations. Can be used to drop "straggling" values which are too low to be of any use (`in 7 months and 2 days` is as good as saying `in 7 months`).
|
114
|
+
|
115
|
+
```ruby
|
116
|
+
>> timeago(Date.today.prev_day(366), depth: 2, threshold: 0.05)
|
117
|
+
=> "1 year ago"
|
118
|
+
```
|
119
|
+
|
110
120
|
## Localization
|
111
121
|
|
112
122
|
By default, `jekyll-timego` already provides translations for some languages. You can check the list [here](lib/locales/). However, you are able to provide your own translations, or even override the originals, easily.
|
@@ -124,7 +134,7 @@ If you want to contribute and support more default languages, please feel free t
|
|
124
134
|
|
125
135
|
## CLI
|
126
136
|
|
127
|
-
You can also `jekyll-timeago` from the command line:
|
137
|
+
You can also use `jekyll-timeago` from the command line:
|
128
138
|
|
129
139
|
```
|
130
140
|
> jekyll-timeago --help
|
@@ -159,7 +169,7 @@ Install the `gem` to your system:
|
|
159
169
|
In your `_config.yml` file, add a new array with the key gems and the values of the gem names of the plugins you’d like to use. In this case:
|
160
170
|
|
161
171
|
```yaml
|
162
|
-
|
172
|
+
plugins:
|
163
173
|
- jekyll-timeago
|
164
174
|
```
|
165
175
|
|
data/bin/jekyll-timeago
CHANGED
@@ -1,22 +1,21 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
require "mini_i18n"
|
4
3
|
require_relative "../lib/jekyll-timeago"
|
5
4
|
|
6
|
-
help_message =
|
7
|
-
Usage:
|
5
|
+
help_message = <<~HELP_MESSAGE
|
6
|
+
Usage:
|
8
7
|
|
9
|
-
|
8
|
+
jekyll-timeago <from_date> [to_date]
|
10
9
|
|
11
|
-
Notes:
|
12
|
-
|
10
|
+
Notes:
|
11
|
+
[to_date] Optional, defaults to current date
|
13
12
|
|
14
|
-
Options:
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
13
|
+
Options:
|
14
|
+
--help, -h Prints this message
|
15
|
+
--version, -v Prints the current version
|
16
|
+
--console, -c Starts an interactive IRB session with jekyll-timeago included
|
17
|
+
--locale, -l Uses the provided locale
|
18
|
+
HELP_MESSAGE
|
20
19
|
|
21
20
|
if ARGV.empty? || ARGV.include?("--help") || ARGV.include?("-h")
|
22
21
|
puts help_message
|
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 = "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
8
|
spec.summary = "A date helper to compute distance of dates in words."
|
9
|
+
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."
|
10
10
|
spec.homepage = "https://github.com/markets/jekyll-timeago"
|
11
11
|
spec.license = "MIT"
|
12
12
|
|
@@ -18,9 +18,8 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.add_dependency "mini_i18n", '>= 0.8.0'
|
19
19
|
|
20
20
|
spec.add_development_dependency "jekyll", ">= 1.5"
|
21
|
-
spec.add_development_dependency "bundler"
|
21
|
+
spec.add_development_dependency "bundler"
|
22
22
|
spec.add_development_dependency "rake"
|
23
23
|
spec.add_development_dependency "rspec"
|
24
24
|
spec.add_development_dependency "appraisal"
|
25
|
-
spec.add_development_dependency "byebug"
|
26
25
|
end
|
data/lib/jekyll-timeago.rb
CHANGED
@@ -18,4 +18,16 @@ end
|
|
18
18
|
|
19
19
|
MiniI18n.configure do |config|
|
20
20
|
config.load_translations(__dir__ + '/locales/*.yml')
|
21
|
-
|
21
|
+
config.pluralization_rules = {
|
22
|
+
ru: -> (n) {
|
23
|
+
r = n % 10
|
24
|
+
if n != 11 && r == 1
|
25
|
+
'one'
|
26
|
+
elsif !(12..14).include?(n) && (2..4).include?(r)
|
27
|
+
'few'
|
28
|
+
else
|
29
|
+
'other'
|
30
|
+
end
|
31
|
+
}
|
32
|
+
}
|
33
|
+
end
|
data/lib/jekyll-timeago/core.rb
CHANGED
@@ -11,6 +11,9 @@ module Jekyll
|
|
11
11
|
# Default level of detail
|
12
12
|
DEFAULT_DEPTH_LEVEL = 2
|
13
13
|
|
14
|
+
# Default threshold
|
15
|
+
DEFAULT_THRESHOLD = 0
|
16
|
+
|
14
17
|
def timeago(from, to = Date.today, options = {})
|
15
18
|
if to.is_a?(Hash)
|
16
19
|
options = to
|
@@ -19,11 +22,12 @@ module Jekyll
|
|
19
22
|
|
20
23
|
@options = options
|
21
24
|
|
22
|
-
from
|
23
|
-
to
|
24
|
-
depth
|
25
|
+
from = validate_date(from)
|
26
|
+
to = validate_date(to)
|
27
|
+
depth = validate_depth(@options[:depth] || @options["depth"])
|
28
|
+
threshold = validate_threshold(@options[:threshold] || @options["threshold"])
|
25
29
|
|
26
|
-
time_ago_to_now(from, to, depth)
|
30
|
+
time_ago_to_now(from, to, depth, threshold)
|
27
31
|
end
|
28
32
|
|
29
33
|
private
|
@@ -32,11 +36,15 @@ module Jekyll
|
|
32
36
|
Date.parse(date.to_s)
|
33
37
|
end
|
34
38
|
|
39
|
+
def validate_threshold(threshold)
|
40
|
+
(0.0..1.0).include?(threshold) ? threshold : DEFAULT_THRESHOLD
|
41
|
+
end
|
42
|
+
|
35
43
|
def validate_depth(depth)
|
36
44
|
(1..MAX_DEPTH_LEVEL).include?(depth) ? depth : DEFAULT_DEPTH_LEVEL
|
37
45
|
end
|
38
46
|
|
39
|
-
def time_ago_to_now(from, to, depth)
|
47
|
+
def time_ago_to_now(from, to, depth, threshold)
|
40
48
|
days_passed = (to - from).to_i
|
41
49
|
|
42
50
|
return t(:today) if days_passed == 0
|
@@ -44,7 +52,7 @@ module Jekyll
|
|
44
52
|
return t(:tomorrow) if days_passed == -1
|
45
53
|
|
46
54
|
past_or_future = from < to ? :past : :future
|
47
|
-
slots = build_time_ago_slots(days_passed.abs, depth)
|
55
|
+
slots = build_time_ago_slots(days_passed.abs, depth, threshold)
|
48
56
|
|
49
57
|
t(past_or_future, date_range: to_sentence(slots))
|
50
58
|
end
|
@@ -56,8 +64,9 @@ module Jekyll
|
|
56
64
|
# Builds time ranges: ['1 month', '5 days']
|
57
65
|
# - days_passed: integer in absolute
|
58
66
|
# - depth: level of detail
|
67
|
+
# - threshold: minimum fractional difference to keep for next slot
|
59
68
|
# - current_slots: built time slots
|
60
|
-
def build_time_ago_slots(days_passed, depth, current_slots = [])
|
69
|
+
def build_time_ago_slots(days_passed, depth, threshold, current_slots = [])
|
61
70
|
return current_slots if depth == 0 || days_passed == 0
|
62
71
|
|
63
72
|
range = days_to_range(days_passed)
|
@@ -67,7 +76,12 @@ module Jekyll
|
|
67
76
|
current_slots << t(range, count: num_elems)
|
68
77
|
|
69
78
|
pending_days = days_passed - (num_elems * days)
|
70
|
-
|
79
|
+
|
80
|
+
if pending_days >= (days_passed * threshold).floor
|
81
|
+
build_time_ago_slots(pending_days, depth - 1, threshold, current_slots)
|
82
|
+
else
|
83
|
+
current_slots
|
84
|
+
end
|
71
85
|
end
|
72
86
|
|
73
87
|
def days_to_range(days)
|
data/lib/locales/ca.yml
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
ca:
|
2
|
+
today: 'avui'
|
3
|
+
yesterday: 'ahir'
|
4
|
+
tomorrow: 'demà'
|
5
|
+
past: 'fa %{date_range}'
|
6
|
+
future: "d'aquí %{date_range}"
|
7
|
+
last_word_connector: 'i'
|
8
|
+
words_connector: ', '
|
9
|
+
years:
|
10
|
+
one: '1 any'
|
11
|
+
other: '%{count} anys'
|
12
|
+
months:
|
13
|
+
one: '1 mes'
|
14
|
+
other: '%{count} mesos'
|
15
|
+
weeks:
|
16
|
+
one: '1 setmana'
|
17
|
+
other: '%{count} setmanes'
|
18
|
+
days:
|
19
|
+
one: '1 dia'
|
20
|
+
other: '%{count} dies'
|
data/lib/locales/de.yml
CHANGED
data/lib/locales/en.yml
CHANGED
data/lib/locales/es.yml
CHANGED
data/lib/locales/fr.yml
CHANGED
data/lib/locales/it.yml
CHANGED
data/lib/locales/ja.yaml
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
ja:
|
2
|
+
today: '今日'
|
3
|
+
yesterday: '昨日'
|
4
|
+
tomorrow: '明日'
|
5
|
+
past: '%{date_range}前'
|
6
|
+
future: '%{date_range}後'
|
7
|
+
last_word_connector: ''
|
8
|
+
words_connector: ''
|
9
|
+
years:
|
10
|
+
one: '1年'
|
11
|
+
other: '%{count}年'
|
12
|
+
months:
|
13
|
+
one: '1ヶ月'
|
14
|
+
other: '%{count}个月'
|
15
|
+
weeks:
|
16
|
+
one: '1週間'
|
17
|
+
other: '%{count}週間'
|
18
|
+
days:
|
19
|
+
one: '1日'
|
20
|
+
other: '%{count}日'
|
data/lib/locales/pt.yml
CHANGED
data/lib/locales/ru.yml
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
ru:
|
2
|
+
today: 'сегодня'
|
3
|
+
yesterday: 'вчера'
|
4
|
+
tomorrow: 'завтра'
|
5
|
+
past: '%{date_range} назад'
|
6
|
+
future: 'через %{date_range}'
|
7
|
+
last_word_connector: 'и'
|
8
|
+
words_connector: ', '
|
9
|
+
years:
|
10
|
+
one: 'год'
|
11
|
+
few: '%{count} года'
|
12
|
+
other: '%{count} лет'
|
13
|
+
months:
|
14
|
+
one: 'месяц'
|
15
|
+
few: '%{count} месяца'
|
16
|
+
other: '%{count} месяцев'
|
17
|
+
weeks:
|
18
|
+
one: 'неделю'
|
19
|
+
few: '%{count} недели'
|
20
|
+
other: '%{count} недель'
|
21
|
+
days:
|
22
|
+
one: 'день'
|
23
|
+
few: '%{count} дня'
|
24
|
+
other: '%{count} дней'
|
@@ -0,0 +1,20 @@
|
|
1
|
+
zh_hans:
|
2
|
+
today: '今天'
|
3
|
+
yesterday: '昨天'
|
4
|
+
tomorrow: '明天'
|
5
|
+
past: '%{date_range}以前'
|
6
|
+
future: '%{date_range}以后'
|
7
|
+
last_word_connector: ''
|
8
|
+
words_connector: ''
|
9
|
+
years:
|
10
|
+
one: '1年'
|
11
|
+
other: '%{count}年'
|
12
|
+
months:
|
13
|
+
one: '1个月'
|
14
|
+
other: '%{count}个月'
|
15
|
+
weeks:
|
16
|
+
one: '1周'
|
17
|
+
other: '%{count}周'
|
18
|
+
days:
|
19
|
+
one: '1天'
|
20
|
+
other: '%{count}天'
|
data/spec/jekyll-timeago_spec.rb
CHANGED
@@ -25,7 +25,8 @@ describe Jekyll::Timeago do
|
|
25
25
|
"<p>2 años</p>\n"\
|
26
26
|
"<p>12 meses</p>\n"\
|
27
27
|
"<p>12 meses</p>\n"\
|
28
|
-
"<p>2 años</p
|
28
|
+
"<p>2 años</p>\n"\
|
29
|
+
"<p>en 1 año</p>\n"
|
29
30
|
|
30
31
|
expect(contents).to eq(expected)
|
31
32
|
end
|
@@ -50,6 +51,8 @@ describe Jekyll::Timeago do
|
|
50
51
|
it 'future time' do
|
51
52
|
expect(timeago(sample_date.next_day(7), sample_date)).to eq('in 1 week')
|
52
53
|
expect(timeago(sample_date.next_day(1000), sample_date)).to eq('in 2 years and 9 months')
|
54
|
+
expect(timeago(sample_date.next_day(7), sample_date, locale: :ru)).to eq('через неделю')
|
55
|
+
expect(timeago(sample_date.next_day(1000), sample_date, locale: :ru)).to eq('через 2 года и 9 месяцев')
|
53
56
|
end
|
54
57
|
|
55
58
|
it 'allow different date formats' do
|
@@ -69,8 +72,13 @@ describe Jekyll::Timeago do
|
|
69
72
|
expect(timeago(sample_date.prev_day(500), sample_date, depth: 5)).to eq('1 year and 4 months ago')
|
70
73
|
end
|
71
74
|
|
75
|
+
it 'allow threshold configuration' do
|
76
|
+
expect(timeago(sample_date.prev_day(366), sample_date, threshold: 0.05)).to eq('1 year ago')
|
77
|
+
end
|
78
|
+
|
72
79
|
it 'allow localization' do
|
73
80
|
expect(timeago(sample_date.prev_day(100), sample_date, locale: :fr)).to eq('il y a environ 3 mois et 1 semaine')
|
81
|
+
expect(timeago(sample_date.prev_day(100), sample_date, locale: :ru)).to eq('3 месяца и неделю назад')
|
74
82
|
end
|
75
83
|
end
|
76
84
|
|
@@ -96,6 +104,7 @@ describe Jekyll::Timeago do
|
|
96
104
|
it 'with custom locale' do
|
97
105
|
expect(`bin/jekyll-timeago 2016-1-1 2016-1-5 -l fr`).to match("il y a environ 4 jours")
|
98
106
|
expect(`bin/jekyll-timeago 2016-1-1 2016-1-5 --locale fr`).to match("il y a environ 4 jours")
|
107
|
+
expect(`bin/jekyll-timeago 2016-1-1 2016-1-5 --locale ru`).to match("4 дня назад")
|
99
108
|
end
|
100
109
|
end
|
101
|
-
end
|
110
|
+
end
|
data/spec/source/_config.yml
CHANGED
data/spec/source/index.html
CHANGED
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.
|
4
|
+
version: 0.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- markets
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mini_i18n
|
@@ -40,20 +40,6 @@ dependencies:
|
|
40
40
|
version: '1.5'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '1.3'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '1.3'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rake
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
58
44
|
requirements:
|
59
45
|
- - ">="
|
@@ -67,7 +53,7 @@ dependencies:
|
|
67
53
|
- !ruby/object:Gem::Version
|
68
54
|
version: '0'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
56
|
+
name: rake
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
72
58
|
requirements:
|
73
59
|
- - ">="
|
@@ -81,7 +67,7 @@ dependencies:
|
|
81
67
|
- !ruby/object:Gem::Version
|
82
68
|
version: '0'
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
70
|
+
name: rspec
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
86
72
|
requirements:
|
87
73
|
- - ">="
|
@@ -95,7 +81,7 @@ dependencies:
|
|
95
81
|
- !ruby/object:Gem::Version
|
96
82
|
version: '0'
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
84
|
+
name: appraisal
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
100
86
|
requirements:
|
101
87
|
- - ">="
|
@@ -125,20 +111,23 @@ files:
|
|
125
111
|
- README.md
|
126
112
|
- Rakefile
|
127
113
|
- bin/jekyll-timeago
|
128
|
-
- gemfiles/jekyll_v1.gemfile
|
129
|
-
- gemfiles/jekyll_v2.gemfile
|
130
114
|
- gemfiles/jekyll_v3.gemfile
|
115
|
+
- gemfiles/jekyll_v4.gemfile
|
131
116
|
- jekyll-timeago.gemspec
|
132
117
|
- lib/jekyll-timeago.rb
|
133
118
|
- lib/jekyll-timeago/core.rb
|
134
119
|
- lib/jekyll-timeago/jekyll_integration.rb
|
135
120
|
- lib/jekyll-timeago/version.rb
|
121
|
+
- lib/locales/ca.yml
|
136
122
|
- lib/locales/de.yml
|
137
123
|
- lib/locales/en.yml
|
138
124
|
- lib/locales/es.yml
|
139
125
|
- lib/locales/fr.yml
|
140
126
|
- lib/locales/it.yml
|
127
|
+
- lib/locales/ja.yaml
|
141
128
|
- lib/locales/pt.yml
|
129
|
+
- lib/locales/ru.yml
|
130
|
+
- lib/locales/zh_hans.yml
|
142
131
|
- spec/jekyll-timeago_spec.rb
|
143
132
|
- spec/source/_config.yml
|
144
133
|
- spec/source/_locales/overrides.yaml
|
@@ -163,8 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
152
|
- !ruby/object:Gem::Version
|
164
153
|
version: '0'
|
165
154
|
requirements: []
|
166
|
-
|
167
|
-
rubygems_version: 2.6.13
|
155
|
+
rubygems_version: 3.0.3
|
168
156
|
signing_key:
|
169
157
|
specification_version: 4
|
170
158
|
summary: A date helper to compute distance of dates in words.
|
data/gemfiles/jekyll_v1.gemfile
DELETED