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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 106da697a383b3ca99af98e1271c609ca2157f81
4
- data.tar.gz: dc028a0b708f60442035ce01dfaa0f7c5952fe8a
3
+ metadata.gz: 9524a477f8f4cc5c20bd2bd527861627d8ff56e2
4
+ data.tar.gz: 7921dcbd6396aa6dacd679ffff1a42806916d645
5
5
  SHA512:
6
- metadata.gz: be42917b6727e275ca8ea203aa7ea2f14791e47df480958cb85cc7a243cd5ebf5d65fe3de25cb1571d8ad6553b62184f9a20421d70b2e6c0d1d3caa08bc2fd65
7
- data.tar.gz: 220661133153d031cfd5e920701aeaf2aaa157ccb5018bfe9fc091151e987e26e14325f9266afb40843b3aee7e426870d9bbe560cd148981ff97331c636079c8
6
+ metadata.gz: 74e463f6c9d694672984e2f14379c5ee02c0dcc60792aa72bacdfd6342f29e0b5e0d72dcdaa3a937a4009e365812a9433353fa1e861c283de2972b006dd76380
7
+ data.tar.gz: b53b6ff8e71a6e5bcaf65dd8144a7ca4daf52a1abfb2ef2cf26b963f3171002c4939ad50aae1f113d7826c84b9a936c2947a03db8588ec63e8400a2e05ed39a2
@@ -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.70'
5
- s.date = '2015-05-04'
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
@@ -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
- value = value.strftime(format) if value.present?
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] ||= ''
@@ -1,6 +1,6 @@
1
1
  module JqrHelpers
2
2
  # @private
3
3
  module Rails
4
- VERSION = '1.0.70'
4
+ VERSION = '1.0.71'
5
5
  end
6
6
  end
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.70
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-04 00:00:00.000000000 Z
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