Sha256: 87c2c6ab69663f6f4f7a044ddf0572f7bd25bb19017313c788b29e46f564a84c

Contents?: true

Size: 316 Bytes

Versions: 8

Compression:

Stored size: 316 Bytes

Contents

class IsoAssetHost
  def compute(source, timestamp = nil)
    source
  end
end

class CdnAssetHost
  def compute(source, timestamp = nil)
    "http://cdn.locomotivecms.com#{source}"
  end
end

class TimestampAssetHost
  def compute(source, timestamp = nil)
    timestamp ? "#{source}?#{timestamp}" : source
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
locomotivecms-3.0.0.pre.alpha.3 spec/support/asset_host_stubs.rb
locomotive_cms-2.5.7 spec/support/asset_host_stubs.rb
locomotivecms-3.0.0.pre.alpha.2 spec/support/asset_host_stubs.rb
locomotivecms-3.0.0.pre.alpha spec/support/asset_host_stubs.rb
locomotive_cms-2.5.6 spec/support/asset_host_stubs.rb
locomotive_cms-2.5.6.rc2 spec/support/asset_host_stubs.rb
locomotive_cms-2.5.6.rc1 spec/support/asset_host_stubs.rb
locomotive_cms-2.5.5 spec/support/asset_host_stubs.rb