Sha256: cee444085c3178dd3703b2365514b4decb85905ca4bbc72fc1963ecd054c33f9
Contents?: true
Size: 285 Bytes
Versions: 2
Compression:
Stored size: 285 Bytes
Contents
CommitMsgUrlShortener::Service.define do |commit_message| def call_isgd_api long_url error_safe_request do uri = URI "http://is.gd/create.php?format=simple&url=#{long_url}" Net::HTTP.get uri end end each_long_url(commit_message) {|url| call_isgd_api url} end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
commit-msg-url-shortener-0.0.2 | lib/commit-msg-url-shortener/services/is.gd.rb |
commit-msg-url-shortener-0.0.1 | lib/commit-msg-url-shortener/services/is.gd.rb |