ember-auth-source 6.0.4 → 6.0.5

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 +6 -5
  2. metadata +4 -4
@@ -189,11 +189,12 @@ void function () {
189
189
  settings = {};
190
190
  def = {};
191
191
  set$(def, 'dataType', 'json');
192
- if (get$(settings, 'data') && !(null != get$(settings, 'contentType')))
193
- if ((null != get$(settings, 'type') ? get$(settings, 'type').toUpperCase() : void 0) !== 'GET') {
194
- set$(def, 'contentType', 'application/json; charset=utf-8');
192
+ if (get$(settings, 'data') && !(null != get$(settings, 'contentType'))) {
193
+ if (null != get$(settings, 'type') && get$(settings, 'type').toUpperCase() !== 'GET')
195
194
  set$(settings, 'data', JSON.stringify(get$(settings, 'data')));
196
- }
195
+ if ((null != get$(settings, 'type') ? get$(settings, 'type').toUpperCase() : void 0) !== 'GET')
196
+ set$(def, 'contentType', 'application/json; charset=utf-8');
197
+ }
197
198
  settings = $.extend(def, settings);
198
199
  return $.ajax(settings).done((this$ = this, function (json, status, jqxhr) {
199
200
  get$(get$(this$, 'auth'), '_response').canonicalize(json);
@@ -336,7 +337,7 @@ set$(get$(get$(Em, 'Auth'), 'Strategy'), 'Token', Ember.Object.extend({
336
337
  switch (get$(get$(this, 'auth'), 'tokenLocation')) {
337
338
  case 'param':
338
339
  opts.data || (opts.data = {});
339
- if (FormData && get$(opts, 'data') instanceof FormData) {
340
+ if ('undefined' !== typeof FormData && null != FormData && get$(opts, 'data') instanceof FormData) {
340
341
  get$(opts, 'data').append(get$(get$(this, 'auth'), 'tokenKey'), get$(this, 'authToken'));
341
342
  } else {
342
343
  get$(opts, 'data')[get$(get$(this, 'auth'), 'tokenKey')] || (get$(opts, 'data')[get$(get$(this, 'auth'), 'tokenKey')] = get$(this, 'authToken'));
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: 6.0.4
4
+ version: 6.0.5
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-05-28 00:00:00.000000000 Z
12
+ date: 2013-05-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ember-source
@@ -62,7 +62,7 @@ files:
62
62
  - lib/ember-auth/source.rb
63
63
  homepage: https://github.com/heartsentwined/ember-auth
64
64
  licenses:
65
- - GPL-3
65
+ - MIT
66
66
  post_install_message:
67
67
  rdoc_options: []
68
68
  require_paths:
@@ -75,7 +75,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  segments:
77
77
  - 0
78
- hash: 619222717
78
+ hash: -527079107
79
79
  required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  none: false
81
81
  requirements: