formize 0.0.23 → 0.0.24

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -4,7 +4,6 @@ gem "rails", "~> 3"
4
4
  gem "jquery-rails"
5
5
 
6
6
  group :development do
7
- gem "jeweler", "~> 1.6.4"
8
- gem "rcov", ">= 0"
7
+ gem "jeweler"
9
8
  gem "rdoc", ">= 2.4.2"
10
9
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.23
1
+ 0.0.24
@@ -89,8 +89,10 @@ module Formize
89
89
  end
90
90
  format = I18n.translate('date.formats.'+format.to_s)
91
91
  Formize::DATE_FORMAT_TOKENS.each{|js, rb| format.gsub!(rb, js)}
92
+ key_options = {}
93
+ options.each{|k,v| key_options[k] = v if k.to_s.match(/^data\-/)}
92
94
  html = ""
93
- html << hidden_field(object_name, method)
95
+ html << hidden_field(object_name, method, key_options)
94
96
  html << tag(:input, :type=>:text, "data-datepicker"=>"#{object_name}_#{method}", "data-date-format"=>format, :value=>localized_value, "data-locale"=>::I18n.locale, :size=>options.delete(:size)||10)
95
97
  return html.html_safe
96
98
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.23
4
+ version: 0.0.24
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-29 00:00:00.000000000Z
12
+ date: 2012-03-09 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &21884880 !ruby/object:Gem::Requirement
16
+ requirement: &23004780 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *21884880
24
+ version_requirements: *23004780
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: jquery-rails
27
- requirement: &21883760 !ruby/object:Gem::Requirement
27
+ requirement: &23003080 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,21 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *21883760
35
+ version_requirements: *23003080
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: jeweler
38
- requirement: &21882060 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ~>
42
- - !ruby/object:Gem::Version
43
- version: 1.6.4
44
- type: :development
45
- prerelease: false
46
- version_requirements: *21882060
47
- - !ruby/object:Gem::Dependency
48
- name: rcov
49
- requirement: &21880760 !ruby/object:Gem::Requirement
38
+ requirement: &22963900 !ruby/object:Gem::Requirement
50
39
  none: false
51
40
  requirements:
52
41
  - - ! '>='
@@ -54,10 +43,10 @@ dependencies:
54
43
  version: '0'
55
44
  type: :development
56
45
  prerelease: false
57
- version_requirements: *21880760
46
+ version_requirements: *22963900
58
47
  - !ruby/object:Gem::Dependency
59
48
  name: rdoc
60
- requirement: &21877160 !ruby/object:Gem::Requirement
49
+ requirement: &22962860 !ruby/object:Gem::Requirement
61
50
  none: false
62
51
  requirements:
63
52
  - - ! '>='
@@ -65,7 +54,7 @@ dependencies:
65
54
  version: 2.4.2
66
55
  type: :development
67
56
  prerelease: false
68
- version_requirements: *21877160
57
+ version_requirements: *22962860
69
58
  description: Like simple_form or formtastic, it aims to handle easily forms but taking
70
59
  in account AJAX and HTML5 on depending fields mainly.
71
60
  email: brice.texier@ekylibre.org
@@ -198,7 +187,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
198
187
  version: '0'
199
188
  segments:
200
189
  - 0
201
- hash: -4196720873939229254
190
+ hash: 217038455347579654
202
191
  required_rubygems_version: !ruby/object:Gem::Requirement
203
192
  none: false
204
193
  requirements: