Sha256: 58e52c9c811f6f271f16369b3e9660bf35a5b97f9938de1f6a15e19c94296182

Contents?: true

Size: 1.72 KB

Versions: 3

Compression:

Stored size: 1.72 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1321313731.422514
x:@value{I"
class:EFI"BundledAsset;
FI"id;
F"%9d81a072ee84e8b140626cfd04d30152I"logical_path;
FI"medivo/helpers.js;
FI"
pathname;
FI"d/Users/danielsudol/projects/medivo/medivo_resource/app/assets/javascripts/medivo/helpers.coffee;
FI"content_type;
FI"application/javascript;
FI"
mtime;
FI"2011-10-29T18:58:58-04:00;
FI"	body;
FI"x
  window.isNumber = function(n) {
    return !isNaN(parseFloat(n)) && isFinite(n);
  };

  String.prototype.capitalize = function() {
    return this.charAt(0).toUpperCase() + this.substring(1).toLowerCase();
  };

  String.prototype.titleize = function() {
    var parts, res;
    res = [];
    parts = this.split(" ");
    $.each(parts, function(index, part) {
      return res.push(part.capitalize());
    });
    return res.join(" ");
  };

  Handlebars.registerHelper("rounded", function(number) {
    if (isNumber(number)) return parseFloat(number).toFixed(2);
  });

  Handlebars.registerHelper("titleize", function(string) {
    if (string !== void 0) return string.titleize();
  });

  Handlebars.registerHelper("address_without_comma", function(lab) {
    if (!(this.data && this.data.address)) return;
    return this.data.address.replace(/(\s*,\s*$)/g, "").titleize();
  });
;
TI"asset_paths;
F[I"d/Users/danielsudol/projects/medivo/medivo_resource/app/assets/javascripts/medivo/helpers.coffee;
FI"dependency_paths;
F[{I"	path;
FI"d/Users/danielsudol/projects/medivo/medivo_resource/app/assets/javascripts/medivo/helpers.coffee;
FI"
mtime;
FIu:	Time
¶ç€ ë:@_zoneI"EDT;
T:offsetiþÀÇI"hexdigest;
F"%364ec158610d7106be2bbd2c5c41d5d5I"
_version;
F"%ee50e40b36d7dc25c526aaff3fac8c9c

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
medivo-0.2.10 spec/dummy/tmp/cache/assets/D88/2C0/sprockets%2F452ab3ebb1912cf1c2ba617eec52a718
medivo-0.2.9 spec/dummy/tmp/cache/assets/D88/2C0/sprockets%2F452ab3ebb1912cf1c2ba617eec52a718
medivo-0.2.8 spec/dummy/tmp/cache/assets/D88/2C0/sprockets%2F452ab3ebb1912cf1c2ba617eec52a718