lib/overrides_tracker/api.rb in overrides_tracker-0.1.4 vs lib/overrides_tracker/api.rb in overrides_tracker-0.1.5
- old
+ new
@@ -1,11 +1,11 @@
require 'json'
require 'net/https'
class OverridesTracker::Api
- API_HOST = ENV['OVERRIDES_TRACKER_DEVELOPMENT'] ? "localhost:3000" : "overrides.io"
- API_PROTOCOL = ENV['OVERRIDES_TRACKER_DEVELOPMENT'] ? "http" : "https"
+ API_HOST = false ? "localhost:3000" : "overrides.io"
+ API_PROTOCOL = false ? "http" : "https"
API_DOMAIN = "#{API_PROTOCOL}://#{API_HOST}"
API_BASE = "#{API_DOMAIN}/api/v1"
def self.report_build(api_token, branch_name, last_commit_id, last_commit_name, file_path)