timepiece 0.1.4 → 0.1.5

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: 00d04eb51d95ea9b19d0d02120678ffbf08c4300
4
- data.tar.gz: 61315b891b0976f674463dde577b35cdd44527ac
3
+ metadata.gz: f6e4dd209b6c6ba8153b3f6c5de00df89d39c0db
4
+ data.tar.gz: b3ce7e90ca38bb1e88c0576c2729dbed47389a8b
5
5
  SHA512:
6
- metadata.gz: f983ed67e5c5690690965cc7cd3948f98d87e26871590cba02841287766a9105c1bfab2579f2d3d076eacf468c92dfdf0d1ee1ad7e25510eb478e200188c14dc
7
- data.tar.gz: ec3842e177315b3e1d6871f3c4afa80785057caea92cc6bfb5b961399d6882483779b5fa23ce3f80a4f0b530ba0886ab2e130e060621d1ac125a0fe393330fb5
6
+ metadata.gz: b8a779d2c3f8d2ed0b10ddb543cfc19641fec536684db8519b421437c753fe4812757fd062b6e5835fa116ba8d78178523ece0f2daa3c79ccd18935cf33e8f9d
7
+ data.tar.gz: 607a425ad5cc2c1f0676364ee71c9836639030749085683b574c0687f489c6ee1f7d3eb7d48ae3918232dba36b3c275babb0ced3953666a58747ff671f954de0
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2014 YOURNAME
1
+ Copyright 2014 Thom Bruce
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.rdoc CHANGED
@@ -28,26 +28,28 @@ Timepiece is a Rails plugin providing a simple digital clock, accurate to your s
28
28
 
29
29
  <%= timepiece('London', type: '12') %>
30
30
 
31
+ === 12 Hour Clock Options
32
+
31
33
  By default the 12 hour clock displays time without any leading character, in the format '1:23pm'. You can add either a zero, as present on the 24 hour clock, or a leading space character the size of a numerical digit - useful for keeping your clocks aligned. To achieve this, set the Timepiece's `lead:`
32
34
 
33
35
  * To add a leading zero to hour values less than ten
34
36
 
35
- <%= timepiece('London', lead: '0') %>
37
+ <%= timepiece('London', type: '12', lead: '0') %>
36
38
 
37
39
  or
38
40
 
39
- <%= timepiece('London', lead: 'zero') %>
41
+ <%= timepiece('London', type: '12', lead: 'zero') %>
40
42
 
41
43
  * To add a space character
42
44
 
43
- <%= timepiece('London', lead: '_') %>
45
+ <%= timepiece('London', type: '12', lead: '_') %>
44
46
 
45
47
  or
46
48
 
47
- <%= timepiece('London', lead: 'space') %>
49
+ <%= timepiece('London', type: '12', lead: 'space') %>
48
50
 
49
51
  You can apply your own styles to any part of the Timepiece clock. For instance, you can capitalize the AM/PM abbreviation by targeting the span with class 'timepiece-abbr'. By default, the abbreviations are displayed without punctuation. To add punctuation, you can specify it with the `abbr_sep:` option.
50
52
 
51
53
  * Add punctuation to am/pm abbreviation
52
54
 
53
- <%= timepiece('London', abbr_sep: '.') %>
55
+ <%= timepiece('London', type: '12', abbr_sep: '.') %>
@@ -94,6 +94,10 @@ $(document).ready(function(){
94
94
  get_time()
95
95
  show_time()
96
96
  })
97
+ $(document).on('page:load', function(){
98
+ clearInterval(timer);
99
+ // Quickfix for Turbolinks. We should revisit this.
100
+ })
97
101
  $(window).focus(function(){
98
102
  reset_time()
99
103
  })
@@ -0,0 +1 @@
1
+ // CSS for the analogue clock version of timepiece, and maybe some optional styles for the digital.
@@ -1,3 +1,3 @@
1
1
  module Timepiece
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: timepiece
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thom Bruce
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-09 00:00:00.000000000 Z
11
+ date: 2015-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jquery-rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 3.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 3.0.0
27
27
  description: Timepiece provides an accurate digital clock to your Rails applications,
@@ -36,6 +36,7 @@ files:
36
36
  - README.rdoc
37
37
  - Rakefile
38
38
  - app/assets/javascripts/timepiece.js
39
+ - app/assets/stylesheets/timepiece.css.scss
39
40
  - app/controllers/timepiece_controller.rb
40
41
  - app/helpers/timepiece_helper.rb
41
42
  - config/routes.rb
@@ -89,17 +90,17 @@ require_paths:
89
90
  - lib
90
91
  required_ruby_version: !ruby/object:Gem::Requirement
91
92
  requirements:
92
- - - '>='
93
+ - - ">="
93
94
  - !ruby/object:Gem::Version
94
95
  version: '0'
95
96
  required_rubygems_version: !ruby/object:Gem::Requirement
96
97
  requirements:
97
- - - '>='
98
+ - - ">="
98
99
  - !ruby/object:Gem::Version
99
100
  version: '0'
100
101
  requirements: []
101
102
  rubyforge_project:
102
- rubygems_version: 2.4.1
103
+ rubygems_version: 2.4.4
103
104
  signing_key:
104
105
  specification_version: 4
105
106
  summary: Provides a digital clock for Rails applications.