jekyll-timeago 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c86f9f05a1d2feb029a190d319b865c7bc734125
4
+ data.tar.gz: 1fc3bb4f71197f5fbf218bf7b56b60ecd3bd5682
5
+ SHA512:
6
+ metadata.gz: 9f9f00d00ed82b4ed9d657776cbdbd03eb552e696d2f6373d74f8a593e8cc03ef7e870f93db20bbc1c223aa90d1f113e49b3bd4da4e543052adf10dac1ede0b4
7
+ data.tar.gz: 2521d07fab0a390e0e8b7d343bf6b36c0d5625ea9b7575b12ae803f7fdee1f830b4c72e159de37cd469dd42d50a64b967d5dbcc9c8f18fe5bc88ef464b97375d
data/README.md CHANGED
@@ -92,8 +92,8 @@ jekyll_timeago:
92
92
  and: 'and'
93
93
  suffix: 'ago'
94
94
  prefix: ''
95
- suffix_future: 'in'
96
- prefix_future: ''
95
+ suffix_future: ''
96
+ prefix_future: 'in'
97
97
  years: 'years'
98
98
  year: 'year'
99
99
  months: 'months'
@@ -104,6 +104,8 @@ jekyll_timeago:
104
104
  day: 'day'
105
105
  ```
106
106
 
107
+ **NOTE** You also can use suffixes and prefixes to modify the sentences. For example, set `suffix: nil` and you'll get only the distance of dates: `1 year, 4 months and 1 week`.
108
+
107
109
  ## Level of detail (Depth)
108
110
 
109
111
  You are able to change the level of detail (from 1 up to 4, 2 by default) to get higher or lower granularity. This option is setted via the `config` file (see sample in previous section). Examples:
data/_config.yml.example CHANGED
@@ -6,8 +6,8 @@ jekyll_timeago:
6
6
  and: 'and'
7
7
  suffix: 'ago'
8
8
  prefix: ''
9
- suffix_future: 'in'
10
- prefix_future: ''
9
+ suffix_future: ''
10
+ prefix_future: 'in'
11
11
  years: 'years'
12
12
  year: 'year'
13
13
  months: 'months'
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Timeago
3
- VERSION = "0.8.0"
3
+ VERSION = "0.8.1"
4
4
  end
5
5
  end
@@ -9,8 +9,8 @@ jekyll_timeago:
9
9
  and: 'and'
10
10
  suffix: 'ago'
11
11
  prefix: ''
12
- suffix_future: 'in'
13
- prefix_future: ''
12
+ suffix_future: ''
13
+ prefix_future: 'in'
14
14
  years: 'years'
15
15
  year: 'year'
16
16
  months: 'months'
metadata CHANGED
@@ -1,94 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-timeago
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
5
- prerelease:
4
+ version: 0.8.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - markets
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-07-31 00:00:00.000000000 Z
11
+ date: 2014-10-06 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: jekyll
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '1.5'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '1.5'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: bundler
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
33
  version: '1.3'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - "~>"
44
39
  - !ruby/object:Gem::Version
45
40
  version: '1.3'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rake
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rspec
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - ">="
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - ">="
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: activesupport
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - ">="
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - ">="
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
83
  description: Custom timeago filter for Jekyll (Liquid Filter and Tag). Localization
@@ -99,8 +88,8 @@ executables: []
99
88
  extensions: []
100
89
  extra_rdoc_files: []
101
90
  files:
102
- - .gitignore
103
- - .travis.yml
91
+ - ".gitignore"
92
+ - ".travis.yml"
104
93
  - Gemfile
105
94
  - LICENSE
106
95
  - README.md
@@ -119,33 +108,26 @@ files:
119
108
  homepage: https://github.com/markets/jekyll-timeago
120
109
  licenses:
121
110
  - MIT
111
+ metadata: {}
122
112
  post_install_message:
123
113
  rdoc_options: []
124
114
  require_paths:
125
115
  - lib
126
116
  required_ruby_version: !ruby/object:Gem::Requirement
127
- none: false
128
117
  requirements:
129
- - - ! '>='
118
+ - - ">="
130
119
  - !ruby/object:Gem::Version
131
120
  version: '0'
132
- segments:
133
- - 0
134
- hash: 3767954602793850700
135
121
  required_rubygems_version: !ruby/object:Gem::Requirement
136
- none: false
137
122
  requirements:
138
- - - ! '>='
123
+ - - ">="
139
124
  - !ruby/object:Gem::Version
140
125
  version: '0'
141
- segments:
142
- - 0
143
- hash: 3767954602793850700
144
126
  requirements: []
145
127
  rubyforge_project:
146
- rubygems_version: 1.8.23
128
+ rubygems_version: 2.2.0
147
129
  signing_key:
148
- specification_version: 3
130
+ specification_version: 4
149
131
  summary: Custom timeago filter for Jekyll (Liquid Filter and Tag). Localization and
150
132
  futures supported.
151
133
  test_files: