lib/travis/client/repository.rb in travis-1.6.4.travis.411.4 vs lib/travis/client/repository.rb in travis-1.6.4.travis.413.4

- old
+ new

@@ -182,9 +182,19 @@ def owner session.account(owner_name) end + def settings + attributes['settings'] ||= begin + settings = session.get("/repos/#{id}/settings")['settings'] + settings.repository = self + settings + end + rescue Travis::Client::NotFound + raise Travis::Client::Error, "not allowed to access settings" + end + def caches(params = {}) session.get("/repos/#{id}/caches", params)['caches'] end def delete_caches(params = {})