timepiece 0.1.4 → 0.1.5
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.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.rdoc +7 -5
- data/app/assets/javascripts/timepiece.js +4 -0
- data/app/assets/stylesheets/timepiece.css.scss +1 -0
- data/lib/timepiece/version.rb +1 -1
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6e4dd209b6c6ba8153b3f6c5de00df89d39c0db
|
4
|
+
data.tar.gz: b3ce7e90ca38bb1e88c0576c2729dbed47389a8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8a779d2c3f8d2ed0b10ddb543cfc19641fec536684db8519b421437c753fe4812757fd062b6e5835fa116ba8d78178523ece0f2daa3c79ccd18935cf33e8f9d
|
7
|
+
data.tar.gz: 607a425ad5cc2c1f0676364ee71c9836639030749085683b574c0687f489c6ee1f7d3eb7d48ae3918232dba36b3c275babb0ced3953666a58747ff671f954de0
|
data/MIT-LICENSE
CHANGED
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: '.') %>
|
@@ -0,0 +1 @@
|
|
1
|
+
// CSS for the analogue clock version of timepiece, and maybe some optional styles for the digital.
|
data/lib/timepiece/version.rb
CHANGED
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
|
+
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:
|
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.
|
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.
|