sportsflix 1.2.8 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +71 -88
- data/.ruby-version +1 -1
- data/Gemfile.lock +46 -42
- data/circle.yml +2 -2
- data/lib/sportsflix.rb +8 -6
- data/lib/sportsflix/providers/arenavision.rb +16 -8
- data/lib/sportsflix/version.rb +1 -1
- data/sportsflix.gemspec +8 -8
- metadata +19 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4cdbc7cf4f13b6552e30c44624eec35b4dc18870
|
4
|
+
data.tar.gz: 481351ee32266fd59e51c3b7fb41f92bcb4c5ece
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23c59d4aa5782960fe3c0b0649f9f7c99396bad765937a56f2e888fc2c8fefd7b42308365d05a3ba12125b49f81e4feed5b62a55519ff623d912280c3054c291
|
7
|
+
data.tar.gz: 349830ae81a6855c4d717842e090dd95db23c67ba63f1b1fb84e4d0428e1fef592b35f2f1c06512ff138191482cbb9a5ea0d678a546675e14bc0f59ff18e9e9e
|
data/.rubocop.yml
CHANGED
@@ -21,7 +21,7 @@ Lint/AssignmentInCondition:
|
|
21
21
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition'
|
22
22
|
Enabled: true
|
23
23
|
|
24
|
-
|
24
|
+
Layout/BlockAlignment:
|
25
25
|
Description: 'Align block ends correctly.'
|
26
26
|
Enabled: true
|
27
27
|
|
@@ -29,7 +29,7 @@ Lint/CircularArgumentReference:
|
|
29
29
|
Description: "Don't refer to the keyword argument in the default value."
|
30
30
|
Enabled: true
|
31
31
|
|
32
|
-
|
32
|
+
Layout/ConditionPosition:
|
33
33
|
Description: >-
|
34
34
|
Checks for condition placed in a confusing position relative to
|
35
35
|
the keyword.
|
@@ -40,7 +40,7 @@ Lint/Debugger:
|
|
40
40
|
Description: 'Check for debugger calls.'
|
41
41
|
Enabled: true
|
42
42
|
|
43
|
-
|
43
|
+
Layout/DefEndAlignment:
|
44
44
|
Description: 'Align ends corresponding to defs correctly.'
|
45
45
|
Enabled: true
|
46
46
|
|
@@ -68,7 +68,7 @@ Lint/EmptyInterpolation:
|
|
68
68
|
Description: 'Checks for empty string interpolation.'
|
69
69
|
Enabled: true
|
70
70
|
|
71
|
-
|
71
|
+
Layout/EndAlignment:
|
72
72
|
Description: 'Align ends correctly.'
|
73
73
|
Enabled: true
|
74
74
|
|
@@ -94,16 +94,6 @@ Lint/HandleExceptions:
|
|
94
94
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions'
|
95
95
|
Enabled: true
|
96
96
|
|
97
|
-
Lint/InvalidCharacterLiteral:
|
98
|
-
Description: >-
|
99
|
-
Checks for invalid character literals with a non-escaped
|
100
|
-
whitespace character.
|
101
|
-
Enabled: true
|
102
|
-
|
103
|
-
Lint/LiteralInCondition:
|
104
|
-
Description: 'Checks of literals used in conditions.'
|
105
|
-
Enabled: true
|
106
|
-
|
107
97
|
Lint/LiteralInInterpolation:
|
108
98
|
Description: 'Checks for literals used in interpolation.'
|
109
99
|
Enabled: true
|
@@ -157,13 +147,6 @@ Lint/UnderscorePrefixedVariableName:
|
|
157
147
|
Description: 'Do not use prefix `_` for a variable that is used.'
|
158
148
|
Enabled: true
|
159
149
|
|
160
|
-
Lint/UnneededDisable:
|
161
|
-
Description: >-
|
162
|
-
Checks for rubocop:disable comments that can be removed.
|
163
|
-
Note: this cop is not disabled when disabling all cops.
|
164
|
-
It must be explicitly disabled.
|
165
|
-
Enabled: true
|
166
|
-
|
167
150
|
Lint/UnusedBlockArgument:
|
168
151
|
Description: 'Checks for unused block arguments.'
|
169
152
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
|
@@ -367,12 +350,12 @@ Rails/Validation:
|
|
367
350
|
|
368
351
|
################## Style #################################
|
369
352
|
|
370
|
-
|
353
|
+
Layout/AccessModifierIndentation:
|
371
354
|
Description: Check indentation of private/protected visibility modifiers.
|
372
355
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected'
|
373
356
|
Enabled: false
|
374
357
|
|
375
|
-
|
358
|
+
Naming/AccessorMethodName:
|
376
359
|
Description: Check the naming of accessor methods for get_/set_.
|
377
360
|
Enabled: false
|
378
361
|
|
@@ -381,20 +364,20 @@ Style/Alias:
|
|
381
364
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#alias-method'
|
382
365
|
Enabled: false
|
383
366
|
|
384
|
-
|
367
|
+
Layout/AlignArray:
|
385
368
|
Description: >-
|
386
369
|
Align the elements of an array literal if they span more than
|
387
370
|
one line.
|
388
371
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays'
|
389
372
|
Enabled: false
|
390
373
|
|
391
|
-
|
374
|
+
Layout/AlignHash:
|
392
375
|
Description: >-
|
393
376
|
Align the elements of a hash literal if they span more than
|
394
377
|
one line.
|
395
378
|
Enabled: false
|
396
379
|
|
397
|
-
|
380
|
+
Layout/AlignParameters:
|
398
381
|
Description: >-
|
399
382
|
Align the parameters of a method call if they span more
|
400
383
|
than one line.
|
@@ -416,7 +399,7 @@ Style/AsciiComments:
|
|
416
399
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-comments'
|
417
400
|
Enabled: false
|
418
401
|
|
419
|
-
|
402
|
+
Naming/AsciiIdentifiers:
|
420
403
|
Description: 'Use only ascii symbols in identifiers.'
|
421
404
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-identifiers'
|
422
405
|
Enabled: false
|
@@ -441,7 +424,7 @@ Style/BlockComments:
|
|
441
424
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-block-comments'
|
442
425
|
Enabled: false
|
443
426
|
|
444
|
-
|
427
|
+
Layout/BlockEndNewline:
|
445
428
|
Description: 'Put end statement of multiline block on its own line.'
|
446
429
|
Enabled: false
|
447
430
|
|
@@ -462,7 +445,7 @@ Style/CaseEquality:
|
|
462
445
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-case-equality'
|
463
446
|
Enabled: false
|
464
447
|
|
465
|
-
|
448
|
+
Layout/CaseIndentation:
|
466
449
|
Description: 'Indentation of when in a case/when/[else/]end.'
|
467
450
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-when-to-case'
|
468
451
|
Enabled: false
|
@@ -472,7 +455,7 @@ Style/CharacterLiteral:
|
|
472
455
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-character-literals'
|
473
456
|
Enabled: false
|
474
457
|
|
475
|
-
|
458
|
+
Naming/ClassAndModuleCamelCase:
|
476
459
|
Description: 'Use CamelCase for classes and modules.'
|
477
460
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#camelcase-classes'
|
478
461
|
Enabled: false
|
@@ -495,7 +478,7 @@ Style/ClassVars:
|
|
495
478
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-class-vars'
|
496
479
|
Enabled: false
|
497
480
|
|
498
|
-
|
481
|
+
Layout/ClosingParenthesisIndentation:
|
499
482
|
Description: 'Checks the indentation of hanging closing parentheses.'
|
500
483
|
Enabled: false
|
501
484
|
|
@@ -514,11 +497,11 @@ Style/CommentAnnotation:
|
|
514
497
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#annotate-keywords'
|
515
498
|
Enabled: false
|
516
499
|
|
517
|
-
|
500
|
+
Layout/CommentIndentation:
|
518
501
|
Description: 'Indentation of comments.'
|
519
502
|
Enabled: false
|
520
503
|
|
521
|
-
|
504
|
+
Naming/ConstantName:
|
522
505
|
Description: 'Constants should use SCREAMING_SNAKE_CASE.'
|
523
506
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#screaming-snake-case'
|
524
507
|
Enabled: false
|
@@ -532,7 +515,7 @@ Style/Documentation:
|
|
532
515
|
Description: 'Document classes and non-namespace modules.'
|
533
516
|
Enabled: false
|
534
517
|
|
535
|
-
|
518
|
+
Layout/DotPosition:
|
536
519
|
Description: 'Checks the position of the dot in multi-line method calls.'
|
537
520
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains'
|
538
521
|
Enabled: false
|
@@ -546,7 +529,7 @@ Style/EachWithObject:
|
|
546
529
|
Description: 'Prefer `each_with_object` over `inject` or `reduce`.'
|
547
530
|
Enabled: false
|
548
531
|
|
549
|
-
|
532
|
+
Layout/ElseAlignment:
|
550
533
|
Description: 'Align elses and elsifs correctly.'
|
551
534
|
Enabled: false
|
552
535
|
|
@@ -554,32 +537,32 @@ Style/EmptyElse:
|
|
554
537
|
Description: 'Avoid empty else-clauses.'
|
555
538
|
Enabled: false
|
556
539
|
|
557
|
-
|
540
|
+
Layout/EmptyLineBetweenDefs:
|
558
541
|
Description: 'Use empty lines between defs.'
|
559
542
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods'
|
560
543
|
Enabled: false
|
561
544
|
|
562
|
-
|
545
|
+
Layout/EmptyLines:
|
563
546
|
Description: "Don't use several empty lines in a row."
|
564
547
|
Enabled: false
|
565
548
|
|
566
|
-
|
549
|
+
Layout/EmptyLinesAroundAccessModifier:
|
567
550
|
Description: "Keep blank lines around access modifiers."
|
568
551
|
Enabled: false
|
569
552
|
|
570
|
-
|
553
|
+
Layout/EmptyLinesAroundBlockBody:
|
571
554
|
Description: "Keeps track of empty lines around block bodies."
|
572
555
|
Enabled: false
|
573
556
|
|
574
|
-
|
557
|
+
Layout/EmptyLinesAroundClassBody:
|
575
558
|
Description: "Keeps track of empty lines around class bodies."
|
576
559
|
Enabled: false
|
577
560
|
|
578
|
-
|
561
|
+
Layout/EmptyLinesAroundModuleBody:
|
579
562
|
Description: "Keeps track of empty lines around module bodies."
|
580
563
|
Enabled: false
|
581
564
|
|
582
|
-
|
565
|
+
Layout/EmptyLinesAroundMethodBody:
|
583
566
|
Description: "Keeps track of empty lines around method bodies."
|
584
567
|
Enabled: false
|
585
568
|
|
@@ -593,7 +576,7 @@ Style/EndBlock:
|
|
593
576
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-END-blocks'
|
594
577
|
Enabled: false
|
595
578
|
|
596
|
-
|
579
|
+
Layout/EndOfLine:
|
597
580
|
Description: 'Use Unix-style line endings.'
|
598
581
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#crlf'
|
599
582
|
Enabled: false
|
@@ -603,21 +586,21 @@ Style/EvenOdd:
|
|
603
586
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
|
604
587
|
Enabled: false
|
605
588
|
|
606
|
-
|
589
|
+
Layout/ExtraSpacing:
|
607
590
|
Description: 'Do not use unnecessary spacing.'
|
608
591
|
Enabled: false
|
609
592
|
|
610
|
-
|
593
|
+
Naming/FileName:
|
611
594
|
Description: 'Use snake_case for source file names.'
|
612
595
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-files'
|
613
596
|
Enabled: false
|
614
597
|
|
615
|
-
|
598
|
+
Layout/InitialIndentation:
|
616
599
|
Description: >-
|
617
600
|
Checks the indentation of the first non-blank non-comment line in a file.
|
618
601
|
Enabled: false
|
619
602
|
|
620
|
-
|
603
|
+
Layout/FirstParameterIndentation:
|
621
604
|
Description: 'Checks the indentation of the first parameter in a method call.'
|
622
605
|
Enabled: false
|
623
606
|
|
@@ -666,22 +649,22 @@ Style/IfWithSemicolon:
|
|
666
649
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs'
|
667
650
|
Enabled: false
|
668
651
|
|
669
|
-
|
652
|
+
Layout/IndentationConsistency:
|
670
653
|
Description: 'Keep indentation straight.'
|
671
654
|
Enabled: false
|
672
655
|
|
673
|
-
|
656
|
+
Layout/IndentationWidth:
|
674
657
|
Description: 'Use 2 spaces for indentation.'
|
675
658
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
|
676
659
|
Enabled: false
|
677
660
|
|
678
|
-
|
661
|
+
Layout/IndentArray:
|
679
662
|
Description: >-
|
680
663
|
Checks the indentation of the first element in an array
|
681
664
|
literal.
|
682
665
|
Enabled: false
|
683
666
|
|
684
|
-
|
667
|
+
Layout/IndentHash:
|
685
668
|
Description: 'Checks the indentation of the first key in a hash literal.'
|
686
669
|
Enabled: false
|
687
670
|
|
@@ -700,7 +683,7 @@ Style/LambdaCall:
|
|
700
683
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc-call'
|
701
684
|
Enabled: false
|
702
685
|
|
703
|
-
|
686
|
+
Layout/LeadingCommentSpace:
|
704
687
|
Description: 'Comments should start with a space.'
|
705
688
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-space'
|
706
689
|
Enabled: false
|
@@ -723,7 +706,7 @@ Style/MethodDefParentheses:
|
|
723
706
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
|
724
707
|
Enabled: false
|
725
708
|
|
726
|
-
|
709
|
+
Naming/MethodName:
|
727
710
|
Description: 'Use the configured style when naming methods.'
|
728
711
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
|
729
712
|
Enabled: false
|
@@ -738,7 +721,7 @@ Style/MultilineBlockChain:
|
|
738
721
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
|
739
722
|
Enabled: false
|
740
723
|
|
741
|
-
|
724
|
+
Layout/MultilineBlockLayout:
|
742
725
|
Description: 'Ensures newlines after multiline block do statements.'
|
743
726
|
Enabled: false
|
744
727
|
|
@@ -747,7 +730,7 @@ Style/MultilineIfThen:
|
|
747
730
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-then'
|
748
731
|
Enabled: false
|
749
732
|
|
750
|
-
|
733
|
+
Layout/MultilineOperationIndentation:
|
751
734
|
Description: >-
|
752
735
|
Checks indentation of binary operations that span more than
|
753
736
|
one line.
|
@@ -811,7 +794,7 @@ Style/OneLineConditional:
|
|
811
794
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#ternary-operator'
|
812
795
|
Enabled: false
|
813
796
|
|
814
|
-
|
797
|
+
Naming/BinaryOperatorParameterName:
|
815
798
|
Description: 'When defining binary operators, name the argument other.'
|
816
799
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#other-arg'
|
817
800
|
Enabled: false
|
@@ -853,7 +836,7 @@ Style/PerlBackrefs:
|
|
853
836
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers'
|
854
837
|
Enabled: false
|
855
838
|
|
856
|
-
|
839
|
+
Naming/PredicateName:
|
857
840
|
Description: 'Check the names of predicate methods.'
|
858
841
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark'
|
859
842
|
Enabled: false
|
@@ -893,7 +876,7 @@ Style/RegexpLiteral:
|
|
893
876
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-r'
|
894
877
|
Enabled: false
|
895
878
|
|
896
|
-
|
879
|
+
Layout/RescueEnsureAlignment:
|
897
880
|
Description: 'Align rescues and ensures correctly.'
|
898
881
|
Enabled: false
|
899
882
|
|
@@ -929,75 +912,75 @@ Style/SingleLineMethods:
|
|
929
912
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-single-line-methods'
|
930
913
|
Enabled: false
|
931
914
|
|
932
|
-
|
915
|
+
Layout/SpaceBeforeFirstArg:
|
933
916
|
Description: >-
|
934
917
|
Checks that exactly one space is used between a method name
|
935
918
|
and the first argument for method calls without parentheses.
|
936
919
|
Enabled: true
|
937
920
|
|
938
|
-
|
921
|
+
Layout/SpaceAfterColon:
|
939
922
|
Description: 'Use spaces after colons.'
|
940
923
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
|
941
924
|
Enabled: false
|
942
925
|
|
943
|
-
|
926
|
+
Layout/SpaceAfterComma:
|
944
927
|
Description: 'Use spaces after commas.'
|
945
928
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
|
946
929
|
Enabled: false
|
947
930
|
|
948
|
-
|
931
|
+
Layout/SpaceAroundKeyword:
|
949
932
|
Description: 'Use spaces around keywords.'
|
950
933
|
Enabled: false
|
951
934
|
|
952
|
-
|
935
|
+
Layout/SpaceAfterMethodName:
|
953
936
|
Description: >-
|
954
937
|
Do not put a space between a method name and the opening
|
955
938
|
parenthesis in a method definition.
|
956
939
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
|
957
940
|
Enabled: false
|
958
941
|
|
959
|
-
|
942
|
+
Layout/SpaceAfterNot:
|
960
943
|
Description: Tracks redundant space after the ! operator.
|
961
944
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-space-bang'
|
962
945
|
Enabled: false
|
963
946
|
|
964
|
-
|
947
|
+
Layout/SpaceAfterSemicolon:
|
965
948
|
Description: 'Use spaces after semicolons.'
|
966
949
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
|
967
950
|
Enabled: false
|
968
951
|
|
969
|
-
|
952
|
+
Layout/SpaceBeforeBlockBraces:
|
970
953
|
Description: >-
|
971
954
|
Checks that the left block brace has or doesn't have space
|
972
955
|
before it.
|
973
956
|
Enabled: false
|
974
957
|
|
975
|
-
|
958
|
+
Layout/SpaceBeforeComma:
|
976
959
|
Description: 'No spaces before commas.'
|
977
960
|
Enabled: false
|
978
961
|
|
979
|
-
|
962
|
+
Layout/SpaceBeforeComment:
|
980
963
|
Description: >-
|
981
964
|
Checks for missing space between code and a comment on the
|
982
965
|
same line.
|
983
966
|
Enabled: false
|
984
967
|
|
985
|
-
|
968
|
+
Layout/SpaceBeforeSemicolon:
|
986
969
|
Description: 'No spaces before semicolons.'
|
987
970
|
Enabled: false
|
988
971
|
|
989
|
-
|
972
|
+
Layout/SpaceInsideBlockBraces:
|
990
973
|
Description: >-
|
991
974
|
Checks that block braces have or don't have surrounding space.
|
992
975
|
For blocks taking parameters, checks that the left brace has
|
993
976
|
or doesn't have trailing space.
|
994
977
|
Enabled: false
|
995
978
|
|
996
|
-
|
979
|
+
Layout/SpaceAroundBlockParameters:
|
997
980
|
Description: 'Checks the spacing inside and after block parameters pipes.'
|
998
981
|
Enabled: false
|
999
982
|
|
1000
|
-
|
983
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
1001
984
|
Description: >-
|
1002
985
|
Checks that the equals signs in parameter default assignments
|
1003
986
|
have or don't have surrounding space depending on
|
@@ -1005,32 +988,27 @@ Style/SpaceAroundEqualsInParameterDefault:
|
|
1005
988
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-around-equals'
|
1006
989
|
Enabled: false
|
1007
990
|
|
1008
|
-
|
991
|
+
Layout/SpaceAroundOperators:
|
1009
992
|
Description: 'Use a single space around operators.'
|
1010
993
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
|
1011
994
|
Enabled: false
|
1012
995
|
|
1013
|
-
|
1014
|
-
Description: 'No spaces after [ or before ].'
|
1015
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
|
1016
|
-
Enabled: false
|
1017
|
-
|
1018
|
-
Style/SpaceInsideHashLiteralBraces:
|
996
|
+
Layout/SpaceInsideHashLiteralBraces:
|
1019
997
|
Description: "Use spaces inside hash literal braces - or don't."
|
1020
998
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
|
1021
999
|
Enabled: false
|
1022
1000
|
|
1023
|
-
|
1001
|
+
Layout/SpaceInsideParens:
|
1024
1002
|
Description: 'No spaces after ( or before ).'
|
1025
1003
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
|
1026
1004
|
Enabled: false
|
1027
1005
|
|
1028
|
-
|
1006
|
+
Layout/SpaceInsideRangeLiteral:
|
1029
1007
|
Description: 'No spaces inside range literals.'
|
1030
1008
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-space-inside-range-literals'
|
1031
1009
|
Enabled: false
|
1032
1010
|
|
1033
|
-
|
1011
|
+
Layout/SpaceInsideStringInterpolation:
|
1034
1012
|
Description: 'Checks for padding/surrounding spaces inside string interpolation.'
|
1035
1013
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#string-interpolation'
|
1036
1014
|
Enabled: false
|
@@ -1064,12 +1042,12 @@ Style/SymbolProc:
|
|
1064
1042
|
Description: 'Use symbols as procs instead of blocks when possible.'
|
1065
1043
|
Enabled: false
|
1066
1044
|
|
1067
|
-
|
1045
|
+
Layout/Tab:
|
1068
1046
|
Description: 'No hard tabs.'
|
1069
1047
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
|
1070
1048
|
Enabled: false
|
1071
1049
|
|
1072
|
-
|
1050
|
+
Layout/TrailingBlankLines:
|
1073
1051
|
Description: 'Checks trailing blank lines and final newline.'
|
1074
1052
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#newline-eof'
|
1075
1053
|
Enabled: false
|
@@ -1079,12 +1057,17 @@ Style/TrailingCommaInArguments:
|
|
1079
1057
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-params-comma'
|
1080
1058
|
Enabled: false
|
1081
1059
|
|
1082
|
-
Style/
|
1083
|
-
Description: 'Checks for trailing comma in literals.'
|
1060
|
+
Style/TrailingCommaInArrayLiteral:
|
1061
|
+
Description: 'Checks for trailing comma in array literals.'
|
1062
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
|
1063
|
+
Enabled: false
|
1064
|
+
|
1065
|
+
Style/TrailingCommaInHashLiteral:
|
1066
|
+
Description: 'Checks for trailing comma in hash literals.'
|
1084
1067
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
|
1085
1068
|
Enabled: false
|
1086
1069
|
|
1087
|
-
|
1070
|
+
Layout/TrailingWhitespace:
|
1088
1071
|
Description: 'Avoid trailing whitespace.'
|
1089
1072
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace'
|
1090
1073
|
Enabled: false
|
@@ -1123,7 +1106,7 @@ Style/VariableInterpolation:
|
|
1123
1106
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#curlies-interpolate'
|
1124
1107
|
Enabled: false
|
1125
1108
|
|
1126
|
-
|
1109
|
+
Naming/VariableName:
|
1127
1110
|
Description: 'Use the configured style when naming variables.'
|
1128
1111
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
|
1129
1112
|
Enabled: false
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.
|
1
|
+
2.3.7
|
data/Gemfile.lock
CHANGED
@@ -1,77 +1,81 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
sportsflix (1.
|
5
|
-
execjs-fastnode (~> 0.2.
|
6
|
-
oga (~> 2.
|
7
|
-
thor (~> 0.
|
4
|
+
sportsflix (1.3.0)
|
5
|
+
execjs-fastnode (~> 0.2.1)
|
6
|
+
oga (~> 2.15)
|
7
|
+
thor (~> 0.20.0)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
12
|
ansi (1.5.0)
|
13
|
-
ast (2.
|
14
|
-
codacy-coverage (1.1.
|
13
|
+
ast (2.4.0)
|
14
|
+
codacy-coverage (1.1.8)
|
15
15
|
simplecov
|
16
16
|
diff-lcs (1.3)
|
17
|
-
docile (1.1
|
17
|
+
docile (1.3.1)
|
18
18
|
execjs (2.7.0)
|
19
19
|
execjs-fastnode (0.2.1)
|
20
20
|
execjs (~> 2.0)
|
21
|
-
|
22
|
-
|
21
|
+
jaro_winkler (1.5.1)
|
22
|
+
json (2.1.0)
|
23
|
+
oga (2.15)
|
23
24
|
ast
|
24
25
|
ruby-ll (~> 2.1)
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
rspec-
|
33
|
-
rspec-
|
34
|
-
|
35
|
-
|
36
|
-
|
26
|
+
parallel (1.12.1)
|
27
|
+
parser (2.5.1.0)
|
28
|
+
ast (~> 2.4.0)
|
29
|
+
powerpack (0.1.2)
|
30
|
+
rainbow (3.0.0)
|
31
|
+
rake (12.3.1)
|
32
|
+
rspec (3.7.0)
|
33
|
+
rspec-core (~> 3.7.0)
|
34
|
+
rspec-expectations (~> 3.7.0)
|
35
|
+
rspec-mocks (~> 3.7.0)
|
36
|
+
rspec-core (3.7.1)
|
37
|
+
rspec-support (~> 3.7.0)
|
38
|
+
rspec-expectations (3.7.0)
|
37
39
|
diff-lcs (>= 1.2.0, < 2.0)
|
38
|
-
rspec-support (~> 3.
|
39
|
-
rspec-mocks (3.
|
40
|
+
rspec-support (~> 3.7.0)
|
41
|
+
rspec-mocks (3.7.0)
|
40
42
|
diff-lcs (>= 1.2.0, < 2.0)
|
41
|
-
rspec-support (~> 3.
|
42
|
-
rspec-support (3.
|
43
|
-
rubocop (0.
|
44
|
-
|
43
|
+
rspec-support (~> 3.7.0)
|
44
|
+
rspec-support (3.7.1)
|
45
|
+
rubocop (0.57.2)
|
46
|
+
jaro_winkler (~> 1.5.1)
|
47
|
+
parallel (~> 1.10)
|
48
|
+
parser (>= 2.5)
|
45
49
|
powerpack (~> 0.1)
|
46
|
-
rainbow (>=
|
50
|
+
rainbow (>= 2.2.2, < 4.0)
|
47
51
|
ruby-progressbar (~> 1.7)
|
48
52
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
49
|
-
rubocop-rspec (1.
|
50
|
-
rubocop (>= 0.
|
53
|
+
rubocop-rspec (1.27.0)
|
54
|
+
rubocop (>= 0.56.0)
|
51
55
|
ruby-ll (2.1.2)
|
52
56
|
ansi
|
53
57
|
ast
|
54
|
-
ruby-progressbar (1.
|
55
|
-
simplecov (0.
|
56
|
-
docile (~> 1.1
|
58
|
+
ruby-progressbar (1.9.0)
|
59
|
+
simplecov (0.16.1)
|
60
|
+
docile (~> 1.1)
|
57
61
|
json (>= 1.8, < 3)
|
58
62
|
simplecov-html (~> 0.10.0)
|
59
|
-
simplecov-html (0.10.
|
60
|
-
thor (0.
|
61
|
-
unicode-display_width (1.
|
63
|
+
simplecov-html (0.10.2)
|
64
|
+
thor (0.20.0)
|
65
|
+
unicode-display_width (1.4.0)
|
62
66
|
|
63
67
|
PLATFORMS
|
64
68
|
ruby
|
65
69
|
|
66
70
|
DEPENDENCIES
|
67
|
-
bundler (~> 1.
|
71
|
+
bundler (~> 1.16)
|
68
72
|
codacy-coverage
|
69
|
-
rake (~>
|
70
|
-
rspec (~> 3.
|
71
|
-
rubocop (~> 0.
|
72
|
-
rubocop-rspec (~> 1.
|
73
|
+
rake (~> 12.3)
|
74
|
+
rspec (~> 3.7)
|
75
|
+
rubocop (~> 0.57.2)
|
76
|
+
rubocop-rspec (~> 1.27)
|
73
77
|
simplecov
|
74
78
|
sportsflix!
|
75
79
|
|
76
80
|
BUNDLED WITH
|
77
|
-
1.16.
|
81
|
+
1.16.2
|
data/circle.yml
CHANGED
data/lib/sportsflix.rb
CHANGED
@@ -17,7 +17,7 @@ module Sportsflix
|
|
17
17
|
@arenavision_client = Providers::Arenavision::Client.new(options)
|
18
18
|
@executor = Sportsflix::Utils::Executor.new(options)
|
19
19
|
@players = {
|
20
|
-
|
20
|
+
:vlc => Sportsflix::Players::VLC::Client.new(options)
|
21
21
|
}
|
22
22
|
end
|
23
23
|
|
@@ -32,7 +32,7 @@ module Sportsflix
|
|
32
32
|
|
33
33
|
response = ask_choose_stream(streams)
|
34
34
|
|
35
|
-
stream_uri = @arenavision_client.get_stream_uri(response[:channel_number])
|
35
|
+
stream_uri = @arenavision_client.get_stream_uri(response[:channel_number], response[:event])
|
36
36
|
|
37
37
|
unless @players.key?(@video_player)
|
38
38
|
puts "Unable to find client for #{@video_player} player"
|
@@ -41,12 +41,13 @@ module Sportsflix
|
|
41
41
|
|
42
42
|
player = @players[@video_player]
|
43
43
|
player.start({
|
44
|
-
|
45
|
-
|
44
|
+
:proxy => response[:stream][:proxy],
|
45
|
+
:uri => stream_uri
|
46
46
|
})
|
47
47
|
end
|
48
48
|
|
49
49
|
private
|
50
|
+
|
50
51
|
def ask_choose_stream(streams)
|
51
52
|
selection = ask_stream(streams)
|
52
53
|
selected_stream = streams[selection]
|
@@ -58,8 +59,9 @@ module Sportsflix
|
|
58
59
|
stream_channel_nr = ask_channel(stream_channels)
|
59
60
|
|
60
61
|
{
|
61
|
-
|
62
|
-
|
62
|
+
:stream => selected_stream,
|
63
|
+
:channel_number => stream_channel_nr,
|
64
|
+
:event => stream_channels[:event]
|
63
65
|
}
|
64
66
|
end
|
65
67
|
|
@@ -35,7 +35,10 @@ module Sportsflix
|
|
35
35
|
item_text = item.css('td:nth-child(1)').text
|
36
36
|
item_text = item_text.force_encoding('UTF-8')
|
37
37
|
item_text = item_text.delete(' ').strip
|
38
|
-
|
38
|
+
|
39
|
+
script_text = item.css('td:nth-child(1) script').text
|
40
|
+
|
41
|
+
not item_text.empty? and script_text.empty?
|
39
42
|
end
|
40
43
|
|
41
44
|
streams.map do |item|
|
@@ -51,9 +54,9 @@ module Sportsflix
|
|
51
54
|
end
|
52
55
|
end
|
53
56
|
|
54
|
-
def get_stream_uri(stream_nr)
|
55
|
-
home
|
56
|
-
stream_link = home.css('a').select { |item| item.text.include?("
|
57
|
+
def get_stream_uri(stream_nr, event)
|
58
|
+
home = get_page_contents("#{BASE_URL}/")
|
59
|
+
stream_link = home.css('a').select { |item| item.text.include?("#{event} #{stream_nr}") }.first.get('href')
|
57
60
|
stream_raw = get_page_contents(stream_link)
|
58
61
|
stream_raw.css('a').select { |item| !item.get('href').nil? && item.get('href').include?('acestream://') }.first.get('href')
|
59
62
|
end
|
@@ -66,12 +69,17 @@ module Sportsflix
|
|
66
69
|
end
|
67
70
|
|
68
71
|
def parse_stream_ids(raw_stream)
|
69
|
-
matches = raw_stream.scan(/(([0-9]+)(?:-([0-9]+))? \[(.+?)\])/)
|
72
|
+
matches = raw_stream.scan(/(([W]?[0-9]+)(?:-([W]?[0-9]+))? \[(.+?)\])/)
|
70
73
|
matches.map do |match|
|
71
74
|
{
|
72
|
-
:start => match[1].to_i,
|
73
|
-
:end => (match[2] || match[1]).to_i,
|
74
|
-
:language => match[3]
|
75
|
+
:start => match[1].delete("W").to_i,
|
76
|
+
:end => (match[2] || match[1]).delete("W").to_i,
|
77
|
+
:language => match[3],
|
78
|
+
:event => if match[1].start_with?("W")
|
79
|
+
"World Cup"
|
80
|
+
else
|
81
|
+
"ArenaVision"
|
82
|
+
end
|
75
83
|
}
|
76
84
|
end
|
77
85
|
end
|
data/lib/sportsflix/version.rb
CHANGED
data/sportsflix.gemspec
CHANGED
@@ -34,18 +34,18 @@ Gem::Specification.new do |spec|
|
|
34
34
|
spec.require_paths = ['lib']
|
35
35
|
|
36
36
|
# Development
|
37
|
-
spec.add_development_dependency 'bundler', ['~> 1.
|
38
|
-
spec.add_development_dependency 'rake', ['~>
|
39
|
-
spec.add_development_dependency 'rspec', ['~> 3.
|
37
|
+
spec.add_development_dependency 'bundler', ['~> 1.16']
|
38
|
+
spec.add_development_dependency 'rake', ['~> 12.3']
|
39
|
+
spec.add_development_dependency 'rspec', ['~> 3.7']
|
40
40
|
spec.add_development_dependency 'simplecov'
|
41
41
|
spec.add_development_dependency 'codacy-coverage'
|
42
42
|
|
43
43
|
# Linters
|
44
|
-
spec.add_development_dependency 'rubocop', ['~> 0.
|
45
|
-
spec.add_development_dependency 'rubocop-rspec', ['~> 1.
|
44
|
+
spec.add_development_dependency 'rubocop', ['~> 0.57.2']
|
45
|
+
spec.add_development_dependency 'rubocop-rspec', ['~> 1.27']
|
46
46
|
|
47
47
|
# Runtime
|
48
|
-
spec.add_runtime_dependency 'thor', ['~> 0.
|
49
|
-
spec.add_runtime_dependency 'oga', ['~> 2.
|
50
|
-
spec.add_runtime_dependency 'execjs-fastnode', ['~> 0.2.
|
48
|
+
spec.add_runtime_dependency 'thor', ['~> 0.20.0']
|
49
|
+
spec.add_runtime_dependency 'oga', ['~> 2.15']
|
50
|
+
spec.add_runtime_dependency 'execjs-fastnode', ['~> 0.2.1']
|
51
51
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sportsflix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rodrigo Fernandes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.16'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.16'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '12.3'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '12.3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '3.
|
47
|
+
version: '3.7'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '3.
|
54
|
+
version: '3.7'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: simplecov
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,70 +86,70 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
89
|
+
version: 0.57.2
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.
|
96
|
+
version: 0.57.2
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rubocop-rspec
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '1.
|
103
|
+
version: '1.27'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '1.
|
110
|
+
version: '1.27'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: thor
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.
|
117
|
+
version: 0.20.0
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 0.
|
124
|
+
version: 0.20.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: oga
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '2.
|
131
|
+
version: '2.15'
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '2.
|
138
|
+
version: '2.15'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: execjs-fastnode
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: 0.2.
|
145
|
+
version: 0.2.1
|
146
146
|
type: :runtime
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: 0.2.
|
152
|
+
version: 0.2.1
|
153
153
|
description: "\n Watch the best sports stream in HD from the command line.\n Using
|
154
154
|
arenavision streams.\n "
|
155
155
|
email:
|
@@ -205,7 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
205
205
|
version: '0'
|
206
206
|
requirements: []
|
207
207
|
rubyforge_project:
|
208
|
-
rubygems_version: 2.5.
|
208
|
+
rubygems_version: 2.5.2.3
|
209
209
|
signing_key:
|
210
210
|
specification_version: 4
|
211
211
|
summary: Watch the best sports stream in HD from the command line
|