meta-tags 2.6.0 → 2.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bcbe8d42f7548699bb2a370c45a5a0bd28bda93c
4
- data.tar.gz: 490acebe6d35cd7890787012e4b9eea11f567c0a
3
+ metadata.gz: 64868c217c0bd18d347bce58037545188b8851d5
4
+ data.tar.gz: 59dc18e5c1710abdaaa8d54dd6fddf1205683502
5
5
  SHA512:
6
- metadata.gz: f644c35dd746b09bfdb3c2c25d656d43ced607b91b30327d165952f49c3a569b5def2f8af0fbb20a455fd81faf3114089a579206e6289fdfaf08ce96e480c1dc
7
- data.tar.gz: 7fe7416185f75d3d5bc04a3dceafe77944e41d2a57639ebeb5c4ace7035b59ec1b951d865f4490353cd38b36ab81a43460bea196199e405f05c6c013e3b5ad8e
6
+ metadata.gz: c8a2e2c7c67e25ae2dd712be8d7b7fd55ef3bd9fc4bf1cd3518c4592f468198b785ca74473cf761cd7ac7e84397a42b8fdaa222769f09e3b4cc12b55cce69897
7
+ data.tar.gz: 46bdf3b8d22288b62bfb8a072cdcd859c85f7ef865bcaeb18f21ba3d3ff9de15a18d21d628cfbdb5727aaa53b18c0f14bb2840a53760631b2b7adfa08cb1544d
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/.rubocop.yml CHANGED
@@ -82,7 +82,7 @@ Lint/EnsureReturn:
82
82
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-return-ensure'
83
83
  Enabled: true
84
84
 
85
- Lint/Eval:
85
+ Security/Eval:
86
86
  Description: 'The use of eval represents a serious security risk.'
87
87
  Enabled: true
88
88
 
@@ -95,13 +95,7 @@ Lint/HandleExceptions:
95
95
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions'
96
96
  Enabled: true
97
97
 
98
- Lint/InvalidCharacterLiteral:
99
- Description: >-
100
- Checks for invalid character literals with a non-escaped
101
- whitespace character.
102
- Enabled: true
103
-
104
- Lint/LiteralInCondition:
98
+ Lint/LiteralAsCondition:
105
99
  Description: 'Checks of literals used in conditions.'
106
100
  Enabled: true
107
101
 
@@ -368,12 +362,12 @@ Rails/Validation:
368
362
 
369
363
  ################## Style #################################
370
364
 
371
- Style/AccessModifierIndentation:
365
+ Layout/AccessModifierIndentation:
372
366
  Description: Check indentation of private/protected visibility modifiers.
373
367
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected'
374
368
  Enabled: false
375
369
 
376
- Style/AccessorMethodName:
370
+ Naming/AccessorMethodName:
377
371
  Description: Check the naming of accessor methods for get_/set_.
378
372
  Enabled: false
379
373
 
@@ -382,20 +376,20 @@ Style/Alias:
382
376
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#alias-method'
383
377
  Enabled: false
384
378
 
385
- Style/AlignArray:
379
+ Layout/AlignArray:
386
380
  Description: >-
387
381
  Align the elements of an array literal if they span more than
388
382
  one line.
389
383
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays'
390
384
  Enabled: true
391
385
 
392
- Style/AlignHash:
386
+ Layout/AlignHash:
393
387
  Description: >-
394
388
  Align the elements of a hash literal if they span more than
395
389
  one line.
396
390
  Enabled: true
397
391
 
398
- Style/AlignParameters:
392
+ Layout/AlignParameters:
399
393
  Description: >-
400
394
  Align the parameters of a method call if they span more
401
395
  than one line.
@@ -417,7 +411,7 @@ Style/AsciiComments:
417
411
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-comments'
418
412
  Enabled: true
419
413
 
420
- Style/AsciiIdentifiers:
414
+ Naming/AsciiIdentifiers:
421
415
  Description: 'Use only ascii symbols in identifiers.'
422
416
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-identifiers'
423
417
  Enabled: true
@@ -442,7 +436,7 @@ Style/BlockComments:
442
436
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-block-comments'
443
437
  Enabled: false
444
438
 
445
- Style/BlockEndNewline:
439
+ Layout/BlockEndNewline:
446
440
  Description: 'Put end statement of multiline block on its own line.'
447
441
  Enabled: true
448
442
 
@@ -463,7 +457,7 @@ Style/CaseEquality:
463
457
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-case-equality'
464
458
  Enabled: true
465
459
 
466
- Style/CaseIndentation:
460
+ Layout/CaseIndentation:
467
461
  Description: 'Indentation of when in a case/when/[else/]end.'
468
462
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-when-to-case'
469
463
  Enabled: false
@@ -473,7 +467,7 @@ Style/CharacterLiteral:
473
467
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-character-literals'
474
468
  Enabled: true
475
469
 
476
- Style/ClassAndModuleCamelCase:
470
+ Naming/ClassAndModuleCamelCase:
477
471
  Description: 'Use CamelCase for classes and modules.'
478
472
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#camelcase-classes'
479
473
  Enabled: true
@@ -497,7 +491,7 @@ Style/ClassVars:
497
491
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-class-vars'
498
492
  Enabled: false
499
493
 
500
- Style/ClosingParenthesisIndentation:
494
+ Layout/ClosingParenthesisIndentation:
501
495
  Description: 'Checks the indentation of hanging closing parentheses.'
502
496
  Enabled: true
503
497
 
@@ -516,11 +510,11 @@ Style/CommentAnnotation:
516
510
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#annotate-keywords'
517
511
  Enabled: false
518
512
 
519
- Style/CommentIndentation:
513
+ Layout/CommentIndentation:
520
514
  Description: 'Indentation of comments.'
521
515
  Enabled: false
522
516
 
523
- Style/ConstantName:
517
+ Naming/ConstantName:
524
518
  Description: 'Constants should use SCREAMING_SNAKE_CASE.'
525
519
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#screaming-snake-case'
526
520
  Enabled: true
@@ -539,7 +533,7 @@ Style/Documentation:
539
533
  Description: 'Document classes and non-namespace modules.'
540
534
  Enabled: false
541
535
 
542
- Style/DotPosition:
536
+ Layout/DotPosition:
543
537
  Description: 'Checks the position of the dot in multi-line method calls.'
544
538
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains'
545
539
  EnforcedStyle: trailing
@@ -554,7 +548,7 @@ Style/EachWithObject:
554
548
  Description: 'Prefer `each_with_object` over `inject` or `reduce`.'
555
549
  Enabled: false
556
550
 
557
- Style/ElseAlignment:
551
+ Layout/ElseAlignment:
558
552
  Description: 'Align elses and elsifs correctly.'
559
553
  Enabled: true
560
554
 
@@ -562,32 +556,32 @@ Style/EmptyElse:
562
556
  Description: 'Avoid empty else-clauses.'
563
557
  Enabled: true
564
558
 
565
- Style/EmptyLineBetweenDefs:
559
+ Layout/EmptyLineBetweenDefs:
566
560
  Description: 'Use empty lines between defs.'
567
561
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods'
568
562
  Enabled: true
569
563
 
570
- Style/EmptyLines:
564
+ Layout/EmptyLines:
571
565
  Description: "Don't use several empty lines in a row."
572
566
  Enabled: true
573
567
 
574
- Style/EmptyLinesAroundAccessModifier:
568
+ Layout/EmptyLinesAroundAccessModifier:
575
569
  Description: "Keep blank lines around access modifiers."
576
570
  Enabled: true
577
571
 
578
- Style/EmptyLinesAroundBlockBody:
572
+ Layout/EmptyLinesAroundBlockBody:
579
573
  Description: "Keeps track of empty lines around block bodies."
580
574
  Enabled: true
581
575
 
582
- Style/EmptyLinesAroundClassBody:
576
+ Layout/EmptyLinesAroundClassBody:
583
577
  Description: "Keeps track of empty lines around class bodies."
584
578
  Enabled: false
585
579
 
586
- Style/EmptyLinesAroundModuleBody:
580
+ Layout/EmptyLinesAroundModuleBody:
587
581
  Description: "Keeps track of empty lines around module bodies."
588
582
  Enabled: false
589
583
 
590
- Style/EmptyLinesAroundMethodBody:
584
+ Layout/EmptyLinesAroundMethodBody:
591
585
  Description: "Keeps track of empty lines around method bodies."
592
586
  Enabled: true
593
587
 
@@ -601,7 +595,7 @@ Style/EndBlock:
601
595
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-END-blocks'
602
596
  Enabled: true
603
597
 
604
- Style/EndOfLine:
598
+ Layout/EndOfLine:
605
599
  Description: 'Use Unix-style line endings.'
606
600
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#crlf'
607
601
  Enabled: true
@@ -611,21 +605,21 @@ Style/EvenOdd:
611
605
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
612
606
  Enabled: true
613
607
 
614
- Style/ExtraSpacing:
608
+ Layout/ExtraSpacing:
615
609
  Description: 'Do not use unnecessary spacing.'
616
610
  Enabled: true
617
611
 
618
- Style/FileName:
612
+ Naming/FileName:
619
613
  Description: 'Use snake_case for source file names.'
620
614
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-files'
621
615
  Enabled: false
622
616
 
623
- Style/InitialIndentation:
617
+ Layout/InitialIndentation:
624
618
  Description: >-
625
619
  Checks the indentation of the first non-blank non-comment line in a file.
626
620
  Enabled: true
627
621
 
628
- Style/FirstParameterIndentation:
622
+ Layout/FirstParameterIndentation:
629
623
  Description: 'Checks the indentation of the first parameter in a method call.'
630
624
  Enabled: false
631
625
 
@@ -674,22 +668,22 @@ Style/IfWithSemicolon:
674
668
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs'
675
669
  Enabled: true
676
670
 
677
- Style/IndentationConsistency:
671
+ Layout/IndentationConsistency:
678
672
  Description: 'Keep indentation straight.'
679
673
  Enabled: true
680
674
 
681
- Style/IndentationWidth:
675
+ Layout/IndentationWidth:
682
676
  Description: 'Use 2 spaces for indentation.'
683
677
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
684
678
  Enabled: true
685
679
 
686
- Style/IndentArray:
680
+ Layout/IndentArray:
687
681
  Description: >-
688
682
  Checks the indentation of the first element in an array
689
683
  literal.
690
684
  Enabled: true
691
685
 
692
- Style/IndentHash:
686
+ Layout/IndentHash:
693
687
  Description: 'Checks the indentation of the first key in a hash literal.'
694
688
  Enabled: true
695
689
 
@@ -708,7 +702,7 @@ Style/LambdaCall:
708
702
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc-call'
709
703
  Enabled: true
710
704
 
711
- Style/LeadingCommentSpace:
705
+ Layout/LeadingCommentSpace:
712
706
  Description: 'Comments should start with a space.'
713
707
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-space'
714
708
  Enabled: true
@@ -719,7 +713,7 @@ Style/LineEndConcatenation:
719
713
  line end.
720
714
  Enabled: false
721
715
 
722
- Style/MethodCallParentheses:
716
+ Style/MethodCallWithoutArgsParentheses:
723
717
  Description: 'Do not use parentheses for method calls with no arguments.'
724
718
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-args-no-parens'
725
719
  Enabled: true
@@ -731,7 +725,7 @@ Style/MethodDefParentheses:
731
725
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
732
726
  Enabled: true
733
727
 
734
- Style/MethodName:
728
+ Naming/MethodName:
735
729
  Description: 'Use the configured style when naming methods.'
736
730
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
737
731
  Enabled: true
@@ -746,7 +740,7 @@ Style/MultilineBlockChain:
746
740
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
747
741
  Enabled: false
748
742
 
749
- Style/MultilineBlockLayout:
743
+ Layout/MultilineBlockLayout:
750
744
  Description: 'Ensures newlines after multiline block do statements.'
751
745
  Enabled: true
752
746
 
@@ -755,7 +749,7 @@ Style/MultilineIfThen:
755
749
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-then'
756
750
  Enabled: true
757
751
 
758
- Style/MultilineOperationIndentation:
752
+ Layout/MultilineOperationIndentation:
759
753
  Description: >-
760
754
  Checks indentation of binary operations that span more than
761
755
  one line.
@@ -819,7 +813,7 @@ Style/OneLineConditional:
819
813
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#ternary-operator'
820
814
  Enabled: true
821
815
 
822
- Style/OpMethod:
816
+ Naming/BinaryOperatorParameterName:
823
817
  Description: 'When defining binary operators, name the argument other.'
824
818
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#other-arg'
825
819
  Enabled: false
@@ -838,7 +832,7 @@ Style/ParallelAssignment:
838
832
  matches on both sides of the assignment.
839
833
  This also provides performance benefits
840
834
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parallel-assignment'
841
- Enabled: false
835
+ Enabled: true
842
836
 
843
837
  Style/ParenthesesAroundCondition:
844
838
  Description: >-
@@ -861,7 +855,7 @@ Style/PerlBackrefs:
861
855
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers'
862
856
  Enabled: false
863
857
 
864
- Style/PredicateName:
858
+ Naming/PredicateName:
865
859
  Description: 'Check the names of predicate methods.'
866
860
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark'
867
861
  Enabled: false
@@ -901,7 +895,7 @@ Style/RegexpLiteral:
901
895
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-r'
902
896
  Enabled: false
903
897
 
904
- Style/RescueEnsureAlignment:
898
+ Layout/RescueEnsureAlignment:
905
899
  Description: 'Align rescues and ensures correctly.'
906
900
  Enabled: true
907
901
 
@@ -937,75 +931,75 @@ Style/SingleLineMethods:
937
931
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-single-line-methods'
938
932
  Enabled: true
939
933
 
940
- Style/SpaceBeforeFirstArg:
934
+ Layout/SpaceBeforeFirstArg:
941
935
  Description: >-
942
936
  Checks that exactly one space is used between a method name
943
937
  and the first argument for method calls without parentheses.
944
938
  Enabled: true
945
939
 
946
- Style/SpaceAfterColon:
940
+ Layout/SpaceAfterColon:
947
941
  Description: 'Use spaces after colons.'
948
942
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
949
943
  Enabled: true
950
944
 
951
- Style/SpaceAfterComma:
945
+ Layout/SpaceAfterComma:
952
946
  Description: 'Use spaces after commas.'
953
947
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
954
948
  Enabled: true
955
949
 
956
- Style/SpaceAroundKeyword:
950
+ Layout/SpaceAroundKeyword:
957
951
  Description: 'Use spaces around keywords.'
958
952
  Enabled: true
959
953
 
960
- Style/SpaceAfterMethodName:
954
+ Layout/SpaceAfterMethodName:
961
955
  Description: >-
962
956
  Do not put a space between a method name and the opening
963
957
  parenthesis in a method definition.
964
958
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
965
959
  Enabled: true
966
960
 
967
- Style/SpaceAfterNot:
961
+ Layout/SpaceAfterNot:
968
962
  Description: Tracks redundant space after the ! operator.
969
963
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-space-bang'
970
964
  Enabled: true
971
965
 
972
- Style/SpaceAfterSemicolon:
966
+ Layout/SpaceAfterSemicolon:
973
967
  Description: 'Use spaces after semicolons.'
974
968
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
975
969
  Enabled: true
976
970
 
977
- Style/SpaceBeforeBlockBraces:
971
+ Layout/SpaceBeforeBlockBraces:
978
972
  Description: >-
979
973
  Checks that the left block brace has or doesn't have space
980
974
  before it.
981
975
  Enabled: true
982
976
 
983
- Style/SpaceBeforeComma:
977
+ Layout/SpaceBeforeComma:
984
978
  Description: 'No spaces before commas.'
985
979
  Enabled: true
986
980
 
987
- Style/SpaceBeforeComment:
981
+ Layout/SpaceBeforeComment:
988
982
  Description: >-
989
983
  Checks for missing space between code and a comment on the
990
984
  same line.
991
985
  Enabled: false
992
986
 
993
- Style/SpaceBeforeSemicolon:
987
+ Layout/SpaceBeforeSemicolon:
994
988
  Description: 'No spaces before semicolons.'
995
989
  Enabled: true
996
990
 
997
- Style/SpaceInsideBlockBraces:
991
+ Layout/SpaceInsideBlockBraces:
998
992
  Description: >-
999
993
  Checks that block braces have or don't have surrounding space.
1000
994
  For blocks taking parameters, checks that the left brace has
1001
995
  or doesn't have trailing space.
1002
996
  Enabled: true
1003
997
 
1004
- Style/SpaceAroundBlockParameters:
998
+ Layout/SpaceAroundBlockParameters:
1005
999
  Description: 'Checks the spacing inside and after block parameters pipes.'
1006
1000
  Enabled: true
1007
1001
 
1008
- Style/SpaceAroundEqualsInParameterDefault:
1002
+ Layout/SpaceAroundEqualsInParameterDefault:
1009
1003
  Description: >-
1010
1004
  Checks that the equals signs in parameter default assignments
1011
1005
  have or don't have surrounding space depending on
@@ -1013,32 +1007,32 @@ Style/SpaceAroundEqualsInParameterDefault:
1013
1007
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-around-equals'
1014
1008
  Enabled: true
1015
1009
 
1016
- Style/SpaceAroundOperators:
1010
+ Layout/SpaceAroundOperators:
1017
1011
  Description: 'Use a single space around operators.'
1018
1012
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
1019
1013
  Enabled: true
1020
1014
 
1021
- Style/SpaceInsideBrackets:
1015
+ Layout/SpaceInsideBrackets:
1022
1016
  Description: 'No spaces after [ or before ].'
1023
1017
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
1024
1018
  Enabled: false
1025
1019
 
1026
- Style/SpaceInsideHashLiteralBraces:
1020
+ Layout/SpaceInsideHashLiteralBraces:
1027
1021
  Description: "Use spaces inside hash literal braces - or don't."
1028
1022
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
1029
1023
  Enabled: true
1030
1024
 
1031
- Style/SpaceInsideParens:
1025
+ Layout/SpaceInsideParens:
1032
1026
  Description: 'No spaces after ( or before ).'
1033
1027
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
1034
1028
  Enabled: true
1035
1029
 
1036
- Style/SpaceInsideRangeLiteral:
1030
+ Layout/SpaceInsideRangeLiteral:
1037
1031
  Description: 'No spaces inside range literals.'
1038
1032
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-space-inside-range-literals'
1039
1033
  Enabled: true
1040
1034
 
1041
- Style/SpaceInsideStringInterpolation:
1035
+ Layout/SpaceInsideStringInterpolation:
1042
1036
  Description: 'Checks for padding/surrounding spaces inside string interpolation.'
1043
1037
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#string-interpolation'
1044
1038
  Enabled: true
@@ -1072,12 +1066,12 @@ Style/SymbolProc:
1072
1066
  Description: 'Use symbols as procs instead of blocks when possible.'
1073
1067
  Enabled: true
1074
1068
 
1075
- Style/Tab:
1069
+ Layout/Tab:
1076
1070
  Description: 'No hard tabs.'
1077
1071
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
1078
1072
  Enabled: true
1079
1073
 
1080
- Style/TrailingBlankLines:
1074
+ Layout/TrailingBlankLines:
1081
1075
  Description: 'Checks trailing blank lines and final newline.'
1082
1076
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#newline-eof'
1083
1077
  Enabled: true
@@ -1092,7 +1086,7 @@ Style/TrailingCommaInLiteral:
1092
1086
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
1093
1087
  Enabled: false
1094
1088
 
1095
- Style/TrailingWhitespace:
1089
+ Layout/TrailingWhitespace:
1096
1090
  Description: 'Avoid trailing whitespace.'
1097
1091
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace'
1098
1092
  Enabled: true
@@ -1131,7 +1125,7 @@ Style/VariableInterpolation:
1131
1125
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#curlies-interpolate'
1132
1126
  Enabled: true
1133
1127
 
1134
- Style/VariableName:
1128
+ Naming/VariableName:
1135
1129
  Description: 'Use the configured style when naming variables.'
1136
1130
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
1137
1131
  Enabled: true
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 2.7.0 (November 22, 2017) [☰](https://github.com/kpumuk/meta-tags/compare/v2.6.0...v2.7.0)
2
+
3
+ Changes:
4
+ - Generate open meta tags (`<meta ... >`) instead of closed meta tags (`<meta ... />`) by default, which is . Added a new option to switch back to self-closing meta tags, which are valid in HTML5, but unnecessary.
5
+
1
6
  ## 2.6.0 (August 24, 2017) [☰](https://github.com/kpumuk/meta-tags/compare/v2.5.0...v2.6.0)
2
7
 
3
8
  Features:
data/README.md CHANGED
@@ -297,7 +297,7 @@ some search engines. They are used to describe the contents of a page in
297
297
 
298
298
  ```ruby
299
299
  set_meta_tags description: "All text about keywords, other keywords"
300
- # <meta name="description" content="All text about keywords, other keywords" />
300
+ # <meta name="description" content="All text about keywords, other keywords">
301
301
  ```
302
302
 
303
303
  Recommended description tag length: up to <b>160 characters</b>.
@@ -314,7 +314,7 @@ would be considered spam and you may get permanently banned from SERP's
314
314
 
315
315
  ```ruby
316
316
  set_meta_tags keywords: %w[keyword1 Keyword2 KeyWord3]
317
- # <meta name="keywords" content="keyword1, keyword2, keyword3" />
317
+ # <meta name="keywords" content="keyword1, keyword2, keyword3">
318
318
  ```
319
319
 
320
320
  Recommended keywords tag length: up to <b>255 characters</b>, <b>20 words</b>.
@@ -329,9 +329,9 @@ include specific pages in their indexes.
329
329
 
330
330
  ```ruby
331
331
  set_meta_tags noindex: true
332
- # <meta name="robots" content="noindex" />
332
+ # <meta name="robots" content="noindex">
333
333
  set_meta_tags noindex: 'googlebot'
334
- # <meta name="googlebot" content="noindex" />
334
+ # <meta name="googlebot" content="noindex">
335
335
  ```
336
336
 
337
337
  This is useful for pages like login, password reset, privacy policy, etc.
@@ -350,9 +350,9 @@ still arrives at your undesired page.
350
350
 
351
351
  ```ruby
352
352
  set_meta_tags nofollow: true
353
- # <meta name="robots" content="nofollow" />
353
+ # <meta name="robots" content="nofollow">
354
354
  set_meta_tags nofollow: 'googlebot'
355
- # <meta name="googlebot" content="nofollow" />
355
+ # <meta name="googlebot" content="nofollow">
356
356
  ```
357
357
 
358
358
  Further reading:
@@ -366,7 +366,7 @@ Follow will work with Noindex meta tag
366
366
 
367
367
  ```ruby
368
368
  set_meta_tags noindex: true, follow: true
369
- # <meta name="robots" content="noindex, follow" />
369
+ # <meta name="robots" content="noindex, follow">
370
370
  ```
371
371
 
372
372
  It will not look at this page but will crawl through the rest of the pages on
@@ -380,7 +380,7 @@ that URL, and link popularity and authority will be applied to that URL.
380
380
 
381
381
  ```ruby
382
382
  set_meta_tags canonical: "http://yoursite.com/canonical/url"
383
- # <link rel="canonical" href="http://yoursite.com/canonical/url" />
383
+ # <link rel="canonical" href="http://yoursite.com/canonical/url">
384
384
  ```
385
385
 
386
386
  Further reading:
@@ -396,15 +396,15 @@ most commonly 16×16 pixels, associated with a particular website or web page.
396
396
 
397
397
  ```ruby
398
398
  set_meta_tags icon: '/favicon.ico'
399
- # <link rel="icon" href="/favicon.ico" type="image/x-icon" />
399
+ # <link rel="icon" href="/favicon.ico" type="image/x-icon">
400
400
  set_meta_tags icon: '/favicon.png', type: 'image/png'
401
- # <link rel="icon" href="/favicon.png" type="image/png" />
401
+ # <link rel="icon" href="/favicon.png" type="image/png">
402
402
  set_meta_tags icon: [
403
403
  { href: '/images/icons/icon_96.png', sizes: '32x32 96x96', type: 'image/png' },
404
404
  { href: '/images/icons/icon_itouch_precomp_32.png', rel: 'apple-touch-icon-precomposed', sizes: '32x32', type: 'image/png' },
405
405
  ]
406
- # <link rel="icon" href="/images/icons/icon_96.png" type="image/png" sizes="32x32 96x96" />
407
- # <link rel="apple-touch-icon-precomposed" href="/images/icons/icon_itouch_precomp_32.png" type="image/png" sizes="32x32" />
406
+ # <link rel="icon" href="/images/icons/icon_96.png" type="image/png" sizes="32x32 96x96">
407
+ # <link rel="apple-touch-icon-precomposed" href="/images/icons/icon_itouch_precomp_32.png" type="image/png" sizes="32x32">
408
408
  ```
409
409
 
410
410
  Further reading:
@@ -420,12 +420,12 @@ translated or targeted to users in a certain region.
420
420
 
421
421
  ```ruby
422
422
  set_meta_tags alternate: { "fr" => "http://yoursite.fr/alternate/url" }
423
- # <link rel="alternate" href="http://yoursite.fr/alternate/url" hreflang="fr" />
423
+ # <link rel="alternate" href="http://yoursite.fr/alternate/url" hreflang="fr">
424
424
 
425
425
  set_meta_tags alternate: { "fr" => "http://yoursite.fr/alternate/url",
426
426
  "de" => "http://yoursite.de/alternate/url" }
427
- # <link rel="alternate" href="http://yoursite.fr/alternate/url" hreflang="fr" />
428
- # <link rel="alternate" href="http://yoursite.de/alternate/url" hreflang="de" />
427
+ # <link rel="alternate" href="http://yoursite.fr/alternate/url" hreflang="fr">
428
+ # <link rel="alternate" href="http://yoursite.de/alternate/url" hreflang="de">
429
429
  ```
430
430
 
431
431
  If you need more than just multi-lingual links, you can use an alternative syntax:
@@ -452,9 +452,9 @@ treat these pages as a logical sequence.
452
452
 
453
453
  ```ruby
454
454
  set_meta_tags prev: "http://yoursite.com/url?page=1"
455
- # <link rel="prev" href="http://yoursite.com/url?page=1" />
455
+ # <link rel="prev" href="http://yoursite.com/url?page=1">
456
456
  set_meta_tags next: "http://yoursite.com/url?page=3"
457
- # <link rel="next" href="http://yoursite.com/url?page=3" />
457
+ # <link rel="next" href="http://yoursite.com/url?page=3">
458
458
  ```
459
459
 
460
460
  Further reading:
@@ -471,7 +471,7 @@ represent your site.
471
471
 
472
472
  ```ruby
473
473
  set_meta_tags image_src: "http://yoursite.com/icons/icon_32.png"
474
- # <link rel="image_src" href="http://yoursite.com/icons/icon_32.png" />
474
+ # <link rel="image_src" href="http://yoursite.com/icons/icon_32.png">
475
475
  ```
476
476
 
477
477
  ### amphtml links
@@ -501,9 +501,9 @@ meta refresh to be used as a method of URL redirection.
501
501
 
502
502
  ```ruby
503
503
  set_meta_tags refresh: 5
504
- # <meta content="5" http-equiv="refresh" />
504
+ # <meta content="5" http-equiv="refresh">
505
505
  set_meta_tags refresh: '5;url=http://example.com'
506
- # <meta content="5;url=http://example.com" http-equiv="refresh" />
506
+ # <meta content="5;url=http://example.com" http-equiv="refresh">
507
507
  ```
508
508
 
509
509
  Further reading:
@@ -521,7 +521,7 @@ set_meta_tags open_search: {
521
521
  title: "Open Search",
522
522
  href: "/opensearch.xml"
523
523
  }
524
- # <link href="/opensearch.xml" rel="search" title="Open Search" type="application/opensearchdescription+xml" />
524
+ # <link href="/opensearch.xml" rel="search" title="Open Search" type="application/opensearchdescription+xml">
525
525
  ```
526
526
 
527
527
  Further reading:
@@ -540,8 +540,8 @@ set_meta_tags foo: {
540
540
  qux: "ipsum"
541
541
  }
542
542
  }
543
- # <meta property="foo:bar" content="lorem"/>
544
- # <meta property="foo:baz:qux" content="ipsum"/>
543
+ # <meta property="foo:bar" content="lorem">
544
+ # <meta property="foo:baz:qux" content="ipsum">
545
545
  ```
546
546
 
547
547
  ### Arrays
@@ -552,8 +552,8 @@ Repeated meta tags can be built just using an Array inside a Hash. For example:
552
552
  set_meta_tags og: {
553
553
  image: ["http://example.com/rock.jpg", "http://example.com/rock2.jpg"]
554
554
  }
555
- # <meta property="og:image" content="http://example.com/rock.jpg" />
556
- # <meta property="og:image" content="http://example.com/rock2.jpg" />
555
+ # <meta property="og:image" content="http://example.com/rock.jpg">
556
+ # <meta property="og:image" content="http://example.com/rock2.jpg">
557
557
  ```
558
558
 
559
559
  ### Open Graph
@@ -574,13 +574,13 @@ set_meta_tags og: {
574
574
  writer: ['http://www.imdb.com/name/nm0918711/', 'http://www.imdb.com/name/nm0177018/']
575
575
  }
576
576
  }
577
- # <meta property="og:title" content="The Rock"/>
578
- # <meta property="og:type" content="video.movie"/>
579
- # <meta property="og:url" content="http://www.imdb.com/title/tt0117500/"/>
580
- # <meta property="og:image" content="http://ia.media-imdb.com/rock.jpg"/>
581
- # <meta property="og:video:director" content="http://www.imdb.com/name/nm0000881/"/>
582
- # <meta property="og:video:writer" content="http://www.imdb.com/name/nm0918711/"/>
583
- # <meta property="og:video:writer" content="http://www.imdb.com/name/nm0177018/"/>
577
+ # <meta property="og:title" content="The Rock">
578
+ # <meta property="og:type" content="video.movie">
579
+ # <meta property="og:url" content="http://www.imdb.com/title/tt0117500/">
580
+ # <meta property="og:image" content="http://ia.media-imdb.com/rock.jpg">
581
+ # <meta property="og:video:director" content="http://www.imdb.com/name/nm0000881/">
582
+ # <meta property="og:video:writer" content="http://www.imdb.com/name/nm0918711/">
583
+ # <meta property="og:video:writer" content="http://www.imdb.com/name/nm0177018/">
584
584
  ```
585
585
 
586
586
  Multiple images declared as an **array** (look at the `_` character):
@@ -621,10 +621,10 @@ set_meta_tags article: {
621
621
  section: 'Article Section',
622
622
  tag: 'Article Tag',
623
623
  }
624
- # <meta property="article:published_time" content="2013-09-17T05:59:00+01:00" />
625
- # <meta property="article:modified_time" content="2013-09-16T19:08:47+01:00" />
626
- # <meta property="article:section" content="Article Section" />
627
- # <meta property="article:tag" content="Article Tag" />
624
+ # <meta property="article:published_time" content="2013-09-17T05:59:00+01:00">
625
+ # <meta property="article:modified_time" content="2013-09-16T19:08:47+01:00">
626
+ # <meta property="article:section" content="Article Section">
627
+ # <meta property="article:tag" content="Article Tag">
628
628
  ```
629
629
 
630
630
  Further reading:
@@ -642,8 +642,8 @@ set_meta_tags twitter: {
642
642
  card: "summary",
643
643
  site: "@username"
644
644
  }
645
- # <meta name="twitter:card" content="summary"/>
646
- # <meta name="twitter:site" content="@username"/>
645
+ # <meta name="twitter:card" content="summary">
646
+ # <meta name="twitter:site" content="@username">
647
647
  ```
648
648
 
649
649
  Take in consideration that if you're already using OpenGraph to describe data on your page, it’s easy to generate a Twitter card without duplicating your tags and data. When the Twitter card processor looks for tags on your page, it first checks for the Twitter property, and if not present, falls back to the supported Open Graph property. This allows for both to be defined on the page independently, and minimizes the amount of duplicate markup required to describe your content and experience.
@@ -659,15 +659,15 @@ set_meta_tags twitter: {
659
659
  height: 100,
660
660
  }
661
661
  }
662
- # <meta name="twitter:card" content="photo"/>
663
- # <meta name="twitter:image" content="http://example.com/1.png"/>
664
- # <meta name="twitter:image:width" content="100"/>
665
- # <meta name="twitter:image:height" content="100"/>
662
+ # <meta name="twitter:card" content="photo">
663
+ # <meta name="twitter:image" content="http://example.com/1.png">
664
+ # <meta name="twitter:image:width" content="100">
665
+ # <meta name="twitter:image:height" content="100">
666
666
  ```
667
667
 
668
668
  Further reading:
669
669
 
670
- * [Twitter Cards Documentation](https://dev.twitter.com/docs/cards/)
670
+ * [Twitter Cards Documentation](https://dev.twitter.com/cards/)
671
671
 
672
672
  ### App Links
673
673
 
@@ -681,9 +681,9 @@ set_meta_tags al: {
681
681
  app_name: "Example App"
682
682
  }
683
683
  }
684
- # <meta property="al:ios:url" content="example://applinks" />
685
- # <meta property="al:ios:app_store_id" content="12345" />
686
- # <meta property="al:ios:app_name" content="Example App" />
684
+ # <meta property="al:ios:url" content="example://applinks">
685
+ # <meta property="al:ios:app_store_id" content="12345">
686
+ # <meta property="al:ios:app_name" content="Example App">
687
687
  ```
688
688
 
689
689
  Further reading:
@@ -699,7 +699,7 @@ Example:
699
699
 
700
700
  ```ruby
701
701
  set_meta_tags author: "Dmytro Shteflyuk"
702
- # <meta name="author" content="Dmytro Shteflyuk"/>
702
+ # <meta name="author" content="Dmytro Shteflyuk">
703
703
  ```
704
704
 
705
705
  You can also specify value as an Array, and values will be displayed as a list
@@ -707,8 +707,8 @@ of `meta` tags:
707
707
 
708
708
  ```ruby
709
709
  set_meta_tags author: [ "Dmytro Shteflyuk", "John Doe" ]
710
- # <meta name="author" content="Dmytro Shteflyuk"/>
711
- # <meta name="author" content="John Doe"/>
710
+ # <meta name="author" content="Dmytro Shteflyuk">
711
+ # <meta name="author" content="John Doe">
712
712
  ```
713
713
 
714
714
  ## Maintainers
@@ -22,6 +22,10 @@ MetaTags.configure do |config|
22
22
  # appear on the page as is. Default is true.
23
23
  # config.keywords_lowercase = true
24
24
 
25
+ # When false, generated meta tags will be self-closing (<meta ... />) instead
26
+ # of open (`<meta ...>`). Default is true.
27
+ # config.open_meta_tags = true
28
+
25
29
  # List of additional meta tags that should use "property" attribute instead
26
30
  # of "name" attribute in <meta> tags.
27
31
  # config.property_tags.push(
@@ -19,6 +19,10 @@ module MetaTags
19
19
  # Should keywords forced into lowercase?
20
20
  attr_accessor :keywords_lowercase
21
21
 
22
+ # Switches between open (<meta ... >) and closed (<meta ... />) meta tags.
23
+ # Default is true, which means "open".
24
+ attr_accessor :open_meta_tags
25
+
22
26
  # Custom meta tags that should use `property` attribute instead of `name`
23
27
  # - an array of strings or symbols representing their names or name-prefixes.
24
28
  attr_reader :property_tags
@@ -64,6 +68,10 @@ module MetaTags
64
68
  ].freeze
65
69
  end
66
70
 
71
+ def open_meta_tags?
72
+ !!open_meta_tags
73
+ end
74
+
67
75
  def reset_defaults!
68
76
  @title_limit = 70
69
77
  @truncate_site_title_first = false
@@ -72,6 +80,7 @@ module MetaTags
72
80
  @keywords_separator = ', '
73
81
  @keywords_lowercase = true
74
82
  @property_tags = default_property_tags.dup
83
+ @open_meta_tags = true
75
84
  end
76
85
  end
77
86
  end
@@ -65,7 +65,8 @@ module MetaTags
65
65
  # @return [String] page title.
66
66
  #
67
67
  def page_title(defaults = {})
68
- old_site, @meta_tags[:site] = @meta_tags[:site], nil
68
+ old_site = @meta_tags[:site]
69
+ @meta_tags[:site] = nil
69
70
  with_defaults(defaults) { extract_full_title }
70
71
  ensure
71
72
  @meta_tags[:site] = old_site
data/lib/meta_tags/tag.rb CHANGED
@@ -19,7 +19,7 @@ module MetaTags
19
19
  # @return [String] HTML string for the tag.
20
20
  #
21
21
  def render(view)
22
- view.tag(name, prepare_attributes(attributes))
22
+ view.tag(name, prepare_attributes(attributes), MetaTags.config.open_meta_tags?)
23
23
  end
24
24
 
25
25
  protected
@@ -1,5 +1,5 @@
1
1
  module MetaTags
2
2
  # Gem version.
3
3
 
4
- VERSION = '2.6.0'
4
+ VERSION = '2.7.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meta-tags
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0
4
+ version: 2.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmytro Shteflyuk
@@ -30,7 +30,7 @@ cert_chain:
30
30
  QwaoNrsQi488Dsk54YiNQWVouzfjRqEa4uUxSyKmRfQp7MNILESAOCXM+wZIxanu
31
31
  C9c9eUxgNTnHhsR3sK0QCIMwtUI=
32
32
  -----END CERTIFICATE-----
33
- date: 2017-08-24 00:00:00.000000000 Z
33
+ date: 2017-11-22 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: actionpack
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  version: '0'
153
153
  requirements: []
154
154
  rubyforge_project:
155
- rubygems_version: 2.6.7
155
+ rubygems_version: 2.6.13
156
156
  signing_key:
157
157
  specification_version: 4
158
158
  summary: Collection of SEO helpers for Ruby on Rails.
metadata.gz.sig CHANGED
Binary file