validates_ip_address 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 06a81e0f057d10dae8a06aed23965ef7d9935384
4
+ data.tar.gz: d190eeb41f868f21a090826f656e139ada5a82d8
5
+ SHA512:
6
+ metadata.gz: dec2b362b916da53346274b1efd059b7fc0056a9b5086bfd4c09de0ab0f7cd984a6a09d868bb126b099ee74395d7ab74376299eed4588d09427a5520174a57b4
7
+ data.tar.gz: 15b142b6e8f43be0d03bede7b27e4fa4a873220129318c5b43555966640d303207f939faae6101c466c41352e0880d8e36efec9a5aae2ddde6c06ffb0c4e36a6
checksums.yaml.gz.sig ADDED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,10 +1,13 @@
1
1
  require 'ipaddr'
2
2
 
3
3
  class IpValidator < ActiveModel::EachValidator
4
+
4
5
  if defined? IPAddr::AddressFamilyError
5
6
  EXCEPTIONS = [ IPAddr::InvalidAddressError, IPAddr::AddressFamilyError ]
6
- else
7
+ elsif defined? IPAddr::InvalidAddressError
7
8
  EXCEPTIONS = [ IPAddr::InvalidAddressError ]
9
+ else
10
+ EXCEPTIONS = [ ArgumentError ]
8
11
  end
9
12
 
10
13
  def validate_each(record, attribute, value)
@@ -1,3 +1,3 @@
1
1
  module ValidatesIpAddress
2
- VERSION = "0.0.1"
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,106 +1,90 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: validates_ip_address
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 0.0.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Barry Allard
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain:
12
- - !binary |-
13
- LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURPakNDQWlLZ0F3SUJB
14
- Z0lCQURBTkJna3Foa2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Ssg6aaXqwS4/KJxK6ooDsp+iR6zGTINwkdUt4ktpqgCHz1VYuzvii2slnazbm4
21
+ cQUi/wWIynHyzzdrPvDhGgaZm161MYHidCtV+wzqwjeVeFsyQwCFVEkrD/0G98ho
22
+ Gti8vB6Xj6VjO3n+kh/KlYZgmM7SWauLpo+2RGlIYVYdpQQWGwhMEmvSgBxjfX4c
23
+ unDFxO1ZAQIRBQIDAQABozkwNzAJBgNVHRMEAjAAMB0GA1UdDgQWBBS+Kk7ypi9u
24
+ kFUcaqJlpaKO7eWiUTALBgNVHQ8EBAMCBLAwDQYJKoZIhvcNAQEFBQADggEBALie
25
+ YCNeW9EIQ/j8+2emMm0484JVtycOqPyIu5UALtsU42En392HVOZ6oEA/rh2KFRvq
26
+ dcDwcJPI/u7PzWp9TNp81PTShtHMtSs7Wv1UsC04vQ9b6XBEomWbbzoxxgzyjP7l
27
+ ZV4L5HzmX0nDOSEFJyYkqbwgYjIoldg2TMlw2BeoVqGm7Gx1ljXKb2Kg5iasyDpI
28
+ C/gAiGBIAX7FxyIXmjZq38xWBOxyGF3NFL/W6z+vhJg81HGdNBCpIdwrQ/eXOjba
29
+ VqwwfY+Ms3gcCHSERG1X4AFW1zesX+UWcTCwVLtAsuRWQhC8odDSVDWzUfkZmOQt
30
+ ViIxU1ZphInql7L5g34=
31
+ -----END CERTIFICATE-----
40
32
  date: 2014-04-01 00:00:00.000000000 Z
41
33
  dependencies:
42
34
  - !ruby/object:Gem::Dependency
43
35
  name: activemodel
44
36
  requirement: !ruby/object:Gem::Requirement
45
- none: false
46
37
  requirements:
47
- - - ! '>='
38
+ - - ">="
48
39
  - !ruby/object:Gem::Version
49
40
  version: '0'
50
41
  type: :runtime
51
42
  prerelease: false
52
43
  version_requirements: !ruby/object:Gem::Requirement
53
- none: false
54
44
  requirements:
55
- - - ! '>='
45
+ - - ">="
56
46
  - !ruby/object:Gem::Version
57
47
  version: '0'
58
48
  - !ruby/object:Gem::Dependency
59
49
  name: rake
60
50
  requirement: !ruby/object:Gem::Requirement
61
- none: false
62
51
  requirements:
63
- - - ! '>='
52
+ - - ">="
64
53
  - !ruby/object:Gem::Version
65
54
  version: '0'
66
55
  type: :development
67
56
  prerelease: false
68
57
  version_requirements: !ruby/object:Gem::Requirement
69
- none: false
70
58
  requirements:
71
- - - ! '>='
59
+ - - ">="
72
60
  - !ruby/object:Gem::Version
73
61
  version: '0'
74
62
  - !ruby/object:Gem::Dependency
75
63
  name: rspec
76
64
  requirement: !ruby/object:Gem::Requirement
77
- none: false
78
65
  requirements:
79
- - - ! '>='
66
+ - - ">="
80
67
  - !ruby/object:Gem::Version
81
68
  version: '0'
82
69
  type: :development
83
70
  prerelease: false
84
71
  version_requirements: !ruby/object:Gem::Requirement
85
- none: false
86
72
  requirements:
87
- - - ! '>='
73
+ - - ">="
88
74
  - !ruby/object:Gem::Version
89
75
  version: '0'
90
76
  - !ruby/object:Gem::Dependency
91
77
  name: should_not
92
78
  requirement: !ruby/object:Gem::Requirement
93
- none: false
94
79
  requirements:
95
- - - ! '>='
80
+ - - ">="
96
81
  - !ruby/object:Gem::Version
97
82
  version: '0'
98
83
  type: :development
99
84
  prerelease: false
100
85
  version_requirements: !ruby/object:Gem::Requirement
101
- none: false
102
86
  requirements:
103
- - - ! '>='
87
+ - - ">="
104
88
  - !ruby/object:Gem::Version
105
89
  version: '0'
106
90
  description: Validates IPv4 and IPv6 addresses
@@ -110,41 +94,41 @@ executables: []
110
94
  extensions: []
111
95
  extra_rdoc_files: []
112
96
  files:
97
+ - ".rspec"
98
+ - LICENSE
99
+ - README.md
100
+ - Rakefile
113
101
  - app/validators/ip_validator.rb
114
102
  - lib/tasks/validates_ip_address_tasks.rake
115
- - lib/validates_ip_address/version.rb
116
103
  - lib/validates_ip_address.rb
117
- - LICENSE
118
- - Rakefile
119
- - README.md
104
+ - lib/validates_ip_address/version.rb
120
105
  - spec/spec_helper.rb
121
106
  - spec/validators/ip_validator_spec.rb
122
- - .rspec
123
107
  homepage: https://github.com/steakknife/validates_ip_address
124
108
  licenses: []
109
+ metadata: {}
125
110
  post_install_message:
126
111
  rdoc_options: []
127
112
  require_paths:
128
113
  - lib
129
114
  required_ruby_version: !ruby/object:Gem::Requirement
130
- none: false
131
115
  requirements:
132
- - - ! '>='
116
+ - - ">="
133
117
  - !ruby/object:Gem::Version
134
118
  version: '0'
135
119
  required_rubygems_version: !ruby/object:Gem::Requirement
136
- none: false
137
120
  requirements:
138
- - - ! '>='
121
+ - - ">="
139
122
  - !ruby/object:Gem::Version
140
123
  version: '0'
141
124
  requirements: []
142
125
  rubyforge_project:
143
- rubygems_version: 1.8.23
126
+ rubygems_version: 2.2.2
144
127
  signing_key:
145
- specification_version: 3
128
+ specification_version: 4
146
129
  summary: Rails validations for IP addreses
147
130
  test_files:
148
131
  - spec/spec_helper.rb
149
132
  - spec/validators/ip_validator_spec.rb
150
- - .rspec
133
+ - ".rspec"
134
+ has_rdoc:
metadata.gz.sig CHANGED
Binary file