$ ruby fake_smtp_serverrequire "net/smtp"| class Mailcatcher < Formula | |
| desc "Catches mail and serves it through a dream." | |
| homepage "https://github.com/sj26/mailcatcher" | |
| url "https://github.com/sj26/mailcatcher/archive/v0.6.5.zip" | |
| sha256 "393303738ec6c7e0254b22b3f6b8f7988363791890516f820e90372afef4d65c" | |
| version "0.6.5" | |
| def install | |
| ENV["GEM_HOME"] = libexec | |
| system "gem", "build", "mailcatcher.gemspec" |
| = content_tag(:div, html_attributes) do | |
| = yield_or_property(:message) |
| $('form .input.array').each(function() { | |
| var $wrapper = $('.array-inputs', this); | |
| var $insertArea = $(".array-input button[data-action=add]").closest(".array-input"); | |
| $(".array-input button[data-action=add]", $(this)).click(function(e) { | |
| $('.array-input:first-child', $wrapper).clone(true).insertBefore($insertArea).find('input').val('').focus(); | |
| }); | |
| $('.array-input button[data-action=remove]', $wrapper).click(function() { | |
| if ($('.array-input', $wrapper).length > 2) { | |
| $(this).parent('.array-input').remove(); | |
| } |
| class Gemstash < Formula | |
| desc "A RubyGems.org cache and private gem server." | |
| homepage "https://github.com/bundler/gemstash/" | |
| url "https://github.com/bundler/gemstash/archive/v1.0.4.tar.gz" | |
| sha256 "d3479b692a3a14844b703e0be033e29e9fca99899cf0b887d77c8759dcfbebd5" | |
| def install | |
| ENV["GEM_HOME"] = libexec | |
| system "gem", "build", "gemstash.gemspec" | |
| system "gem", "install", "gemstash-#{version}.gem" |
| require "benchmark" | |
| require "securerandom" | |
| n = 1_000_000 | |
| Benchmark.bm(7) do |x| | |
| x.report("uuid:") { n.times do; SecureRandom.uuid; end } | |
| end |
| require "pg" | |
| require "benchmark" | |
| require "faker" | |
| def say(msg) | |
| puts msg | |
| end | |
| conn = PG.connect(dbname: "postgres") |
| FROM gliderlabs/alpine:3.2 | |
| RUN apk-install curl |