omniauth-active-passport 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +4 -0
  3. data/Gemfile.lock +44 -0
  4. data/README.md +70 -0
  5. data/Rakefile +12 -0
  6. data/coverage/.resultset.json +84 -0
  7. data/coverage/assets/0.5.3/app.js +88 -0
  8. data/coverage/assets/0.5.3/fancybox/blank.gif +0 -0
  9. data/coverage/assets/0.5.3/fancybox/fancy_close.png +0 -0
  10. data/coverage/assets/0.5.3/fancybox/fancy_loading.png +0 -0
  11. data/coverage/assets/0.5.3/fancybox/fancy_nav_left.png +0 -0
  12. data/coverage/assets/0.5.3/fancybox/fancy_nav_right.png +0 -0
  13. data/coverage/assets/0.5.3/fancybox/fancy_shadow_e.png +0 -0
  14. data/coverage/assets/0.5.3/fancybox/fancy_shadow_n.png +0 -0
  15. data/coverage/assets/0.5.3/fancybox/fancy_shadow_ne.png +0 -0
  16. data/coverage/assets/0.5.3/fancybox/fancy_shadow_nw.png +0 -0
  17. data/coverage/assets/0.5.3/fancybox/fancy_shadow_s.png +0 -0
  18. data/coverage/assets/0.5.3/fancybox/fancy_shadow_se.png +0 -0
  19. data/coverage/assets/0.5.3/fancybox/fancy_shadow_sw.png +0 -0
  20. data/coverage/assets/0.5.3/fancybox/fancy_shadow_w.png +0 -0
  21. data/coverage/assets/0.5.3/fancybox/fancy_title_left.png +0 -0
  22. data/coverage/assets/0.5.3/fancybox/fancy_title_main.png +0 -0
  23. data/coverage/assets/0.5.3/fancybox/fancy_title_over.png +0 -0
  24. data/coverage/assets/0.5.3/fancybox/fancy_title_right.png +0 -0
  25. data/coverage/assets/0.5.3/fancybox/fancybox-x.png +0 -0
  26. data/coverage/assets/0.5.3/fancybox/fancybox-y.png +0 -0
  27. data/coverage/assets/0.5.3/fancybox/fancybox.png +0 -0
  28. data/coverage/assets/0.5.3/fancybox/jquery.fancybox-1.3.1.css +363 -0
  29. data/coverage/assets/0.5.3/fancybox/jquery.fancybox-1.3.1.pack.js +44 -0
  30. data/coverage/assets/0.5.3/favicon_green.png +0 -0
  31. data/coverage/assets/0.5.3/favicon_red.png +0 -0
  32. data/coverage/assets/0.5.3/favicon_yellow.png +0 -0
  33. data/coverage/assets/0.5.3/highlight.css +129 -0
  34. data/coverage/assets/0.5.3/highlight.pack.js +1 -0
  35. data/coverage/assets/0.5.3/jquery-1.6.2.min.js +18 -0
  36. data/coverage/assets/0.5.3/jquery.dataTables.min.js +152 -0
  37. data/coverage/assets/0.5.3/jquery.timeago.js +141 -0
  38. data/coverage/assets/0.5.3/jquery.url.js +174 -0
  39. data/coverage/assets/0.5.3/loading.gif +0 -0
  40. data/coverage/assets/0.5.3/magnify.png +0 -0
  41. data/coverage/assets/0.5.3/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  42. data/coverage/assets/0.5.3/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  43. data/coverage/assets/0.5.3/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  44. data/coverage/assets/0.5.3/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  45. data/coverage/assets/0.5.3/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  46. data/coverage/assets/0.5.3/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  47. data/coverage/assets/0.5.3/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  48. data/coverage/assets/0.5.3/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  49. data/coverage/assets/0.5.3/smoothness/images/ui-icons_222222_256x240.png +0 -0
  50. data/coverage/assets/0.5.3/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  51. data/coverage/assets/0.5.3/smoothness/images/ui-icons_454545_256x240.png +0 -0
  52. data/coverage/assets/0.5.3/smoothness/images/ui-icons_888888_256x240.png +0 -0
  53. data/coverage/assets/0.5.3/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  54. data/coverage/assets/0.5.3/smoothness/jquery-ui-1.8.4.custom.css +295 -0
  55. data/coverage/assets/0.5.3/stylesheet.css +383 -0
  56. data/coverage/index.html +607 -0
  57. data/lib/oauth2_patch/client.rb +21 -0
  58. data/lib/omniauth-active_passport.rb +2 -0
  59. data/lib/omniauth-active_passport/version.rb +5 -0
  60. data/lib/omniauth/strategies/active_passport.rb +42 -0
  61. data/omniauth-active-passport.gemspec +21 -0
  62. data/spec/omniauth/strategies/active_passport_spec.rb +29 -0
  63. data/spec/spec_helper.rb +16 -0
  64. metadata +149 -0
@@ -0,0 +1,383 @@
1
+ /* -----------------------------------------------------------------------
2
+
3
+
4
+ Blueprint CSS Framework 0.9
5
+ http://blueprintcss.org
6
+
7
+ * Copyright (c) 2007-Present. See LICENSE for more info.
8
+ * See README for instructions on how to use Blueprint.
9
+ * For credits and origins, see AUTHORS.
10
+ * This is a compressed file. See the sources in the 'src' directory.
11
+
12
+ ----------------------------------------------------------------------- */
13
+
14
+ /* reset.css */
15
+ html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, dialog, figure, footer, header, hgroup, nav, section {margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;}
16
+ article, aside, dialog, figure, footer, header, hgroup, nav, section {display:block;}
17
+ body {line-height:1.5;}
18
+ table {border-collapse:separate;border-spacing:0;}
19
+ caption, th, td {text-align:left;font-weight:normal;}
20
+ table, td, th {vertical-align:middle;}
21
+ blockquote:before, blockquote:after, q:before, q:after {content:"";}
22
+ blockquote, q {quotes:"" "";}
23
+ a img {border:none;}
24
+
25
+ /* typography.css */
26
+ html {font-size:100.01%;}
27
+ body {font-size:82%;color:#222;background:#fff;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;}
28
+ h1, h2, h3, h4, h5, h6 {font-weight:normal;color:#111;}
29
+ h1 {font-size:3em;line-height:1;margin-bottom:0.5em;}
30
+ h2 {font-size:2em;margin-bottom:0.75em;}
31
+ h3 {font-size:1.5em;line-height:1;margin-bottom:1em;}
32
+ h4 {font-size:1.2em;line-height:1.25;margin-bottom:1.25em;}
33
+ h5 {font-size:1em;font-weight:bold;margin-bottom:1.5em;}
34
+ h6 {font-size:1em;font-weight:bold;}
35
+ h1 img, h2 img, h3 img, h4 img, h5 img, h6 img {margin:0;}
36
+ p {margin:0 0 1.5em;}
37
+ p img.left {float:left;margin:1.5em 1.5em 1.5em 0;padding:0;}
38
+ p img.right {float:right;margin:1.5em 0 1.5em 1.5em;}
39
+ a:focus, a:hover {color:#000;}
40
+ a {color:#009;text-decoration:underline;}
41
+ blockquote {margin:1.5em;color:#666;font-style:italic;}
42
+ strong {font-weight:bold;}
43
+ em, dfn {font-style:italic;}
44
+ dfn {font-weight:bold;}
45
+ sup, sub {line-height:0;}
46
+ abbr, acronym {border-bottom:1px dotted #666;}
47
+ address {margin:0 0 1.5em;font-style:italic;}
48
+ del {color:#666;}
49
+ pre {margin:1.5em 0;white-space:pre;}
50
+ pre, code, tt {font:1em 'andale mono', 'lucida console', monospace;line-height:1.5;}
51
+ li ul, li ol {margin:0;}
52
+ ul, ol {margin:0 1.5em 1.5em 0;padding-left:3.333em;}
53
+ ul {list-style-type:disc;}
54
+ ol {list-style-type:decimal;}
55
+ dl {margin:0 0 1.5em 0;}
56
+ dl dt {font-weight:bold;}
57
+ dd {margin-left:1.5em;}
58
+ table {margin-bottom:1.4em;width:100%;}
59
+ th {font-weight:bold;}
60
+ thead th {background:#c3d9ff;}
61
+ th, td, caption {padding:4px 10px 4px 5px;}
62
+ tr.even td {background:#efefef;}
63
+ tfoot {font-style:italic;}
64
+ caption {background:#eee;}
65
+ .small {font-size:.8em;margin-bottom:1.875em;line-height:1.875em;}
66
+ .large {font-size:1.2em;line-height:2.5em;margin-bottom:1.25em;}
67
+ .hide {display:none;}
68
+ .quiet {color:#666;}
69
+ .loud {color:#000;}
70
+ .highlight {background:#ff0;}
71
+ .added {background:#060;color:#fff;}
72
+ .removed {background:#900;color:#fff;}
73
+ .first {margin-left:0;padding-left:0;}
74
+ .last {margin-right:0;padding-right:0;}
75
+ .top {margin-top:0;padding-top:0;}
76
+ .bottom {margin-bottom:0;padding-bottom:0;}
77
+
78
+ /* forms.css */
79
+ label {font-weight:bold;}
80
+ fieldset {padding:1.4em;margin:0 0 1.5em 0;border:1px solid #ccc;}
81
+ legend {font-weight:bold;font-size:1.2em;}
82
+ input[type=text], input[type=password], input.text, input.title, textarea, select {background-color:#fff;border:1px solid #bbb;}
83
+ input[type=text]:focus, input[type=password]:focus, input.text:focus, input.title:focus, textarea:focus, select:focus {border-color:#666;}
84
+ input[type=text], input[type=password], input.text, input.title, textarea, select {margin:0.5em 0;}
85
+ input.text, input.title {width:300px;padding:5px;}
86
+ input.title {font-size:1.5em;}
87
+ textarea {width:390px;height:250px;padding:5px;}
88
+ input[type=checkbox], input[type=radio], input.checkbox, input.radio {position:relative;top:.25em;}
89
+ form.inline {line-height:3;}
90
+ form.inline p {margin-bottom:0;}
91
+ .error, .notice, .success {padding:.8em;margin-bottom:1em;border:2px solid #ddd;}
92
+ .error {background:#FBE3E4;color:#8a1f11;border-color:#FBC2C4;}
93
+ .notice {background:#FFF6BF;color:#514721;border-color:#FFD324;}
94
+ .success {background:#E6EFC2;color:#264409;border-color:#C6D880;}
95
+ .error a {color:#8a1f11;}
96
+ .notice a {color:#514721;}
97
+ .success a {color:#264409;}
98
+ .box {padding:1.5em;margin-bottom:1.5em;background:#E5ECF9;}
99
+ hr {background:#ddd;color:#ddd;clear:both;float:none;width:100%;height:.1em;margin:0 0 1.45em;border:none;}
100
+ hr.space {background:#fff;color:#fff;visibility:hidden;}
101
+ .clearfix:after, .container:after {content:"\0020";display:block;height:0;clear:both;visibility:hidden;overflow:hidden;}
102
+ .clearfix, .container {display:block;}
103
+ .clear {clear:both;}
104
+
105
+ #loading {
106
+ position: fixed;
107
+ left: 40%;
108
+ top: 50%;
109
+ }
110
+
111
+ a {
112
+ color: #333;
113
+ text-decoration: none;
114
+ }
115
+
116
+ a:hover {
117
+ color: #000;
118
+ text-decoration: underline;
119
+ }
120
+
121
+ body {
122
+ font-family: "Lucida Grande", Helvetica, "Helvetica Neue", Arial, sans-serif;
123
+ padding: 12px;
124
+ background-color: #333;
125
+ }
126
+
127
+ h1, h2, h3, h4 {
128
+ color: #1C2324;
129
+ margin: 0;
130
+ padding: 0;
131
+ margin-bottom: 12px;
132
+ }
133
+
134
+ table {
135
+ width: 100%;
136
+ }
137
+
138
+ #content {
139
+ clear: left;
140
+ background-color: white;
141
+ border: 2px solid #ddd;
142
+ border-top: 8px solid #ddd;
143
+ padding: 18px;
144
+ -webkit-border-bottom-left-radius: 5px;
145
+ -webkit-border-bottom-right-radius: 5px;
146
+ -webkit-border-top-right-radius: 5px;
147
+ -moz-border-radius-bottomleft: 5px;
148
+ -moz-border-radius-bottomright: 5px;
149
+ -moz-border-radius-topright: 5px;
150
+ border-bottom-left-radius: 5px;
151
+ border-bottom-right-radius: 5px;
152
+ border-top-right-radius: 5px;
153
+ }
154
+
155
+ .dataTables_filter, .dataTables_info {
156
+ padding: 2px 6px;
157
+ }
158
+
159
+ abbr.timeago {
160
+ text-decoration: none;
161
+ border: none;
162
+ font-weight: bold;
163
+ }
164
+
165
+ .timestamp {
166
+ float: right;
167
+ color: #ddd;
168
+ }
169
+
170
+ .group_tabs {
171
+ list-style: none;
172
+ float: left;
173
+ margin: 0;
174
+ padding: 0;
175
+ }
176
+ .group_tabs li {
177
+ display: inline;
178
+ float: left;
179
+ }
180
+
181
+ .group_tabs li a {
182
+ font-family: Helvetica, Arial, sans-serif;
183
+ display: block;
184
+ float: left;
185
+ text-decoration: none;
186
+ padding: 4px 8px;
187
+ background-color: #aaa;
188
+ background: -webkit-gradient(linear, 0 0, 0 bottom, from(#DDD), to(#aaa));
189
+ background: -moz-linear-gradient(#DDD, #aaa);
190
+ background: linear-gradient(#DDD, #aaa);
191
+ text-shadow: #e5e5e5 1px 1px 0px;
192
+ border-bottom: none;
193
+ color: #333;
194
+ font-weight: bold;
195
+ margin-right: 8px;
196
+ border-top: 1px solid #efefef;
197
+ -webkit-border-top-left-radius: 2px;
198
+ -webkit-border-top-right-radius: 2px;
199
+ -moz-border-radius-topleft: 2px;
200
+ -moz-border-radius-topright: 2px;
201
+ border-top-left-radius: 2px;
202
+ border-top-right-radius: 2px;
203
+ }
204
+
205
+ .group_tabs li a:hover {
206
+ background-color: #ccc;
207
+ background: -webkit-gradient(linear, 0 0, 0 bottom, from(#eee), to(#aaa));
208
+ background: -moz-linear-gradient(#eee, #aaa);
209
+ background: linear-gradient(#eee, #aaa);
210
+ }
211
+
212
+ .group_tabs li a:active {
213
+ padding-top: 5px;
214
+ padding-bottom: 3px;
215
+ }
216
+
217
+ .group_tabs li.active a {
218
+ color: black;
219
+ text-shadow: #fff 1px 1px 0px;
220
+ background-color: #ddd;
221
+ background: -webkit-gradient(linear, 0 0, 0 bottom, from(#fff), to(#ddd));
222
+ background: -moz-linear-gradient(#fff, #ddd);
223
+ background: linear-gradient(#fff, #ddd);
224
+ }
225
+
226
+ .file_list {
227
+ margin-bottom: 18px;
228
+ }
229
+
230
+ a.src_link {
231
+ background: url('./magnify.png') no-repeat left 50%;
232
+ padding-left: 18px;
233
+ }
234
+
235
+ tr, td {
236
+ margin: 0;
237
+ padding: 0;
238
+ }
239
+
240
+ th {
241
+ white-space: nowrap;
242
+ }
243
+
244
+ th.ui-state-default {
245
+ cursor: pointer;
246
+ }
247
+
248
+ th span.ui-icon {
249
+ float: left;
250
+ }
251
+
252
+ td {
253
+ padding: 4px 8px;
254
+ }
255
+
256
+ td.strong {
257
+ font-weight: bold;
258
+ }
259
+
260
+ .source_table h3, .source_table h4 {
261
+ padding: 0;
262
+ margin: 0;
263
+ margin-bottom: 4px;
264
+ }
265
+
266
+ .source_table .header {
267
+ padding: 10px;
268
+ }
269
+
270
+ .source_table pre {
271
+ margin: 0;
272
+ padding: 0;
273
+ white-space: normal;
274
+ }
275
+
276
+ .source_table pre, .source_table code {
277
+ color: #000;
278
+ font-family: "Monaco", "Inconsolata", "Consolas", monospace;
279
+ }
280
+
281
+ .source_table pre {
282
+ background-color: #333;
283
+ }
284
+
285
+ .source_table pre ol {
286
+ margin: 0px;
287
+ padding: 0px;
288
+ margin-left: 45px;
289
+ font-size: 12px;
290
+ color: white;
291
+ }
292
+
293
+ .source_table pre li {
294
+ margin: 0px;
295
+ padding: 2px 6px;
296
+ border-left: 5px solid white;
297
+ }
298
+
299
+ .source_table pre li code {
300
+ white-space: pre;
301
+ white-space: pre-wrap;
302
+ }
303
+
304
+ .source_table pre .hits {
305
+ float: right;
306
+ margin-left: 10px;
307
+ padding: 2px 4px;
308
+
309
+ background-color: #444;
310
+ background: -webkit-gradient(linear, 0 0, 0 bottom, from(#222), to(#666));
311
+ background: -moz-linear-gradient(#222, #666);
312
+ background: linear-gradient(#222, #666);
313
+
314
+ color: white;
315
+ font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
316
+ font-size: 10px;
317
+ font-weight: bold;
318
+ text-align: center;
319
+ border-radius: 6px;
320
+ }
321
+
322
+ #footer {
323
+ color: #ddd;
324
+ font-size: 12px;
325
+ font-weight: bold;
326
+ margin-top: 12px;
327
+ text-align: right;
328
+ }
329
+ #footer a {
330
+ color: #eee;
331
+ text-decoration: underline;
332
+ }
333
+ #footer a:hover {
334
+ color: #fff;
335
+ text-decoration: none;
336
+ }
337
+
338
+ .green {
339
+ color: #090;
340
+ }
341
+ .red {
342
+ color: #900;
343
+ }
344
+ .yellow {
345
+ color: #da0;
346
+ }
347
+ .source_table .covered {
348
+ border-color: #090;
349
+ }
350
+ .source_table .missed {
351
+ border-color: #900;
352
+ }
353
+ .source_table .never {
354
+ border-color: black;
355
+ }
356
+ .source_table .skipped {
357
+ border-color: #fc0;
358
+ }
359
+
360
+ .source_table .covered:nth-child(odd) {
361
+ background-color: #CDF2CD;
362
+ }
363
+ .source_table .covered:nth-child(even) {
364
+ background-color: #DBF2DB;
365
+ }
366
+ .source_table .missed:nth-child(odd) {
367
+ background-color: #F7C0C0;
368
+ }
369
+ .source_table .missed:nth-child(even) {
370
+ background-color: #F7CFCF;
371
+ }
372
+ .source_table .never:nth-child(odd) {
373
+ background-color: #efefef;
374
+ }
375
+ .source_table .never:nth-child(even) {
376
+ background-color: #f4f4f4;
377
+ }
378
+ .source_table .skipped:nth-child(odd) {
379
+ background-color: #FBF0C0;
380
+ }
381
+ .source_table .skipped:nth-child(even) {
382
+ background-color: #FBFfCf;
383
+ }
@@ -0,0 +1,607 @@
1
+ <!DOCTYPE html>
2
+ <html xmlns='http://www.w3.org/1999/xhtml'>
3
+ <head>
4
+ <title>Code coverage for Active-oauth</title>
5
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
6
+ <script src='./assets/0.5.3/jquery-1.6.2.min.js' type='text/javascript'></script>
7
+ <script src='./assets/0.5.3/jquery.dataTables.min.js' type='text/javascript'></script>
8
+ <script src='./assets/0.5.3/fancybox/jquery.fancybox-1.3.1.pack.js' type='text/javascript'></script>
9
+ <script src='./assets/0.5.3/jquery.timeago.js' type='text/javascript'></script>
10
+ <script src='./assets/0.5.3/jquery.url.js' type='text/javascript'></script>
11
+ <script src='./assets/0.5.3/highlight.pack.js' type='text/javascript'></script>
12
+ <script src='./assets/0.5.3/app.js' type='text/javascript'></script>
13
+ <link href='./assets/0.5.3/stylesheet.css' media='screen, projection, print' rel='stylesheet' type='text/css'>
14
+ <link href='./assets/0.5.3/highlight.css' media='screen, projection, print' rel='stylesheet' type='text/css'>
15
+ <link href='./assets/0.5.3/fancybox/jquery.fancybox-1.3.1.css' media='screen, projection, print' rel='stylesheet' type='text/css'>
16
+ <link href='./assets/0.5.3/smoothness/jquery-ui-1.8.4.custom.css' media='screen, projection, print' rel='stylesheet' type='text/css'>
17
+ <link rel="shortcut icon" type="image/png" href="./assets/0.5.3/favicon_red.png" />
18
+ <link rel="icon" type="image/png" href="./assets/0.5.3/favicon.png" />
19
+ </head>
20
+
21
+ <body>
22
+ <div id="loading">
23
+ <img src="./assets/0.5.3/loading.gif" alt="loading"/>
24
+ </div>
25
+ <div id="wrapper" style="display:none;">
26
+ <div class="timestamp">Generated <abbr class="timeago" title="2011-12-08T14:12:15-08:00">2011-12-08T14:12:15-08:00</abbr></div>
27
+ <ul class="group_tabs"></ul>
28
+
29
+ <div id="content">
30
+ <div class="file_list_container" id="AllFiles">
31
+ <h2>
32
+ <span class="group_name">All Files</span>
33
+ (<span class="covered_percent"><span class="red">64.52%</span></span>
34
+ covered at
35
+ <span class="covered_strength">
36
+ <span class="red">
37
+ 0.77
38
+ </span>
39
+ </span> hits/line)
40
+ </h2>
41
+ <a name="AllFiles"></a>
42
+ <div>
43
+ <b>4</b> files in total.
44
+ <b>31</b> relevant lines.
45
+ <span class="green"><b>20</b> lines covered</span> and
46
+ <span class="red"><b>11</b> lines missed </span>
47
+ </div>
48
+ <table class="file_list">
49
+ <thead>
50
+ <tr>
51
+ <th>File</th>
52
+ <th>% covered</th>
53
+ <th>Lines</th>
54
+ <th>Relevant Lines</th>
55
+ <th>Lines covered</th>
56
+ <th>Lines missed</th>
57
+ <th>Avg. Hits / Line</th>
58
+ </tr>
59
+ </thead>
60
+ <tbody>
61
+
62
+ <tr>
63
+ <td class="strong"><a href="#bc3b9aa4cff17be3db882bac8b9e134159a6422b" class="src_link" title="lib/oauth2_patch/client.rb">lib/oauth2_patch/client.rb</a></td>
64
+ <td class="red strong">27.27 %</td>
65
+ <td>20</td>
66
+ <td>11</td>
67
+ <td>3</td>
68
+ <td>8</td>
69
+ <td>0.3</td>
70
+ </tr>
71
+
72
+ <tr>
73
+ <td class="strong"><a href="#3721d59604be4c01576be1eb336936072e2e61d1" class="src_link" title="lib/omniauth-active_passport.rb">lib/omniauth-active_passport.rb</a></td>
74
+ <td class="green strong">100.0 %</td>
75
+ <td>2</td>
76
+ <td>2</td>
77
+ <td>2</td>
78
+ <td>0</td>
79
+ <td>1.0</td>
80
+ </tr>
81
+
82
+ <tr>
83
+ <td class="strong"><a href="#f8a805bc8c6512eb395b288eee3c846b8328e4ee" class="src_link" title="lib/omniauth-active_passport/version.rb">lib/omniauth-active_passport/version.rb</a></td>
84
+ <td class="green strong">100.0 %</td>
85
+ <td>5</td>
86
+ <td>3</td>
87
+ <td>3</td>
88
+ <td>0</td>
89
+ <td>1.0</td>
90
+ </tr>
91
+
92
+ <tr>
93
+ <td class="strong"><a href="#248e3bcc359e2773bab07378b67b63dc88bab0f1" class="src_link" title="lib/omniauth/strategies/active_passport.rb">lib/omniauth/strategies/active_passport.rb</a></td>
94
+ <td class="red strong">80.0 %</td>
95
+ <td>42</td>
96
+ <td>15</td>
97
+ <td>12</td>
98
+ <td>3</td>
99
+ <td>0.8</td>
100
+ </tr>
101
+
102
+ </tbody>
103
+ </table>
104
+ </div>
105
+
106
+
107
+
108
+ </div>
109
+
110
+ <div id="footer">
111
+ Generated by <a href="http://github.com/colszowka/simplecov">simplecov</a> v0.5.4
112
+ and simplecov-html v0.5.3<br/>
113
+ using RSpec
114
+ </div>
115
+
116
+ <div class="source_files">
117
+
118
+ <div class="source_table" id="bc3b9aa4cff17be3db882bac8b9e134159a6422b">
119
+ <div class="header">
120
+ <h3>lib/oauth2_patch/client.rb</h3>
121
+ <h4><span class="red">27.27 %</span> covered</h4>
122
+ <div>
123
+ <b>11</b> relevant lines.
124
+ <span class="green"><b>3</b> lines covered</span> and
125
+ <span class="red"><b>8</b> lines missed.</span>
126
+ </div>
127
+ </div>
128
+
129
+ <pre>
130
+ <ol>
131
+
132
+ <li class="never" data-hits="" data-linenumber="1">
133
+
134
+
135
+ <code class="ruby"># Monkeypatching to work with how Active Passport names the access token on a successful response</code>
136
+ </li>
137
+
138
+ <li class="never" data-hits="" data-linenumber="2">
139
+
140
+
141
+ <code class="ruby"></code>
142
+ </li>
143
+
144
+ <li class="covered" data-hits="1" data-linenumber="3">
145
+ <span class="hits">1</span>
146
+
147
+ <code class="ruby">module OAuth2</code>
148
+ </li>
149
+
150
+ <li class="never" data-hits="" data-linenumber="4">
151
+
152
+
153
+ <code class="ruby"> # The OAuth2::Client class</code>
154
+ </li>
155
+
156
+ <li class="covered" data-hits="1" data-linenumber="5">
157
+ <span class="hits">1</span>
158
+
159
+ <code class="ruby"> class Client</code>
160
+ </li>
161
+
162
+ <li class="never" data-hits="" data-linenumber="6">
163
+
164
+
165
+ <code class="ruby"> # Initializes an AccessToken by making a request to the token endpoint</code>
166
+ </li>
167
+
168
+ <li class="covered" data-hits="1" data-linenumber="7">
169
+ <span class="hits">1</span>
170
+
171
+ <code class="ruby"> def get_token(params, access_token_opts={})</code>
172
+ </li>
173
+
174
+ <li class="missed" data-hits="0" data-linenumber="8">
175
+
176
+
177
+ <code class="ruby"> opts = {:raise_errors =&gt; true, :parse =&gt; params.delete(:parse)}</code>
178
+ </li>
179
+
180
+ <li class="missed" data-hits="0" data-linenumber="9">
181
+
182
+
183
+ <code class="ruby"> if options[:token_method] == :post</code>
184
+ </li>
185
+
186
+ <li class="missed" data-hits="0" data-linenumber="10">
187
+
188
+
189
+ <code class="ruby"> opts[:body] = params</code>
190
+ </li>
191
+
192
+ <li class="missed" data-hits="0" data-linenumber="11">
193
+
194
+
195
+ <code class="ruby"> opts[:headers] = {'Content-Type' =&gt; 'application/x-www-form-urlencoded'}</code>
196
+ </li>
197
+
198
+ <li class="never" data-hits="" data-linenumber="12">
199
+
200
+
201
+ <code class="ruby"> else</code>
202
+ </li>
203
+
204
+ <li class="missed" data-hits="0" data-linenumber="13">
205
+
206
+
207
+ <code class="ruby"> opts[:params] = params</code>
208
+ </li>
209
+
210
+ <li class="never" data-hits="" data-linenumber="14">
211
+
212
+
213
+ <code class="ruby"> end</code>
214
+ </li>
215
+
216
+ <li class="missed" data-hits="0" data-linenumber="15">
217
+
218
+
219
+ <code class="ruby"> response = request(options[:token_method], token_url, opts)</code>
220
+ </li>
221
+
222
+ <li class="missed" data-hits="0" data-linenumber="16">
223
+
224
+
225
+ <code class="ruby"> raise Error.new(response) unless response.parsed.is_a?(Hash) &amp;&amp; (response.parsed['access_token'] || response.parsed['accessToken'])</code>
226
+ </li>
227
+
228
+ <li class="missed" data-hits="0" data-linenumber="17">
229
+
230
+
231
+ <code class="ruby"> AccessToken.from_hash(self, response.parsed.merge(access_token_opts))</code>
232
+ </li>
233
+
234
+ <li class="never" data-hits="" data-linenumber="18">
235
+
236
+
237
+ <code class="ruby"> end</code>
238
+ </li>
239
+
240
+ <li class="never" data-hits="" data-linenumber="19">
241
+
242
+
243
+ <code class="ruby"> end</code>
244
+ </li>
245
+
246
+ <li class="never" data-hits="" data-linenumber="20">
247
+
248
+
249
+ <code class="ruby">end</code>
250
+ </li>
251
+
252
+ </ol>
253
+ </pre>
254
+ </div>
255
+
256
+ <div class="source_table" id="3721d59604be4c01576be1eb336936072e2e61d1">
257
+ <div class="header">
258
+ <h3>lib/omniauth-active_passport.rb</h3>
259
+ <h4><span class="green">100.0 %</span> covered</h4>
260
+ <div>
261
+ <b>2</b> relevant lines.
262
+ <span class="green"><b>2</b> lines covered</span> and
263
+ <span class="red"><b>0</b> lines missed.</span>
264
+ </div>
265
+ </div>
266
+
267
+ <pre>
268
+ <ol>
269
+
270
+ <li class="covered" data-hits="1" data-linenumber="1">
271
+ <span class="hits">1</span>
272
+
273
+ <code class="ruby">require &quot;omniauth-active_passport/version&quot;</code>
274
+ </li>
275
+
276
+ <li class="covered" data-hits="1" data-linenumber="2">
277
+ <span class="hits">1</span>
278
+
279
+ <code class="ruby">require 'omniauth/strategies/active_passport'</code>
280
+ </li>
281
+
282
+ </ol>
283
+ </pre>
284
+ </div>
285
+
286
+ <div class="source_table" id="f8a805bc8c6512eb395b288eee3c846b8328e4ee">
287
+ <div class="header">
288
+ <h3>lib/omniauth-active_passport/version.rb</h3>
289
+ <h4><span class="green">100.0 %</span> covered</h4>
290
+ <div>
291
+ <b>3</b> relevant lines.
292
+ <span class="green"><b>3</b> lines covered</span> and
293
+ <span class="red"><b>0</b> lines missed.</span>
294
+ </div>
295
+ </div>
296
+
297
+ <pre>
298
+ <ol>
299
+
300
+ <li class="covered" data-hits="1" data-linenumber="1">
301
+ <span class="hits">1</span>
302
+
303
+ <code class="ruby">module Omniauth</code>
304
+ </li>
305
+
306
+ <li class="covered" data-hits="1" data-linenumber="2">
307
+ <span class="hits">1</span>
308
+
309
+ <code class="ruby"> module ActivePassport</code>
310
+ </li>
311
+
312
+ <li class="covered" data-hits="1" data-linenumber="3">
313
+ <span class="hits">1</span>
314
+
315
+ <code class="ruby"> VERSION = &quot;0.0.1&quot;</code>
316
+ </li>
317
+
318
+ <li class="never" data-hits="" data-linenumber="4">
319
+
320
+
321
+ <code class="ruby"> end</code>
322
+ </li>
323
+
324
+ <li class="never" data-hits="" data-linenumber="5">
325
+
326
+
327
+ <code class="ruby">end</code>
328
+ </li>
329
+
330
+ </ol>
331
+ </pre>
332
+ </div>
333
+
334
+ <div class="source_table" id="248e3bcc359e2773bab07378b67b63dc88bab0f1">
335
+ <div class="header">
336
+ <h3>lib/omniauth/strategies/active_passport.rb</h3>
337
+ <h4><span class="red">80.0 %</span> covered</h4>
338
+ <div>
339
+ <b>15</b> relevant lines.
340
+ <span class="green"><b>12</b> lines covered</span> and
341
+ <span class="red"><b>3</b> lines missed.</span>
342
+ </div>
343
+ </div>
344
+
345
+ <pre>
346
+ <ol>
347
+
348
+ <li class="covered" data-hits="1" data-linenumber="1">
349
+ <span class="hits">1</span>
350
+
351
+ <code class="ruby">require 'omniauth-oauth2'</code>
352
+ </li>
353
+
354
+ <li class="covered" data-hits="1" data-linenumber="2">
355
+ <span class="hits">1</span>
356
+
357
+ <code class="ruby">require 'oauth2_patch/client'</code>
358
+ </li>
359
+
360
+ <li class="never" data-hits="" data-linenumber="3">
361
+
362
+
363
+ <code class="ruby"></code>
364
+ </li>
365
+
366
+ <li class="covered" data-hits="1" data-linenumber="4">
367
+ <span class="hits">1</span>
368
+
369
+ <code class="ruby">module OmniAuth</code>
370
+ </li>
371
+
372
+ <li class="covered" data-hits="1" data-linenumber="5">
373
+ <span class="hits">1</span>
374
+
375
+ <code class="ruby"> module Strategies</code>
376
+ </li>
377
+
378
+ <li class="covered" data-hits="1" data-linenumber="6">
379
+ <span class="hits">1</span>
380
+
381
+ <code class="ruby"> class ActivePassport &lt; OmniAuth::Strategies::OAuth2</code>
382
+ </li>
383
+
384
+ <li class="never" data-hits="" data-linenumber="7">
385
+
386
+
387
+ <code class="ruby"> # Give your strategy a name.</code>
388
+ </li>
389
+
390
+ <li class="covered" data-hits="1" data-linenumber="8">
391
+ <span class="hits">1</span>
392
+
393
+ <code class="ruby"> option :name, &quot;active_passport&quot;</code>
394
+ </li>
395
+
396
+ <li class="never" data-hits="" data-linenumber="9">
397
+
398
+
399
+ <code class="ruby"> </code>
400
+ </li>
401
+
402
+ <li class="never" data-hits="" data-linenumber="10">
403
+
404
+
405
+ <code class="ruby"> # This is where you pass the options you would pass when</code>
406
+ </li>
407
+
408
+ <li class="never" data-hits="" data-linenumber="11">
409
+
410
+
411
+ <code class="ruby"> # initializing your consumer from the OAuth gem.</code>
412
+ </li>
413
+
414
+ <li class="covered" data-hits="1" data-linenumber="12">
415
+ <span class="hits">1</span>
416
+
417
+ <code class="ruby"> option :client_options, {</code>
418
+ </li>
419
+
420
+ <li class="never" data-hits="" data-linenumber="13">
421
+
422
+
423
+ <code class="ruby"> :site =&gt; 'https://passport.active.com',</code>
424
+ </li>
425
+
426
+ <li class="never" data-hits="" data-linenumber="14">
427
+
428
+
429
+ <code class="ruby"> :authorize_url =&gt; '/oauth2/authorize',</code>
430
+ </li>
431
+
432
+ <li class="never" data-hits="" data-linenumber="15">
433
+
434
+
435
+ <code class="ruby"> :token_url =&gt; '/oauth2/token'</code>
436
+ </li>
437
+
438
+ <li class="never" data-hits="" data-linenumber="16">
439
+
440
+
441
+ <code class="ruby"> }</code>
442
+ </li>
443
+
444
+ <li class="never" data-hits="" data-linenumber="17">
445
+
446
+
447
+ <code class="ruby"> </code>
448
+ </li>
449
+
450
+ <li class="covered" data-hits="1" data-linenumber="18">
451
+ <span class="hits">1</span>
452
+
453
+ <code class="ruby"> option :token_params, { :parse =&gt; :json }</code>
454
+ </li>
455
+
456
+ <li class="never" data-hits="" data-linenumber="19">
457
+
458
+
459
+ <code class="ruby"> </code>
460
+ </li>
461
+
462
+ <li class="covered" data-hits="1" data-linenumber="20">
463
+ <span class="hits">1</span>
464
+
465
+ <code class="ruby"> uid { access_token.params['activeEnterprisePersonId'] }</code>
466
+ </li>
467
+
468
+ <li class="never" data-hits="" data-linenumber="21">
469
+
470
+
471
+ <code class="ruby"> </code>
472
+ </li>
473
+
474
+ <li class="covered" data-hits="1" data-linenumber="22">
475
+ <span class="hits">1</span>
476
+
477
+ <code class="ruby"> info do</code>
478
+ </li>
479
+
480
+ <li class="never" data-hits="" data-linenumber="23">
481
+
482
+
483
+ <code class="ruby"> {</code>
484
+ </li>
485
+
486
+ <li class="never" data-hits="" data-linenumber="24">
487
+
488
+
489
+ <code class="ruby"> :email =&gt; access_token.params['userName'],</code>
490
+ </li>
491
+
492
+ <li class="never" data-hits="" data-linenumber="25">
493
+
494
+
495
+ <code class="ruby"> :expires_at =&gt; access_token.params['expireDateTime']</code>
496
+ </li>
497
+
498
+ <li class="missed" data-hits="0" data-linenumber="26">
499
+
500
+
501
+ <code class="ruby"> }</code>
502
+ </li>
503
+
504
+ <li class="never" data-hits="" data-linenumber="27">
505
+
506
+
507
+ <code class="ruby"> end</code>
508
+ </li>
509
+
510
+ <li class="never" data-hits="" data-linenumber="28">
511
+
512
+
513
+ <code class="ruby"> </code>
514
+ </li>
515
+
516
+ <li class="covered" data-hits="1" data-linenumber="29">
517
+ <span class="hits">1</span>
518
+
519
+ <code class="ruby"> credentials do</code>
520
+ </li>
521
+
522
+ <li class="never" data-hits="" data-linenumber="30">
523
+
524
+
525
+ <code class="ruby"> {</code>
526
+ </li>
527
+
528
+ <li class="never" data-hits="" data-linenumber="31">
529
+
530
+
531
+ <code class="ruby"> :token =&gt; access_token.params['accessToken']</code>
532
+ </li>
533
+
534
+ <li class="missed" data-hits="0" data-linenumber="32">
535
+
536
+
537
+ <code class="ruby"> }</code>
538
+ </li>
539
+
540
+ <li class="never" data-hits="" data-linenumber="33">
541
+
542
+
543
+ <code class="ruby"> end</code>
544
+ </li>
545
+
546
+ <li class="never" data-hits="" data-linenumber="34">
547
+
548
+
549
+ <code class="ruby"> </code>
550
+ </li>
551
+
552
+ <li class="covered" data-hits="1" data-linenumber="35">
553
+ <span class="hits">1</span>
554
+
555
+ <code class="ruby"> extra do</code>
556
+ </li>
557
+
558
+ <li class="never" data-hits="" data-linenumber="36">
559
+
560
+
561
+ <code class="ruby"> { </code>
562
+ </li>
563
+
564
+ <li class="never" data-hits="" data-linenumber="37">
565
+
566
+
567
+ <code class="ruby"> :access_token =&gt; access_token</code>
568
+ </li>
569
+
570
+ <li class="missed" data-hits="0" data-linenumber="38">
571
+
572
+
573
+ <code class="ruby"> }</code>
574
+ </li>
575
+
576
+ <li class="never" data-hits="" data-linenumber="39">
577
+
578
+
579
+ <code class="ruby"> end</code>
580
+ </li>
581
+
582
+ <li class="never" data-hits="" data-linenumber="40">
583
+
584
+
585
+ <code class="ruby"> end</code>
586
+ </li>
587
+
588
+ <li class="never" data-hits="" data-linenumber="41">
589
+
590
+
591
+ <code class="ruby"> end</code>
592
+ </li>
593
+
594
+ <li class="never" data-hits="" data-linenumber="42">
595
+
596
+
597
+ <code class="ruby">end</code>
598
+ </li>
599
+
600
+ </ol>
601
+ </pre>
602
+ </div>
603
+
604
+ </div>
605
+ </div>
606
+ </body>
607
+ </html>