err_supply 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +1 -1
- data/lib/assets/javascripts/err_supply.js +1 -1
- data/lib/err_supply/version.rb +1 -1
- metadata +22 -17
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 35673a76dbd68c64bdc2f49222403480c6bb2dcb
|
4
|
+
data.tar.gz: 45ef7b26dc7d7857138e4aac2da0509614b690d9
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 45ad911a10d3dd8e6620a444cd0b1a09974c9f5beb89bec8de7a083702c832f7848b8d28df8279c4c9a070a99b95dca2360db7c52c7b2924a9988dfadc309409
|
7
|
+
data.tar.gz: cdc3f2d847d3c1973ea1c3b0bba7212a5697de6004bc1f2e555a0d0687ebd4b4cdd51f1c656c3c3cd273e03a463b46e1f0635c91656a771b60813df5aeb7768f
|
data/README.md
CHANGED
@@ -92,7 +92,7 @@ If you want the default javascript handlers, run the install generator from the
|
|
92
92
|
$ rails g err_supply:install
|
93
93
|
|
94
94
|
This will copy two javascripts files to your project: the latest stable version of the
|
95
|
-
jQuery plugin qtip and a simple $.
|
95
|
+
jQuery plugin qtip and a simple $.on() function to modify the view using the information
|
96
96
|
in the err_supply error hash.
|
97
97
|
|
98
98
|
|
@@ -13,7 +13,7 @@ ErrSupply = {
|
|
13
13
|
};
|
14
14
|
|
15
15
|
jQuery(function($) {
|
16
|
-
$("form").
|
16
|
+
$("form").on("err_supply:loaded", function(event, errors) {
|
17
17
|
|
18
18
|
// define how errors are applied to dom elements
|
19
19
|
var applyFn = function(error_hash) {
|
data/lib/err_supply/version.rb
CHANGED
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: err_supply
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.7
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Coroutine
|
@@ -10,30 +9,36 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date:
|
12
|
+
date: 2013-10-01 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: rails
|
17
|
-
requirement:
|
18
|
-
none: false
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
19
17
|
requirements:
|
20
|
-
- -
|
18
|
+
- - '>='
|
21
19
|
- !ruby/object:Gem::Version
|
22
20
|
version: 3.0.0
|
23
21
|
type: :runtime
|
24
22
|
prerelease: false
|
25
|
-
version_requirements:
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - '>='
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: 3.0.0
|
26
28
|
- !ruby/object:Gem::Dependency
|
27
29
|
name: rspec
|
28
|
-
requirement:
|
29
|
-
none: false
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
30
31
|
requirements:
|
31
|
-
- -
|
32
|
+
- - '>='
|
32
33
|
- !ruby/object:Gem::Version
|
33
34
|
version: 2.0.0
|
34
35
|
type: :development
|
35
36
|
prerelease: false
|
36
|
-
version_requirements:
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - '>='
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: 2.0.0
|
37
42
|
description: Simple, beautiful error messages for Rails. Err_supply unpacks and rekeys
|
38
43
|
the standard Rails error hash to make applying error messages to your views dead
|
39
44
|
simple. Even better, because the library cures Rails' brain-damaged way of recording
|
@@ -58,26 +63,26 @@ files:
|
|
58
63
|
- vendor/assets/javascripts/jquery.qtip.js
|
59
64
|
homepage: http://github.com/coroutine/err_supply
|
60
65
|
licenses: []
|
66
|
+
metadata: {}
|
61
67
|
post_install_message:
|
62
68
|
rdoc_options: []
|
63
69
|
require_paths:
|
64
70
|
- lib
|
65
71
|
required_ruby_version: !ruby/object:Gem::Requirement
|
66
|
-
none: false
|
67
72
|
requirements:
|
68
|
-
- -
|
73
|
+
- - '>='
|
69
74
|
- !ruby/object:Gem::Version
|
70
75
|
version: '0'
|
71
76
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
|
-
none: false
|
73
77
|
requirements:
|
74
|
-
- -
|
78
|
+
- - '>='
|
75
79
|
- !ruby/object:Gem::Version
|
76
80
|
version: '0'
|
77
81
|
requirements: []
|
78
82
|
rubyforge_project:
|
79
|
-
rubygems_version:
|
83
|
+
rubygems_version: 2.0.3
|
80
84
|
signing_key:
|
81
|
-
specification_version:
|
85
|
+
specification_version: 4
|
82
86
|
summary: Simple, beautiful error messages for Rails.
|
83
87
|
test_files: []
|
88
|
+
has_rdoc:
|