validation_hints 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,29 @@
1
+ ## YAML Template.
2
+ ---
3
+ en:
4
+ errors:
5
+ # The default format to use in full error messages.
6
+ format: "%{attribute} %{message}"
7
+
8
+ # The values :model, :attribute and :value are always available for interpolation
9
+ # The value :count is available when applicable. Can be used for pluralization.
10
+ messages:
11
+ inclusion: "is not included in the list"
12
+ exclusion: "is reserved"
13
+ invalid: "is invalid"
14
+ confirmation: "doesn't match confirmation"
15
+ accepted: "must be accepted"
16
+ empty: "can't be empty"
17
+ blank: "can't be blank"
18
+ too_long: "is too long (maximum is %{count} characters)"
19
+ too_short: "is too kort (minimum is %{count} characters)"
20
+ wrong_length: "is the wrong length (should be %{count} characters)"
21
+ not_a_number: "is not a number"
22
+ not_an_integer: "must be an integer"
23
+ greater_than: "must be greater than %{count}"
24
+ greater_than_or_equal_to: "must be greater than or equal to %{count}"
25
+ equal_to: "must be equal to %{count}"
26
+ less_than: "must be less than %{count}"
27
+ less_than_or_equal_to: "must be less than or equal to %{count}"
28
+ odd: "must be odd"
29
+ even: "must be even"
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module ValidationHints
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
@@ -0,0 +1,14 @@
1
+ # -*- encoding : utf-8 -*-
2
+
3
+ require 'active_support'
4
+ require 'validation_hints/version'
5
+
6
+ module ActiveModel
7
+ extend ActiveSupport::Autoload
8
+
9
+ autoload :Hints
10
+
11
+ end
12
+
13
+ require 'active_support/i18n'
14
+ I18n.load_path << File.dirname(__FILE__) + '/validation_hints/locale/en.yml'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: validation_hints
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -138,6 +138,7 @@ files:
138
138
  - Rakefile
139
139
  - lib/active_model/hints.rb
140
140
  - lib/validation_hints.rb
141
+ - lib/validation_hints/locale/en.yml
141
142
  - lib/validation_hints/version.rb
142
143
  - validation_hints.gemspec
143
144
  homepage: http://github.com/acesuares/validation_hints