Sha256: b6e55b759343d408f4483c240b8f24afacb269107c3af67a42c62484856f3571
Contents?: true
Size: 238 Bytes
Versions: 10
Compression:
Stored size: 238 Bytes
Contents
module Hem module Helper def parse_github_url(url) matches = /github\.com[\/:]+(?<owner>.*)\/(?<repo>((?!\.git).)*)/.match(url) {:owner => matches[:owner], :repo => matches[:repo]} end end end include Hem::Helper
Version data entries
10 entries across 10 versions & 1 rubygems