lib/git/semaphore/api_cache.rb in git-semaphore-2.8.0 vs lib/git/semaphore/api_cache.rb in git-semaphore-3.0.0

- old
+ new

@@ -1,42 +1,42 @@ module Git module Semaphore class API class Cache - def self.projects(refresh, auth_token) + def self.projects(refresh) @projects ||= Git::Semaphore.from_json_cache(projects_cache, refresh) do - API::Enrich.projects auth_token + API::Enrich.projects end end - def self.branches(project_hash_id, refresh, auth_token) + def self.branches(project_hash_id, refresh) @branches ||= Git::Semaphore.from_json_cache(branches_cache(project_hash_id), refresh) do - API.branches project_hash_id, auth_token + API.branches project_hash_id end end - def self.status(project_hash_id, branch_id, refresh, auth_token) + def self.status(project_hash_id, branch_id, refresh) @status ||= Git::Semaphore.from_json_cache(status_cache(project_hash_id, branch_id), refresh) do - API::Enrich.status project_hash_id, branch_id, auth_token + API::Enrich.status project_hash_id, branch_id end end - def self.history(project_hash_id, branch_id, refresh, auth_token) + def self.history(project_hash_id, branch_id, refresh) @history ||= Git::Semaphore.from_json_cache(history_cache(project_hash_id, branch_id), refresh) do - API::Enrich.history project_hash_id, branch_id, auth_token + API::Enrich.history project_hash_id, branch_id end end - def self.information(project_hash_id, branch_id, build_number, refresh, auth_token) + def self.information(project_hash_id, branch_id, build_number, refresh) @information ||= Git::Semaphore.from_json_cache(information_cache(project_hash_id, branch_id, build_number), refresh) do - API.information project_hash_id, branch_id, build_number, auth_token + API.information project_hash_id, branch_id, build_number end end - def self.log(project_hash_id, branch_id, build_number, refresh, auth_token) + def self.log(project_hash_id, branch_id, build_number, refresh) @log ||= Git::Semaphore.from_json_cache(log_cache(project_hash_id, branch_id, build_number), refresh) do - API.log project_hash_id, branch_id, build_number, auth_token + API.log project_hash_id, branch_id, build_number end end # private helper functions