validate_as_seo_tag 0.0.2 → 0.0.3
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96d3e8f244b0852deb76bcf9a6090b3ee720bda9
|
4
|
+
data.tar.gz: 48d51cf5840059645ccabc73ddc4bdef38205218
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe15e92022dc8dc605c64fa9cb8e85afbb5529d7f060670fdb2155a5260b1942ad413f6103272230f8019afae36d7723c0d542f65f53bd13a0d95ab67d4ec419
|
7
|
+
data.tar.gz: 5b66d3364b90f65287498971f2a8f79ddab7ba35ce51bb83f95fb7fa1b167c3c0ebc2d7bf845745ae7d5cb6b544b0dbdb5e4766e002524e1d3b519ec536a52ed
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module ActiveRecord
|
2
2
|
module Validations
|
3
|
-
class
|
3
|
+
class ValidateAsSeoTag < ActiveModel::EachValidator # :nodoc:
|
4
4
|
def initialize(options)
|
5
5
|
default_options = {
|
6
6
|
message: 'does not appear to be valid SEO-tag',
|
@@ -35,11 +35,11 @@ module ActiveRecord
|
|
35
35
|
|
36
36
|
module ClassMethods
|
37
37
|
def validate_as_seo_tag(*attr_names)
|
38
|
-
validates_with
|
38
|
+
validates_with ValidateAsSeoTag, _merge_attributes(attr_names)
|
39
39
|
end
|
40
40
|
|
41
41
|
def validates_slug_format_of(*attr_names)
|
42
|
-
validates_with
|
42
|
+
validates_with ValidateAsSeoTag, _merge_attributes(attr_names)
|
43
43
|
end
|
44
44
|
end
|
45
45
|
end
|
data/validate_as_seo_tag.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "validate_as_seo_tag"
|
7
|
-
spec.version = '0.0.
|
7
|
+
spec.version = '0.0.3'
|
8
8
|
spec.authors = ["Mitrofanov Dmitry"]
|
9
9
|
spec.email = ["mdima@it-guru.biz"]
|
10
10
|
spec.description = %q{Validate SEO-tag format}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: validate_as_seo_tag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mitrofanov Dmitry
|
@@ -50,7 +50,7 @@ files:
|
|
50
50
|
- LICENSE.txt
|
51
51
|
- README.md
|
52
52
|
- Rakefile
|
53
|
-
- lib/
|
53
|
+
- lib/validate_as_seo_tag.rb
|
54
54
|
- validate_as_seo_tag.gemspec
|
55
55
|
homepage: ''
|
56
56
|
licenses:
|