Sha256: 0d19d7b377bb18feb9e739fab9ba96cc26e951717aed94baf59514a644fbaa4a

Contents?: true

Size: 156 Bytes

Versions: 15

Compression:

Stored size: 156 Bytes

Contents

module Rugged
  class Remote
    def github_slug
      match = /.*github.com(:|\/)(?<slug>.*).git/.match(url)
      match[:slug] if match
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
pronto-0.2.6 lib/pronto/rugged/remote.rb
pronto-0.2.5 lib/pronto/rugged/remote.rb
pronto-0.2.4 lib/pronto/rugged/remote.rb
pronto-0.2.3 lib/pronto/rugged/remote.rb
pronto-0.2.2 lib/pronto/rugged/remote.rb
pronto-0.2.1 lib/pronto/rugged/remote.rb
pronto-0.2.0 lib/pronto/rugged/remote.rb
pronto-0.1.7 lib/pronto/rugged/remote.rb
pronto-0.1.6 lib/pronto/rugged/remote.rb
pronto-0.1.5 lib/pronto/rugged/remote.rb
pronto-0.1.4 lib/pronto/rugged/remote.rb
pronto-0.1.3 lib/pronto/rugged/remote.rb
pronto-0.1.2 lib/rugged/remote.rb
pronto-0.1.1 lib/rugged/remote.rb
pronto-0.1.0 lib/rugged/remote.rb