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 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.31'
5
- s.date = '2014-02-18'
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
@@ -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] ||= ''
@@ -1,6 +1,6 @@
1
1
  module JqrHelpers
2
2
  # @private
3
3
  module Rails
4
- VERSION = '1.0.31'
4
+ VERSION = '1.0.32'
5
5
  end
6
6
  end
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.31
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-18 00:00:00.000000000 Z
12
+ date: 2014-02-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails