omniauth-coub 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c01f42ee9542eba06a7cf476c50c338d55ecca1d
4
- data.tar.gz: ac51d7c5a81981972f4ff8324a1042beab38491d
3
+ metadata.gz: 36dfad09ae6e20755f9dfc371f3726252cbd7541
4
+ data.tar.gz: 8b686b64c0b9f470b6ecbaf54e3844e4b135e021
5
5
  SHA512:
6
- metadata.gz: 4625e81a27d61f1c375056207c6fdd15880fa4b64d78c2baff77484cb7ab905264a7bd7c70f885d5e59201be54244c72c604d6119f9b0311cbf3bfcd20cb4865
7
- data.tar.gz: e8265eb2a9dfcd53473f9555ed44aaf9e6a16c429c782b7da34af1f70d90cc0f57b90e70d48626b608bf30343fa152b4e337a28809a4f7ac368756e647f03ef0
6
+ metadata.gz: 63a1e3dea327ff4078a16cbbc92d8ab62e9eed6616cc75bc15d9bdb9fe523acc1cd6f84f17abfeca02d93522cf42853f7d912f135a5365e253cc7c4e2243458f
7
+ data.tar.gz: 21f8c775297b799ec3044c262ea5d5cecd718ff39df6b444a1590d94ddbd2407ca4e98e1157862e5fd130ede2cd4d9aa010a7a05da3e952831f8b1350cb44960
data/README.md CHANGED
@@ -40,6 +40,90 @@ Rails.application.config.middleware.use OmniAuth::Builder do
40
40
  end
41
41
  ```
42
42
 
43
+ ## Authentication Hash
44
+
45
+ An example auth hash available in `request.env['omniauth.auth']`:
46
+ ```ruby
47
+ {
48
+ provider: 'coub',
49
+ uid: 1,
50
+ info: {
51
+ id: 1,
52
+ permalink: "janedoecoubs",
53
+ name: "Jane Doe",
54
+ sex: "female",
55
+ city: null,
56
+ current_channel: {
57
+ id: 1,
58
+ permalink: "janedoecoubs",
59
+ title: "Jane Doe",
60
+ i_follow_him: false,
61
+ followers_count: 1,
62
+ following_count: 23,
63
+ avatar_versions: {
64
+ template: "http:\/\/ell.akamai.coub.com\/get\/bucket:12.21\/p\/channel\/cw_avatar\/a6b57593e53\/f731a331b290a5d0c2b55\/%{version}_1406187797_540952659342151.jpg",
65
+ versions: [
66
+ "medium",
67
+ "medium_2x",
68
+ "profile_pic",
69
+ "profile_pic_2x",
70
+ "profile_pic_new",
71
+ "profile_pic_new_2x",
72
+ "tiny",
73
+ "tiny_2x",
74
+ "small",
75
+ "small_2x",
76
+ "ios_large",
77
+ "ios_small"
78
+ ]
79
+ }
80
+ },
81
+ created_at: "2014-10-07T18:17:28Z",
82
+ updated_at: "2015-01-14T15:35:17Z",
83
+ api_token: "b25e6d75165b13de5f539993f61ce240f6c1a622dd07edb69c6471824sd2c127de16b0a5b1d62c8a13770474965deb652afba7f46c7944565de57ff1353bec07"
84
+ },
85
+ credentials: {
86
+ token: "b0d236139bdcb89226f5c9545c60293514c16438a71fbea1649d2cc2cd081939",
87
+ expires_at: 1456396146,
88
+ expires: true
89
+ },
90
+ extra: {
91
+ raw_info: {
92
+ id: 1,
93
+ permalink: "janedoecoubs",
94
+ name: "Jane Doe",
95
+ sex: "female",
96
+ city: null,
97
+ current_channel: {
98
+ id: 1,
99
+ permalink: "janedoecoubs",
100
+ title: "Jane Doe",
101
+ i_follow_him: false,
102
+ followers_count: 1,
103
+ following_count: 23,
104
+ avatar_versions: {
105
+ template: "http:\/\/ell.akamai.coub.com\/get\/bucket:12.21\/p\/channel\/cw_avatar\/a6b57593e53\/f731a331b290a5d0c2b55\/%{version}_1406187797_540952659342151.jpg",
106
+ versions: [
107
+ "medium",
108
+ "medium_2x",
109
+ "profile_pic",
110
+ "profile_pic_2x",
111
+ "profile_pic_new",
112
+ "profile_pic_new_2x",
113
+ "tiny",
114
+ "tiny_2x",
115
+ "small",
116
+ "small_2x",
117
+ "ios_large",
118
+ "ios_small"
119
+ ]
120
+ }
121
+ }
122
+ }
123
+ }
124
+ }
125
+ ```
126
+
43
127
  ## Contributing
44
128
 
45
129
  1. Fork it
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Coub
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -25,6 +25,10 @@ module OmniAuth
25
25
 
26
26
  uid { raw_info['id'] }
27
27
 
28
+ info do
29
+ raw_info
30
+ end
31
+
28
32
  extra do
29
33
  {:raw_info => raw_info}
30
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-coub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kirill Gorin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-18 00:00:00.000000000 Z
11
+ date: 2015-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth