octokit 1.24.0 → 1.25.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -159,6 +159,9 @@ module Octokit
159
159
  # Get list of repos starred by a user.
160
160
  #
161
161
  # @param user [String] Username of the user to get the list of their starred repositories.
162
+ # @param options [Hash] Optional options
163
+ # @option options [String] :sort (created) Sort: <tt>created</tt> or <tt>updated</tt>.
164
+ # @option options [String] :direction (desc) Direction: <tt>asc</tt> or <tt>desc</tt>.
162
165
  # @return [Array<Hashie::Mash>] Array of hashes representing repositories starred by user.
163
166
  # @see http://developer.github.com/v3/repos/starring/#list-repositories-being-starred
164
167
  # @example
@@ -326,7 +329,7 @@ module Octokit
326
329
  # Requires authenticated client.
327
330
  #
328
331
  # @param email [String] Email address to remove.
329
- # @return [Array<String>] Array of all email addresses of the user.
332
+ # @return [Boolean] True if removal was successful, false otherwise.
330
333
  # @see Octokit::Client
331
334
  # @see http://developer.github.com/v3/users/emails/#delete-email-addresses
332
335
  # @example
@@ -46,6 +46,7 @@ module Octokit
46
46
 
47
47
  def request(method, path, options={})
48
48
  path.sub(%r{^/}, '') #leading slash in path fails in github:enterprise
49
+ path = URI.encode path
49
50
 
50
51
  token = options.delete(:access_token) ||
51
52
  options.delete(:oauth_token) ||
@@ -1,3 +1,3 @@
1
1
  module Octokit
2
- VERSION = "1.24.0" unless defined?(Octokit::VERSION)
2
+ VERSION = "1.25.0" unless defined?(Octokit::VERSION)
3
3
  end
data/octokit.gemspec CHANGED
@@ -17,11 +17,11 @@ Gem::Specification.new do |spec|
17
17
  spec.files = %w(.document CHANGELOG.md CONTRIBUTING.md LICENSE.md README.md Rakefile octokit.gemspec)
18
18
  spec.files += Dir.glob("lib/**/*.rb")
19
19
  spec.files += Dir.glob("spec/**/*")
20
- spec.homepage = 'https://github.com/pengwynn/octokit'
20
+ spec.homepage = 'https://github.com/octokit/octokit.rb'
21
21
  spec.licenses = ['MIT']
22
22
  spec.name = 'octokit'
23
23
  spec.require_paths = ['lib']
24
- spec.required_rubygems_version = '>= 1.3.6'
24
+ spec.required_rubygems_version = '>= 1.3.5'
25
25
  spec.summary = spec.description
26
26
  spec.test_files = Dir.glob("spec/**/*")
27
27
  spec.version = Octokit::VERSION
@@ -0,0 +1,897 @@
1
+ [
2
+ [
3
+ 1260057600,
4
+ 3315,
5
+ -228
6
+ ],
7
+ [
8
+ 1260662400,
9
+ 449,
10
+ -62
11
+ ],
12
+ [
13
+ 1261267200,
14
+ 0,
15
+ 0
16
+ ],
17
+ [
18
+ 1261872000,
19
+ 0,
20
+ 0
21
+ ],
22
+ [
23
+ 1262476800,
24
+ 0,
25
+ 0
26
+ ],
27
+ [
28
+ 1263081600,
29
+ 9,
30
+ -3
31
+ ],
32
+ [
33
+ 1263686400,
34
+ 0,
35
+ 0
36
+ ],
37
+ [
38
+ 1264291200,
39
+ 0,
40
+ 0
41
+ ],
42
+ [
43
+ 1264896000,
44
+ 0,
45
+ 0
46
+ ],
47
+ [
48
+ 1265500800,
49
+ 15,
50
+ -5
51
+ ],
52
+ [
53
+ 1266105600,
54
+ 0,
55
+ 0
56
+ ],
57
+ [
58
+ 1266710400,
59
+ 0,
60
+ 0
61
+ ],
62
+ [
63
+ 1267315200,
64
+ 0,
65
+ 0
66
+ ],
67
+ [
68
+ 1267920000,
69
+ 853,
70
+ -964
71
+ ],
72
+ [
73
+ 1268524800,
74
+ 0,
75
+ 0
76
+ ],
77
+ [
78
+ 1269129600,
79
+ 0,
80
+ 0
81
+ ],
82
+ [
83
+ 1269734400,
84
+ 0,
85
+ 0
86
+ ],
87
+ [
88
+ 1270339200,
89
+ 0,
90
+ 0
91
+ ],
92
+ [
93
+ 1270944000,
94
+ 0,
95
+ 0
96
+ ],
97
+ [
98
+ 1271548800,
99
+ 1,
100
+ -1
101
+ ],
102
+ [
103
+ 1272153600,
104
+ 970,
105
+ -16
106
+ ],
107
+ [
108
+ 1272758400,
109
+ 25,
110
+ -5
111
+ ],
112
+ [
113
+ 1273363200,
114
+ 0,
115
+ 0
116
+ ],
117
+ [
118
+ 1273968000,
119
+ 0,
120
+ 0
121
+ ],
122
+ [
123
+ 1274572800,
124
+ 0,
125
+ 0
126
+ ],
127
+ [
128
+ 1275177600,
129
+ 6,
130
+ -6
131
+ ],
132
+ [
133
+ 1275782400,
134
+ 10,
135
+ -8
136
+ ],
137
+ [
138
+ 1276387200,
139
+ 1114,
140
+ -24
141
+ ],
142
+ [
143
+ 1276992000,
144
+ 0,
145
+ 0
146
+ ],
147
+ [
148
+ 1277596800,
149
+ 0,
150
+ 0
151
+ ],
152
+ [
153
+ 1278201600,
154
+ 0,
155
+ 0
156
+ ],
157
+ [
158
+ 1278806400,
159
+ 0,
160
+ 0
161
+ ],
162
+ [
163
+ 1279411200,
164
+ 0,
165
+ 0
166
+ ],
167
+ [
168
+ 1280016000,
169
+ 0,
170
+ 0
171
+ ],
172
+ [
173
+ 1280620800,
174
+ 0,
175
+ 0
176
+ ],
177
+ [
178
+ 1281225600,
179
+ 45,
180
+ -144
181
+ ],
182
+ [
183
+ 1281830400,
184
+ 0,
185
+ 0
186
+ ],
187
+ [
188
+ 1282435200,
189
+ 0,
190
+ 0
191
+ ],
192
+ [
193
+ 1283040000,
194
+ 15,
195
+ -4
196
+ ],
197
+ [
198
+ 1283644800,
199
+ 0,
200
+ 0
201
+ ],
202
+ [
203
+ 1284249600,
204
+ 0,
205
+ 0
206
+ ],
207
+ [
208
+ 1284854400,
209
+ 3,
210
+ -2
211
+ ],
212
+ [
213
+ 1285459200,
214
+ 0,
215
+ 0
216
+ ],
217
+ [
218
+ 1286064000,
219
+ 0,
220
+ 0
221
+ ],
222
+ [
223
+ 1286668800,
224
+ 0,
225
+ 0
226
+ ],
227
+ [
228
+ 1287273600,
229
+ 0,
230
+ 0
231
+ ],
232
+ [
233
+ 1287878400,
234
+ 168,
235
+ -214
236
+ ],
237
+ [
238
+ 1288483200,
239
+ 0,
240
+ 0
241
+ ],
242
+ [
243
+ 1289088000,
244
+ 0,
245
+ 0
246
+ ],
247
+ [
248
+ 1289692800,
249
+ 110,
250
+ -118
251
+ ],
252
+ [
253
+ 1290297600,
254
+ 0,
255
+ 0
256
+ ],
257
+ [
258
+ 1290902400,
259
+ 9,
260
+ -8
261
+ ],
262
+ [
263
+ 1291507200,
264
+ 0,
265
+ 0
266
+ ],
267
+ [
268
+ 1292112000,
269
+ 5,
270
+ -34
271
+ ],
272
+ [
273
+ 1292716800,
274
+ 29,
275
+ -44
276
+ ],
277
+ [
278
+ 1293321600,
279
+ 1709,
280
+ -1422
281
+ ],
282
+ [
283
+ 1293926400,
284
+ 1823,
285
+ -1734
286
+ ],
287
+ [
288
+ 1294531200,
289
+ 198,
290
+ -19
291
+ ],
292
+ [
293
+ 1295136000,
294
+ 2715,
295
+ -252
296
+ ],
297
+ [
298
+ 1295740800,
299
+ 25,
300
+ -4622
301
+ ],
302
+ [
303
+ 1296345600,
304
+ 3,
305
+ -2
306
+ ],
307
+ [
308
+ 1296950400,
309
+ 15,
310
+ -10
311
+ ],
312
+ [
313
+ 1297555200,
314
+ 1,
315
+ -1
316
+ ],
317
+ [
318
+ 1298160000,
319
+ 0,
320
+ 0
321
+ ],
322
+ [
323
+ 1298764800,
324
+ 11,
325
+ -14
326
+ ],
327
+ [
328
+ 1299369600,
329
+ 0,
330
+ 0
331
+ ],
332
+ [
333
+ 1299974400,
334
+ 0,
335
+ 0
336
+ ],
337
+ [
338
+ 1300579200,
339
+ 50,
340
+ -40
341
+ ],
342
+ [
343
+ 1301184000,
344
+ 0,
345
+ 0
346
+ ],
347
+ [
348
+ 1301788800,
349
+ 119,
350
+ -87
351
+ ],
352
+ [
353
+ 1302393600,
354
+ 0,
355
+ 0
356
+ ],
357
+ [
358
+ 1302998400,
359
+ 9,
360
+ -2
361
+ ],
362
+ [
363
+ 1303603200,
364
+ 1797,
365
+ -254
366
+ ],
367
+ [
368
+ 1304208000,
369
+ 2141,
370
+ -1955
371
+ ],
372
+ [
373
+ 1304812800,
374
+ 172,
375
+ -50
376
+ ],
377
+ [
378
+ 1305417600,
379
+ 266,
380
+ -142
381
+ ],
382
+ [
383
+ 1306022400,
384
+ 0,
385
+ 0
386
+ ],
387
+ [
388
+ 1306627200,
389
+ 59,
390
+ -13
391
+ ],
392
+ [
393
+ 1307232000,
394
+ 63,
395
+ -17
396
+ ],
397
+ [
398
+ 1307836800,
399
+ 870,
400
+ -684
401
+ ],
402
+ [
403
+ 1308441600,
404
+ 103,
405
+ -80
406
+ ],
407
+ [
408
+ 1309046400,
409
+ 279,
410
+ -235
411
+ ],
412
+ [
413
+ 1309651200,
414
+ 169,
415
+ -121
416
+ ],
417
+ [
418
+ 1310256000,
419
+ 28,
420
+ -61
421
+ ],
422
+ [
423
+ 1310860800,
424
+ 159,
425
+ -20
426
+ ],
427
+ [
428
+ 1311465600,
429
+ 31,
430
+ -6
431
+ ],
432
+ [
433
+ 1312070400,
434
+ 23,
435
+ -32
436
+ ],
437
+ [
438
+ 1312675200,
439
+ 10,
440
+ -10
441
+ ],
442
+ [
443
+ 1313280000,
444
+ 52,
445
+ -75
446
+ ],
447
+ [
448
+ 1313884800,
449
+ 0,
450
+ 0
451
+ ],
452
+ [
453
+ 1314489600,
454
+ 3251,
455
+ -116
456
+ ],
457
+ [
458
+ 1315094400,
459
+ 121,
460
+ -121
461
+ ],
462
+ [
463
+ 1315699200,
464
+ 1,
465
+ -2
466
+ ],
467
+ [
468
+ 1316304000,
469
+ 0,
470
+ 0
471
+ ],
472
+ [
473
+ 1316908800,
474
+ 0,
475
+ -1
476
+ ],
477
+ [
478
+ 1317513600,
479
+ 0,
480
+ 0
481
+ ],
482
+ [
483
+ 1318118400,
484
+ 13,
485
+ -13
486
+ ],
487
+ [
488
+ 1318723200,
489
+ 0,
490
+ 0
491
+ ],
492
+ [
493
+ 1319328000,
494
+ 0,
495
+ 0
496
+ ],
497
+ [
498
+ 1319932800,
499
+ 392,
500
+ -6
501
+ ],
502
+ [
503
+ 1320537600,
504
+ 130,
505
+ -48
506
+ ],
507
+ [
508
+ 1321142400,
509
+ 0,
510
+ -3
511
+ ],
512
+ [
513
+ 1321747200,
514
+ 52,
515
+ -35
516
+ ],
517
+ [
518
+ 1322352000,
519
+ 6,
520
+ -2
521
+ ],
522
+ [
523
+ 1322956800,
524
+ 5,
525
+ -7
526
+ ],
527
+ [
528
+ 1323561600,
529
+ 69,
530
+ -16
531
+ ],
532
+ [
533
+ 1324166400,
534
+ 46,
535
+ -50
536
+ ],
537
+ [
538
+ 1324771200,
539
+ 0,
540
+ 0
541
+ ],
542
+ [
543
+ 1325376000,
544
+ 4301,
545
+ -8
546
+ ],
547
+ [
548
+ 1325980800,
549
+ 1661,
550
+ -181
551
+ ],
552
+ [
553
+ 1326585600,
554
+ 4423,
555
+ -94
556
+ ],
557
+ [
558
+ 1327190400,
559
+ 0,
560
+ 0
561
+ ],
562
+ [
563
+ 1327795200,
564
+ 15,
565
+ -15
566
+ ],
567
+ [
568
+ 1328400000,
569
+ 520,
570
+ -102
571
+ ],
572
+ [
573
+ 1329004800,
574
+ 145,
575
+ -29
576
+ ],
577
+ [
578
+ 1329609600,
579
+ 0,
580
+ 0
581
+ ],
582
+ [
583
+ 1330214400,
584
+ 1743,
585
+ 0
586
+ ],
587
+ [
588
+ 1330819200,
589
+ 0,
590
+ -1622
591
+ ],
592
+ [
593
+ 1331424000,
594
+ 11,
595
+ -7
596
+ ],
597
+ [
598
+ 1332028800,
599
+ 0,
600
+ 0
601
+ ],
602
+ [
603
+ 1332633600,
604
+ 4,
605
+ -5
606
+ ],
607
+ [
608
+ 1333238400,
609
+ 0,
610
+ 0
611
+ ],
612
+ [
613
+ 1333843200,
614
+ 1,
615
+ -1
616
+ ],
617
+ [
618
+ 1334448000,
619
+ 25,
620
+ -17
621
+ ],
622
+ [
623
+ 1335052800,
624
+ 28,
625
+ -27
626
+ ],
627
+ [
628
+ 1335657600,
629
+ 52,
630
+ -36
631
+ ],
632
+ [
633
+ 1336262400,
634
+ 40,
635
+ -17
636
+ ],
637
+ [
638
+ 1336867200,
639
+ 32235,
640
+ -17037
641
+ ],
642
+ [
643
+ 1337472000,
644
+ 109,
645
+ -77
646
+ ],
647
+ [
648
+ 1338076800,
649
+ 2,
650
+ 0
651
+ ],
652
+ [
653
+ 1338681600,
654
+ 578,
655
+ -1533
656
+ ],
657
+ [
658
+ 1339286400,
659
+ 342,
660
+ -11448
661
+ ],
662
+ [
663
+ 1339891200,
664
+ 227,
665
+ -42
666
+ ],
667
+ [
668
+ 1340496000,
669
+ 230,
670
+ -175
671
+ ],
672
+ [
673
+ 1341100800,
674
+ 0,
675
+ 0
676
+ ],
677
+ [
678
+ 1341705600,
679
+ 145,
680
+ -96
681
+ ],
682
+ [
683
+ 1342310400,
684
+ 2,
685
+ -2
686
+ ],
687
+ [
688
+ 1342915200,
689
+ 543,
690
+ -18
691
+ ],
692
+ [
693
+ 1343520000,
694
+ 120,
695
+ 0
696
+ ],
697
+ [
698
+ 1344124800,
699
+ 58,
700
+ -10
701
+ ],
702
+ [
703
+ 1344729600,
704
+ 3,
705
+ -4
706
+ ],
707
+ [
708
+ 1345334400,
709
+ 0,
710
+ 0
711
+ ],
712
+ [
713
+ 1345939200,
714
+ 238,
715
+ -1
716
+ ],
717
+ [
718
+ 1346544000,
719
+ 85,
720
+ -2
721
+ ],
722
+ [
723
+ 1347148800,
724
+ 37,
725
+ 0
726
+ ],
727
+ [
728
+ 1347753600,
729
+ 20,
730
+ 0
731
+ ],
732
+ [
733
+ 1348358400,
734
+ 1603,
735
+ -9
736
+ ],
737
+ [
738
+ 1348963200,
739
+ 58,
740
+ -3
741
+ ],
742
+ [
743
+ 1349568000,
744
+ 1842,
745
+ -547
746
+ ],
747
+ [
748
+ 1350172800,
749
+ 315,
750
+ -2
751
+ ],
752
+ [
753
+ 1350777600,
754
+ 1240,
755
+ -73
756
+ ],
757
+ [
758
+ 1351382400,
759
+ 49,
760
+ -22
761
+ ],
762
+ [
763
+ 1351987200,
764
+ 11,
765
+ 0
766
+ ],
767
+ [
768
+ 1352592000,
769
+ 264,
770
+ -13
771
+ ],
772
+ [
773
+ 1353196800,
774
+ 56,
775
+ -60
776
+ ],
777
+ [
778
+ 1353801600,
779
+ 23635,
780
+ -22990
781
+ ],
782
+ [
783
+ 1354406400,
784
+ 364,
785
+ -152
786
+ ],
787
+ [
788
+ 1355011200,
789
+ 54,
790
+ -3
791
+ ],
792
+ [
793
+ 1355616000,
794
+ 34,
795
+ -3
796
+ ],
797
+ [
798
+ 1356220800,
799
+ 1,
800
+ -1
801
+ ],
802
+ [
803
+ 1356825600,
804
+ 0,
805
+ -1
806
+ ],
807
+ [
808
+ 1357430400,
809
+ 593,
810
+ -22
811
+ ],
812
+ [
813
+ 1358035200,
814
+ 77,
815
+ -37
816
+ ],
817
+ [
818
+ 1358640000,
819
+ 52,
820
+ -38
821
+ ],
822
+ [
823
+ 1359244800,
824
+ 237,
825
+ -52
826
+ ],
827
+ [
828
+ 1359849600,
829
+ 1665,
830
+ -105
831
+ ],
832
+ [
833
+ 1360454400,
834
+ 26,
835
+ -2
836
+ ],
837
+ [
838
+ 1361059200,
839
+ 0,
840
+ 0
841
+ ],
842
+ [
843
+ 1361664000,
844
+ 14,
845
+ -7
846
+ ],
847
+ [
848
+ 1362268800,
849
+ 0,
850
+ 0
851
+ ],
852
+ [
853
+ 1362873600,
854
+ 6,
855
+ -2
856
+ ],
857
+ [
858
+ 1363478400,
859
+ 1,
860
+ -2
861
+ ],
862
+ [
863
+ 1364083200,
864
+ 9,
865
+ -1
866
+ ],
867
+ [
868
+ 1364688000,
869
+ 20,
870
+ -1
871
+ ],
872
+ [
873
+ 1365292800,
874
+ 1,
875
+ -1
876
+ ],
877
+ [
878
+ 1365897600,
879
+ 3,
880
+ 0
881
+ ],
882
+ [
883
+ 1366502400,
884
+ 3,
885
+ -2
886
+ ],
887
+ [
888
+ 1367107200,
889
+ 0,
890
+ 0
891
+ ],
892
+ [
893
+ 1367712000,
894
+ 1,
895
+ -1
896
+ ]
897
+ ]