jekyll-timeago 0.5.0 → 0.5.1

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.
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  Jekyll-Timeago
2
2
  ==============
3
3
 
4
+ [![Gem Version](https://badge.fury.io/rb/jekyll-timeago.svg)](http://badge.fury.io/rb/jekyll-timeago)
5
+
4
6
  Custom and simple implementation of `timeago` date filter. Main features:
5
7
 
6
8
  * Localization
@@ -16,10 +18,16 @@ You have 3 options for installing the plugin:
16
18
 
17
19
  **Via Jekyll plugin system**
18
20
 
21
+ Install the `gem` to your system:
22
+
23
+ ```
24
+ gem install jekyll-timeago
25
+ ```
26
+
19
27
  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:
20
28
 
21
29
  ```
22
- gems: [jekyll-timeago]
30
+ gems: [jekyll/timeago]
23
31
  ```
24
32
 
25
33
  **Via Bundler**
@@ -98,7 +106,7 @@ Default behavior:
98
106
  > timeago(Date.today - 100.days)
99
107
  => "3 months and 1 week ago"
100
108
  > timeago(Date.today - 500.days)
101
- => "1 year ago and 4 months ago"
109
+ => "1 year and 4 months ago"
102
110
  > timeago(Date.today + 1.days)
103
111
  => "tomorrow"
104
112
  > timeago(Date.today + 7.days)
@@ -111,7 +119,7 @@ Change level of detail to get higher or lower granularity:
111
119
 
112
120
  ```ruby
113
121
  > timeago(Date.today - 500.days) # default
114
- => "1 year ago and 4 months ago"
122
+ => "1 year and 4 months ago"
115
123
  > timeago(Date.today - 500.days, 3)
116
124
  => "1 year, 4 months and 1 week ago"
117
125
  > timeago(Date.today - 500.days, 4)
@@ -122,4 +130,4 @@ Change level of detail to get higher or lower granularity:
122
130
 
123
131
  ## License
124
132
 
125
- Copyright (c) 2013 Marc Anguera. Unscoped Associations is released under the [MIT](http://opensource.org/licenses/MIT) License.
133
+ Copyright (c) 2013 Marc Anguera. Jekyll-Timeago is released under the [MIT](http://opensource.org/licenses/MIT) License.
@@ -1,4 +1,4 @@
1
- require "jekyll/timeago/version"
1
+ begin; require "jekyll/timeago/version"; rescue LoadError; end
2
2
 
3
3
  module Jekyll
4
4
  module Timeago
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Timeago
3
- VERSION = "0.5.0"
3
+ VERSION = "0.5.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-timeago
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-03 00:00:00.000000000 Z
12
+ date: 2014-04-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler