formize 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -6,8 +6,9 @@
6
6
  $.behavioursCount = 0;
7
7
  $.behaviours = [];
8
8
  $.behave = function (selector, events, handler) {
9
+ var i;
9
10
  events = events.split(/\s+/ig);
10
- for (var i = 0; i < events.length; i += 1) {
11
+ for (i = 0; i < events.length; i += 1) {
11
12
  var event = events[i];
12
13
  if (event === "load") {
13
14
  var index = $.behavioursCount; $.behavioursCount += 1;
@@ -11,7 +11,7 @@ module Formize
11
11
  end
12
12
  format = I18n.translate('date.formats.'+format.to_s)
13
13
  Formize::DATE_FORMAT_TOKENS.each{|js, rb| format.gsub!(rb, js)}
14
- name_id = name.gsub(/[^a-z]+/, '_')
14
+ name_id = name.to_s.gsub(/[^a-z]+/, '_')
15
15
  html = ""
16
16
  html << hidden_field_tag(name, (value.is_a?(Date) ? value.to_s(:db) : value.to_s), :id => name_id)
17
17
  html << tag(:input, :type=>:text, "data-datepicker" => name_id, "data-date-format" => format, :value => localized_value, "data-locale" => ::I18n.locale, :size => options.delete(:size)||10)
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: !binary |-
5
+ MC4xLjE=
5
6
  prerelease:
6
7
  platform: ruby
7
8
  authors:
@@ -9,11 +10,11 @@ authors:
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2012-06-24 00:00:00.000000000Z
13
+ date: 2012-06-29 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: rails
16
- requirement: &22320740 !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
17
18
  none: false
18
19
  requirements:
19
20
  - - ! '>='
@@ -21,10 +22,15 @@ dependencies:
21
22
  version: '3.1'
22
23
  type: :runtime
23
24
  prerelease: false
24
- version_requirements: *22320740
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: '3.1'
25
31
  - !ruby/object:Gem::Dependency
26
32
  name: jquery-rails
27
- requirement: &22320260 !ruby/object:Gem::Requirement
33
+ requirement: !ruby/object:Gem::Requirement
28
34
  none: false
29
35
  requirements:
30
36
  - - ! '>='
@@ -32,7 +38,12 @@ dependencies:
32
38
  version: '0'
33
39
  type: :runtime
34
40
  prerelease: false
35
- version_requirements: *22320260
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
36
47
  description: Like simple_form or formtastic, it aims to handle easily forms but taking
37
48
  in account AJAX and HTML5 on depending fields mainly.
38
49
  email: burisu@oneiros.fr
@@ -42,7 +53,6 @@ extra_rdoc_files:
42
53
  - LICENSE
43
54
  - README.rdoc
44
55
  files:
45
- - .document
46
56
  - LICENSE
47
57
  - README.rdoc
48
58
  - VERSION
@@ -169,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
179
  version: '0'
170
180
  requirements: []
171
181
  rubyforge_project:
172
- rubygems_version: 1.8.10
182
+ rubygems_version: 1.8.23
173
183
  signing_key:
174
184
  specification_version: 3
175
185
  summary: Simple form DSL with dynamic interactions for Rails
data/.document DELETED
@@ -1,5 +0,0 @@
1
- lib/**/*.rb
2
- bin/*
3
- -
4
- features/**/*.feature
5
- LICENSE.txt