jqr-helpers 1.0.70 → 1.0.71
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/jqr-helpers.gemspec +2 -2
- data/lib/jqr-helpers/helpers.rb +4 -1
- data/lib/jqr-helpers/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: 9524a477f8f4cc5c20bd2bd527861627d8ff56e2
|
4
|
+
data.tar.gz: 7921dcbd6396aa6dacd679ffff1a42806916d645
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74e463f6c9d694672984e2f14379c5ee02c0dcc60792aa72bacdfd6342f29e0b5e0d72dcdaa3a937a4009e365812a9433353fa1e861c283de2972b006dd76380
|
7
|
+
data.tar.gz: b53b6ff8e71a6e5bcaf65dd8144a7ca4daf52a1abfb2ef2cf26b963f3171002c4939ad50aae1f113d7826c84b9a936c2947a03db8588ec63e8400a2e05ed39a2
|
data/jqr-helpers.gemspec
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'jqr-helpers'
|
3
3
|
s.require_paths = %w(. lib lib/jqr-helpers)
|
4
|
-
s.version = '1.0.
|
5
|
-
s.date = '2015-05-
|
4
|
+
s.version = '1.0.71'
|
5
|
+
s.date = '2015-05-22'
|
6
6
|
s.summary = 'Helpers to print unobtrusive jQuery-UI tags.'
|
7
7
|
s.description = <<-EOF
|
8
8
|
This gem adds helper methods to create unobtrusive jQuery code. It outputs
|
data/lib/jqr-helpers/helpers.rb
CHANGED
@@ -298,7 +298,10 @@ module JqrHelpers
|
|
298
298
|
# @return [String]
|
299
299
|
def date_picker_tag(name, value=Date.today, options={}, html_options={})
|
300
300
|
format = options.delete(:format) || '%Y-%m-%d'
|
301
|
-
|
301
|
+
if value.present?
|
302
|
+
value = Date.parse(value) if value.is_a?(String)
|
303
|
+
value = value.strftime(format)
|
304
|
+
end
|
302
305
|
options[:dateFormat] = _map_date(format)
|
303
306
|
html_options[:'data-date-options'] = options.to_json
|
304
307
|
html_options[:class] ||= ''
|
data/lib/jqr-helpers/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jqr-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.71
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Orner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|