validation_kit 1.0.4 → 1.0.5
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
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: ff3e9944d7507b5b68ac90c343eb6e95ee9c8219b9f210dcdf843352c72ac39d
|
|
4
|
+
data.tar.gz: 57c6162bd4b136b247c7c15857fcde816e65a592a5dfcff2f793bb8719fb060a
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 686fc83cb5b88630d36ff2ceccc260e889f6800100700d8420b6a49d2702ffe5887892016fe219126ada9b656b2d671ca00f6fb991c5c5ba2dad0be84bba3016
|
|
7
|
+
data.tar.gz: 831b93a7ec64043a9aaf43e2b050d4a93c0f050cda66dd378764857aad36bb09ffeba0fc59086dd19e2581e2227a9cd02c62c5f46f6bedd55dcbbe952d45accd
|
|
@@ -18,17 +18,17 @@ module ValidationKit
|
|
|
18
18
|
|
|
19
19
|
model_name = record.class.to_s
|
|
20
20
|
|
|
21
|
-
item_name = I18n.t("activerecord.
|
|
21
|
+
item_name = I18n.t("activerecord.attributes.#{model_name.underscore}.#{attribute}",
|
|
22
22
|
:default => nil) or options[:attribute_name] or attribute
|
|
23
23
|
|
|
24
24
|
if error == ALL_CAPS
|
|
25
|
-
message = I18n.t("activerecord.errors.models
|
|
25
|
+
message = I18n.t("activerecord.errors.models.#{model_name.underscore}.attributes.#{attribute}.all_caps",
|
|
26
26
|
:item => item_name,
|
|
27
27
|
:default => [:"activerecord.errors.models.#{model_name.underscore}.all_caps",
|
|
28
28
|
options[:all_caps],
|
|
29
29
|
:'activerecord.errors.messages.all_caps'])
|
|
30
30
|
elsif error == ALL_LOWERCASE
|
|
31
|
-
message = I18n.t("activerecord.errors.models
|
|
31
|
+
message = I18n.t("activerecord.errors.models.#{model_name.underscore}.attributes.#{attribute}.all_lowercase",
|
|
32
32
|
:item => item_name,
|
|
33
33
|
:default => [:"activerecord.errors.models.#{model_name.underscore}.all_lowercase",
|
|
34
34
|
options[:all_lowercase],
|
data/validation_kit.gemspec
CHANGED
|
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
|
|
|
6
6
|
s.name = "validation_kit"
|
|
7
7
|
s.version = ValidationKit::VERSION
|
|
8
8
|
s.authors = ["Wes Morgan", "Paul Schreiber"]
|
|
9
|
-
s.email = ["wes@turbovote.org", "
|
|
9
|
+
s.email = ["wes@turbovote.org", "paulschreiber@gmail.com"]
|
|
10
10
|
s.homepage = "https://github.com/turbovote/validation_kit"
|
|
11
11
|
s.summary = %q{Handy validations for Rails forms}
|
|
12
12
|
s.description = %q{A collection of various validators for Rails forms}
|
metadata
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: validation_kit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 1.0.5
|
|
6
5
|
platform: ruby
|
|
7
6
|
authors:
|
|
8
7
|
- Wes Morgan
|
|
@@ -10,17 +9,17 @@ authors:
|
|
|
10
9
|
autorequire:
|
|
11
10
|
bindir: bin
|
|
12
11
|
cert_chain: []
|
|
13
|
-
date:
|
|
12
|
+
date: 2018-02-19 00:00:00.000000000 Z
|
|
14
13
|
dependencies: []
|
|
15
14
|
description: A collection of various validators for Rails forms
|
|
16
15
|
email:
|
|
17
16
|
- wes@turbovote.org
|
|
18
|
-
-
|
|
17
|
+
- paulschreiber@gmail.com
|
|
19
18
|
executables: []
|
|
20
19
|
extensions: []
|
|
21
20
|
extra_rdoc_files: []
|
|
22
21
|
files:
|
|
23
|
-
- .gitignore
|
|
22
|
+
- ".gitignore"
|
|
24
23
|
- Gemfile
|
|
25
24
|
- Rakefile
|
|
26
25
|
- lib/validation_kit.rb
|
|
@@ -38,26 +37,25 @@ files:
|
|
|
38
37
|
- validation_kit.gemspec
|
|
39
38
|
homepage: https://github.com/turbovote/validation_kit
|
|
40
39
|
licenses: []
|
|
40
|
+
metadata: {}
|
|
41
41
|
post_install_message:
|
|
42
42
|
rdoc_options: []
|
|
43
43
|
require_paths:
|
|
44
44
|
- lib
|
|
45
45
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
46
|
-
none: false
|
|
47
46
|
requirements:
|
|
48
|
-
- -
|
|
47
|
+
- - ">="
|
|
49
48
|
- !ruby/object:Gem::Version
|
|
50
49
|
version: '0'
|
|
51
50
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
52
|
-
none: false
|
|
53
51
|
requirements:
|
|
54
|
-
- -
|
|
52
|
+
- - ">="
|
|
55
53
|
- !ruby/object:Gem::Version
|
|
56
54
|
version: '0'
|
|
57
55
|
requirements: []
|
|
58
56
|
rubyforge_project: validation_kit
|
|
59
|
-
rubygems_version:
|
|
57
|
+
rubygems_version: 2.7.3
|
|
60
58
|
signing_key:
|
|
61
|
-
specification_version:
|
|
59
|
+
specification_version: 4
|
|
62
60
|
summary: Handy validations for Rails forms
|
|
63
61
|
test_files: []
|