Sha256: 8d53f974eaf73d07cf956a102e43a11baf36226b9a3dedb3f14d7fee7b50c044

Contents?: true

Size: 229 Bytes

Versions: 2

Compression:

Stored size: 229 Bytes

Contents

module Vendorise
  class Parser
    attr_reader :url

    def initialize(url)
      @url = url
    end

    def gem_url
      url =~ /^\s+$/ ? nil : url
    end

    def gem_name
      File.basename url, ".git"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vendorise-0.3.0 lib/vendorise/parser.rb
vendorise-0.2.0 lib/vendorise/parser.rb