client_side_validations-formtastic 2.0.2 → 2.2.0.beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/client_side_validations-formtastic.gemspec +3 -2
- data/lib/client_side_validations/formtastic.rb +0 -3
- data/lib/client_side_validations/formtastic/version.rb +1 -1
- data/vendor/assets/javascripts/rails.validations.formtastic.js +1 -2
- metadata +26 -15
- data/lib/client_side_validations/formtastic/inputs.rb +0 -7
- data/lib/client_side_validations/formtastic/inputs/boolean_input.rb +0 -12
@@ -13,11 +13,12 @@ Gem::Specification.new do |gem|
|
|
13
13
|
gem.require_paths = ['lib']
|
14
14
|
gem.version = ClientSideValidations::Formtastic::VERSION
|
15
15
|
|
16
|
-
gem.add_dependency 'client_side_validations', '~> 3.2.0'
|
17
|
-
gem.add_dependency 'formtastic', '~> 2.
|
16
|
+
gem.add_dependency 'client_side_validations', '~> 3.2.0.beta.6'
|
17
|
+
gem.add_dependency 'formtastic', '~> 2.2.0'
|
18
18
|
|
19
19
|
gem.add_development_dependency 'rails', '~> 3.2.0'
|
20
20
|
gem.add_development_dependency 'mocha'
|
21
|
+
gem.add_development_dependency 'm'
|
21
22
|
|
22
23
|
# For QUnit testing
|
23
24
|
gem.add_development_dependency 'sinatra', '~> 1.0'
|
@@ -1,7 +1,4 @@
|
|
1
|
-
module ClientSideValidations; end
|
2
|
-
|
3
1
|
require 'formtastic'
|
4
2
|
require 'client_side_validations/formtastic/form_builder'
|
5
|
-
require 'client_side_validations/formtastic/inputs'
|
6
3
|
require 'client_side_validations/formtastic/helpers'
|
7
4
|
require 'client_side_validations/formtastic/engine'
|
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
/*
|
3
|
-
Client Side Validations - Formtastic - v2.0.0
|
3
|
+
Client Side Validations - Formtastic - v2.0.0.beta.3
|
4
4
|
https://github.com/dockyard/client_side_validations-formtastic
|
5
5
|
|
6
6
|
Copyright (c) 2012 DockYard, LLC
|
@@ -8,7 +8,6 @@
|
|
8
8
|
http://www.opensource.org/licenses/mit-license.php
|
9
9
|
*/
|
10
10
|
|
11
|
-
|
12
11
|
(function() {
|
13
12
|
|
14
13
|
ClientSideValidations.formBuilders['Formtastic::FormBuilder'] = {
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: client_side_validations-formtastic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
5
|
-
prerelease:
|
4
|
+
version: 2.2.0.beta.1
|
5
|
+
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Brian Cardarella
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-07-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: client_side_validations
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 3.2.0
|
21
|
+
version: 3.2.0.beta.6
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 3.2.0
|
29
|
+
version: 3.2.0.beta.6
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: formtastic
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -34,7 +34,7 @@ dependencies:
|
|
34
34
|
requirements:
|
35
35
|
- - ~>
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version: 2.
|
37
|
+
version: 2.2.0
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -42,7 +42,7 @@ dependencies:
|
|
42
42
|
requirements:
|
43
43
|
- - ~>
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 2.
|
45
|
+
version: 2.2.0
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: rails
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
@@ -75,6 +75,22 @@ dependencies:
|
|
75
75
|
- - ! '>='
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: m
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
78
94
|
- !ruby/object:Gem::Dependency
|
79
95
|
name: sinatra
|
80
96
|
requirement: !ruby/object:Gem::Requirement
|
@@ -169,8 +185,6 @@ files:
|
|
169
185
|
- lib/client_side_validations/formtastic/form_builder.rb
|
170
186
|
- lib/client_side_validations/formtastic/helpers.rb
|
171
187
|
- lib/client_side_validations/formtastic/helpers/input_helper.rb
|
172
|
-
- lib/client_side_validations/formtastic/inputs.rb
|
173
|
-
- lib/client_side_validations/formtastic/inputs/boolean_input.rb
|
174
188
|
- lib/client_side_validations/formtastic/version.rb
|
175
189
|
- lib/client_side_validations/generators/formtastic.rb
|
176
190
|
- vendor/assets/javascripts/rails.validations.formtastic.js
|
@@ -188,16 +202,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
188
202
|
version: '0'
|
189
203
|
segments:
|
190
204
|
- 0
|
191
|
-
hash:
|
205
|
+
hash: -2578459394296633153
|
192
206
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
193
207
|
none: false
|
194
208
|
requirements:
|
195
|
-
- - ! '
|
209
|
+
- - ! '>'
|
196
210
|
- !ruby/object:Gem::Version
|
197
|
-
version:
|
198
|
-
segments:
|
199
|
-
- 0
|
200
|
-
hash: 3660073360903820453
|
211
|
+
version: 1.3.1
|
201
212
|
requirements: []
|
202
213
|
rubyforge_project:
|
203
214
|
rubygems_version: 1.8.23
|
@@ -1,7 +0,0 @@
|
|
1
|
-
module ClientSideValidations::Formtastic::Inputs; end
|
2
|
-
|
3
|
-
['boolean_input'].each do |input|
|
4
|
-
require "client_side_validations/formtastic/inputs/#{input}"
|
5
|
-
klass_name = input.camelcase
|
6
|
-
"Formtastic::Inputs::#{input.camelcase}".constantize.send(:include, "ClientSideValidations::Formtastic::Inputs::#{klass_name}".constantize)
|
7
|
-
end
|
@@ -1,12 +0,0 @@
|
|
1
|
-
module ClientSideValidations::Formtastic::Inputs::BooleanInput
|
2
|
-
def self.included(base)
|
3
|
-
base.class_eval do
|
4
|
-
alias_method_chain :check_box_html, :client_side_validations_formtastic
|
5
|
-
end
|
6
|
-
end
|
7
|
-
|
8
|
-
def check_box_html_with_client_side_validations_formtastic
|
9
|
-
builder.send(:build_validation_options, method, options)
|
10
|
-
check_box_html_without_client_side_validations_formtastic
|
11
|
-
end
|
12
|
-
end
|