timeago 0.0.0 → 0.0.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.
Files changed (3) hide show
  1. data/README.rdoc +26 -14
  2. data/VERSION +1 -1
  3. metadata +3 -3
data/README.rdoc CHANGED
@@ -1,19 +1,31 @@
1
- = timeago
1
+ == timeago
2
2
 
3
- Description goes here.
3
+ to use this gem, just require and run it, like this:
4
4
 
5
- == Contributing to timeago
6
-
7
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
8
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
9
- * Fork the project.
10
- * Start a feature/bugfix branch.
11
- * Commit and push until you are happy with your contribution.
12
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
5
+ = Example 1
14
6
 
15
- == Copyright
7
+ > require 'timeago'
8
+ >
9
+ > time = Time.now - 60
10
+ >
11
+ > Timeago.readable(time)
12
+
13
+ and it should output
14
+ > one minute ago
15
+
16
+ = Example 2
17
+
18
+ > require 'timeago'
19
+ >
20
+ > time = Time.now - 13250
21
+ >
22
+ > Timeago.readable(time)
16
23
 
17
- Copyright (c) 2012 Frederik Reich. See LICENSE.txt for
18
- further details.
24
+ this should output
25
+ > 3 hours ago
26
+
27
+ this can go up to 5 years ago, after that it will change to the exact date.
28
+
29
+ == Copyright
19
30
 
31
+ Copyright (c) 2012 Frederik Reich.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.0
1
+ 0.0.1
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: timeago
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 0
10
- version: 0.0.0
9
+ - 1
10
+ version: 0.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Frederik Reich