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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0f35a2e2f5bef8ebe5424b46d38d3dd1a42ed1db
4
- data.tar.gz: 6910154f548fad09b991842907e27feb1ad126ac
3
+ metadata.gz: 71543dfec6b075db781a1c3680a157a2354de49e
4
+ data.tar.gz: db455593bb89aca44ff083a9f21da451e3bdf3f3
5
5
  SHA512:
6
- metadata.gz: 67dd8664a4fd3b6369c42730dd5e609a9e37f601618f6f3c23385a18f8074a04671464bb51a661039af1ac0f8c855e0d345be43e737ccae20cc0ca1623c20cb3
7
- data.tar.gz: 475c64b0253ca0ee66fb997cbd897bb17443f5cc5878e8361ce647d0c02b48e59b6539850942a95c1a38446115751b32bf177884c95d0767ffba8a527160ec39
6
+ metadata.gz: d9d36b72d36e8acf7b49045964ed4d857c2dd8f8cfa640648c421ae4e0a4ed3d67a524d611636b72c31d37f9790ebf55750eda05fe29eee85a2d0ac816c3a6c4
7
+ data.tar.gz: a8333682318f57ddc908c0375d88d2607334f6013760278fef88f9d54cc4f295e79e989600ca56a411c9e7df8d465ba56cbb127815d00c0e2a49223dc96cf8fd
@@ -1,11 +1,11 @@
1
1
  module ErrorsHelper
2
-
3
- def error_messages_for(master, opts={})
4
- unless master.errors.blank?
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>#{pluralize(master.errors.count, 'Error')} Pending</h4>\n
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
- master.errors.full_messages.each do |error|
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
@@ -0,0 +1,3 @@
1
+ en:
2
+ drexed_errors:
3
+ errors_pending: { one: "Error Pending", other: "Errors Pending" }
@@ -1,5 +1,5 @@
1
1
  module Drexed
2
2
  module Errors
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
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.1
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: 2013-12-05 00:00:00.000000000 Z
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.11
78
+ rubygems_version: 2.2.1
78
79
  signing_key:
79
80
  specification_version: 4
80
81
  summary: Gem for error helpers