validate_as_seo_tag 0.0.2 → 0.0.3

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: e16830b7743ae2664959b57ae625beaddcc65048
4
- data.tar.gz: fe9eb48c344e74a50fbd01609bec99590da42104
3
+ metadata.gz: 96d3e8f244b0852deb76bcf9a6090b3ee720bda9
4
+ data.tar.gz: 48d51cf5840059645ccabc73ddc4bdef38205218
5
5
  SHA512:
6
- metadata.gz: 1a873f59a30753254b3d9cee5a6892cdcb7baa9c4a1e1707181a054c61b9fa280e708cac939208485cd28a82b12d4e0c4f6fd62f2beeb3425b541c956dc6707a
7
- data.tar.gz: 6510566214d9dec8473fa20c20b977ef9bf4bfd21363f66421bb1d1edff8942a0a4fd61afcb022bc542e1921e5abdcb801beae9eb8970bccf74647e62f352e55
6
+ metadata.gz: fe15e92022dc8dc605c64fa9cb8e85afbb5529d7f060670fdb2155a5260b1942ad413f6103272230f8019afae36d7723c0d542f65f53bd13a0d95ab67d4ec419
7
+ data.tar.gz: 5b66d3364b90f65287498971f2a8f79ddab7ba35ce51bb83f95fb7fa1b167c3c0ebc2d7bf845745ae7d5cb6b544b0dbdb5e4766e002524e1d3b519ec536a52ed
@@ -1,6 +1,6 @@
1
1
  module ActiveRecord
2
2
  module Validations
3
- class ValidateSlugFormat < ActiveModel::EachValidator # :nodoc:
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 ValidateSlugFormat, _merge_attributes(attr_names)
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 ValidateSlugFormat, _merge_attributes(attr_names)
42
+ validates_with ValidateAsSeoTag, _merge_attributes(attr_names)
43
43
  end
44
44
  end
45
45
  end
@@ -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.2'
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.2
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/validate_slug_format.rb
53
+ - lib/validate_as_seo_tag.rb
54
54
  - validate_as_seo_tag.gemspec
55
55
  homepage: ''
56
56
  licenses: