ember-auth-source 7.0.0 → 7.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/dist/ember-auth.js +7 -1
  2. metadata +3 -3
data/dist/ember-auth.js CHANGED
@@ -301,13 +301,19 @@ var get$ = Ember.get;
301
301
  var set$ = Ember.set;
302
302
  set$(get$(get$(Em, 'Auth'), 'Response'), 'Json', Ember.Object.extend({
303
303
  canonicalize: function (input) {
304
+ var error;
304
305
  if (!input)
305
306
  return {};
306
307
  switch (typeof input) {
307
308
  case 'object':
308
309
  return input;
309
310
  case 'string':
310
- return JSON.parse(input);
311
+ try {
312
+ return JSON.parse(input);
313
+ } catch (e$) {
314
+ error = e$;
315
+ throw 'Invalid JSON format';
316
+ }
311
317
  default:
312
318
  throw 'Invalid JSON format';
313
319
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ember-auth-source
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.0
4
+ version: 7.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-30 00:00:00.000000000 Z
12
+ date: 2013-07-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ember-source
@@ -51,7 +51,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
51
51
  version: '0'
52
52
  segments:
53
53
  - 0
54
- hash: 262689745
54
+ hash: -820428813
55
55
  required_rubygems_version: !ruby/object:Gem::Requirement
56
56
  none: false
57
57
  requirements: