jekyll-timeago 0.12.1 → 0.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +7 -7
- data/README.md +1 -1
- data/bin/jekyll-timeago +11 -12
- 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/pt.yml +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8872e82d7ef88b8a7187e6a4ec46793ab14382b
|
4
|
+
data.tar.gz: 132ce65b75edd0e4a10cc5727094de7a839216e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: adb9cf8e58bc4fe81afb74f9b13e870d53faca734c004e95aabc1f2fc2ce6a6a5f80bf684649e5a1159886ceb06dc28906daa8df32c30a7e7aaabfb509307edb
|
7
|
+
data.tar.gz: 84ade933a75d07ff73b9bc111d2ad8e868e3bb0c490c28060e00720f3645fc1ca9d5f6b92e53feec9273ba5cc29eb47ac07316d35c1705418f462c37b13c2a4d
|
data/.travis.yml
CHANGED
@@ -6,9 +6,9 @@ sudo: false
|
|
6
6
|
|
7
7
|
rvm:
|
8
8
|
- ruby-head
|
9
|
-
- 2.5.
|
10
|
-
- 2.4.
|
11
|
-
- 2.3.
|
9
|
+
- 2.5.3
|
10
|
+
- 2.4.5
|
11
|
+
- 2.3.8
|
12
12
|
|
13
13
|
gemfile:
|
14
14
|
- gemfiles/jekyll_v3.gemfile
|
@@ -21,13 +21,13 @@ matrix:
|
|
21
21
|
gemfile: gemfiles/jekyll_v2.gemfile
|
22
22
|
- rvm: ruby-head
|
23
23
|
gemfile: gemfiles/jekyll_v1.gemfile
|
24
|
-
- rvm: 2.5.
|
24
|
+
- rvm: 2.5.3
|
25
25
|
gemfile: gemfiles/jekyll_v2.gemfile
|
26
|
-
- rvm: 2.5.
|
26
|
+
- rvm: 2.5.3
|
27
27
|
gemfile: gemfiles/jekyll_v1.gemfile
|
28
|
-
- rvm: 2.4.
|
28
|
+
- rvm: 2.4.5
|
29
29
|
gemfile: gemfiles/jekyll_v2.gemfile
|
30
|
-
- rvm: 2.4.
|
30
|
+
- rvm: 2.4.5
|
31
31
|
gemfile: gemfiles/jekyll_v1.gemfile
|
32
32
|
allow_failures:
|
33
33
|
- rvm: ruby-head
|
data/README.md
CHANGED
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/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/pt.yml
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.12.
|
4
|
+
version: 0.12.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- markets
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-12-
|
11
|
+
date: 2018-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mini_i18n
|
@@ -133,6 +133,7 @@ files:
|
|
133
133
|
- lib/jekyll-timeago/core.rb
|
134
134
|
- lib/jekyll-timeago/jekyll_integration.rb
|
135
135
|
- lib/jekyll-timeago/version.rb
|
136
|
+
- lib/locales/ca.yml
|
136
137
|
- lib/locales/de.yml
|
137
138
|
- lib/locales/en.yml
|
138
139
|
- lib/locales/es.yml
|