drexed-errors 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/errors_helper.rb +5 -5
- data/config/locales/en.yml +3 -0
- data/lib/drexed/errors/version.rb +1 -1
- metadata +11 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71543dfec6b075db781a1c3680a157a2354de49e
|
4
|
+
data.tar.gz: db455593bb89aca44ff083a9f21da451e3bdf3f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9d36b72d36e8acf7b49045964ed4d857c2dd8f8cfa640648c421ae4e0a4ed3d67a524d611636b72c31d37f9790ebf55750eda05fe29eee85a2d0ac816c3a6c4
|
7
|
+
data.tar.gz: a8333682318f57ddc908c0375d88d2607334f6013760278fef88f9d54cc4f295e79e989600ca56a411c9e7df8d465ba56cbb127815d00c0e2a49223dc96cf8fd
|
@@ -1,11 +1,11 @@
|
|
1
1
|
module ErrorsHelper
|
2
|
-
|
3
|
-
def error_messages_for(
|
4
|
-
unless
|
2
|
+
|
3
|
+
def error_messages_for(form, opts={})
|
4
|
+
unless form.errors.blank?
|
5
5
|
html = "<div class='form-error-messages'>\n
|
6
|
-
\t\t<h4>#{
|
6
|
+
\t\t<h4>#{master.errors.count} #{t('drexed_errors.errors_pending', count: master.errors.count)}</h4>\n
|
7
7
|
\t\t<ul class='list-unstyled'>\n"
|
8
|
-
|
8
|
+
form.errors.full_messages.each do |error|
|
9
9
|
html << "\t\t\t<li>#{error}</li>\n"
|
10
10
|
end
|
11
11
|
html << "\t\t</ul>\n
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: drexed-errors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Gomez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.3'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
description: Helpers for form errors
|
@@ -45,12 +45,13 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
-
- .gitignore
|
48
|
+
- ".gitignore"
|
49
49
|
- Gemfile
|
50
50
|
- LICENSE.txt
|
51
51
|
- README.md
|
52
52
|
- Rakefile
|
53
53
|
- app/helpers/errors_helper.rb
|
54
|
+
- config/locales/en.yml
|
54
55
|
- drexed-errors.gemspec
|
55
56
|
- lib/drexed/errors.rb
|
56
57
|
- lib/drexed/errors/version.rb
|
@@ -64,17 +65,17 @@ require_paths:
|
|
64
65
|
- lib
|
65
66
|
required_ruby_version: !ruby/object:Gem::Requirement
|
66
67
|
requirements:
|
67
|
-
- -
|
68
|
+
- - ">="
|
68
69
|
- !ruby/object:Gem::Version
|
69
70
|
version: '0'
|
70
71
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
72
|
requirements:
|
72
|
-
- -
|
73
|
+
- - ">="
|
73
74
|
- !ruby/object:Gem::Version
|
74
75
|
version: '0'
|
75
76
|
requirements: []
|
76
77
|
rubyforge_project:
|
77
|
-
rubygems_version: 2.1
|
78
|
+
rubygems_version: 2.2.1
|
78
79
|
signing_key:
|
79
80
|
specification_version: 4
|
80
81
|
summary: Gem for error helpers
|