Skip to content

Commit

Permalink
Merge branch 'release/0.5.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
poteto committed Dec 2, 2015
2 parents 0b50f7f + 7452fbf commit a9e8c60
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,28 +57,28 @@ module.exports = function(environment) {
metricsAdapters: [
{
name: 'GoogleAnalytics',
environments: ['development', 'production']
environments: ['development', 'production'],
config: {
id: 'UA-XXXX-Y'
}
},
{
name: 'Mixpanel',
environments: ['production']
environments: ['production'],
config: {
token: '0f76c037-4d76-4fce-8a0f-a9a8f89d1453'
}
},
{
name: 'Segment',
environments: ['production']
environments: ['production'],
config: {
key: '4fce-8a0f-a9a8f89d1453'
}
},
{
name: 'LocalAdapter',
environments: ['all'] // default
environments: ['all'], // default
config: {
foo: 'bar'
}
Expand Down
2 changes: 1 addition & 1 deletion app/initializers/metrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import config from '../config/environment';

export function initialize() {
const application = arguments[1] || arguments[0];
const { metricsAdapters = {} } = config;
const { metricsAdapters = [] } = config;
const { environment = 'development' } = config;
const options = { metricsAdapters, environment };

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-metrics",
"version": "0.5.1",
"version": "0.5.2",
"description": "Send data to multiple analytics integrations without re-implementing new API",
"directories": {
"doc": "doc",
Expand Down

0 comments on commit a9e8c60

Please sign in to comment.