rails-livestamp 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +18 -2
- data/lib/rails/livestamp/version.rb +1 -1
- data/rails-livestamp-1.1.2.gem +0 -0
- data/rails-livestamp.gemspec +2 -2
- metadata +9 -6
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
#
|
1
|
+
# rails-livestamp [![Gem Version](https://badge.fury.io/rb/rails-livestamp.svg)](http://badge.fury.io/rb/rails-livestamp)
|
2
2
|
|
3
|
-
The livestamp will update automatically as time goes by. ISO 8601 timestamps are also supported.
|
3
|
+
The rails-livestamp is a simple, unobtrusive jQuery plugin that provides auto-updating timeago text to your timestamped HTML elements, which will update automatically as time goes by. ISO 8601 timestamps are also supported.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -18,6 +18,12 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
$ gem install rails-livestamp
|
20
20
|
|
21
|
+
To use rails-livestamp add this require statement to your application.js file:
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
//= require rails-livestamp
|
25
|
+
```
|
26
|
+
|
21
27
|
## Usage
|
22
28
|
|
23
29
|
No extra JavaScript required! Just use a <span> with the data-livestamp attribute set to the desired Unix timestamp (in seconds), like this:
|
@@ -33,3 +39,13 @@ You discovered rails-livestamp a minutes ago.
|
|
33
39
|
```
|
34
40
|
|
35
41
|
Wait half a minute - the livestamp will update automatically.
|
42
|
+
|
43
|
+
## More Documentation.
|
44
|
+
|
45
|
+
See the [livestamp documentation](http://mattbradley.github.io/livestampjs/).
|
46
|
+
|
47
|
+
## License
|
48
|
+
|
49
|
+
[MIT License](http://www.opensource.org/licenses/mit-license.php)
|
50
|
+
|
51
|
+
Copyright (c) 2015, [Matt Bradley (Livestamp.js Developer)](https://github.com/mattbradley), [Bunlong VAN (rails-livestamp Developer)](https://github.com/Bunlong)
|
Binary file
|
data/rails-livestamp.gemspec
CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Bunlong"]
|
10
10
|
spec.email = ["bunlong.van@gmail.com"]
|
11
11
|
|
12
|
-
spec.summary = %q{The rails-livestamp will update automatically as time goes by. ISO 8601 timestamps are also supported.}
|
13
|
-
spec.description = %q{The rails-livestamp will update automatically as time goes by. ISO 8601 timestamps are also supported.}
|
12
|
+
spec.summary = %q{The rails-livestamp is a simple jQuery plugin that provides auto-updating timeago text to your timestamped HTML elements, which will update automatically as time goes by. ISO 8601 timestamps are also supported.}
|
13
|
+
spec.description = %q{The rails-livestamp is a simple jQuery plugin that provides auto-updating timeago text to your timestamped HTML elements, which will update automatically as time goes by. ISO 8601 timestamps are also supported.}
|
14
14
|
spec.homepage = "https://github.com/Bunlong/rails-livestamp"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-livestamp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-03-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -43,8 +43,9 @@ dependencies:
|
|
43
43
|
- - ~>
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '10.0'
|
46
|
-
description: The rails-livestamp
|
47
|
-
|
46
|
+
description: The rails-livestamp is a simple jQuery plugin that provides auto-updating
|
47
|
+
timeago text to your timestamped HTML elements, which will update automatically
|
48
|
+
as time goes by. ISO 8601 timestamps are also supported.
|
48
49
|
email:
|
49
50
|
- bunlong.van@gmail.com
|
50
51
|
executables: []
|
@@ -61,6 +62,7 @@ files:
|
|
61
62
|
- bin/setup
|
62
63
|
- lib/rails/livestamp.rb
|
63
64
|
- lib/rails/livestamp/version.rb
|
65
|
+
- rails-livestamp-1.1.2.gem
|
64
66
|
- rails-livestamp.gemspec
|
65
67
|
- vendor/assets/javascripts/rails-livestamp.js
|
66
68
|
homepage: https://github.com/Bunlong/rails-livestamp
|
@@ -87,6 +89,7 @@ rubyforge_project:
|
|
87
89
|
rubygems_version: 1.8.25
|
88
90
|
signing_key:
|
89
91
|
specification_version: 3
|
90
|
-
summary: The rails-livestamp
|
91
|
-
|
92
|
+
summary: The rails-livestamp is a simple jQuery plugin that provides auto-updating
|
93
|
+
timeago text to your timestamped HTML elements, which will update automatically
|
94
|
+
as time goes by. ISO 8601 timestamps are also supported.
|
92
95
|
test_files: []
|