url_format 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0dea9973e24702d097b7e519d8b8cca1c0c3aade
4
- data.tar.gz: cd23ee6cd452cb8826f23762d06a6be7f84177cb
3
+ metadata.gz: 0f93de85b2acf9ac90257946858b149529856aca
4
+ data.tar.gz: b0b149a39a1085f7608e9e7a87966f9a81682f2c
5
5
  SHA512:
6
- metadata.gz: f15977376f21a87e54b991f3f9fd4e82cce531c1b6022d609d3f371abffecd3810a1a1838fb404818f7aa922f805c74f8cb0ada13b754a3974cd84eb4ed62f82
7
- data.tar.gz: 9c96a5b3ca23b1fd86171d6543ae2cd32bcc724037a60ce5b1b3040f9ee1b3d97c66b68c74f531f2aaef7432ec7705d48d27d8558644f1efda76b06babf812fc
6
+ metadata.gz: fbebaa9fafad59da23ad9f1ed19efc759bd91b45720f48a7c5e3f5bce38c8799dd923ad5bdca21675d4a2065c92af446af061bc737353d79b1c6cd5144601c30
7
+ data.tar.gz: fdf889314384b42e761c6f4e5607bdc6c152ba41b613bd5fa74deffd238499b8c81a7cb574fa57568f1c667f20441db7589430c50140b449a55346c351ca082e
@@ -1,6 +1,6 @@
1
1
  class UrlFormatValidator < ActiveModel::EachValidator
2
2
  def validate_each(record, attribute, value)
3
- unless URI.parse(record).kind_of?(URI::HTTP)
3
+ unless URI.parse(attribute).kind_of?(URI::HTTP)
4
4
  url_format_invalid(record, attribute, value)
5
5
  end
6
6
  rescue URI::InvalidURIError
@@ -1,3 +1,3 @@
1
1
  module UrlFormat
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: url_format
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Otander