combined_time_select 1.0.0 → 1.0.1
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 +7 -0
- data/README.md +1 -1
- data/lib/combined_time_select.rb +4 -2
- data/lib/combined_time_select/version.rb +1 -1
- metadata +9 -19
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a59ca05dd103f66077ca5ee159ac848c1894ba33
|
4
|
+
data.tar.gz: dda8d36fb1d46b1170f2f15a287271216b13473d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: dcf0ce0f2c2a7d8b291847550c2e4501c5ecad7856f9acdbc3eb829b14fd81d7116645b9bb01b2692df88328511fc0c36234fb981381d3a9dc10492f0f68663c
|
7
|
+
data.tar.gz: cb5b09666cc7ee7b3fa01c22cc2cf5dd27fb507e63effd4e26fd3eb4806dd23e6162050dfc354df5dcc75485cd846a255253a04720c9ee889de662c1ba085102
|
data/README.md
CHANGED
data/lib/combined_time_select.rb
CHANGED
@@ -60,9 +60,11 @@ module ActionView::Helpers
|
|
60
60
|
ampm_hour = ampm_hour(hour)
|
61
61
|
|
62
62
|
val = "#{hour_padded}:#{minute_padded}:00"
|
63
|
+
|
64
|
+
option_text = @options[:ampm] ? "#{ampm_hour}:#{minute_padded}#{ampm}" : "#{hour_padded}:#{minute_padded}"
|
63
65
|
minute_options << ((val_minutes == minute) ?
|
64
|
-
%(<option value="#{val}" selected="selected">#{
|
65
|
-
%(<option value="#{val}">#{
|
66
|
+
%(<option value="#{val}" selected="selected">#{option_text}</option>\n) :
|
67
|
+
%(<option value="#{val}">#{option_text}</option>\n)
|
66
68
|
)
|
67
69
|
end
|
68
70
|
end
|
metadata
CHANGED
@@ -1,30 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: combined_time_select
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Chris Oliver
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-06-22 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rake
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
description: Generates a time_select field like Google calendar.
|
@@ -45,32 +42,25 @@ files:
|
|
45
42
|
- lib/combined_time_select/version.rb
|
46
43
|
homepage: https://github.com/excid3/combined_time_select
|
47
44
|
licenses: []
|
45
|
+
metadata: {}
|
48
46
|
post_install_message:
|
49
47
|
rdoc_options: []
|
50
48
|
require_paths:
|
51
49
|
- lib
|
52
50
|
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
-
none: false
|
54
51
|
requirements:
|
55
|
-
- -
|
52
|
+
- - '>='
|
56
53
|
- !ruby/object:Gem::Version
|
57
54
|
version: '0'
|
58
|
-
segments:
|
59
|
-
- 0
|
60
|
-
hash: 4311608183375538091
|
61
55
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
|
-
none: false
|
63
56
|
requirements:
|
64
|
-
- -
|
57
|
+
- - '>='
|
65
58
|
- !ruby/object:Gem::Version
|
66
59
|
version: '0'
|
67
|
-
segments:
|
68
|
-
- 0
|
69
|
-
hash: 4311608183375538091
|
70
60
|
requirements: []
|
71
61
|
rubyforge_project: combined_time_select
|
72
|
-
rubygems_version:
|
62
|
+
rubygems_version: 2.0.3
|
73
63
|
signing_key:
|
74
|
-
specification_version:
|
64
|
+
specification_version: 4
|
75
65
|
summary: A Rails time_select like Google Calendar with combined hour and minute time_select
|
76
66
|
test_files: []
|