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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b9d5e9978c63bb8873088355270e63b10b1ac6b
4
- data.tar.gz: 4f0be89204dd83b9535ee6396ab76884f869886e
3
+ metadata.gz: 7718e37a2cc914021c28efaae5ec8044540bf8a7
4
+ data.tar.gz: 07062cbe1d9bc4771f9fb54e8a6a8f6c7a0b123d
5
5
  SHA512:
6
- metadata.gz: 0d7db3d0c517a5ffea111c9434e0aea4dae62744ca4623c6a8589febb65732300a763cd7a4080a7c8ac891af5b1e513a8fb4bae48d53f41a6bc478bdef63cc49
7
- data.tar.gz: b9d8538dbd6f08bbaa963fce16c9496e61a6e4231851c061d82c61013cf09a345fee51b5ef9c113f60c6033e16b13fc53584346b64eec4dbade1ff8ebadd3481
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)) %> <!-- My birthday and, of course, Pi day -->
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] -= 1
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
  }
@@ -1,3 +1,3 @@
1
1
  module Timepiece
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.10"
3
3
  end
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.9
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-17 00:00:00.000000000 Z
11
+ date: 2015-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jquery-rails