client_side_validations-simple_form 2.1.0 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +93 -0
- data/lib/client_side_validations/generators/simple_form.rb +2 -5
- data/lib/client_side_validations/simple_form.rb +5 -2
- data/lib/client_side_validations/simple_form/engine.rb +6 -2
- data/lib/client_side_validations/simple_form/form_builder.rb +13 -14
- data/lib/client_side_validations/simple_form/version.rb +1 -1
- data/vendor/assets/javascripts/rails.validations.simple_form.js +25 -23
- metadata +128 -52
- data/client_side_validations-simple_form.gemspec +0 -29
- data/lib/client_side_validations-simple_form.rb +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b5bf29598f623b99bd2ca81477582aea1c2bd4c
|
4
|
+
data.tar.gz: 33cf57f1d2a24db37c637620029434b7675b2d21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9b8d74173d5ecdd00500f3c7187de42829a5d0b9490d6fb98b98cf882104f97e43683f979e94085636150d3ac104902b1b3fe875392bff362cea74a771916f0
|
7
|
+
data.tar.gz: cf18a2edfb0b6909cc8fcb040209fd5506980a2021ac895247a43819c156b9354189c43ed6a0681986e96d456f8d6e9bc54fa0049dd6452201fb1e5b82a7fb9e
|
data/README.md
ADDED
@@ -0,0 +1,93 @@
|
|
1
|
+
# ClientSideValidations-SimpleForm #
|
2
|
+
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/client_side_validations-simple_form.svg)](http://badge.fury.io/rb/client_side_validations-simple_form)
|
4
|
+
[![Build Status](https://secure.travis-ci.org/DavyJonesLocker/client_side_validations-simple_form.svg?branch=master)](https://travis-ci.org/DavyJonesLocker/client_side_validations-simple_form)
|
5
|
+
[![Dependency Status](https://gemnasium.com/DavyJonesLocker/client_side_validations-simple_form.svg)](https://gemnasium.com/DavyJonesLocker/client_side_validations-simple_form)
|
6
|
+
[![Code Climate](https://codeclimate.com/github/DavyJonesLocker/client_side_validations-simple_form/badges/gpa.svg)](https://codeclimate.com/github/DavyJonesLocker/client_side_validations-simple_form)
|
7
|
+
[![Coverage Status](https://coveralls.io/repos/DavyJonesLocker/client_side_validations-simple_form/badge.svg?branch=master)](https://coveralls.io/r/DavyJonesLocker/client_side_validations-simple_form?branch=master)
|
8
|
+
|
9
|
+
[SimpleForm](https://github.com/plataformatec/simple_form) plugin for [ClientSideValidations](https://github.com/DavyJonesLocker/client_side_validations)
|
10
|
+
|
11
|
+
## Installation ##
|
12
|
+
|
13
|
+
In your Gemfile add the following:
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
gem 'simple_form'
|
17
|
+
gem 'client_side_validations'
|
18
|
+
gem 'client_side_validations-simple_form'
|
19
|
+
```
|
20
|
+
|
21
|
+
Order matters here. `SimpleForm` and `ClientSideValidations` need to be
|
22
|
+
required **before** `ClientSideValidations-SimpleForm`.
|
23
|
+
|
24
|
+
[Follow the remaining installation instructions for ClientSideValidations](https://github.com/DavyJonesLocker/client_side_validations/blob/master/README.md)
|
25
|
+
|
26
|
+
Add the following line to `app/assets/javascripts/application.js`
|
27
|
+
|
28
|
+
```javascript
|
29
|
+
//= require rails.validations.simple_form
|
30
|
+
```
|
31
|
+
|
32
|
+
Again, order matters. You should add this line after the require for `rails.validations` as described in the `ClientSideValidations` installation instructions.
|
33
|
+
|
34
|
+
If the asset pipeline is disabled the asset file will be copied
|
35
|
+
into `public/javascripts` when the `ClientSideValidations` install generator is run.
|
36
|
+
|
37
|
+
At any time you can copy the asset file into your project by running:
|
38
|
+
|
39
|
+
```
|
40
|
+
rails g client_side_validations:copy_assets
|
41
|
+
```
|
42
|
+
|
43
|
+
If the asset pipeline is disabled the asset file will be copied
|
44
|
+
into `public/javascripts`. Otherwise the asset file will be copied into
|
45
|
+
`app/assets/javascripts` (or whatever asset directory you have
|
46
|
+
defined)
|
47
|
+
|
48
|
+
## Usage ##
|
49
|
+
|
50
|
+
The usage is the same as `ClientSideValidations`, just pass `:validate => true` to the form builder
|
51
|
+
|
52
|
+
```ruby
|
53
|
+
<%= simple_form_for @book, :validate => true do |book| %>
|
54
|
+
<%= book.input :name %>
|
55
|
+
<% end %>
|
56
|
+
```
|
57
|
+
|
58
|
+
Per-input options are done with `:validate`
|
59
|
+
|
60
|
+
```ruby
|
61
|
+
<%= book.input :name, :validate => { :presence => true, :uniqueness => false }
|
62
|
+
```
|
63
|
+
|
64
|
+
## Authors ##
|
65
|
+
|
66
|
+
[Brian Cardarella](http://twitter.com/bcardarella)
|
67
|
+
|
68
|
+
[Geremia Taglialatela](http://twitter.com/gtagliala)
|
69
|
+
|
70
|
+
[We are very thankful for the many contributors](https://github.com/DavyJonesLocker/client_side_validations-simple_form/graphs/contributors)
|
71
|
+
|
72
|
+
## Versioning ##
|
73
|
+
|
74
|
+
This gem follows [Semantic Versioning](http://semver.org)
|
75
|
+
|
76
|
+
Major and minor version numbers will follow `simple_form`'s major and
|
77
|
+
minor version numbers. For example,
|
78
|
+
`client_side_validations-simple_form-3.2.0` will be compatible up to
|
79
|
+
`~> simple_form-3.2.0`
|
80
|
+
|
81
|
+
## Want to help? ##
|
82
|
+
|
83
|
+
Please do! We are always looking to improve this gem. Please see our
|
84
|
+
[Contribution Guidelines](https://github.com/DavyJonesLocker/client_side_validations-simple_form/blob/master/CONTRIBUTING.md)
|
85
|
+
on how to properly submit issues and pull requests.
|
86
|
+
|
87
|
+
## Legal ##
|
88
|
+
|
89
|
+
[DockYard](http://dockyard.com), LLC © 2012-2015
|
90
|
+
|
91
|
+
[@dockyard](http://twitter.com/dockyard)
|
92
|
+
|
93
|
+
[Licensed under the MIT license](http://www.opensource.org/licenses/mit-license.php)
|
@@ -3,8 +3,8 @@ module ClientSideValidations
|
|
3
3
|
class SimpleForm
|
4
4
|
def self.assets
|
5
5
|
[{
|
6
|
-
:
|
7
|
-
:
|
6
|
+
path: File.expand_path('../../../../vendor/assets/javascripts', __FILE__),
|
7
|
+
file: 'rails.validations.simple_form.js'
|
8
8
|
}]
|
9
9
|
end
|
10
10
|
|
@@ -12,6 +12,3 @@ module ClientSideValidations
|
|
12
12
|
end
|
13
13
|
end
|
14
14
|
end
|
15
|
-
|
16
|
-
|
17
|
-
|
@@ -1,5 +1,8 @@
|
|
1
|
-
module ClientSideValidations; end
|
2
|
-
|
3
1
|
require 'simple_form'
|
2
|
+
|
3
|
+
require 'client_side_validations'
|
4
|
+
|
4
5
|
require 'client_side_validations/simple_form/form_builder'
|
5
6
|
require 'client_side_validations/simple_form/engine'
|
7
|
+
|
8
|
+
require 'client_side_validations/generators/simple_form' if defined?(::Rails)
|
@@ -1,34 +1,33 @@
|
|
1
1
|
module ClientSideValidations
|
2
2
|
module SimpleForm
|
3
3
|
module FormBuilder
|
4
|
-
|
5
4
|
def self.included(base)
|
6
5
|
base.class_eval do
|
7
|
-
def client_side_form_settings(options, form_helper)
|
8
|
-
{
|
9
|
-
:type => self.class.to_s,
|
10
|
-
:error_class => wrapper.find(:error).defaults[:class].first,
|
11
|
-
:error_tag => wrapper.find(:error).defaults[:tag],
|
12
|
-
:wrapper_error_class => wrapper.defaults[:error_class],
|
13
|
-
:wrapper_tag => wrapper.defaults[:tag],
|
14
|
-
:wrapper_class => wrapper.defaults[:class].first,
|
15
|
-
:wrapper => options[:wrapper] || ::SimpleForm.default_wrapper
|
16
|
-
}
|
17
|
-
end
|
18
6
|
alias_method_chain :input, :client_side_validations
|
19
7
|
end
|
20
8
|
end
|
21
9
|
|
10
|
+
def client_side_form_settings(options, _form_helper)
|
11
|
+
{
|
12
|
+
type: self.class.to_s,
|
13
|
+
error_class: wrapper.find(:error).defaults[:class].first,
|
14
|
+
error_tag: wrapper.find(:error).defaults[:tag],
|
15
|
+
wrapper_error_class: wrapper.defaults[:error_class],
|
16
|
+
wrapper_tag: wrapper.defaults[:tag],
|
17
|
+
wrapper_class: wrapper.defaults[:class].first,
|
18
|
+
wrapper: options[:wrapper] || ::SimpleForm.default_wrapper
|
19
|
+
}
|
20
|
+
end
|
21
|
+
|
22
22
|
def input_with_client_side_validations(attribute_name, options = {}, &block)
|
23
23
|
if options.key?(:validate)
|
24
24
|
options[:input_html] ||= {}
|
25
|
-
options[:input_html].merge!(:
|
25
|
+
options[:input_html].merge!(validate: options[:validate])
|
26
26
|
options.delete(:validate)
|
27
27
|
end
|
28
28
|
|
29
29
|
input_without_client_side_validations(attribute_name, options, &block)
|
30
30
|
end
|
31
|
-
|
32
31
|
end
|
33
32
|
end
|
34
33
|
end
|
@@ -1,12 +1,12 @@
|
|
1
|
+
|
1
2
|
/*
|
2
|
-
Client Side Validations - SimpleForm -
|
3
|
-
https://github.com/
|
3
|
+
Client Side Validations - SimpleForm - v3.2.0
|
4
|
+
https://github.com/DavyJonesLocker/client_side_validations-simple_form
|
4
5
|
|
5
|
-
Copyright (c)
|
6
|
+
Copyright (c) 2016 DockYard, LLC
|
6
7
|
Licensed under the MIT license
|
7
8
|
http://www.opensource.org/licenses/mit-license.php
|
8
|
-
*/
|
9
|
-
|
9
|
+
*/
|
10
10
|
|
11
11
|
(function() {
|
12
12
|
ClientSideValidations.formBuilders['SimpleForm::FormBuilder'] = {
|
@@ -20,8 +20,7 @@
|
|
20
20
|
"default": {
|
21
21
|
add: function(element, settings, message) {
|
22
22
|
var errorElement, wrapper;
|
23
|
-
|
24
|
-
errorElement = element.parent().find("" + settings.error_tag + "." + settings.error_class);
|
23
|
+
errorElement = element.parent().find(settings.error_tag + "." + settings.error_class);
|
25
24
|
wrapper = element.closest(settings.wrapper_tag);
|
26
25
|
if (errorElement[0] == null) {
|
27
26
|
errorElement = $("<" + settings.error_tag + "/>", {
|
@@ -35,41 +34,44 @@
|
|
35
34
|
},
|
36
35
|
remove: function(element, settings) {
|
37
36
|
var errorElement, wrapper;
|
38
|
-
|
39
|
-
wrapper = element.closest("" + settings.wrapper_tag + "." + settings.wrapper_error_class);
|
37
|
+
wrapper = element.closest(settings.wrapper_tag + "." + settings.wrapper_error_class);
|
40
38
|
wrapper.removeClass(settings.wrapper_error_class);
|
41
|
-
errorElement = wrapper.find(
|
39
|
+
errorElement = wrapper.find(settings.error_tag + "." + settings.error_class);
|
42
40
|
return errorElement.remove();
|
43
41
|
}
|
44
42
|
},
|
45
43
|
bootstrap: {
|
46
44
|
add: function(element, settings, message) {
|
47
|
-
var errorElement,
|
48
|
-
|
49
|
-
errorElement = element.parent().find("" + settings.error_tag + "." + settings.error_class);
|
45
|
+
var errorElement, wrapperClassElement, wrapperTagElement;
|
46
|
+
errorElement = element.parent().find(settings.error_tag + "." + settings.error_class);
|
50
47
|
if (errorElement[0] == null) {
|
51
|
-
|
48
|
+
wrapperTagElement = element.closest(settings.wrapper_tag);
|
52
49
|
errorElement = $("<" + settings.error_tag + "/>", {
|
53
50
|
"class": settings.error_class,
|
54
51
|
text: message
|
55
52
|
});
|
56
|
-
|
53
|
+
wrapperTagElement.append(errorElement);
|
57
54
|
}
|
58
|
-
|
59
|
-
|
55
|
+
wrapperClassElement = element.closest("." + (settings.wrapper_class.replace(/\ /g, '.')));
|
56
|
+
wrapperClassElement.addClass(settings.wrapper_error_class);
|
60
57
|
return errorElement.text(message);
|
61
58
|
},
|
62
59
|
remove: function(element, settings) {
|
63
|
-
var errorElement,
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
errorElement = wrapper_tag_element.find("" + settings.error_tag + "." + settings.error_class);
|
60
|
+
var errorElement, wrapperClassElement, wrapperTagElement;
|
61
|
+
wrapperClassElement = element.closest("." + (settings.wrapper_class.replace(/\ /g, '.')) + "." + settings.wrapper_error_class);
|
62
|
+
wrapperClassElement.removeClass(settings.wrapper_error_class);
|
63
|
+
wrapperTagElement = element.closest(settings.wrapper_tag);
|
64
|
+
errorElement = wrapperTagElement.find(settings.error_tag + "." + settings.error_class);
|
69
65
|
return errorElement.remove();
|
70
66
|
}
|
71
67
|
}
|
72
68
|
}
|
73
69
|
};
|
74
70
|
|
71
|
+
ClientSideValidations.formBuilders['SimpleForm::FormBuilder'].wrappers.vertical_form = ClientSideValidations.formBuilders['SimpleForm::FormBuilder'].wrappers.bootstrap;
|
72
|
+
|
73
|
+
ClientSideValidations.formBuilders['SimpleForm::FormBuilder'].wrappers.horizontal_form = ClientSideValidations.formBuilders['SimpleForm::FormBuilder'].wrappers.bootstrap;
|
74
|
+
|
75
|
+
ClientSideValidations.formBuilders['SimpleForm::FormBuilder'].wrappers.inline_form = ClientSideValidations.formBuilders['SimpleForm::FormBuilder'].wrappers.bootstrap;
|
76
|
+
|
75
77
|
}).call(this);
|
metadata
CHANGED
@@ -1,172 +1,248 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: client_side_validations-simple_form
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 3.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Cardarella
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: client_side_validations
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 4.2.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 4.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: simple_form
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2
|
33
|
+
version: '3.2'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2
|
40
|
+
version: '3.2'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: appraisal
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: '2.1'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: '2.1'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: coveralls
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 0.8.10
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 0.8.10
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: m
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.4'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.4'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: minitest
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 4.7.5
|
90
|
+
- - "<"
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: 6.0.0
|
93
|
+
type: :development
|
94
|
+
prerelease: false
|
95
|
+
version_requirements: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - ">="
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: 4.7.5
|
100
|
+
- - "<"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: 6.0.0
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: mocha
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '1.1'
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - "~>"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '1.1'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: rubocop
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0.35'
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0.35'
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: simplecov
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - "~>"
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: 0.11.1
|
138
|
+
type: :development
|
139
|
+
prerelease: false
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - "~>"
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: 0.11.1
|
145
|
+
- !ruby/object:Gem::Dependency
|
146
|
+
name: byebug
|
147
|
+
requirement: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - "~>"
|
74
150
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
151
|
+
version: '8.2'
|
76
152
|
type: :development
|
77
153
|
prerelease: false
|
78
154
|
version_requirements: !ruby/object:Gem::Requirement
|
79
155
|
requirements:
|
80
|
-
- -
|
156
|
+
- - "~>"
|
81
157
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
158
|
+
version: '8.2'
|
83
159
|
- !ruby/object:Gem::Dependency
|
84
160
|
name: sinatra
|
85
161
|
requirement: !ruby/object:Gem::Requirement
|
86
162
|
requirements:
|
87
|
-
- - ~>
|
163
|
+
- - "~>"
|
88
164
|
- !ruby/object:Gem::Version
|
89
|
-
version: '1.
|
165
|
+
version: '1.4'
|
90
166
|
type: :development
|
91
167
|
prerelease: false
|
92
168
|
version_requirements: !ruby/object:Gem::Requirement
|
93
169
|
requirements:
|
94
|
-
- - ~>
|
170
|
+
- - "~>"
|
95
171
|
- !ruby/object:Gem::Version
|
96
|
-
version: '1.
|
172
|
+
version: '1.4'
|
97
173
|
- !ruby/object:Gem::Dependency
|
98
174
|
name: shotgun
|
99
175
|
requirement: !ruby/object:Gem::Requirement
|
100
176
|
requirements:
|
101
|
-
- -
|
177
|
+
- - "~>"
|
102
178
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
179
|
+
version: 0.9.1
|
104
180
|
type: :development
|
105
181
|
prerelease: false
|
106
182
|
version_requirements: !ruby/object:Gem::Requirement
|
107
183
|
requirements:
|
108
|
-
- -
|
184
|
+
- - "~>"
|
109
185
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
186
|
+
version: 0.9.1
|
111
187
|
- !ruby/object:Gem::Dependency
|
112
188
|
name: thin
|
113
189
|
requirement: !ruby/object:Gem::Requirement
|
114
190
|
requirements:
|
115
|
-
- -
|
191
|
+
- - "~>"
|
116
192
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
193
|
+
version: '1.6'
|
118
194
|
type: :development
|
119
195
|
prerelease: false
|
120
196
|
version_requirements: !ruby/object:Gem::Requirement
|
121
197
|
requirements:
|
122
|
-
- -
|
198
|
+
- - "~>"
|
123
199
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
200
|
+
version: '1.6'
|
125
201
|
- !ruby/object:Gem::Dependency
|
126
202
|
name: json
|
127
203
|
requirement: !ruby/object:Gem::Requirement
|
128
204
|
requirements:
|
129
|
-
- -
|
205
|
+
- - "~>"
|
130
206
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
207
|
+
version: '1.8'
|
132
208
|
type: :development
|
133
209
|
prerelease: false
|
134
210
|
version_requirements: !ruby/object:Gem::Requirement
|
135
211
|
requirements:
|
136
|
-
- -
|
212
|
+
- - "~>"
|
137
213
|
- !ruby/object:Gem::Version
|
138
|
-
version: '
|
214
|
+
version: '1.8'
|
139
215
|
- !ruby/object:Gem::Dependency
|
140
216
|
name: coffee-script
|
141
217
|
requirement: !ruby/object:Gem::Requirement
|
142
218
|
requirements:
|
143
|
-
- -
|
219
|
+
- - "~>"
|
144
220
|
- !ruby/object:Gem::Version
|
145
|
-
version: '
|
221
|
+
version: '2.4'
|
146
222
|
type: :development
|
147
223
|
prerelease: false
|
148
224
|
version_requirements: !ruby/object:Gem::Requirement
|
149
225
|
requirements:
|
150
|
-
- -
|
226
|
+
- - "~>"
|
151
227
|
- !ruby/object:Gem::Version
|
152
|
-
version: '
|
153
|
-
description: SimpleForm Plugin for
|
228
|
+
version: '2.4'
|
229
|
+
description: SimpleForm Plugin for ClientSideValidations
|
154
230
|
email:
|
155
231
|
- bcardarella@gmail.com
|
156
232
|
executables: []
|
157
233
|
extensions: []
|
158
234
|
extra_rdoc_files: []
|
159
235
|
files:
|
160
|
-
-
|
161
|
-
- lib/client_side_validations-simple_form.rb
|
236
|
+
- README.md
|
162
237
|
- lib/client_side_validations/generators/simple_form.rb
|
163
238
|
- lib/client_side_validations/simple_form.rb
|
164
239
|
- lib/client_side_validations/simple_form/engine.rb
|
165
240
|
- lib/client_side_validations/simple_form/form_builder.rb
|
166
241
|
- lib/client_side_validations/simple_form/version.rb
|
167
242
|
- vendor/assets/javascripts/rails.validations.simple_form.js
|
168
|
-
homepage: https://github.com/
|
169
|
-
licenses:
|
243
|
+
homepage: https://github.com/DavyJonesLocker/client_side_validations-simple_form
|
244
|
+
licenses:
|
245
|
+
- MIT
|
170
246
|
metadata: {}
|
171
247
|
post_install_message:
|
172
248
|
rdoc_options: []
|
@@ -174,17 +250,17 @@ require_paths:
|
|
174
250
|
- lib
|
175
251
|
required_ruby_version: !ruby/object:Gem::Requirement
|
176
252
|
requirements:
|
177
|
-
- -
|
253
|
+
- - ">="
|
178
254
|
- !ruby/object:Gem::Version
|
179
255
|
version: '0'
|
180
256
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
181
257
|
requirements:
|
182
|
-
- -
|
258
|
+
- - ">="
|
183
259
|
- !ruby/object:Gem::Version
|
184
260
|
version: '0'
|
185
261
|
requirements: []
|
186
262
|
rubyforge_project:
|
187
|
-
rubygems_version: 2.
|
263
|
+
rubygems_version: 2.5.1
|
188
264
|
signing_key:
|
189
265
|
specification_version: 4
|
190
266
|
summary: SimpleForm Plugin for ClientSideValidations
|
@@ -1,29 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
require File.expand_path('../lib/client_side_validations/simple_form/version', __FILE__)
|
3
|
-
|
4
|
-
Gem::Specification.new do |gem|
|
5
|
-
gem.authors = ["Brian Cardarella"]
|
6
|
-
gem.email = ["bcardarella@gmail.com"]
|
7
|
-
gem.description = %q{SimpleForm Plugin for ClientSideValidaitons}
|
8
|
-
gem.summary = %q{SimpleForm Plugin for ClientSideValidations}
|
9
|
-
gem.homepage = 'https://github.com/dockyard/client_side_validations-simple_form'
|
10
|
-
|
11
|
-
gem.files = `git ls-files -- {lib/*,vendor/*,*.gemspec}`.split("\n")
|
12
|
-
gem.name = 'client_side_validations-simple_form'
|
13
|
-
gem.require_paths = ['lib']
|
14
|
-
gem.version = ClientSideValidations::SimpleForm::VERSION
|
15
|
-
|
16
|
-
gem.add_dependency 'client_side_validations', '~> 3.2.5'
|
17
|
-
gem.add_dependency 'simple_form', '~> 2.1.0'
|
18
|
-
|
19
|
-
gem.add_development_dependency 'rails', '~> 3.2.0'
|
20
|
-
gem.add_development_dependency 'mocha'
|
21
|
-
gem.add_development_dependency 'm'
|
22
|
-
|
23
|
-
# For QUnit testing
|
24
|
-
gem.add_development_dependency 'sinatra', '~> 1.0'
|
25
|
-
gem.add_development_dependency 'shotgun'
|
26
|
-
gem.add_development_dependency 'thin'
|
27
|
-
gem.add_development_dependency 'json'
|
28
|
-
gem.add_development_dependency 'coffee-script'
|
29
|
-
end
|