lib/lolcommits/plugins/lolsrv.rb in lolcommits-0.8.1 vs lib/lolcommits/plugins/lolsrv.rb in lolcommits-0.9.0

- old
+ new

@@ -36,14 +36,14 @@ return nil end def upload(file, sha) RestClient.post(configuration['server'] + '/uplol', - :lol => File.new(file), - :url => runner.vcs_info.url + sha, - :repo => runner.vcs_info.repo, - :date => File.ctime(file), - :sha => sha) + lol: File.new(file), + url: runner.vcs_info.url + sha, + repo: runner.vcs_info.repo, + date: File.ctime(file), + sha: sha) rescue => e log_error(e, "ERROR: Upload of lol #{sha} FAILED #{e.class} - #{e.message}") end def self.name