rails_ajax_formhandler 0.1.5 → 1.0.0
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.
- checksums.yaml +5 -5
- data/README.md +10 -2
- data/lib/rails_ajax_formhandler/version.rb +1 -1
- data/rails_ajax_formhandler-0.1.5.gem +0 -0
- data/rails_ajax_formhandler.gemspec +2 -2
- metadata +6 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: fb869b601da3351bab3b2619590f78205cecabace091a4cf81f4e2c4b1ae43a4
|
|
4
|
+
data.tar.gz: 9645d28a4b5a5bf2fccce4d8a4211afe7a8ad6101f8cd26a5a69e419e73b086a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0f307b2ef464c62867f6ab6dd3811fc747ae916319dc70ecf2dd52d52a96a1acf0a80ea313d7914756465e08b900ed4e709d1eb456467f2f86d129a203fa0ebc
|
|
7
|
+
data.tar.gz: f3515373bc76de9ff6916c6aea5aa33c961731cfef396237809160d88290c0802ec4e704c93e1c57b605800324c314268d9353bdb0b73cc55b05388f2933a4ac
|
data/README.md
CHANGED
|
@@ -20,7 +20,7 @@ gem 'rails_ajax_formhandler'
|
|
|
20
20
|
|
|
21
21
|
And then execute:
|
|
22
22
|
|
|
23
|
-
$ bundle
|
|
23
|
+
$ bundle install
|
|
24
24
|
|
|
25
25
|
Or install it yourself as:
|
|
26
26
|
|
|
@@ -28,6 +28,14 @@ Or install it yourself as:
|
|
|
28
28
|
|
|
29
29
|
In your application.js
|
|
30
30
|
|
|
31
|
+
if not already done:
|
|
32
|
+
|
|
33
|
+
```js
|
|
34
|
+
//=require jquery
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
after that:
|
|
38
|
+
|
|
31
39
|
```js
|
|
32
40
|
//=require ajax_formhandler
|
|
33
41
|
```
|
|
@@ -48,7 +56,7 @@ This works with standard generated scaffold controllers, models and views seamle
|
|
|
48
56
|
Just add the following line to your js-file, for example 'client.js':
|
|
49
57
|
|
|
50
58
|
```js
|
|
51
|
-
$(document).ready(function{
|
|
59
|
+
$(document).ready(function() {
|
|
52
60
|
|
|
53
61
|
var form_handler = new FormHandler();
|
|
54
62
|
form_handler.init();
|
|
Binary file
|
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
|
10
10
|
spec.email = ["info@yield-in.de"]
|
|
11
11
|
|
|
12
12
|
spec.summary = %q{Handling form submissions via ajax and rendering validation-errors automatically}
|
|
13
|
-
spec.description = %q{RailsAjaxFormhandler is a lightweight Javascript-plugin
|
|
13
|
+
spec.description = %q{RailsAjaxFormhandler is a lightweight Javascript-plugin which submits your form automatically and displays server responded validation-errors by adding styles and error-messages to the invalid input fields. }
|
|
14
14
|
spec.homepage = "https://github.com/brancadavide/rails_ajax_formhandler"
|
|
15
15
|
spec.license = "MIT"
|
|
16
16
|
|
|
@@ -28,6 +28,6 @@ Gem::Specification.new do |spec|
|
|
|
28
28
|
spec.add_development_dependency "bundler", "~> 1.14"
|
|
29
29
|
spec.add_development_dependency "rake", "~> 10.0"
|
|
30
30
|
spec.add_development_dependency 'sprockets-rails', '>= 2.1.3'
|
|
31
|
-
spec.
|
|
31
|
+
spec.add_runtime_dependency 'jquery-rails', '>= 3.1.0'
|
|
32
32
|
|
|
33
33
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rails_ajax_formhandler
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Davide Brancaccio
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2019-02-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -59,14 +59,14 @@ dependencies:
|
|
|
59
59
|
- - ">="
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
61
|
version: 3.1.0
|
|
62
|
-
type: :
|
|
62
|
+
type: :runtime
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
66
|
- - ">="
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: 3.1.0
|
|
69
|
-
description: 'RailsAjaxFormhandler is a lightweight Javascript-plugin
|
|
69
|
+
description: 'RailsAjaxFormhandler is a lightweight Javascript-plugin which submits
|
|
70
70
|
your form automatically and displays server responded validation-errors by adding
|
|
71
71
|
styles and error-messages to the invalid input fields. '
|
|
72
72
|
email:
|
|
@@ -89,6 +89,7 @@ files:
|
|
|
89
89
|
- lib/.DS_Store
|
|
90
90
|
- lib/rails_ajax_formhandler.rb
|
|
91
91
|
- lib/rails_ajax_formhandler/version.rb
|
|
92
|
+
- rails_ajax_formhandler-0.1.5.gem
|
|
92
93
|
- rails_ajax_formhandler.gemspec
|
|
93
94
|
- vendor/assets/javascripts/ajax_formhandler.js
|
|
94
95
|
- vendor/assets/stylesheets/ajax_formhandler.scss
|
|
@@ -112,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
112
113
|
version: '0'
|
|
113
114
|
requirements: []
|
|
114
115
|
rubyforge_project:
|
|
115
|
-
rubygems_version: 2.
|
|
116
|
+
rubygems_version: 2.7.7
|
|
116
117
|
signing_key:
|
|
117
118
|
specification_version: 4
|
|
118
119
|
summary: Handling form submissions via ajax and rendering validation-errors automatically
|