validate_as_url 0.0.9 → 0.0.10

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0d8a08deefea653203f788c549bd663e8db1ed0b
4
+ data.tar.gz: 6b2c3c1375246c1c43df75d9eeb5605aea735e3f
5
+ SHA512:
6
+ metadata.gz: 5faf08979d3c7ad0c7866286f32b942fd07534cb5b23890fbbfd12f238c4d3d51d600b5649d2cfc2dc22d757b6c485987ccd77f4c2c137f14cca61cf1f3b1eda
7
+ data.tar.gz: 0d86696b437a5a3f50b8c5fc6065cafb7f412d6684d518c60408f903e93ef4e6dd46ab48dae4352c75528c9ab32cb73d64fca805f3443fd6d0edd375c720843e
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- validate_as_url (0.0.9)
4
+ validate_as_url (0.0.10)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,6 +1,6 @@
1
1
  module ActiveRecord
2
2
  module Validations
3
- class ValidateAsUrl < ActiveModel::EachValidator # :nodoc:
3
+ class ValidatesUrlFormatOf < ActiveModel::EachValidator # :nodoc:
4
4
  def initialize(options)
5
5
  default_options = {
6
6
  message: 'does not appear to be valid url',
@@ -58,7 +58,10 @@ module ActiveRecord
58
58
 
59
59
  module ClassMethods
60
60
  def validate_as_url(*attr_names)
61
- validates_with ValidateAsUrl, _merge_attributes(attr_names)
61
+ validates_with ValidatesUrlFormatOf, _merge_attributes(attr_names)
62
+ end
63
+ def validates_url_format_of(*attr_names)
64
+ validates_with ValidatesUrlFormatOf, _merge_attributes(attr_names)
62
65
  end
63
66
  end
64
67
  end
@@ -4,7 +4,7 @@
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "validate_as_url"
7
- spec.version = '0.0.9'
7
+ spec.version = '0.0.10'
8
8
  spec.author = ["Mitrofanov Dmitry"]
9
9
  spec.email = ["mdima@it-guru.biz"]
10
10
  spec.description = %q{This Gem is Used for Validations URLs}
metadata CHANGED
@@ -1,46 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: validate_as_url
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
5
- prerelease:
4
+ version: 0.0.10
6
5
  platform: ruby
7
6
  authors:
8
7
  - Mitrofanov Dmitry
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-06-11 00:00:00.000000000 Z
11
+ date: 2014-05-10 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '1.3'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: '1.3'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  description: This Gem is Used for Validations URLs
@@ -50,8 +45,8 @@ executables: []
50
45
  extensions: []
51
46
  extra_rdoc_files: []
52
47
  files:
53
- - .DS_Store
54
- - .gitignore
48
+ - ".DS_Store"
49
+ - ".gitignore"
55
50
  - Gemfile
56
51
  - Gemfile.lock
57
52
  - LICENSE.txt
@@ -62,26 +57,25 @@ files:
62
57
  homepage: http://myitguru.info
63
58
  licenses:
64
59
  - MIT
60
+ metadata: {}
65
61
  post_install_message:
66
62
  rdoc_options: []
67
63
  require_paths:
68
64
  - lib
69
65
  required_ruby_version: !ruby/object:Gem::Requirement
70
- none: false
71
66
  requirements:
72
- - - ! '>='
67
+ - - ">="
73
68
  - !ruby/object:Gem::Version
74
69
  version: '0'
75
70
  required_rubygems_version: !ruby/object:Gem::Requirement
76
- none: false
77
71
  requirements:
78
- - - ! '>='
72
+ - - ">="
79
73
  - !ruby/object:Gem::Version
80
74
  version: '0'
81
75
  requirements: []
82
76
  rubyforge_project:
83
- rubygems_version: 1.8.23
77
+ rubygems_version: 2.2.2
84
78
  signing_key:
85
- specification_version: 3
79
+ specification_version: 4
86
80
  summary: This Gem is Used for Validations URLs
87
81
  test_files: []