Commit graph

8 commits

Author SHA1 Message Date
GitLab Bot
083d64c646 Add latest changes from gitlab-org/gitlab@master 2019-10-31 15:06:41 +00:00
Thong Kuah
d119d3d1b2 Align UrlValidator to validate_url gem implementation.
Renamed UrlValidator to AddressableUrlValidator to avoid 'url:' naming collision with ActiveModel::Validations::UrlValidator in 'validates' statement.
Make use of the options attribute of the parent class ActiveModel::EachValidator.
Add more options: allow_nil, allow_blank, message.
Renamed 'protocols' option to 'schemes' to match the option naming from UrlValidator.
2019-04-11 06:29:07 +00:00
Nick Thomas
013f7cd24c
Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
Robert Schilling
b178443854 Add support for FTP assets for releases
Extend the list of supported protocols to include FTP.
2019-02-13 10:51:12 +00:00
Shinya Maeda
50768a25ec Add uniqueness validation to url column in Releases::Link model
Add test

Add changelog
2019-01-09 14:40:38 +09:00
Shinya Maeda
df7ed9eef2 Add unique constraint to release and url
Fix coding style

Improve coding style

Decouple UPDATE and DELETE operations of asset links

Rename links_attributes to assets:links

Rename exposed param and updated spec
2019-01-04 22:17:03 +09:00
Shinya Maeda
f5f52da885 Add spec for Releases::Source and Link models
Releases::Source and Releases::Link are covered by tests
2019-01-04 22:17:02 +09:00
Shinya Maeda
66755c9ed5 Support CURD operation for release asset links
- Add Releases::Links model
- Expose it in release API
- Add integration tests
2019-01-04 22:17:02 +09:00