You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…s-http-in-verschiedenen-stellen to master
This class can be used in a new rake task to check arbitrary models for valid attribute values.
The first use case is checking for valid uris.
Example:
rake attribute_validator:url MODEL_NAME=Goldencobra::Article ATTRIBUTE_NAME=canonical_url
The last commit introduces a new Service object to repair found attributes.
The AttributeValidator now uses a new RepairService to fix the errors it found.
This works only for url values right now and fixes 'http://' and 'https://'
errors. It could easily be extended to repair other attributes as well.
GC-177
* commit '7ffac0e6c270d3c49b873fefdfea5ea984faa88e':
Fixes URLs for multiple occurences of protocol
Uses new Service object to repair found attributes
Fixes the check for host and scheme
Introduces an AttributeValidator
According to https://codeclimate.com/github/ikusei/Goldencobra/Goldencobra::Article
The text was updated successfully, but these errors were encountered: