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

Version Path
hem-1.2.0 lib/hem/helper/github.rb
hem-1.1.2 lib/hem/helper/github.rb
hem-1.1.1 lib/hem/helper/github.rb
hem-1.1.0 lib/hem/helper/github.rb
hem-1.0.1.beta6 lib/hem/helper/github.rb
hem-1.0.1.beta5 lib/hem/helper/github.rb
hem-1.0.1.beta4 lib/hem/helper/github.rb
hem-1.0.1.beta3 lib/hem/helper/github.rb
hem-1.0.1.beta2 lib/hem/helper/github.rb
hem-1.0.1.beta1 lib/hem/helper/github.rb