url_validation 1.0.0 → 1.1.0

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: 682d17ebc6fc4e9cc86e12f9040c24266b4f9caf
4
+ data.tar.gz: c9e43aa2a8b465f1d099f8303478ed55ea4f4552
5
+ SHA512:
6
+ metadata.gz: 23c5029413f8796d6b1225d3e58db091f801c636006344499dae7cc9dc14f7f665110dab8b8c2fe3e3502b19899fe1fd7f2792a0b4ea6cb15b6309d93b79ffa9
7
+ data.tar.gz: 719a8dcd6c4b5f85e483a1c0597ba15e82bccf8b5ae1352569ecbaf303fdbc81f692642c467037b8a3ff2b133cc580b7951b1899ed82d08338f4eb898352864d
data/.rspec CHANGED
@@ -1 +1,2 @@
1
- -cfs
1
+ --format documentation
2
+ --color
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ url_validation
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.1.4
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
2
 
3
3
  gem 'addressable', :require => 'addressable/uri' # for unicode URIs
4
4
  gem 'activesupport'
data/Gemfile.lock CHANGED
@@ -1,43 +1,86 @@
1
1
  GEM
2
- remote: http://rubygems.org/
2
+ remote: https://rubygems.org/
3
3
  specs:
4
- RedCloth (4.2.7)
5
- activemodel (3.0.7)
6
- activesupport (= 3.0.7)
7
- builder (~> 2.1.2)
8
- i18n (~> 0.5.0)
9
- activerecord (3.0.7)
10
- activemodel (= 3.0.7)
11
- activesupport (= 3.0.7)
12
- arel (~> 2.0.2)
13
- tzinfo (~> 0.3.23)
14
- activesupport (3.0.7)
15
- addressable (2.2.6)
16
- arel (2.0.10)
17
- builder (2.1.2)
18
- diff-lcs (1.1.2)
19
- git (1.2.5)
20
- httpi (0.9.4)
21
- pyu-ntlm-http (>= 0.1.3.1)
4
+ RedCloth (4.2.9)
5
+ activemodel (4.1.7)
6
+ activesupport (= 4.1.7)
7
+ builder (~> 3.1)
8
+ activerecord (4.1.7)
9
+ activemodel (= 4.1.7)
10
+ activesupport (= 4.1.7)
11
+ arel (~> 5.0.0)
12
+ activesupport (4.1.7)
13
+ i18n (~> 0.6, >= 0.6.9)
14
+ json (~> 1.7, >= 1.7.7)
15
+ minitest (~> 5.1)
16
+ thread_safe (~> 0.1)
17
+ tzinfo (~> 1.1)
18
+ addressable (2.3.6)
19
+ arel (5.0.1.20140414130214)
20
+ builder (3.2.2)
21
+ descendants_tracker (0.0.4)
22
+ thread_safe (~> 0.3, >= 0.3.1)
23
+ diff-lcs (1.2.5)
24
+ faraday (0.9.0)
25
+ multipart-post (>= 1.2, < 3)
26
+ git (1.2.8)
27
+ github_api (0.12.2)
28
+ addressable (~> 2.3)
29
+ descendants_tracker (~> 0.0.4)
30
+ faraday (~> 0.8, < 0.10)
31
+ hashie (>= 3.3)
32
+ multi_json (>= 1.7.5, < 2.0)
33
+ nokogiri (~> 1.6.3)
34
+ oauth2
35
+ hashie (3.3.1)
36
+ highline (1.6.21)
37
+ httpi (2.2.7)
22
38
  rack
23
- i18n (0.5.0)
24
- jeweler (1.6.0)
25
- bundler (~> 1.0.0)
39
+ i18n (0.6.11)
40
+ jeweler (2.0.1)
41
+ builder
42
+ bundler (>= 1.0)
26
43
  git (>= 1.2.5)
44
+ github_api
45
+ highline (>= 1.6.15)
46
+ nokogiri (>= 1.5.10)
27
47
  rake
28
- pyu-ntlm-http (0.1.3.1)
29
- rack (1.3.0)
30
- rake (0.9.0)
31
- rspec (2.6.0)
32
- rspec-core (~> 2.6.0)
33
- rspec-expectations (~> 2.6.0)
34
- rspec-mocks (~> 2.6.0)
35
- rspec-core (2.6.3)
36
- rspec-expectations (2.6.0)
37
- diff-lcs (~> 1.1.2)
38
- rspec-mocks (2.6.0)
39
- tzinfo (0.3.27)
40
- yard (0.7.1)
48
+ rdoc
49
+ json (1.8.1)
50
+ jwt (1.0.0)
51
+ mini_portile (0.6.1)
52
+ minitest (5.4.2)
53
+ multi_json (1.10.1)
54
+ multi_xml (0.5.5)
55
+ multipart-post (2.0.0)
56
+ nokogiri (1.6.4.1)
57
+ mini_portile (~> 0.6.0)
58
+ oauth2 (1.0.0)
59
+ faraday (>= 0.8, < 0.10)
60
+ jwt (~> 1.0)
61
+ multi_json (~> 1.3)
62
+ multi_xml (~> 0.5)
63
+ rack (~> 1.2)
64
+ rack (1.5.2)
65
+ rake (10.3.2)
66
+ rdoc (4.1.2)
67
+ json (~> 1.4)
68
+ rspec (3.1.0)
69
+ rspec-core (~> 3.1.0)
70
+ rspec-expectations (~> 3.1.0)
71
+ rspec-mocks (~> 3.1.0)
72
+ rspec-core (3.1.7)
73
+ rspec-support (~> 3.1.0)
74
+ rspec-expectations (3.1.2)
75
+ diff-lcs (>= 1.2.0, < 2.0)
76
+ rspec-support (~> 3.1.0)
77
+ rspec-mocks (3.1.3)
78
+ rspec-support (~> 3.1.0)
79
+ rspec-support (3.1.2)
80
+ thread_safe (0.3.4)
81
+ tzinfo (1.2.2)
82
+ thread_safe (~> 0.1)
83
+ yard (0.8.7.6)
41
84
 
42
85
  PLATFORMS
43
86
  ruby
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.1.0
@@ -2,6 +2,7 @@ require 'addressable/uri'
2
2
  require 'httpi'
3
3
  require 'active_support/core_ext/hash/except'
4
4
  require 'active_model/validator'
5
+ require 'active_support/core_ext/array/wrap'
5
6
 
6
7
  # Validates URLs. Uses the following I18n error message keys:
7
8
  #
@@ -119,12 +120,16 @@ class UrlValidator < ActiveModel::EachValidator
119
120
 
120
121
  # @private
121
122
  def validate_each(record, attribute, value)
122
- return if options[:allow_nil] and value.nil?
123
- return if options[:allow_blank] and value.blank?
124
-
125
- uri = Addressable::URI.parse(value)
126
- if uri.scheme.nil? and options[:default_scheme] then
127
- uri = Addressable::URI.parse("#{options[:default_scheme]}://#{value}")
123
+ return if value.blank?
124
+
125
+ begin
126
+ uri = Addressable::URI.parse(value)
127
+ if uri.scheme.nil? and options[:default_scheme] then
128
+ uri = Addressable::URI.parse("#{options[:default_scheme]}://#{value}")
129
+ end
130
+ rescue Addressable::URI::InvalidURIError
131
+ record.errors.add(attribute, options[:invalid_url_message] || :invalid_url) unless url_format_valid?(uri, options)
132
+ return
128
133
  end
129
134
 
130
135
  record.errors.add(attribute, options[:invalid_url_message] || :invalid_url) unless url_format_valid?(uri, options)
@@ -15,13 +15,13 @@ describe UrlValidator do
15
15
  it "should allow nil if :allow_nil is set" do
16
16
  @validator = UrlValidator.new(:attributes => [ :field ], :allow_nil => true)
17
17
  @validator.validate_each(@record, :field, nil)
18
- @record.errors.should be_empty
18
+ expect(@record.errors).to be_empty
19
19
  end
20
20
 
21
21
  it "should allow \"\" if :allow_blank is set" do
22
22
  @validator = UrlValidator.new(:attributes => [ :field ], :allow_blank => true)
23
23
  @validator.validate_each(@record, :field, "")
24
- @record.errors.should be_empty
24
+ expect(@record.errors).to be_empty
25
25
  end
26
26
  end
27
27
 
@@ -29,27 +29,27 @@ describe UrlValidator do
29
29
  it "should only allow HTTP URLs if :scheme is set to 'http'" do
30
30
  @validator = UrlValidator.new(:attributes => [ :field ], :scheme => 'http')
31
31
  @validator.validate_each(@record, :field, "http://www.apple.com")
32
- @record.errors.should be_empty
32
+ expect(@record.errors).to be_empty
33
33
 
34
34
  @validator.validate_each(@record, :field, "https://www.apple.com")
35
- @record.errors[:field].first.should include('invalid_url')
35
+ expect(@record.errors[:field].first).to include('invalid_url')
36
36
  end
37
37
 
38
38
  it "should only allow HTTP and HTTPS URLs if :scheme is set to %w( http https )" do
39
39
  @validator = UrlValidator.new(:attributes => [ :field ], :scheme => %w( http https ))
40
40
  @validator.validate_each(@record, :field, "http://www.apple.com")
41
- @record.errors.should be_empty
41
+ expect(@record.errors).to be_empty
42
42
  @validator.validate_each(@record, :field, "https://www.apple.com")
43
- @record.errors.should be_empty
43
+ expect(@record.errors).to be_empty
44
44
 
45
45
  @validator.validate_each(@record, :field, "ftp://www.apple.com")
46
- @record.errors[:field].first.should include('invalid_url')
46
+ expect(@record.errors[:field].first).to include('invalid_url')
47
47
  end
48
48
 
49
49
  it "should try a default scheme if :default_scheme is set" do
50
50
  @validator = UrlValidator.new(:attributes => [ :field ], :scheme => 'http', :default_scheme => 'http')
51
51
  @validator.validate_each(@record, :field, "www.apple.com")
52
- @record.errors.should be_empty
52
+ expect(@record.errors).to be_empty
53
53
  end
54
54
 
55
55
  context "[HTTP(S)]" do
@@ -66,7 +66,7 @@ describe UrlValidator do
66
66
  ].each do |uri|
67
67
  @record.errors.clear
68
68
  @validator.validate_each(@record, :field, "www.apple.com")
69
- @record.errors[:field].first.should include('invalid_url')
69
+ expect(@record.errors[:field].first).to include('invalid_url')
70
70
  end
71
71
  end
72
72
  end
@@ -77,45 +77,45 @@ describe UrlValidator do
77
77
  it "should only validate if the host is accessible when :check_host is set" do
78
78
  @validator = UrlValidator.new(:attributes => [ :field ])
79
79
  @validator.validate_each(@record, :field, "http://www.invalid.tld")
80
- @record.errors.should be_empty
80
+ expect(@record.errors).to be_empty
81
81
 
82
82
  @validator = UrlValidator.new(:attributes => [ :field ], :check_host => true)
83
83
  @validator.validate_each(@record, :field, "http://www.invalid.tld")
84
- @record.errors[:field].first.should include('url_not_accessible')
84
+ expect(@record.errors[:field].first).to include('url_not_accessible')
85
85
  end
86
86
 
87
87
  it "should not perform the accessibility check if :check_host is set to 'http' and the URL scheme is not HTTP" do
88
88
  @validator = UrlValidator.new(:attributes => [ :field ], :check_host => 'http')
89
89
  @validator.validate_each(@record, :field, "https://www.invalid.tld")
90
- @record.errors.should be_empty
90
+ expect(@record.errors).to be_empty
91
91
  end
92
92
 
93
93
  it "should only validate if the host is accessible when :check_host is set to 'http' and the URL scheme is HTTP" do
94
94
  @validator = UrlValidator.new(:attributes => [ :field ], :check_host => 'http')
95
95
  @validator.validate_each(@record, :field, "http://www.invalid.tld")
96
- @record.errors[:field].first.should include('url_not_accessible')
96
+ expect(@record.errors[:field].first).to include('url_not_accessible')
97
97
  end
98
98
 
99
99
  it "should not perform the accessibility check if :check_host is set to %w( http https ) and the URL scheme is not HTTP(S)" do
100
100
  @validator = UrlValidator.new(:attributes => [ :field ], :check_host => %w( http https ), :scheme => %w( ftp http https ))
101
101
  @validator.validate_each(@record, :field, "ftp://www.invalid.tld")
102
- @record.errors.should be_empty
102
+ expect(@record.errors).to be_empty
103
103
  end
104
104
 
105
105
  it "should only validate if the host is accessible when :check_host is set to %w( http https ) and the URL scheme is HTTP(S)" do
106
106
  @validator = UrlValidator.new(:attributes => [ :field ], :check_host => %w( http https ))
107
107
  @validator.validate_each(@record, :field, "http://www.invalid.tld")
108
- @record.errors[:field].first.should include('url_not_accessible')
108
+ expect(@record.errors[:field].first).to include('url_not_accessible')
109
109
 
110
110
  @validator = UrlValidator.new(:attributes => [ :field ], :check_host => %w( http https ))
111
111
  @validator.validate_each(@record, :field, "https://www.invalid.tld")
112
- @record.errors[:field].first.should include('url_not_accessible')
112
+ expect(@record.errors[:field].first).to include('url_not_accessible')
113
113
  end
114
114
 
115
115
  it "should only validate the host" do
116
116
  @validator = UrlValidator.new(:attributes => [ :field ], :check_host => true)
117
117
  @validator.validate_each(@record, :field, "http://www.google.com/sdgsdgf")
118
- @record.errors.should be_empty
118
+ expect(@record.errors).to be_empty
119
119
  end
120
120
  end
121
121
 
@@ -123,98 +123,98 @@ describe UrlValidator do
123
123
  it "should not validate if the response code is equal to the Fixnum value of this option" do
124
124
  @validator = UrlValidator.new(:attributes => [ :field ], :check_path => 404)
125
125
  @validator.validate_each(@record, :field, "http://www.google.com/sdgsdgf")
126
- @record.errors[:field].first.should include('url_invalid_response')
126
+ expect(@record.errors[:field].first).to include('url_invalid_response')
127
127
 
128
128
  @record.errors.clear
129
129
 
130
130
  @validator = UrlValidator.new(:attributes => [ :field ], :check_path => 405)
131
131
  @validator.validate_each(@record, :field, "http://www.google.com/sdgsdgf")
132
- @record.errors[:field].should be_empty
132
+ expect(@record.errors[:field]).to be_empty
133
133
  end
134
134
 
135
135
  it "should not validate if the response code is equal to the Symbol value of this option" do
136
136
  @validator = UrlValidator.new(:attributes => [ :field ], :check_path => :not_found)
137
137
  @validator.validate_each(@record, :field, "http://www.google.com/sdgsdgf")
138
- @record.errors[:field].first.should include('url_invalid_response')
138
+ expect(@record.errors[:field].first).to include('url_invalid_response')
139
139
 
140
140
  @record.errors.clear
141
141
 
142
142
  @validator = UrlValidator.new(:attributes => [ :field ], :check_path => :unauthorized)
143
143
  @validator.validate_each(@record, :field, "http://www.google.com/sdgsdgf")
144
- @record.errors[:field].should be_empty
144
+ expect(@record.errors[:field]).to be_empty
145
145
  end
146
146
 
147
147
  it "should not validate if the response code is within the Range value of this option" do
148
148
  @validator = UrlValidator.new(:attributes => [ :field ], :check_path => 400..499)
149
149
  @validator.validate_each(@record, :field, "http://www.google.com/sdgsdgf")
150
- @record.errors[:field].first.should include('url_invalid_response')
150
+ expect(@record.errors[:field].first).to include('url_invalid_response')
151
151
 
152
152
  @record.errors.clear
153
153
 
154
154
  @validator = UrlValidator.new(:attributes => [ :field ], :check_path => 500..599)
155
155
  @validator.validate_each(@record, :field, "http://www.google.com/sdgsdgf")
156
- @record.errors[:field].should be_empty
156
+ expect(@record.errors[:field]).to be_empty
157
157
  end
158
158
 
159
159
  it "should not validate if the response code is equal to the Fixnum value contained in the Array value of this option" do
160
160
  @validator = UrlValidator.new(:attributes => [ :field ], :check_path => [ 404, 405 ])
161
161
  @validator.validate_each(@record, :field, "http://www.google.com/sdgsdgf")
162
- @record.errors[:field].first.should include('url_invalid_response')
162
+ expect(@record.errors[:field].first).to include('url_invalid_response')
163
163
 
164
164
  @record.errors.clear
165
165
 
166
166
  @validator = UrlValidator.new(:attributes => [ :field ], :check_path => [ 405, 406 ])
167
167
  @validator.validate_each(@record, :field, "http://www.google.com/sdgsdgf")
168
- @record.errors[:field].should be_empty
168
+ expect(@record.errors[:field]).to be_empty
169
169
  end
170
170
 
171
171
  it "should not validate if the response code is equal to the Symbol value contained in the Array value of this option" do
172
172
  @validator = UrlValidator.new(:attributes => [ :field ], :check_path => [ :not_found, :unauthorized ])
173
173
  @validator.validate_each(@record, :field, "http://www.google.com/sdgsdgf")
174
- @record.errors[:field].first.should include('url_invalid_response')
174
+ expect(@record.errors[:field].first).to include('url_invalid_response')
175
175
 
176
176
  @record.errors.clear
177
177
 
178
178
  @validator = UrlValidator.new(:attributes => [ :field ], :check_path => [ :unauthorized, :moved_permanently ])
179
179
  @validator.validate_each(@record, :field, "http://www.google.com/sdgsdgf")
180
- @record.errors[:field].should be_empty
180
+ expect(@record.errors[:field]).to be_empty
181
181
  end
182
182
 
183
183
  it "should not validate if the response code is equal to the Range value contained in the Array value of this option" do
184
184
  @validator = UrlValidator.new(:attributes => [ :field ], :check_path => [ 400..499, 500..599 ])
185
185
  @validator.validate_each(@record, :field, "http://www.google.com/sdgsdgf")
186
- @record.errors[:field].first.should include('url_invalid_response')
186
+ expect(@record.errors[:field].first).to include('url_invalid_response')
187
187
 
188
188
  @record.errors.clear
189
189
 
190
190
  @validator = UrlValidator.new(:attributes => [ :field ], :check_path => [ 500..599, 300..399 ])
191
191
  @validator.validate_each(@record, :field, "http://www.google.com/sdgsdgf")
192
- @record.errors[:field].should be_empty
192
+ expect(@record.errors[:field]).to be_empty
193
193
  end
194
194
 
195
195
  it "should skip validation by default" do
196
196
  @validator = UrlValidator.new(:attributes => [ :field ], :check_path => nil)
197
197
  @validator.validate_each(@record, :field, "http://www.google.com/sdgsdgf")
198
- @record.errors[:field].should be_empty
198
+ expect(@record.errors[:field]).to be_empty
199
199
  end
200
200
 
201
201
  it "should not validate 4xx and 5xx response codes if the value is true" do
202
202
  @validator = UrlValidator.new(:attributes => [ :field ], :check_path => true)
203
203
  @validator.validate_each(@record, :field, "http://www.google.com/sdgsdgf")
204
- @record.errors[:field].first.should include('url_invalid_response')
204
+ expect(@record.errors[:field].first).to include('url_invalid_response')
205
205
  end
206
206
 
207
207
  it "should skip validation for non-HTTP URLs" do
208
208
  @validator = UrlValidator.new(:attributes => [ :field ], :check_path => true, :scheme => %w( ftp http https ))
209
209
  @validator.validate_each(@record, :field, "ftp://ftp.sdgasdgohaodgh.com/sdgjsdg")
210
- @record.errors[:field].should be_empty
210
+ expect(@record.errors[:field]).to be_empty
211
211
  end
212
212
  end
213
213
 
214
214
  context "[:httpi_adapter]" do
215
215
  it "should use the specified HTTPI adapter" do
216
216
  @validator = UrlValidator.new(:attributes => [ :field ], :httpi_adapter => :curl, :check_host => true)
217
- HTTPI.should_receive(:get).once.with(an_instance_of(HTTPI::Request), :curl).and_return(false)
217
+ expect(HTTPI).to receive(:get).once.with(an_instance_of(HTTPI::Request), :curl).and_return(false)
218
218
  @validator.validate_each(@record, :field, "http://www.google.com/sdgsdgf")
219
219
  end
220
220
  end
@@ -222,9 +222,9 @@ describe UrlValidator do
222
222
  context "[:request_callback]" do
223
223
  it "should be yielded the HTTPI request" do
224
224
  called = false
225
- @validator = UrlValidator.new(:attributes => [ :field ], :check_host => true, :request_callback => lambda { |request| called = true; request.should be_kind_of(HTTPI::Request) })
225
+ @validator = UrlValidator.new(:attributes => [ :field ], :check_host => true, :request_callback => lambda { |request| called = true; expect(request).to be_kind_of(HTTPI::Request) })
226
226
  @validator.validate_each(@record, :field, "http://www.google.com/sdgsdgf")
227
- called.should be_true
227
+ expect(called).to eql(true)
228
228
  end
229
229
  end
230
230
  end
@@ -2,16 +2,18 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
+ # stub: url_validation 1.1.0 ruby lib
5
6
 
6
7
  Gem::Specification.new do |s|
7
- s.name = %q{url_validation}
8
- s.version = "1.0.0"
8
+ s.name = "url_validation"
9
+ s.version = "1.1.0"
9
10
 
10
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = [%q{Tim Morgan}]
12
- s.date = %q{2011-05-27}
13
- s.description = %q{A simple, localizable EachValidator for URL fields in ActiveRecord 3.0.}
14
- s.email = %q{git@timothymorgan.info}
12
+ s.require_paths = ["lib"]
13
+ s.authors = ["Tim Morgan"]
14
+ s.date = "2014-11-08"
15
+ s.description = "A simple, localizable EachValidator for URL fields in ActiveRecord 3.0."
16
+ s.email = "git@timothymorgan.info"
15
17
  s.extra_rdoc_files = [
16
18
  "LICENSE",
17
19
  "README.textile"
@@ -19,6 +21,8 @@ Gem::Specification.new do |s|
19
21
  s.files = [
20
22
  ".document",
21
23
  ".rspec",
24
+ ".ruby-gemset",
25
+ ".ruby-version",
22
26
  "Gemfile",
23
27
  "Gemfile.lock",
24
28
  "LICENSE",
@@ -30,14 +34,13 @@ Gem::Specification.new do |s|
30
34
  "spec/url_validator_spec.rb",
31
35
  "url_validation.gemspec"
32
36
  ]
33
- s.homepage = %q{http://github.com/riscfuture/url_validation}
34
- s.require_paths = [%q{lib}]
37
+ s.homepage = "http://github.com/riscfuture/url_validation"
35
38
  s.required_ruby_version = Gem::Requirement.new(">= 1.8.7")
36
- s.rubygems_version = %q{1.8.3}
37
- s.summary = %q{Simple URL validation in Rails 3}
39
+ s.rubygems_version = "2.4.2"
40
+ s.summary = "Simple URL validation in Rails 3"
38
41
 
39
42
  if s.respond_to? :specification_version then
40
- s.specification_version = 3
43
+ s.specification_version = 4
41
44
 
42
45
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
43
46
  s.add_runtime_dependency(%q<addressable>, [">= 0"])
metadata CHANGED
@@ -1,117 +1,139 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: url_validation
3
- version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 1.0.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.0
6
5
  platform: ruby
7
- authors:
6
+ authors:
8
7
  - Tim Morgan
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
-
13
- date: 2011-05-27 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
11
+ date: 2014-11-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
16
14
  name: addressable
17
- requirement: &id001 !ruby/object:Gem::Requirement
18
- none: false
19
- requirements:
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
20
17
  - - ">="
21
- - !ruby/object:Gem::Version
22
- version: "0"
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
23
20
  type: :runtime
24
21
  prerelease: false
25
- version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
27
28
  name: activesupport
28
- requirement: &id002 !ruby/object:Gem::Requirement
29
- none: false
30
- requirements:
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
31
  - - ">="
32
- - !ruby/object:Gem::Version
33
- version: "0"
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *id002
37
- - !ruby/object:Gem::Dependency
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
38
42
  name: activerecord
39
- requirement: &id003 !ruby/object:Gem::Requirement
40
- none: false
41
- requirements:
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
42
45
  - - ">="
43
- - !ruby/object:Gem::Version
44
- version: "0"
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
45
48
  type: :runtime
46
49
  prerelease: false
47
- version_requirements: *id003
48
- - !ruby/object:Gem::Dependency
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
49
56
  name: httpi
50
- requirement: &id004 !ruby/object:Gem::Requirement
51
- none: false
52
- requirements:
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
53
59
  - - ">="
54
- - !ruby/object:Gem::Version
55
- version: "0"
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
56
62
  type: :runtime
57
63
  prerelease: false
58
- version_requirements: *id004
59
- - !ruby/object:Gem::Dependency
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
60
70
  name: jeweler
61
- requirement: &id005 !ruby/object:Gem::Requirement
62
- none: false
63
- requirements:
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
64
73
  - - ">="
65
- - !ruby/object:Gem::Version
66
- version: "0"
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
67
76
  type: :development
68
77
  prerelease: false
69
- version_requirements: *id005
70
- - !ruby/object:Gem::Dependency
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
71
84
  name: yard
72
- requirement: &id006 !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
75
87
  - - ">="
76
- - !ruby/object:Gem::Version
77
- version: "0"
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
78
90
  type: :development
79
91
  prerelease: false
80
- version_requirements: *id006
81
- - !ruby/object:Gem::Dependency
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
82
98
  name: RedCloth
83
- requirement: &id007 !ruby/object:Gem::Requirement
84
- none: false
85
- requirements:
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
86
101
  - - ">="
87
- - !ruby/object:Gem::Version
88
- version: "0"
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
89
104
  type: :development
90
105
  prerelease: false
91
- version_requirements: *id007
92
- - !ruby/object:Gem::Dependency
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
93
112
  name: rspec
94
- requirement: &id008 !ruby/object:Gem::Requirement
95
- none: false
96
- requirements:
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
97
115
  - - ">="
98
- - !ruby/object:Gem::Version
99
- version: "0"
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
100
118
  type: :development
101
119
  prerelease: false
102
- version_requirements: *id008
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
103
125
  description: A simple, localizable EachValidator for URL fields in ActiveRecord 3.0.
104
126
  email: git@timothymorgan.info
105
127
  executables: []
106
-
107
128
  extensions: []
108
-
109
- extra_rdoc_files:
129
+ extra_rdoc_files:
110
130
  - LICENSE
111
131
  - README.textile
112
- files:
113
- - .document
114
- - .rspec
132
+ files:
133
+ - ".document"
134
+ - ".rspec"
135
+ - ".ruby-gemset"
136
+ - ".ruby-version"
115
137
  - Gemfile
116
138
  - Gemfile.lock
117
139
  - LICENSE
@@ -124,30 +146,25 @@ files:
124
146
  - url_validation.gemspec
125
147
  homepage: http://github.com/riscfuture/url_validation
126
148
  licenses: []
127
-
149
+ metadata: {}
128
150
  post_install_message:
129
151
  rdoc_options: []
130
-
131
- require_paths:
152
+ require_paths:
132
153
  - lib
133
- required_ruby_version: !ruby/object:Gem::Requirement
134
- none: false
135
- requirements:
154
+ required_ruby_version: !ruby/object:Gem::Requirement
155
+ requirements:
136
156
  - - ">="
137
- - !ruby/object:Gem::Version
157
+ - !ruby/object:Gem::Version
138
158
  version: 1.8.7
139
- required_rubygems_version: !ruby/object:Gem::Requirement
140
- none: false
141
- requirements:
159
+ required_rubygems_version: !ruby/object:Gem::Requirement
160
+ requirements:
142
161
  - - ">="
143
- - !ruby/object:Gem::Version
144
- version: "0"
162
+ - !ruby/object:Gem::Version
163
+ version: '0'
145
164
  requirements: []
146
-
147
165
  rubyforge_project:
148
- rubygems_version: 1.8.3
166
+ rubygems_version: 2.4.2
149
167
  signing_key:
150
- specification_version: 3
168
+ specification_version: 4
151
169
  summary: Simple URL validation in Rails 3
152
170
  test_files: []
153
-