jqr-helpers 1.0.31 → 1.0.32
Sign up to get free protection for your applications and to get access to all the features.
- data/jqr-helpers.gemspec +2 -2
- data/lib/jqr-helpers/helpers.rb +1 -1
- data/lib/jqr-helpers/version.rb +1 -1
- metadata +2 -2
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 = '2014-02-
|
4
|
+
s.version = '1.0.32'
|
5
|
+
s.date = '2014-02-26'
|
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
@@ -290,7 +290,7 @@ module JqrHelpers
|
|
290
290
|
# @return [String]
|
291
291
|
def date_picker_tag(name, value=Date.today, options={}, html_options={})
|
292
292
|
format = options.delete(:format) || '%Y-%m-%d'
|
293
|
-
value = value.strftime(format)
|
293
|
+
value = value.strftime(format) if value.present?
|
294
294
|
options[:dateFormat] = _map_date(format)
|
295
295
|
html_options[:'data-date-options'] = options.to_json
|
296
296
|
html_options[:class] ||= ''
|
data/lib/jqr-helpers/version.rb
CHANGED
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: jqr-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.0.
|
5
|
+
version: 1.0.32
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Daniel Orner
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-02-
|
12
|
+
date: 2014-02-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|