ember-auth-response-json-source 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/dist/ember-auth-response-json.js +26 -0
- data/lib/ember/auth/response/json/source.rb +15 -0
- metadata +74 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 08471012b017682a2ea9b032cc5456f76cdc4573
|
4
|
+
data.tar.gz: d6ea0ce7095baf021f28180838157d8027ce6d0b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 071cca20962e2846cf7698b1472e66269b864ae63634600f56d58477c764b88a3634df6ade685a8c2e1704d9d5e5c59cab75a9841665d33b8521146ae5ad014c
|
7
|
+
data.tar.gz: f3f2feba0c8f7ab30633d62fa57ad54c6c4b914befcaed55aeed117beacca4d758f27899beef1220ac98639beda228ba6edc1826972448ef6123c6fe342e3b34
|
@@ -0,0 +1,26 @@
|
|
1
|
+
// Generated by EmberScript 0.0.7
|
2
|
+
var get$ = Ember.get;
|
3
|
+
Em.onLoad('Ember.Application', function (application) {
|
4
|
+
return application.initializer({
|
5
|
+
name: 'ember-auth.response.json',
|
6
|
+
before: 'ember-auth-load',
|
7
|
+
initialize: function (container, app) {
|
8
|
+
return app.register('authResponse:json', get$(get$(Em, 'Auth'), 'JsonAuthResponse'));
|
9
|
+
}
|
10
|
+
});
|
11
|
+
});// Generated by EmberScript 0.0.7
|
12
|
+
var get$ = Ember.get;
|
13
|
+
var set$ = Ember.set;
|
14
|
+
set$(get$(Em, 'Auth'), 'JsonAuthResponse', get$(get$(Em, 'Auth'), 'AuthResponse').extend({
|
15
|
+
canonicalize: function (response) {
|
16
|
+
var error;
|
17
|
+
if (!response)
|
18
|
+
return {};
|
19
|
+
try {
|
20
|
+
return JSON.parse(response);
|
21
|
+
} catch (e$) {
|
22
|
+
error = e$;
|
23
|
+
throw 'Invalid JSON format';
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}));
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Ember
|
2
|
+
module Auth
|
3
|
+
module Response
|
4
|
+
module Json
|
5
|
+
module Source
|
6
|
+
def self.bundled_path
|
7
|
+
path = File.join '..', '..', '..', '..', '..', '..', \
|
8
|
+
'dist', 'ember-auth-response-json.js'
|
9
|
+
File.expand_path path, __FILE__
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
metadata
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ember-auth-response-json-source
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- heartsentwined
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-10-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: ember-source
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: ember-auth-source
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '9.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '9.0'
|
41
|
+
description: Ember-auth json response adapter source code wrapper for ruby libs.
|
42
|
+
email:
|
43
|
+
- heartsentwined.me@gmail.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- dist/ember-auth-response-json.js
|
49
|
+
- lib/ember/auth/response/json/source.rb
|
50
|
+
homepage: https://github.com/heartsentwined/ember-auth-response-json
|
51
|
+
licenses:
|
52
|
+
- MIT
|
53
|
+
metadata: {}
|
54
|
+
post_install_message:
|
55
|
+
rdoc_options: []
|
56
|
+
require_paths:
|
57
|
+
- lib
|
58
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - '>='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
63
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - '>='
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
requirements: []
|
69
|
+
rubyforge_project:
|
70
|
+
rubygems_version: 2.0.3
|
71
|
+
signing_key:
|
72
|
+
specification_version: 4
|
73
|
+
summary: Ember-auth json response adapter source code wrapper
|
74
|
+
test_files: []
|