Skip to content

Commit

Permalink
Merge pull request #6807 from MahtraDR/dependency_reconciliation
Browse files Browse the repository at this point in the history
[scripts][dependency] Reconcile local and remote copies
  • Loading branch information
MahtraDR authored May 3, 2024
2 parents c849c5f + ff436f1 commit bf991bd
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions dependency.lic
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ require 'ostruct'
require 'digest/sha1'
require 'monitor'

$DEPENDENCY_VERSION = '1.6.5'
$DEPENDENCY_VERSION = '1.6.6'
$MIN_RUBY_VERSION = '3.2.2'

no_pause_all
no_kill_all

while Script.running?('repository')
echo("Repository is running, pausing for 10 seconds.")
pause 10
end
class Object
# IMPORT FUTURE LAWLZ
def itself
Expand Down Expand Up @@ -1508,7 +1512,12 @@ class HornWatch
request['Content-Type'] = 'application/json'
request.body = timestamp.to_i.to_json
response = http.request(request)
response.body.chomp
unless response.body
echo("No response body for some reason. Returning nil.")
return nil
else
response.body.chomp
end
end

def get_horn_data(room)
Expand All @@ -1531,6 +1540,8 @@ class HornWatch
echo("warhorn data for room:#{room} is #{horn_data.inspect}") if @debug
rescue => e
echo("error in hornwatch #{e.inspect}")
echo("Returning time.at(0)")
return Time.at(0)
end
end

Expand Down

0 comments on commit bf991bd

Please sign in to comment.