doorkeeper 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of doorkeeper might be problematic. Click here for more details.

Files changed (35) hide show
  1. data/README.md +42 -14
  2. data/Rakefile +1 -1
  3. data/app/assets/stylesheets/doorkeeper/application.css +4 -0
  4. data/app/controllers/doorkeeper/application_controller.rb +2 -2
  5. data/app/controllers/doorkeeper/application_controller.rbc +32 -20
  6. data/app/controllers/doorkeeper/authorizations_controller.rbc +86 -22
  7. data/app/controllers/doorkeeper/authorized_applications_controller.rb +13 -0
  8. data/app/controllers/doorkeeper/authorized_applications_controller.rbc +393 -0
  9. data/app/controllers/doorkeeper/tokens_controller.rb +4 -0
  10. data/app/models/access_grant.rb +8 -0
  11. data/app/models/access_grant.rbc +204 -39
  12. data/app/models/access_token.rb +31 -3
  13. data/app/models/access_token.rbc +270 -72
  14. data/app/models/application.rb +8 -1
  15. data/app/models/application.rbc +307 -61
  16. data/app/views/doorkeeper/authorizations/new.html.erb +17 -0
  17. data/app/views/doorkeeper/authorized_applications/index.html.erb +26 -0
  18. data/config/routes.rb +1 -0
  19. data/config/routes.rbc +48 -4
  20. data/lib/doorkeeper/config.rb +82 -22
  21. data/lib/doorkeeper/config.rbc +739 -295
  22. data/lib/doorkeeper/config/scope.rb +11 -0
  23. data/lib/doorkeeper/config/scopes.rb +57 -0
  24. data/lib/doorkeeper/config/scopes_builder.rb +18 -0
  25. data/lib/doorkeeper/doorkeeper_for.rb +96 -16
  26. data/lib/doorkeeper/oauth/access_token_request.rb +57 -18
  27. data/lib/doorkeeper/oauth/access_token_request.rbc +256 -67
  28. data/lib/doorkeeper/oauth/authorization_request.rb +31 -4
  29. data/lib/doorkeeper/oauth/authorization_request.rbc +230 -65
  30. data/lib/doorkeeper/version.rb +1 -1
  31. data/lib/doorkeeper/version.rbc +1 -1
  32. data/lib/generators/doorkeeper/templates/README +3 -0
  33. data/lib/generators/doorkeeper/templates/initializer.rb +13 -0
  34. data/lib/generators/doorkeeper/templates/migration.rb +4 -1
  35. metadata +35 -18
@@ -2,12 +2,27 @@
2
2
  <h2>Authorize <%= @authorization.client.name %> to use your account?</h2>
3
3
  </div>
4
4
 
5
+
6
+
5
7
  <div class="span16">
8
+ <% if @authorization.scopes %>
9
+ <p>
10
+ This application will be able to:
11
+ </p>
12
+ <ul>
13
+ <% @authorization.scopes.each do |scope| %>
14
+ <li><%= scope.description %></li>
15
+ <% end %>
16
+ </ul>
17
+ <% end %>
18
+
6
19
  <div class="inline_block">
7
20
  <%= form_tag authorization_path do %>
8
21
  <%= hidden_field_tag :client_id, @authorization.client_id %>
9
22
  <%= hidden_field_tag :redirect_uri, @authorization.redirect_uri %>
23
+ <%= hidden_field_tag :state, @authorization.state %>
10
24
  <%= hidden_field_tag :response_type, @authorization.response_type %>
25
+ <%= hidden_field_tag :scope, @authorization.scope %>
11
26
  <%= submit_tag "Authorize", :class => "btn success" %> or
12
27
  <% end %>
13
28
  </div>
@@ -15,7 +30,9 @@
15
30
  <%= form_tag authorization_path, :method => :delete do %>
16
31
  <%= hidden_field_tag :client_id, @authorization.client_id %>
17
32
  <%= hidden_field_tag :redirect_uri, @authorization.redirect_uri %>
33
+ <%= hidden_field_tag :state, @authorization.state %>
18
34
  <%= hidden_field_tag :response_type, @authorization.response_type %>
35
+ <%= hidden_field_tag :scope, @authorization.scope %>
19
36
  <%= button_tag "Deny", :class => "btn" %>
20
37
  <% end %>
21
38
  </div>
@@ -0,0 +1,26 @@
1
+ <div class="span16">
2
+ <header class="page-header">
3
+ <h2>Your authorized applications</h2>
4
+ </header>
5
+
6
+ <table class="zebra-striped">
7
+ <thead>
8
+ <tr>
9
+ <th>Application</th>
10
+ <th>Authorized at</th>
11
+ <th></th>
12
+ <th></th>
13
+ </tr>
14
+ </thead>
15
+ <tbody>
16
+ <% @applications.each do |application| %>
17
+ <tr>
18
+ <td><%= link_to application.name, application %></td>
19
+ <td><%= application.created_at %></td>
20
+ <td><%= link_to 'Revoke', authorized_application_path(application), :confirm => 'Are you sure?', :method => :delete, :class => 'btn danger' %></td>
21
+ </tr>
22
+ <% end %>
23
+ </tbody>
24
+ </table>
25
+
26
+ </div>
data/config/routes.rb CHANGED
@@ -5,4 +5,5 @@ Doorkeeper::Engine.routes.draw do
5
5
  post 'token', :to => "tokens#create", :as => :token
6
6
 
7
7
  resources :applications
8
+ resources :authorized_applications, :only => [:index, :destroy]
8
9
  end
data/config/routes.rbc CHANGED
@@ -60,7 +60,7 @@ x
60
60
  9
61
61
  __block__
62
62
  i
63
- 148
63
+ 176
64
64
  5
65
65
  7
66
66
  0
@@ -208,9 +208,37 @@ i
208
208
  49
209
209
  17
210
210
  1
211
+ 15
212
+ 5
213
+ 7
214
+ 18
215
+ 44
216
+ 43
217
+ 1
218
+ 79
219
+ 49
220
+ 2
221
+ 1
222
+ 13
223
+ 7
224
+ 19
225
+ 7
226
+ 20
227
+ 7
228
+ 21
229
+ 35
230
+ 2
231
+ 49
232
+ 5
233
+ 2
234
+ 15
235
+ 47
236
+ 49
237
+ 17
238
+ 2
211
239
  11
212
240
  I
213
- 7
241
+ 8
214
242
  I
215
243
  0
216
244
  I
@@ -220,7 +248,7 @@ I
220
248
  I
221
249
  -2
222
250
  p
223
- 18
251
+ 22
224
252
  s
225
253
  9
226
254
  authorize
@@ -275,8 +303,20 @@ applications
275
303
  x
276
304
  9
277
305
  resources
306
+ x
307
+ 23
308
+ authorized_applications
309
+ x
310
+ 4
311
+ only
312
+ x
313
+ 5
314
+ index
315
+ x
316
+ 7
317
+ destroy
278
318
  p
279
- 11
319
+ 13
280
320
  I
281
321
  0
282
322
  I
@@ -299,6 +339,10 @@ I
299
339
  7
300
340
  I
301
341
  94
342
+ I
343
+ 8
344
+ I
345
+ b0
302
346
  x
303
347
  56
304
348
  /Users/felipeelias/Applicake/doorkeeper/config/routes.rb
@@ -1,42 +1,102 @@
1
+ require 'doorkeeper/config/scopes'
2
+ require 'doorkeeper/config/scope'
3
+ require 'doorkeeper/config/scopes_builder'
4
+
1
5
  module Doorkeeper
2
6
  def self.configure(&block)
3
- @@config = Config.new(&block)
7
+ @config = Config::Builder.new(&block).build
8
+ end
9
+
10
+ def self.configuration
11
+ @config
4
12
  end
5
13
 
6
14
  class Config
7
- module ConfigOptions
8
- def register_config_option(name, attribute, receives_block = true)
9
- define_method name do |*args, &block|
10
- if receives_block
11
- self.instance_variable_set(:"@#{attribute}", block)
12
- else
13
- self.instance_variable_set(:"@#{attribute}", args[0])
15
+ def default_scope_string
16
+ @scopes.try(:default_scope_string) || ""
17
+ end
18
+
19
+ class Builder
20
+ def initialize(&block)
21
+ @config = Config.new
22
+ instance_eval(&block)
23
+ end
24
+
25
+ def build
26
+ @config
27
+ end
28
+
29
+ def use_refresh_token
30
+ @config.instance_variable_set("@refresh_token_enabled", true)
31
+ end
32
+ end
33
+
34
+ module Option
35
+
36
+ # Defines configuration option
37
+ #
38
+ # When you call option, it defines two methods. One method will take place
39
+ # in the +Config+ class and the other method will take place in the
40
+ # +Builder+ class.
41
+ #
42
+ # The +name+ parameter will set both builder method and config attribute.
43
+ # If the +:as+ option is defined, the builder method will be the specified
44
+ # option while the config attribute will be the +name+ parameter.
45
+ #
46
+ # If you want to introduce another level of config DSL you can
47
+ # define +builder_class+ parameter.
48
+ # Builder should take a block as the initializer parameter and respond to function +build+
49
+ # that returns the value of the config attribute.
50
+ #
51
+ # ==== Options
52
+ #
53
+ # * [:+as+] Set the builder method that goes inside +configure+ block
54
+ # * [+:default+] The default value in case no option was set
55
+ #
56
+ # ==== Examples
57
+ #
58
+ # option :name
59
+ # option :name, :as => :set_name
60
+ # option :name, :default => "My Name"
61
+ # option :scopes :builder_class => ScopesBuilder
62
+ #
63
+ def option(name, options = {})
64
+ attribute = options[:as] || name
65
+ attribute_builder = options[:builder_class]
66
+
67
+ Builder.instance_eval do
68
+ define_method name do |*args, &block|
69
+ value = unless attribute_builder
70
+ block ? block : args.first
71
+ else
72
+ attribute_builder.new(&block).build
73
+ end
74
+
75
+ @config.instance_variable_set(:"@#{attribute}", value)
14
76
  end
15
77
  end
16
78
 
17
- attr_reader attribute
18
- public attribute
79
+ define_method attribute do |*args|
80
+ instance_variable_get(:"@#{attribute}") || options[:default]
81
+ end
19
82
 
20
- Doorkeeper.class_eval "
21
- def self.#{attribute}
22
- @@config.#{attribute}
23
- end
24
- "
83
+ public attribute
25
84
  end
26
85
 
27
86
  def extended(base)
28
- base.send(:private, :register_method)
87
+ base.send(:private, :option)
29
88
  end
30
89
  end
31
90
 
32
- extend ConfigOptions
91
+ extend Option
33
92
 
34
- register_config_option :resource_owner_authenticator, :authenticate_resource_owner
35
- register_config_option :admin_authenticator, :authenticate_admin
93
+ option :resource_owner_authenticator, :as => :authenticate_resource_owner
94
+ option :admin_authenticator, :as => :authenticate_admin
95
+ option :access_token_expires_in, :default => 7200
96
+ option :authorization_scopes, :as => :scopes, :builder_class => ScopesBuilder, :default => Scopes.new
36
97
 
37
- def initialize(&block)
38
- instance_eval &block
98
+ def refresh_token_enabled?
99
+ !!@refresh_token_enabled
39
100
  end
40
101
  end
41
102
  end
42
-
@@ -66,7 +66,7 @@ x
66
66
  10
67
67
  Doorkeeper
68
68
  i
69
- 40
69
+ 51
70
70
  5
71
71
  66
72
72
  99
@@ -83,19 +83,30 @@ i
83
83
  99
84
84
  7
85
85
  3
86
- 1
86
+ 7
87
+ 4
87
88
  65
89
+ 5
88
90
  49
91
+ 2
89
92
  4
93
+ 15
94
+ 99
95
+ 7
96
+ 5
97
+ 1
98
+ 65
99
+ 49
100
+ 6
90
101
  3
91
102
  13
92
103
  99
93
104
  12
94
105
  7
95
- 5
106
+ 7
96
107
  12
97
108
  7
98
- 6
109
+ 8
99
110
  12
100
111
  65
101
112
  12
@@ -104,7 +115,7 @@ i
104
115
  4
105
116
  15
106
117
  49
107
- 5
118
+ 7
108
119
  0
109
120
  11
110
121
  I
@@ -117,7 +128,7 @@ I
117
128
  0
118
129
  n
119
130
  p
120
- 7
131
+ 9
121
132
  x
122
133
  9
123
134
  configure
@@ -129,23 +140,22 @@ x
129
140
  9
130
141
  configure
131
142
  i
132
- 30
143
+ 31
133
144
  95
134
145
  19
135
146
  0
136
147
  15
137
- 65
138
- 7
139
- 0
140
148
  45
149
+ 0
141
150
  1
151
+ 43
142
152
  2
143
153
  20
144
154
  0
145
155
  13
146
156
  70
147
157
  10
148
- 23
158
+ 22
149
159
  44
150
160
  43
151
161
  3
@@ -158,10 +168,12 @@ i
158
168
  0
159
169
  49
160
170
  6
161
- 2
171
+ 0
172
+ 38
173
+ 7
162
174
  11
163
175
  I
164
- 6
176
+ 4
165
177
  I
166
178
  1
167
179
  I
@@ -170,15 +182,15 @@ I
170
182
  0
171
183
  n
172
184
  p
173
- 7
174
- x
175
185
  8
176
- @@config
177
186
  x
178
187
  6
179
188
  Config
180
189
  n
181
190
  x
191
+ 7
192
+ Builder
193
+ x
182
194
  4
183
195
  Proc
184
196
  x
@@ -188,8 +200,11 @@ x
188
200
  3
189
201
  new
190
202
  x
191
- 18
192
- class_variable_set
203
+ 5
204
+ build
205
+ x
206
+ 7
207
+ @config
193
208
  p
194
209
  5
195
210
  I
@@ -201,7 +216,7 @@ I
201
216
  I
202
217
  3
203
218
  I
204
- 1e
219
+ 1f
205
220
  x
206
221
  64
207
222
  /Users/felipeelias/Applicake/doorkeeper/lib/doorkeeper/config.rb
@@ -214,6 +229,52 @@ x
214
229
  13
215
230
  attach_method
216
231
  x
232
+ 13
233
+ configuration
234
+ M
235
+ 1
236
+ n
237
+ n
238
+ x
239
+ 13
240
+ configuration
241
+ i
242
+ 3
243
+ 39
244
+ 0
245
+ 11
246
+ I
247
+ 1
248
+ I
249
+ 0
250
+ I
251
+ 0
252
+ I
253
+ 0
254
+ n
255
+ p
256
+ 1
257
+ x
258
+ 7
259
+ @config
260
+ p
261
+ 5
262
+ I
263
+ -1
264
+ I
265
+ 6
266
+ I
267
+ 0
268
+ I
269
+ 7
270
+ I
271
+ 3
272
+ x
273
+ 64
274
+ /Users/felipeelias/Applicake/doorkeeper/lib/doorkeeper/config.rb
275
+ p
276
+ 0
277
+ x
217
278
  6
218
279
  Config
219
280
  x
@@ -230,16 +291,17 @@ x
230
291
  6
231
292
  Config
232
293
  i
233
- 71
294
+ 136
234
295
  5
235
296
  66
236
297
  99
237
298
  7
238
299
  0
300
+ 1
239
301
  65
240
302
  49
241
303
  1
242
- 2
304
+ 3
243
305
  13
244
306
  99
245
307
  12
@@ -259,48 +321,112 @@ i
259
321
  2
260
322
  0
261
323
  15
324
+ 99
325
+ 7
262
326
  5
263
- 45
327
+ 65
328
+ 49
329
+ 6
330
+ 2
331
+ 13
332
+ 99
333
+ 12
334
+ 7
335
+ 7
336
+ 12
337
+ 7
338
+ 8
339
+ 12
340
+ 65
341
+ 12
342
+ 49
343
+ 4
344
+ 4
345
+ 15
346
+ 49
347
+ 7
264
348
  0
349
+ 15
265
350
  5
351
+ 45
352
+ 5
353
+ 9
266
354
  47
267
355
  49
268
- 6
356
+ 10
269
357
  1
270
358
  15
271
359
  5
272
360
  7
361
+ 11
362
+ 44
363
+ 43
364
+ 12
365
+ 79
366
+ 49
367
+ 13
368
+ 1
369
+ 13
273
370
  7
371
+ 14
274
372
  7
275
- 8
373
+ 15
374
+ 49
375
+ 16
376
+ 2
377
+ 15
276
378
  47
277
379
  49
278
- 9
380
+ 17
279
381
  2
280
382
  15
281
383
  5
282
384
  7
283
- 10
385
+ 18
386
+ 44
387
+ 43
388
+ 12
389
+ 79
390
+ 49
391
+ 13
392
+ 1
393
+ 13
284
394
  7
285
- 11
395
+ 14
396
+ 7
397
+ 19
398
+ 49
399
+ 16
400
+ 2
401
+ 15
286
402
  47
287
403
  49
288
- 9
404
+ 17
289
405
  2
290
406
  15
291
- 99
407
+ 5
292
408
  7
409
+ 20
410
+ 44
411
+ 43
293
412
  12
294
- 7
295
- 13
296
- 65
297
- 67
413
+ 79
298
414
  49
299
- 14
300
- 0
415
+ 13
416
+ 1
417
+ 13
418
+ 7
419
+ 21
420
+ 7
421
+ 22
301
422
  49
423
+ 16
424
+ 2
302
425
  15
303
- 4
426
+ 47
427
+ 49
428
+ 17
429
+ 2
304
430
  11
305
431
  I
306
432
  6
@@ -312,23 +438,23 @@ I
312
438
  0
313
439
  n
314
440
  p
315
- 16
441
+ 23
316
442
  x
317
- 13
318
- ConfigOptions
443
+ 7
444
+ Builder
319
445
  x
320
- 11
321
- open_module
446
+ 10
447
+ open_class
322
448
  x
323
- 15
324
- __module_init__
449
+ 14
450
+ __class_init__
325
451
  M
326
452
  1
327
453
  n
328
454
  n
329
455
  x
330
- 13
331
- ConfigOptions
456
+ 7
457
+ Builder
332
458
  i
333
459
  30
334
460
  5
@@ -373,87 +499,354 @@ n
373
499
  p
374
500
  6
375
501
  x
376
- 22
377
- register_config_option
502
+ 10
503
+ initialize
378
504
  M
379
505
  1
380
506
  n
381
507
  n
382
508
  x
383
- 22
384
- register_config_option
385
- i
386
- 59
387
- 23
388
- 2
389
509
  10
390
- 8
391
- 2
510
+ initialize
511
+ i
512
+ 50
513
+ 95
392
514
  19
393
- 2
515
+ 0
394
516
  15
395
- 5
396
- 20
517
+ 45
397
518
  0
398
- 56
519
+ 1
520
+ 13
521
+ 71
522
+ 2
523
+ 47
524
+ 9
525
+ 25
526
+ 47
527
+ 49
528
+ 3
399
529
  0
530
+ 13
400
531
  47
401
- 50
402
- 1
403
- 1
532
+ 49
533
+ 4
534
+ 0
404
535
  15
405
- 5
406
- 20
407
- 1
408
- 47
536
+ 8
537
+ 28
409
538
  49
410
539
  2
411
- 1
540
+ 0
541
+ 38
542
+ 5
412
543
  15
413
544
  5
414
545
  20
415
- 1
416
- 47
546
+ 0
547
+ 13
548
+ 70
549
+ 10
550
+ 45
551
+ 44
552
+ 43
553
+ 6
554
+ 12
417
555
  49
418
- 3
556
+ 7
419
557
  1
420
- 15
421
- 45
558
+ 47
559
+ 50
560
+ 8
561
+ 0
562
+ 11
563
+ I
422
564
  4
565
+ I
566
+ 1
567
+ I
568
+ 0
569
+ I
570
+ 0
571
+ n
572
+ p
573
+ 9
574
+ x
575
+ 6
576
+ Config
577
+ n
578
+ x
579
+ 3
580
+ new
581
+ x
582
+ 8
583
+ allocate
584
+ x
585
+ 10
586
+ initialize
587
+ x
588
+ 7
589
+ @config
590
+ x
591
+ 4
592
+ Proc
593
+ x
594
+ 14
595
+ __from_block__
596
+ x
597
+ 13
598
+ instance_eval
599
+ p
600
+ 7
601
+ I
602
+ -1
603
+ I
604
+ c
605
+ I
606
+ 4
607
+ I
608
+ d
609
+ I
610
+ 1f
611
+ I
612
+ e
613
+ I
614
+ 32
615
+ x
616
+ 64
617
+ /Users/felipeelias/Applicake/doorkeeper/lib/doorkeeper/config.rb
618
+ p
619
+ 1
620
+ x
621
+ 5
622
+ block
623
+ x
624
+ 17
625
+ method_visibility
626
+ x
627
+ 15
628
+ add_defn_method
629
+ x
423
630
  5
631
+ build
632
+ M
633
+ 1
634
+ n
635
+ n
636
+ x
637
+ 5
638
+ build
639
+ i
640
+ 3
641
+ 39
642
+ 0
643
+ 11
644
+ I
645
+ 1
646
+ I
647
+ 0
648
+ I
649
+ 0
650
+ I
651
+ 0
652
+ n
653
+ p
654
+ 1
655
+ x
424
656
  7
657
+ @config
658
+ p
659
+ 5
660
+ I
661
+ -1
662
+ I
663
+ 11
664
+ I
665
+ 0
666
+ I
667
+ 12
668
+ I
669
+ 3
670
+ x
671
+ 64
672
+ /Users/felipeelias/Applicake/doorkeeper/lib/doorkeeper/config.rb
673
+ p
674
+ 0
675
+ p
676
+ 5
677
+ I
678
+ 2
679
+ I
680
+ c
681
+ I
682
+ 10
683
+ I
684
+ 11
685
+ I
686
+ 1e
687
+ x
688
+ 64
689
+ /Users/felipeelias/Applicake/doorkeeper/lib/doorkeeper/config.rb
690
+ p
691
+ 0
692
+ x
693
+ 13
694
+ attach_method
695
+ x
425
696
  6
426
- 20
697
+ Option
698
+ x
699
+ 11
700
+ open_module
701
+ x
702
+ 15
703
+ __module_init__
704
+ M
427
705
  1
428
- 47
429
- 101
706
+ n
707
+ n
708
+ x
709
+ 6
710
+ Option
711
+ i
712
+ 30
713
+ 5
714
+ 66
715
+ 99
716
+ 7
717
+ 0
430
718
  7
719
+ 1
720
+ 65
721
+ 67
722
+ 49
723
+ 2
724
+ 0
725
+ 49
726
+ 3
727
+ 4
728
+ 15
729
+ 99
431
730
  7
432
- 8
731
+ 4
732
+ 7
733
+ 5
734
+ 65
735
+ 67
736
+ 49
737
+ 2
738
+ 0
739
+ 49
740
+ 3
741
+ 4
742
+ 11
743
+ I
744
+ 5
745
+ I
746
+ 0
747
+ I
748
+ 0
749
+ I
750
+ 0
751
+ n
752
+ p
753
+ 6
754
+ x
755
+ 6
756
+ option
757
+ M
758
+ 1
759
+ n
760
+ n
761
+ x
762
+ 6
763
+ option
764
+ i
765
+ 57
766
+ 23
767
+ 1
768
+ 10
769
+ 14
770
+ 44
771
+ 43
772
+ 0
773
+ 78
774
+ 49
775
+ 1
776
+ 1
777
+ 19
778
+ 1
779
+ 15
433
780
  20
434
781
  1
435
- 47
436
- 101
437
782
  7
783
+ 2
784
+ 49
785
+ 3
786
+ 1
787
+ 13
788
+ 10
789
+ 27
790
+ 15
791
+ 20
792
+ 0
793
+ 19
794
+ 2
795
+ 15
796
+ 45
797
+ 4
798
+ 5
799
+ 56
800
+ 6
801
+ 50
438
802
  7
803
+ 0
804
+ 15
805
+ 5
806
+ 20
807
+ 2
808
+ 56
809
+ 8
810
+ 47
811
+ 50
439
812
  9
440
- 63
813
+ 1
814
+ 15
441
815
  5
816
+ 20
817
+ 2
818
+ 47
442
819
  49
443
820
  10
444
821
  1
445
822
  11
446
823
  I
447
- 9
824
+ 6
448
825
  I
449
826
  3
450
827
  I
451
- 2
828
+ 1
452
829
  I
453
- 3
830
+ 2
454
831
  n
455
832
  p
456
833
  11
834
+ x
835
+ 4
836
+ Hash
837
+ x
838
+ 16
839
+ new_from_literal
840
+ x
841
+ 2
842
+ as
843
+ x
844
+ 2
845
+ []
846
+ x
847
+ 7
848
+ Builder
849
+ n
457
850
  M
458
851
  1
459
852
  p
@@ -464,10 +857,47 @@ for_block
464
857
  t
465
858
  n
466
859
  x
467
- 22
468
- register_config_option
860
+ 6
861
+ option
469
862
  i
470
- 71
863
+ 11
864
+ 5
865
+ 21
866
+ 1
867
+ 0
868
+ 56
869
+ 0
870
+ 47
871
+ 50
872
+ 1
873
+ 1
874
+ 11
875
+ I
876
+ 4
877
+ I
878
+ 0
879
+ I
880
+ 0
881
+ I
882
+ 0
883
+ I
884
+ -2
885
+ p
886
+ 2
887
+ M
888
+ 1
889
+ p
890
+ 2
891
+ x
892
+ 9
893
+ for_block
894
+ t
895
+ n
896
+ x
897
+ 6
898
+ option
899
+ i
900
+ 57
471
901
  59
472
902
  36
473
903
  19
@@ -487,62 +917,188 @@ i
487
917
  1
488
918
  19
489
919
  1
920
+ 20
921
+ 1
922
+ 9
923
+ 27
924
+ 20
925
+ 1
926
+ 8
927
+ 32
928
+ 20
929
+ 0
930
+ 49
931
+ 2
932
+ 0
933
+ 19
934
+ 2
935
+ 15
936
+ 39
937
+ 3
938
+ 7
939
+ 4
490
940
  21
941
+ 2
942
+ 2
943
+ 47
944
+ 101
945
+ 5
946
+ 63
947
+ 2
948
+ 47
949
+ 49
950
+ 6
951
+ 0
952
+ 20
953
+ 2
954
+ 49
955
+ 7
956
+ 2
957
+ 11
958
+ I
959
+ 8
960
+ I
961
+ 3
962
+ I
963
+ 0
964
+ I
965
+ 0
966
+ I
967
+ 0
968
+ p
969
+ 8
970
+ x
971
+ 4
972
+ Proc
973
+ x
974
+ 14
975
+ __from_block__
976
+ x
977
+ 5
978
+ first
979
+ x
980
+ 7
981
+ @config
982
+ s
491
983
  1
984
+ @
985
+ x
986
+ 4
987
+ to_s
988
+ x
989
+ 6
990
+ to_sym
991
+ x
992
+ 21
993
+ instance_variable_set
994
+ p
995
+ 9
996
+ I
997
+ 0
998
+ I
999
+ 31
1000
+ I
1001
+ 13
1002
+ I
1003
+ 32
1004
+ I
1005
+ 20
1006
+ I
1007
+ 32
1008
+ I
1009
+ 23
1010
+ I
1011
+ 33
1012
+ I
1013
+ 39
1014
+ x
1015
+ 64
1016
+ /Users/felipeelias/Applicake/doorkeeper/lib/doorkeeper/config.rb
1017
+ p
1018
+ 3
1019
+ x
1020
+ 4
1021
+ args
1022
+ x
1023
+ 5
1024
+ block
1025
+ x
1026
+ 5
1027
+ value
1028
+ x
1029
+ 13
1030
+ define_method
1031
+ p
1032
+ 3
1033
+ I
1034
+ 0
1035
+ I
1036
+ 31
1037
+ I
1038
+ b
1039
+ x
1040
+ 64
1041
+ /Users/felipeelias/Applicake/doorkeeper/lib/doorkeeper/config.rb
1042
+ p
1043
+ 0
1044
+ x
1045
+ 13
1046
+ instance_eval
1047
+ M
1048
+ 1
1049
+ p
492
1050
  2
1051
+ x
493
1052
  9
494
- 46
1053
+ for_block
1054
+ t
1055
+ n
1056
+ x
1057
+ 6
1058
+ option
1059
+ i
1060
+ 37
1061
+ 59
1062
+ 36
1063
+ 19
1064
+ 0
1065
+ 15
495
1066
  5
496
1067
  7
497
- 2
1068
+ 0
498
1069
  21
499
1070
  1
500
- 1
1071
+ 2
501
1072
  47
502
1073
  101
503
- 3
1074
+ 1
504
1075
  63
505
1076
  2
506
1077
  47
507
1078
  49
508
- 4
1079
+ 2
509
1080
  0
510
- 20
511
- 1
1081
+ 47
512
1082
  49
513
- 5
514
- 2
515
- 8
516
- 70
517
- 5
518
- 7
519
- 2
1083
+ 3
1084
+ 1
1085
+ 13
1086
+ 10
1087
+ 36
1088
+ 15
520
1089
  21
521
1090
  1
522
1091
  1
523
- 47
524
- 101
525
- 3
526
- 63
527
- 2
528
- 47
529
- 49
1092
+ 7
530
1093
  4
531
- 0
532
- 20
533
- 0
534
- 78
535
- 49
536
- 6
537
- 1
538
1094
  49
539
1095
  5
540
- 2
1096
+ 1
541
1097
  11
542
1098
  I
543
- 8
1099
+ 5
544
1100
  I
545
- 2
1101
+ 1
546
1102
  I
547
1103
  0
548
1104
  I
@@ -550,13 +1106,7 @@ I
550
1106
  I
551
1107
  0
552
1108
  p
553
- 7
554
- x
555
- 4
556
- Proc
557
- x
558
- 14
559
- __from_block__
1109
+ 6
560
1110
  s
561
1111
  1
562
1112
  @
@@ -568,113 +1118,63 @@ x
568
1118
  to_sym
569
1119
  x
570
1120
  21
571
- instance_variable_set
1121
+ instance_variable_get
1122
+ x
1123
+ 7
1124
+ default
572
1125
  x
573
1126
  2
574
1127
  []
575
1128
  p
576
- 11
1129
+ 5
577
1130
  I
578
1131
  0
579
1132
  I
580
- 9
581
- I
582
- 13
583
- I
584
- a
585
- I
586
- 18
587
- I
588
- b
589
- I
590
- 2e
591
- I
592
- d
1133
+ 37
593
1134
  I
594
- 46
1135
+ 5
595
1136
  I
596
- 0
1137
+ 38
597
1138
  I
598
- 47
1139
+ 25
599
1140
  x
600
1141
  64
601
1142
  /Users/felipeelias/Applicake/doorkeeper/lib/doorkeeper/config.rb
602
1143
  p
603
- 2
1144
+ 1
604
1145
  x
605
1146
  4
606
1147
  args
607
1148
  x
608
- 5
609
- block
610
- x
611
1149
  13
612
1150
  define_method
613
1151
  x
614
- 11
615
- attr_reader
616
- x
617
1152
  6
618
1153
  public
619
- x
620
- 10
621
- Doorkeeper
622
- n
623
- s
624
- 22
625
-
626
- def self.
627
- x
628
- 4
629
- to_s
630
- s
631
- 24
632
-
633
- @@config.
634
- s
635
- 27
636
-
637
- end
638
-
639
- x
640
- 10
641
- class_eval
642
1154
  p
643
- 17
1155
+ 11
644
1156
  I
645
1157
  -1
646
1158
  I
647
- 8
648
- I
649
- 8
650
- I
651
- 9
652
- I
653
- 12
654
- I
655
- 11
1159
+ 2d
656
1160
  I
657
- 1a
1161
+ e
658
1162
  I
659
- 12
1163
+ 2e
660
1164
  I
661
- 22
1165
+ 1e
662
1166
  I
663
- 14
1167
+ 30
664
1168
  I
665
1169
  27
666
1170
  I
667
- 15
668
- I
669
- 2e
670
- I
671
- 16
672
- I
673
1171
  37
674
1172
  I
675
- 14
1173
+ 31
676
1174
  I
677
1175
  3b
1176
+ I
1177
+ 39
678
1178
  x
679
1179
  64
680
1180
  /Users/felipeelias/Applicake/doorkeeper/lib/doorkeeper/config.rb
@@ -684,12 +1184,12 @@ x
684
1184
  4
685
1185
  name
686
1186
  x
1187
+ 7
1188
+ options
1189
+ x
687
1190
  9
688
1191
  attribute
689
1192
  x
690
- 14
691
- receives_block
692
- x
693
1193
  17
694
1194
  method_visibility
695
1195
  x
@@ -732,8 +1232,8 @@ x
732
1232
  7
733
1233
  private
734
1234
  x
735
- 15
736
- register_method
1235
+ 6
1236
+ option
737
1237
  x
738
1238
  4
739
1239
  send
@@ -742,11 +1242,11 @@ p
742
1242
  I
743
1243
  -1
744
1244
  I
745
- 1b
1245
+ 3e
746
1246
  I
747
1247
  0
748
1248
  I
749
- 1c
1249
+ 3f
750
1250
  I
751
1251
  a
752
1252
  x
@@ -762,11 +1262,11 @@ p
762
1262
  I
763
1263
  2
764
1264
  I
765
- 8
1265
+ 2d
766
1266
  I
767
1267
  10
768
1268
  I
769
- 1b
1269
+ 3e
770
1270
  I
771
1271
  1e
772
1272
  x
@@ -774,9 +1274,6 @@ x
774
1274
  /Users/felipeelias/Applicake/doorkeeper/lib/doorkeeper/config.rb
775
1275
  p
776
1276
  0
777
- x
778
- 13
779
- attach_method
780
1277
  n
781
1278
  x
782
1279
  6
@@ -785,11 +1282,23 @@ x
785
1282
  28
786
1283
  resource_owner_authenticator
787
1284
  x
1285
+ 4
1286
+ Hash
1287
+ x
1288
+ 16
1289
+ new_from_literal
1290
+ x
1291
+ 2
1292
+ as
1293
+ x
788
1294
  27
789
1295
  authenticate_resource_owner
790
1296
  x
791
- 22
792
- register_config_option
1297
+ 3
1298
+ []=
1299
+ x
1300
+ 6
1301
+ option
793
1302
  x
794
1303
  19
795
1304
  admin_authenticator
@@ -797,117 +1306,48 @@ x
797
1306
  18
798
1307
  authenticate_admin
799
1308
  x
800
- 10
801
- initialize
802
- M
803
- 1
804
- n
805
- n
806
- x
807
- 10
808
- initialize
809
- i
810
1309
  23
811
- 95
812
- 19
813
- 0
814
- 15
815
- 5
816
- 20
817
- 0
818
- 13
819
- 70
820
- 10
821
- 18
822
- 44
823
- 43
824
- 0
825
- 12
826
- 49
827
- 1
828
- 1
829
- 47
830
- 50
831
- 2
832
- 0
833
- 11
834
- I
835
- 4
836
- I
837
- 1
838
- I
839
- 0
840
- I
841
- 0
842
- n
843
- p
844
- 3
845
- x
846
- 4
847
- Proc
848
- x
849
- 14
850
- __from_block__
1310
+ access_token_expires_in
851
1311
  x
852
- 13
853
- instance_eval
854
- p
855
- 5
856
- I
857
- -1
858
- I
859
- 25
860
- I
861
- 4
862
- I
863
- 26
1312
+ 7
1313
+ default
864
1314
  I
865
- 17
866
- x
867
- 64
868
- /Users/felipeelias/Applicake/doorkeeper/lib/doorkeeper/config.rb
869
- p
870
- 1
871
- x
872
- 5
873
- block
874
- x
875
- 17
876
- method_visibility
877
- x
878
- 15
879
- add_defn_method
1315
+ 1c20
880
1316
  p
881
- 11
1317
+ 13
882
1318
  I
883
1319
  2
884
1320
  I
885
- 7
1321
+ b
886
1322
  I
887
- 1c
1323
+ 1d
888
1324
  I
889
- 20
1325
+ 16
890
1326
  I
891
- 25
1327
+ 37
892
1328
  I
893
- 22
1329
+ 43
894
1330
  I
895
- 2f
1331
+ 40
896
1332
  I
897
- 23
1333
+ 45
898
1334
  I
899
- 39
1335
+ 58
900
1336
  I
901
- 25
1337
+ 46
1338
+ I
1339
+ 70
902
1340
  I
903
1341
  47
1342
+ I
1343
+ 88
904
1344
  x
905
1345
  64
906
1346
  /Users/felipeelias/Applicake/doorkeeper/lib/doorkeeper/config.rb
907
1347
  p
908
1348
  0
909
1349
  p
910
- 5
1350
+ 7
911
1351
  I
912
1352
  2
913
1353
  I
@@ -917,7 +1357,11 @@ d
917
1357
  I
918
1358
  6
919
1359
  I
920
- 28
1360
+ 18
1361
+ I
1362
+ a
1363
+ I
1364
+ 33
921
1365
  x
922
1366
  64
923
1367
  /Users/felipeelias/Applicake/doorkeeper/lib/doorkeeper/config.rb