formtastic_date_as_string 0.0.5.1 → 0.0.5.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,8 +6,8 @@ Gem::Specification.new do |s|
6
6
  s.name = "formtastic_date_as_string"
7
7
  s.version = FormtasticDateAsString::VERSION
8
8
  s.platform = Gem::Platform::RUBY
9
- s.authors = ["Dmitry Lihachev"]
10
- s.email = ["lda@openteam.ru"]
9
+ s.authors = ["Dmitry Lihachev", "Evgeny Lapin"]
10
+ s.email = ["lda@openteam.ru", "lev@openteam.ru"]
11
11
  s.homepage = "http://github.com/openteam/formtastic_date_as_string"
12
12
  s.summary = %q{Creates input :as => :string for date firld}
13
13
  s.description = %q{Creates input :as => :string for date field}
@@ -12,7 +12,7 @@ Formtastic::SemanticFormBuilder.class_eval do
12
12
  def datetime_input(method, options = {})
13
13
  options[:input_html] ||= {}
14
14
  options[:input_html][:class] = [options[:input_html][:class], :datetime].compact.join ' '
15
- options[:input_html][:value] = I18n.l(object[method]) if object[method].is_a? DateTime
15
+ options[:input_html][:value] = I18n.l(object[method], :format => :datetime) if object[method].is_a?(DateTime) || object[method].is_a?(Time)
16
16
  options[:wrapper_html] ||= {}
17
17
  options[:input_html][:class] = [options[:wrapper_html][:class], :datetime].compact.join ' '
18
18
  string_input method, options
@@ -1,3 +1,3 @@
1
1
  module FormtasticDateAsString
2
- VERSION = "0.0.5.1"
2
+ VERSION = "0.0.5.2"
3
3
  end
metadata CHANGED
@@ -6,16 +6,17 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 0
8
8
  - 5
9
- - 1
10
- version: 0.0.5.1
9
+ - 2
10
+ version: 0.0.5.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dmitry Lihachev
14
+ - Evgeny Lapin
14
15
  autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2011-07-14 00:00:00 +07:00
19
+ date: 2011-07-15 00:00:00 +07:00
19
20
  default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
@@ -34,6 +35,7 @@ dependencies:
34
35
  description: Creates input :as => :string for date field
35
36
  email:
36
37
  - lda@openteam.ru
38
+ - lev@openteam.ru
37
39
  executables: []
38
40
 
39
41
  extensions: []