jekyll-timeago 0.13.1 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +23 -0
- data/Appraisals +4 -8
- data/LICENSE +1 -1
- data/README.md +3 -3
- data/Rakefile +0 -5
- data/gemfiles/jekyll_v3.gemfile +2 -1
- data/gemfiles/jekyll_v4.gemfile +8 -0
- data/jekyll-timeago.gemspec +0 -1
- data/lib/jekyll-timeago/version.rb +1 -1
- data/lib/locales/de.yml +3 -3
- data/lib/locales/ja.yaml +20 -0
- data/lib/locales/zh_hans.yml +20 -0
- metadata +7 -21
- data/.travis.yml +0 -20
- data/gemfiles/jekyll_v1.gemfile +0 -7
- data/gemfiles/jekyll_v2.gemfile +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53219f64cf2f2296edacdf4a4404de70b5e046031266f00838b0913d69371c29
|
4
|
+
data.tar.gz: 8bba488eeb3a2498c03beb31c282300764392b3d392f7d5ec176682fd41847e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 516cbd739e3c8c8824b441be6e83e079d9ea1009dfb59157b4d5dfbb35a56f352da704bfd10696ae17b6b957d308229c2553ef2e86cc0e2e14bf22c6ab18efcb
|
7
|
+
data.tar.gz: 57dfdd94cd19b7f7395ee73346d78766d376439673b665774c7befed2fe9cee19008ed3929744d6abcaf5699dc9afe57610e358cfa7e277e34153b2cab09f0e4
|
@@ -0,0 +1,23 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on: [push, pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
test:
|
7
|
+
name: CI
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
env:
|
10
|
+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
|
11
|
+
strategy:
|
12
|
+
fail-fast: false
|
13
|
+
matrix:
|
14
|
+
ruby: ['2.6', '2.7', '3.0', '3.1', '3.2', 'head']
|
15
|
+
gemfile: ['jekyll_v3', 'jekyll_v4']
|
16
|
+
steps:
|
17
|
+
- uses: actions/checkout@v3
|
18
|
+
- uses: ruby/setup-ruby@v1
|
19
|
+
with:
|
20
|
+
ruby-version: ${{ matrix.ruby }}
|
21
|
+
bundler-cache: true
|
22
|
+
- run: bundle exec rspec
|
23
|
+
continue-on-error: ${{ endsWith(matrix.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/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Jekyll-Timeago
|
2
2
|
|
3
|
-
[![Gem Version](https://
|
4
|
-
[![Build Status](https://
|
3
|
+
[![Gem Version](https://img.shields.io/gem/v/jekyll-timeago.svg)](https://rubygems.org/gems/jekyll-timeago)
|
4
|
+
[![Build Status](https://github.com/markets/jekyll-timeago/workflows/CI/badge.svg)](https://github.com/markets/jekyll-timeago/actions)
|
5
5
|
[![Maintainability](https://api.codeclimate.com/v1/badges/a8be458ba0532c2d057d/maintainability)](https://codeclimate.com/github/markets/jekyll-timeago/maintainability)
|
6
6
|
|
7
7
|
> A Ruby library to compute distance of dates in words, with localization support. Originally built for Jekyll.
|
@@ -230,7 +230,7 @@ Any kind of feedback, bug report, idea or enhancement are really appreciated.
|
|
230
230
|
To contribute, just fork the repo, hack on it and send a pull request. Don't forget to add specs for behaviour changes and run the test suite:
|
231
231
|
|
232
232
|
```
|
233
|
-
> bundle exec
|
233
|
+
> bundle exec rspec
|
234
234
|
```
|
235
235
|
|
236
236
|
## License
|
data/Rakefile
CHANGED
data/gemfiles/jekyll_v3.gemfile
CHANGED
data/jekyll-timeago.gemspec
CHANGED
@@ -19,7 +19,6 @@ Gem::Specification.new do |spec|
|
|
19
19
|
|
20
20
|
spec.add_development_dependency "jekyll", ">= 1.5"
|
21
21
|
spec.add_development_dependency "bundler"
|
22
|
-
spec.add_development_dependency "rake"
|
23
22
|
spec.add_development_dependency "rspec"
|
24
23
|
spec.add_development_dependency "appraisal"
|
25
24
|
end
|
data/lib/locales/de.yml
CHANGED
@@ -2,16 +2,16 @@ de:
|
|
2
2
|
today: 'heute'
|
3
3
|
yesterday: 'gestern'
|
4
4
|
tomorrow: 'morgen'
|
5
|
-
past: '%{date_range}
|
5
|
+
past: 'vor %{date_range}'
|
6
6
|
future: 'in %{date_range}'
|
7
7
|
last_word_connector: 'und'
|
8
8
|
words_connector: ', '
|
9
9
|
years:
|
10
10
|
one: '1 Jahr'
|
11
|
-
other: '%{count}
|
11
|
+
other: '%{count} Jahren'
|
12
12
|
months:
|
13
13
|
one: '1 Monat'
|
14
|
-
other: '%{count}
|
14
|
+
other: '%{count} Monaten'
|
15
15
|
weeks:
|
16
16
|
one: '1 Woche'
|
17
17
|
other: '%{count} Wochen'
|
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}日'
|
@@ -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}天'
|
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.15.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: 2023-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mini_i18n
|
@@ -52,20 +52,6 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rake
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: rspec
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -103,17 +89,16 @@ executables:
|
|
103
89
|
extensions: []
|
104
90
|
extra_rdoc_files: []
|
105
91
|
files:
|
92
|
+
- ".github/workflows/ci.yml"
|
106
93
|
- ".gitignore"
|
107
|
-
- ".travis.yml"
|
108
94
|
- Appraisals
|
109
95
|
- Gemfile
|
110
96
|
- LICENSE
|
111
97
|
- README.md
|
112
98
|
- Rakefile
|
113
99
|
- bin/jekyll-timeago
|
114
|
-
- gemfiles/jekyll_v1.gemfile
|
115
|
-
- gemfiles/jekyll_v2.gemfile
|
116
100
|
- gemfiles/jekyll_v3.gemfile
|
101
|
+
- gemfiles/jekyll_v4.gemfile
|
117
102
|
- jekyll-timeago.gemspec
|
118
103
|
- lib/jekyll-timeago.rb
|
119
104
|
- lib/jekyll-timeago/core.rb
|
@@ -125,8 +110,10 @@ files:
|
|
125
110
|
- lib/locales/es.yml
|
126
111
|
- lib/locales/fr.yml
|
127
112
|
- lib/locales/it.yml
|
113
|
+
- lib/locales/ja.yaml
|
128
114
|
- lib/locales/pt.yml
|
129
115
|
- lib/locales/ru.yml
|
116
|
+
- lib/locales/zh_hans.yml
|
130
117
|
- spec/jekyll-timeago_spec.rb
|
131
118
|
- spec/source/_config.yml
|
132
119
|
- spec/source/_locales/overrides.yaml
|
@@ -151,8 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
151
138
|
- !ruby/object:Gem::Version
|
152
139
|
version: '0'
|
153
140
|
requirements: []
|
154
|
-
|
155
|
-
rubygems_version: 2.7.6
|
141
|
+
rubygems_version: 3.1.4
|
156
142
|
signing_key:
|
157
143
|
specification_version: 4
|
158
144
|
summary: A date helper to compute distance of dates in words.
|
data/.travis.yml
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
cache: bundler
|
3
|
-
rvm:
|
4
|
-
- ruby-head
|
5
|
-
- 2.6.3
|
6
|
-
- 2.5.5
|
7
|
-
- 2.4.5
|
8
|
-
- 2.3.8
|
9
|
-
|
10
|
-
gemfile:
|
11
|
-
- gemfiles/jekyll_v3.gemfile
|
12
|
-
|
13
|
-
matrix:
|
14
|
-
include:
|
15
|
-
- rvm: 2.3.8
|
16
|
-
gemfile: gemfiles/jekyll_v2.gemfile
|
17
|
-
- rvm: 2.3.8
|
18
|
-
gemfile: gemfiles/jekyll_v1.gemfile
|
19
|
-
allow_failures:
|
20
|
-
- rvm: ruby-head
|
data/gemfiles/jekyll_v1.gemfile
DELETED