/* jshint node: true */
'use strict';

module.exports = {
  name: 'ember-cli-gravatar',

  included: function included(app) {
    this.app = app;
    this._super.included(app);

    app.import(app.bowerDirectory + '/blueimp-md5/js/md5.js');
    app.import('vendor/ember-cli-gravatar/md5-shim.js', {
      type: 'vendor',
      exports: { 'md5': ['md5'] }
    });
  }
};

/* jshint node: true */
'use strict';

module.exports = {
  name: 'ember-cli-gravatar',

  included: function included(app) {
    // workaround for https://github.com/ember-cli/ember-cli/issues/3718
    if (typeof app.import !== 'function' && app.app) {
      app = app.app;
    }
    this.app = app;
    this._super.included(app);

    app.import(app.bowerDirectory + '/blueimp-md5/js/md5.js');
    app.import('vendor/ember-cli-gravatar/md5-shim.js', {
      type: 'vendor',
      exports: { 'md5': ['md5'] }
    });
  }
};

Fix import for nested add-on.
Fix import for nested add-on.
