timepiece 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +1 -1
- data/app/assets/javascripts/timepiece.js +8 -1
- data/lib/timepiece/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7718e37a2cc914021c28efaae5ec8044540bf8a7
|
4
|
+
data.tar.gz: 07062cbe1d9bc4771f9fb54e8a6a8f6c7a0b123d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6377ab39f72cfbf29e2c29e4d708fbe0a15bbb6dcb269a9306663c08e63c921215f52276c33393417e7f74d29441833a72c768a0cdfeacfd5f93c509eddf0ef
|
7
|
+
data.tar.gz: 49bb8b5a5f4ba48a86fd4b7a074bdd551569677e0b8c175304427aa8c19ad56d7940de8be94d888ade476861a4f6ea68373a207048b30f9c53938a2a0ab3287b
|
data/README.rdoc
CHANGED
@@ -70,4 +70,4 @@ There is also a basic countdown implementation. To start a countdown to 2016, si
|
|
70
70
|
|
71
71
|
* The helper also takes a time object as a parameter, for example:
|
72
72
|
|
73
|
-
<%= countdown(Time.new(2016, 3, 14)) %>
|
73
|
+
<%= countdown(Time.new(2016, 3, 14)) %> <%# My birthday and, of course, Pi day %>
|
@@ -165,7 +165,14 @@ function show_countdown(){
|
|
165
165
|
countdown_hours[i] -= 1
|
166
166
|
} else {
|
167
167
|
countdown_hours[i] = 23
|
168
|
-
countdown_days[i]
|
168
|
+
if (countdown_days[i] > 0){
|
169
|
+
countdown_days[i] -= 1
|
170
|
+
} else {
|
171
|
+
countdown_days[i] = 0
|
172
|
+
countdown_hours[i] = 0
|
173
|
+
countdown_minutes[i] = 0
|
174
|
+
countdown_seconds[i] = 0
|
175
|
+
}
|
169
176
|
}
|
170
177
|
}
|
171
178
|
}
|
data/lib/timepiece/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: timepiece
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thom Bruce
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jquery-rails
|