Pedro Paiva
0cc461d4d9
Remove ruby 2.5 support ( #1415 )
...
* Remove Ruby 2.5 support
* Setting the target Ruby version to 2.6 on Rubocop
* Fix Style/SlicingWithRange: Prefer ary[n..] over ary[n..-1] offenses
2021-03-04 20:42:47 -03:00
Kapil Sachdev
b7e02184d9
fix(rubocop): Fix Layout/LineLength
...
- bump rubocop to v1.0
- Fix Layout/MultilineAssignmentLayout and other remaining offences
- Exculde appraisal generated gemfiles in rubocop
- Replace NON_NUMERIC_VALUE constant with instance method against
failing test case in rails <= 5.1 and postgres adapter.
This is a defect in rails where a frozen string is modified in
https://github.com/rails/rails/blob/v5.1.7/activerecord/lib/active_record/connection_adapters/postgresql/oid/money.rb#L25
2020-11-03 10:05:25 -07:00
Kapil Sachdev
3e88500318
fix(rubocop): Fix Style, Layout, Lint and other offenses [ci skip]
...
Updated Layout/LineLength cop to Max 120 lenght and ignore everything
inside specs/**/*
Added rules for below cops in .rubocop.yml
Lint/AmbiguousBlockAssociation
Naming/HeredocDelimiterNaming
Rails/SkipsModelValidations
Style/FormatStringToken
Fixed below mentioned cops:
- Layout/CaseIndentation
- Layout/DotPosition
- Layout/ElseAlignment
- Layout/IndentationWidth
- Layout/LineLength
- Layout/MultilineBlockLayout
- Layout/MultilineOperationIndentation
- Lint/AmbiguousBlockAssociation
- Lint/MissingCopEnableDirective
- Lint/NestedMethodDefinition
- Lint/RedundantCopDisableDirective
- Lint/RedundantRequireStatement
- Lint/UnusedBlockArgument
- Lint/UnusedMethodArgument
- Metrics/ModuleLength
- Naming/MemoizedInstanceVariableName
- Naming/RescuedExceptionsVariableName
- Rails/Output
- Rails/Presence
- Security/Eval
- Security/Open
- Style/ClassCheck
- Style/CollectionMethods
- Style/ConditionalAssignment
- Style/EvalWithLocation
- Style/FormatStringToken
- Style/InverseMethods
- Style/MutableConstant
- Style/ParallelAssignment
- Style/RedundantBegin
- Style/RedundantCondition
- Style/RedundantInterpolation
- Style/RedundantSelf
- Style/RedundantSort
- Style/RescueStandardError
- Style/SafeNavigation
- Style/StringLiteralsInInterpolation
- Style/SymbolProc
2020-11-03 10:05:25 -07:00
Kapil Sachdev
ee1008de7a
fix(rubocop): Fix Layout related offenses [ci skip]
...
- Layout/EmptyLines
- Layout/EmptyLineAfterGuardClause
- Layout/TrailingEmptyLines
- Layout/EmptyLinesAroundBlockBody
- Layout/EmptyLinesAroundModuleBody
- Layout/EmptyLineAfterMagicComment
- Layout/SpaceInsidePercentLiteralDelimiters
- Layout/SpaceAroundEqualsInParameterDefault
- Layout/SpaceInsideArrayLiteralBrackets
- Layout/LeadingCommentSpace
- Layout/SpaceBeforeComment
- Layout/SpaceAroundOperators
- Layout/SpaceInsideRangeLiteral
- Layout/SpaceInsideReferenceBrackets
- Layout/SpaceInLambdaLiteral
- Layout/SpaceAfterComma
- Layout/SpaceInsideHashLiteralBraces
- Layout/TrailingWhitespace
- Layout/ArgumentAlignment
- Layout/HashAlignment
- Layout/DotPosition
- Layout/IndentationWidth
- Layout/EndAlignment
- Layout/MultilineOperationIndentation
- Layout/IndentationConsistency
- Layout/ClosingHeredocIndentation
- Layout/MultilineMethodCallBrace- Layout
- Layout/ClosingParenthesisIndentation
2020-11-03 10:05:25 -07:00
Kapil Sachdev
97722f67cb
fix(rubocop): Satisfy Style/StringLiterals with single_quotes [ci skip]
2020-11-03 10:05:25 -07:00
Kapil Sachdev
278a381ae8
fix(docs): Migrate to rouge [ci skip]
2020-09-01 09:20:16 -06:00
Kapil Sachdev
09bbc409ee
fix: Replace http with https [ci skip]
2020-08-27 14:11:57 -06:00
Elliot Winkler
359339a4cd
Fix docs so fonts get loaded correctly
...
[ci skip]
2019-06-09 13:13:37 -06:00
Elliot Winkler
00a84c0bfe
Update documentation
...
[ci skip]
2019-02-16 03:01:35 -07:00
Elliot Winkler
43cdc24704
Fix UI issues with generated docs
...
The current docsite isn't as usable as it should be: clicking on the nav
links should show a popover when in fact it goes to another page. This
is happening because some of the JavaScript is failing on the docsite
due to some old-school code (we're talking early 2000's DHTML stuff)
which was leftover from YARD's default layout which interacts with
frames. We don't use frames on the docsite so there is no need to have
this code.
Also this commit tweaks the CSS for the class list to remove extra
indentation from the bullet points.
2018-10-02 10:13:55 -03:00
Elliot Winkler
6f8b7e15fe
Make improvements to the YARD layout
...
* Adjust padding/margin around and inside of blockquotes
* Use ems for p margin
* Since we will be adding a custom file whose title is camel-case,
make two changes to the header:
* Drop "File:" in the header for files
* Change styles for header and search to use standard case instead
of all caps, and drop letter spacing
* Make footer smaller and more human readable
2015-10-08 21:30:42 -06:00
Elliot Winkler
965ca7e126
Update YARD CSS to hide info on method aliases
...
Why:
* If a method has an alias, then YARD will append "(aliased to #foo)"
inside of the header for the method. This doesn't look that great with
the current layout, and we can easily mention the alias within the
description for the method in question.
To satisfy the above:
* Hide this section of the header if it appears.
[ci skip]
2015-09-30 13:18:10 -06:00
Vít Ondruch
7a811506c4
Remove executable bit on CSS file
2015-09-22 14:19:54 -06:00
Ignat Zakrevsky
762cebdbbc
Fix links to callback matchers in README
...
[ci skip]
2015-03-29 01:15:40 -06:00
Elliot Winkler
5bc062efec
Make redirection to latest version domain-agnostic
2015-01-23 15:00:14 -07:00
Elliot Winkler
50b8cb868d
Use custom github username in /docs/index.html for better testing
2015-01-23 14:13:31 -07:00
Elliot Winkler
5f59f9ef47
Publish docs at /docs and not /
...
The new site will be published at / instead.
2015-01-23 14:13:30 -07:00
Elliot Winkler
5180887827
Import Source Sans Pro italic in YARD docs
2014-07-25 23:35:46 -06:00
Elliot Winkler
06070f9400
Add styling for documented deprecated methods
2014-07-23 19:35:20 -06:00
Elliot Winkler
dafed686c8
Fix autoredirect to docs for latest version
2014-07-18 18:14:44 -06:00
Elliot Winkler
5c3fa7b826
Fix method links in README to work on GH and YARD
2014-06-21 20:02:21 -06:00
Elliot Winkler
9b5fe69509
Publish new docs when releasing a new version
2014-06-20 16:41:37 -06:00
Elliot Winkler
4d8faed1c4
Generate docs using YARD
2014-06-20 16:41:32 -06:00