Top Level Namespace

Defined Under Namespace

Classes: LibraryNotImplementedException, Optparse

Constant Summary collapse

DATA_STORE_FILENAME =

require “gemrake”

File.expand_path('~/.web-puc-data.yml')
CACHE_EXPIRATION_PERIOD =
7*24*60*60

Instance Method Summary collapse

Instance Method Details



55
56
57
58
59
60
61
62
63
64
# File 'lib/web-puc.rb', line 55

def get_link(lib, version)
  case lib
    when 'twitter-bootstrap'
      "//netdna.bootstrapcdn.com/bootstrap/#{version}/"
    when 'font-awesome'
      "//netdna.bootstrapcdn.com/font-awesome/#{version}/"
    else
      raise LibraryNotImplementedException
  end
end