ember-social
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -13,3 +13,5 @@ export default { | ||
application.inject('component:linkedin-share', 'socialApiClient', 'service:linkedin-api-client'); | ||
application.inject('component:twitter-card', 'socialApiClient', 'service:twitter-api-client'); | ||
} | ||
}; |
@@ -7,5 +7,6 @@ { | ||
"jquery": "^1.11.1", | ||
"ember": "1.7.0", | ||
"ember-resolver": "~0.1.7", | ||
"loader": "stefanpenner/loader.js#1.0.1", | ||
"ember": "1.8.1", | ||
"ember-data": "1.0.0-beta.12", | ||
"ember-resolver": "~0.1.11", | ||
"loader.js": "stefanpenner/loader.js#1.0.1", | ||
"ember-cli-shims": "stefanpenner/ember-cli-shims#0.0.3", | ||
@@ -17,3 +18,7 @@ "ember-cli-test-loader": "rwjblue/ember-cli-test-loader#0.0.4", | ||
"qunit": "~1.15.0" | ||
}, | ||
"resolutions": { | ||
"ember": "1.7.0", | ||
"handlebars": "~1.3.0" | ||
} | ||
} |
@@ -0,1 +1,2 @@ | ||
/* jshint node: true */ | ||
/* global require, module */ | ||
@@ -2,0 +3,0 @@ |
/* jshint node: true */ | ||
module.exports = function(environment) { | ||
var ENV = { | ||
environment: environment, | ||
baseURL: '/', | ||
locationType: 'auto', | ||
EmberENV: { | ||
FEATURES: { | ||
// Here you can enable experimental features on an ember canary build | ||
// e.g. 'with-controller': true | ||
} | ||
}, | ||
APP: { | ||
// Here you can pass flags/options to your application instance | ||
// when it is created | ||
} | ||
}; | ||
if (environment === 'development') { | ||
// ENV.APP.LOG_RESOLVER = true; | ||
ENV.APP.LOG_ACTIVE_GENERATION = true; | ||
// ENV.APP.LOG_TRANSITIONS = true; | ||
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true; | ||
ENV.APP.LOG_VIEW_LOOKUPS = true; | ||
} | ||
if (environment === 'test') { | ||
ENV.baseURL = '/'; // Testem prefers this... | ||
} | ||
if (environment === 'production') { | ||
} | ||
return ENV; | ||
module.exports = function(/* environment, appConfig */) { | ||
return {}; | ||
}; |
@@ -1,6 +0,6 @@ | ||
var Addon = require('ember-cli/lib/models/addon'); | ||
/* jshint node: true */ | ||
'use strict'; | ||
var EmberSocialAddon = Addon.extend({ | ||
module.exports = { | ||
name: 'ember-social' | ||
}); | ||
module.exports = EmberSocialAddon; | ||
}; |
{ | ||
"name": "ember-social", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"directories": { | ||
"doc": "doc", | ||
"test": "test" | ||
"test": "tests" | ||
}, | ||
@@ -17,21 +17,23 @@ "scripts": { | ||
}, | ||
"keywords": [ | ||
"ember-addon" | ||
], | ||
"ember-addon": { | ||
"configPath": "tests/dummy/config" | ||
}, | ||
"author": "", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"body-parser": "^1.2.0", | ||
"broccoli-asset-rev": "0.0.17", | ||
"broccoli-ember-hbs-template-compiler": "^1.6.1", | ||
"ember-cli": "0.0.44", | ||
"ember-cli-ember-data": "0.1.0", | ||
"ember-cli": "^0.1.5", | ||
"ember-cli-dependency-checker": "0.0.7", | ||
"ember-cli-esnext": "0.1.1", | ||
"ember-cli-ic-ajax": "0.1.1", | ||
"ember-cli-qunit": "0.0.5", | ||
"ember-cli-inject-live-reload": "^1.3.0", | ||
"ember-cli-qunit": "0.1.2", | ||
"ember-data": "1.0.0-beta.12", | ||
"ember-export-application-global": "^1.0.0", | ||
"express": "^4.8.5", | ||
"glob": "^4.0.5" | ||
}, | ||
"keywords": [ | ||
"ember-addon" | ||
], | ||
"ember-addon": { | ||
"configPath": "tests/dummy/config" | ||
} | ||
} |
@@ -1,3 +0,1 @@ | ||
# robotstxt.org/ | ||
User-agent: * |
@@ -39,1 +39,13 @@ import Ember from 'ember'; | ||
}); | ||
test('tweet', function(){ | ||
visit('/twitter/card'); | ||
andThen(function(){ | ||
equal(currentPath(), 'twitter.card'); | ||
Ember.run.later(function(){ | ||
equal(find('.twitter-tweet').length, 2, 'Two twitter tweets were rendered.'); | ||
}, 2500); | ||
}); | ||
}); |
import Ember from 'ember'; | ||
import Resolver from 'ember/resolver'; | ||
import loadInitializers from 'ember/load-initializers'; | ||
import config from './config/environment'; | ||
@@ -8,8 +9,9 @@ Ember.MODEL_FACTORY_INJECTIONS = true; | ||
var App = Ember.Application.extend({ | ||
modulePrefix: 'dummy', // TODO: loaded via config | ||
modulePrefix: config.modulePrefix, | ||
podModulePrefix: config.podModulePrefix, | ||
Resolver: Resolver | ||
}); | ||
loadInitializers(App, 'dummy'); | ||
loadInitializers(App, config.modulePrefix); | ||
export default App; |
import Ember from 'ember'; | ||
import config from './config/environment'; | ||
var Router = Ember.Router.extend({ | ||
location: DummyENV.locationType | ||
location: config.locationType | ||
}); | ||
@@ -15,2 +16,3 @@ | ||
this.route('share'); | ||
this.route('card'); | ||
}); | ||
@@ -17,0 +19,0 @@ this.resource('linkedin', function() { |
@@ -5,2 +5,3 @@ /* jshint node: true */ | ||
var ENV = { | ||
modulePrefix: 'dummy', | ||
environment: environment, | ||
@@ -24,10 +25,18 @@ baseURL: '/', | ||
// ENV.APP.LOG_RESOLVER = true; | ||
ENV.APP.LOG_ACTIVE_GENERATION = true; | ||
// ENV.APP.LOG_ACTIVE_GENERATION = true; | ||
// ENV.APP.LOG_TRANSITIONS = true; | ||
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true; | ||
ENV.APP.LOG_VIEW_LOOKUPS = true; | ||
// ENV.APP.LOG_VIEW_LOOKUPS = true; | ||
} | ||
if (environment === 'test') { | ||
ENV.baseURL = '/'; // Testem prefers this... | ||
// Testem prefers this... | ||
ENV.baseURL = '/'; | ||
ENV.locationType = 'none'; | ||
// keep test console output quieter | ||
ENV.APP.LOG_ACTIVE_GENERATION = false; | ||
ENV.APP.LOG_VIEW_LOOKUPS = false; | ||
ENV.APP.rootElement = '#ember-testing'; | ||
} | ||
@@ -34,0 +43,0 @@ |
import Resolver from 'ember/resolver'; | ||
import config from '../../config/environment'; | ||
@@ -6,5 +7,6 @@ var resolver = Resolver.create(); | ||
resolver.namespace = { | ||
modulePrefix: 'dummy' | ||
modulePrefix: config.modulePrefix, | ||
podModulePrefix: config.podModulePrefix | ||
}; | ||
export default resolver; |
import Ember from 'ember'; | ||
import Application from 'dummy/app'; | ||
import Router from 'dummy/router'; | ||
import Application from '../../app'; | ||
import Router from '../../router'; | ||
import config from '../../config/environment'; | ||
export default function startApp(attrs) { | ||
var App; | ||
var application; | ||
var attributes = Ember.merge({ | ||
// useful Test defaults | ||
rootElement: '#ember-testing', | ||
LOG_ACTIVE_GENERATION: false, | ||
LOG_VIEW_LOOKUPS: false | ||
}, attrs); // but you can override; | ||
var attributes = Ember.merge({}, config.APP); | ||
attributes = Ember.merge(attributes, attrs); // use defaults, but you can override; | ||
Router.reopen({ | ||
location: 'none' | ||
}); | ||
Ember.run(function() { | ||
App = Application.create(attributes); | ||
App.setupForTesting(); | ||
App.injectTestHelpers(); | ||
application = Application.create(attributes); | ||
application.setupForTesting(); | ||
application.injectTestHelpers(); | ||
}); | ||
App.reset(); // this shouldn't be needed, i want to be able to "start an app at a specific URL" | ||
return App; | ||
return application; | ||
} |
@@ -11,6 +11,3 @@ import resolver from './helpers/resolver'; | ||
QUnit.config.urlConfig.push({ id: 'nocontainer', label: 'Hide container'}); | ||
if (QUnit.urlParams.nocontainer) { | ||
document.getElementById('ember-testing-container').style.visibility = 'hidden'; | ||
} else { | ||
document.getElementById('ember-testing-container').style.visibility = 'visible'; | ||
} | ||
var containerVisibility = QUnit.urlParams.nocontainer ? 'hidden' : 'visible'; | ||
document.getElementById('ember-testing-container').style.visibility = containerVisibility; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47551
62
819
11