This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns build | |
(:require [clojure.tools.build.api :as b])) | |
(def build-folder "target") | |
(def jar-content (str build-folder "/classes")) | |
(def basis (b/create-basis {:project "deps.edn"})) | |
(def version "0.0.1") | |
(def app-name "myapp") | |
(def uber-file-name (format "%s/%s-%s-standalone.jar" build-folder app-name version)) ; path for result uber file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo -n > /usr/share/ca-certificates/mozilla/AddTrust_Low-Value_Services_Root.crt | |
echo -n > /usr/share/ca-certificates/mozilla/AddTrust_Public_Services_Root.crt | |
echo -n > /usr/share/ca-certificates/mozilla/AddTrust_Qualified_Certificates_Root.crt | |
echo -n > /usr/share/ca-certificates/mozilla/AddTrust_External_Root.crt | |
update-ca-certificates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'webmock/rspec' | |
def add(number_one, number_two) | |
response = Net::HTTP.get_response('auth-server.com', '/authorize?user=foo&token=bar') | |
raise 'Unauthorized' unless response.code == "200" | |
return number_one + number_two | |
end | |
describe "#add" do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def add(number_one, number_two) | |
return number_one + number_two | |
end | |
describe "#add" do | |
it "returns sum of given numbers" do | |
sum = add(3,4) | |
expect(sum).to eq(7) | |
end |