Sha256: 7b7db409646c0463cb6fecd4e78d48c4f51caeed0146d4f665641cb92e952ac4

Contents?: true

Size: 1.63 KB

Versions: 3

Compression:

Stored size: 1.63 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1381798602.545603:@value"{I"
class:ETI"BundledAsset;FI"logical_path;TI"Core/getFilenameFromUri.js;TI"
pathname;TI"X/Users/bogumil/www/engines/cesium/app/assets/javascripts/Core/getFilenameFromUri.js;FI"content_type;TI"application/javascript;TI"
mtime;TI"2013-10-15T02:54:58+02:00;TI"length;Ti'I"digest;TI"%a13bfb20c4590042a77906984e7f862c;FI"source;TI"'/*global define*/

define(['Core/defined', 'Core/DeveloperError', 'ThirdParty/Uri'], function(
        defined,
        DeveloperError,
        Uri) {
    "use strict";

    /**
     * Given a URI, returns the last segment of the URI, removing any path or query information.
     * @exports getFilenameFromUri
     *
     * @param {String} uri The Uri.
     * @returns {String} The last segment of the Uri.
     *
     * @exception {DeveloperError} uri is required.
     *
     * @example
     * //fileName will be"simple.czml";
     * var fileName = getFilenameFromUri('/Gallery/simple.czml?value=true&example=false');
     */
    var getFilenameFromUri = function(uri) {
        if (!defined(uri)) {
            throw new DeveloperError('uri is required.');
        }

        var uriObject = new Uri(uri);
        uriObject.normalize();
        var path = uriObject.path;
        var index = path.lastIndexOf('/');
        if (index !== -1) {
            path = path.substr(index + 1);
        }
        return path;
    };

    return getFilenameFromUri;
});
;TI"required_assets_digest;TI"%a6da0e8956d46befbe31bdd1117bfd4a;FI"
_version;TI"%6776f581a4329e299531e1d52aa59832;F

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cesium-0.24.0 test/dummy/tmp/cache/assets/CE9/700/sprockets%2Fa5a19cf16c351d647a668199842ef3b5
cesium-0.23.0 test/dummy/tmp/cache/assets/CE9/700/sprockets%2Fa5a19cf16c351d647a668199842ef3b5
cesium-0.22.0 test/dummy/tmp/cache/assets/CE9/700/sprockets%2Fa5a19cf16c351d647a668199842ef3b5