@appthreat/atom-parsetools 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/plugins/autoload.php +1 -1
- package/plugins/bin/bundler +1 -1
- package/plugins/bin/ruby_ast_gen +1 -1
- package/plugins/composer/autoload_classmap.php +22 -8
- package/plugins/composer/autoload_real.php +4 -4
- package/plugins/composer/autoload_static.php +26 -12
- package/plugins/composer/installed.json +12 -10
- package/plugins/composer/installed.php +9 -9
- package/plugins/nikic/php-parser/README.md +20 -12
- package/plugins/nikic/php-parser/bin/php-parse +11 -10
- package/plugins/nikic/php-parser/composer.json +6 -4
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/ClassConst.php +19 -17
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/Class_.php +35 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/Declaration.php +11 -4
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/EnumCase.php +8 -7
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/Enum_.php +26 -27
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/FunctionLike.php +7 -7
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/Function_.php +7 -7
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/Interface_.php +11 -10
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/Method.php +16 -15
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/Namespace_.php +5 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/Param.php +38 -35
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/Property.php +82 -20
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/TraitUse.php +6 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/TraitUseAdaptation.php +25 -28
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/Trait_.php +16 -11
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/Use_.php +8 -8
- package/plugins/nikic/php-parser/lib/PhpParser/Builder.php +2 -3
- package/plugins/nikic/php-parser/lib/PhpParser/BuilderFactory.php +46 -70
- package/plugins/nikic/php-parser/lib/PhpParser/BuilderHelpers.php +23 -20
- package/plugins/nikic/php-parser/lib/PhpParser/Comment/Doc.php +1 -2
- package/plugins/nikic/php-parser/lib/PhpParser/Comment.php +37 -67
- package/plugins/nikic/php-parser/lib/PhpParser/ConstExprEvaluationException.php +3 -3
- package/plugins/nikic/php-parser/lib/PhpParser/ConstExprEvaluator.php +15 -10
- package/plugins/nikic/php-parser/lib/PhpParser/Error.php +26 -33
- package/plugins/nikic/php-parser/lib/PhpParser/ErrorHandler/Collecting.php +6 -9
- package/plugins/nikic/php-parser/lib/PhpParser/ErrorHandler/Throwing.php +2 -3
- package/plugins/nikic/php-parser/lib/PhpParser/ErrorHandler.php +2 -3
- package/plugins/nikic/php-parser/lib/PhpParser/Internal/DiffElem.php +11 -7
- package/plugins/nikic/php-parser/lib/PhpParser/Internal/Differ.php +36 -22
- package/plugins/nikic/php-parser/lib/PhpParser/Internal/PrintableNewAnonClassNode.php +20 -13
- package/plugins/nikic/php-parser/lib/PhpParser/Internal/TokenPolyfill.php +237 -0
- package/plugins/nikic/php-parser/lib/PhpParser/Internal/TokenStream.php +70 -74
- package/plugins/nikic/php-parser/lib/PhpParser/JsonDecoder.php +15 -10
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/Emulative.php +72 -97
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/AsymmetricVisibilityTokenEmulator.php +93 -0
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/AttributeEmulator.php +11 -18
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/EnumTokenEmulator.php +10 -15
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/ExplicitOctalEmulator.php +12 -11
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/KeywordEmulator.php +24 -26
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/MatchTokenEmulator.php +6 -10
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/NullsafeTokenEmulator.php +22 -29
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/PropertyTokenEmulator.php +19 -0
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/ReadonlyFunctionTokenEmulator.php +3 -3
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/ReadonlyTokenEmulator.php +10 -15
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/ReverseEmulator.php +6 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/TokenEmulator.php +10 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer.php +69 -513
- package/plugins/nikic/php-parser/lib/PhpParser/Modifiers.php +85 -0
- package/plugins/nikic/php-parser/lib/PhpParser/NameContext.php +24 -25
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Arg.php +13 -15
- package/plugins/nikic/php-parser/lib/PhpParser/Node/ArrayItem.php +43 -0
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Attribute.php +9 -10
- package/plugins/nikic/php-parser/lib/PhpParser/Node/AttributeGroup.php +5 -7
- package/plugins/nikic/php-parser/lib/PhpParser/Node/ClosureUse.php +36 -0
- package/plugins/nikic/php-parser/lib/PhpParser/Node/ComplexType.php +1 -2
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Const_.php +9 -10
- package/plugins/nikic/php-parser/lib/PhpParser/Node/DeclareItem.php +37 -0
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/ArrayDimFetch.php +10 -11
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/ArrayItem.php +4 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Array_.php +11 -11
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/ArrowFunction.php +33 -28
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Assign.php +9 -10
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/BitwiseAnd.php +2 -3
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/BitwiseOr.php +2 -3
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/BitwiseXor.php +2 -3
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Coalesce.php +2 -3
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Concat.php +2 -3
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Div.php +2 -3
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Minus.php +2 -3
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Mod.php +2 -3
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Mul.php +2 -3
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Plus.php +2 -3
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Pow.php +2 -3
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/ShiftLeft.php +2 -3
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/ShiftRight.php +2 -3
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp.php +7 -8
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignRef.php +9 -10
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseAnd.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseOr.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseXor.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BooleanAnd.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BooleanOr.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Coalesce.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Concat.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Div.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Equal.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Greater.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/GreaterOrEqual.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Identical.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/LogicalAnd.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/LogicalOr.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/LogicalXor.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Minus.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Mod.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Mul.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/NotEqual.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/NotIdentical.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Plus.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Pow.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/ShiftLeft.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/ShiftRight.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Smaller.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/SmallerOrEqual.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Spaceship.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp.php +8 -11
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BitwiseNot.php +7 -8
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BooleanNot.php +7 -8
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/CallLike.php +3 -7
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Array_.php +2 -3
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Bool_.php +2 -3
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Double.php +5 -6
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Int_.php +2 -3
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Object_.php +2 -3
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/String_.php +2 -3
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Unset_.php +2 -3
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Cast.php +5 -6
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/ClassConstFetch.php +10 -10
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Clone_.php +7 -8
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Closure.php +33 -26
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/ClosureUse.php +4 -27
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/ConstFetch.php +7 -8
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Empty_.php +7 -8
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Error.php +5 -6
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/ErrorSuppress.php +7 -8
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Eval_.php +7 -8
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Exit_.php +10 -11
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/FuncCall.php +10 -11
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Include_.php +13 -14
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Instanceof_.php +11 -11
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Isset_.php +7 -8
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/List_.php +12 -8
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Match_.php +8 -7
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/MethodCall.php +12 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/New_.php +10 -11
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/NullsafeMethodCall.php +12 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/NullsafePropertyFetch.php +10 -10
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/PostDec.php +7 -8
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/PostInc.php +7 -8
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/PreDec.php +6 -7
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/PreInc.php +7 -8
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Print_.php +7 -8
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/PropertyFetch.php +10 -10
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/ShellExec.php +9 -9
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/StaticCall.php +12 -13
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/StaticPropertyFetch.php +11 -11
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Ternary.php +12 -13
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Throw_.php +6 -7
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/UnaryMinus.php +7 -8
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/UnaryPlus.php +7 -8
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Variable.php +6 -7
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/YieldFrom.php +7 -8
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Yield_.php +10 -11
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr.php +1 -2
- package/plugins/nikic/php-parser/lib/PhpParser/Node/FunctionLike.php +5 -8
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Identifier.php +24 -14
- package/plugins/nikic/php-parser/lib/PhpParser/Node/InterpolatedStringPart.php +32 -0
- package/plugins/nikic/php-parser/lib/PhpParser/Node/IntersectionType.php +6 -9
- package/plugins/nikic/php-parser/lib/PhpParser/Node/MatchArm.php +8 -10
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Name/FullyQualified.php +8 -9
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Name/Relative.php +8 -9
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Name.php +78 -54
- package/plugins/nikic/php-parser/lib/PhpParser/Node/NullableType.php +11 -10
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Param.php +83 -24
- package/plugins/nikic/php-parser/lib/PhpParser/Node/PropertyHook.php +105 -0
- package/plugins/nikic/php-parser/lib/PhpParser/Node/PropertyItem.php +37 -0
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/DNumber.php +4 -70
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/Encapsed.php +4 -24
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/EncapsedStringPart.php +5 -22
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/Float_.php +78 -0
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/Int_.php +82 -0
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/InterpolatedString.php +34 -0
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/LNumber.php +4 -73
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Class_.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Dir.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/File.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Function_.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Line.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Method.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Namespace_.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Property.php +15 -0
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Trait_.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/String_.php +30 -26
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar.php +1 -2
- package/plugins/nikic/php-parser/lib/PhpParser/Node/StaticVar.php +39 -0
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Block.php +29 -0
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Break_.php +8 -9
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Case_.php +10 -11
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Catch_.php +11 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassConst.php +24 -32
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassLike.php +17 -17
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassMethod.php +47 -54
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Class_.php +46 -89
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Const_.php +17 -10
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Continue_.php +8 -9
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/DeclareDeclare.php +5 -26
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Declare_.php +12 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Do_.php +9 -10
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Echo_.php +7 -8
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/ElseIf_.php +9 -10
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Else_.php +7 -8
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/EnumCase.php +11 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Enum_.php +17 -13
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Expression.php +7 -8
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Finally_.php +7 -8
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/For_.php +19 -15
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Foreach_.php +20 -17
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Function_.php +28 -24
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Global_.php +7 -8
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Goto_.php +7 -8
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/GroupUse.php +16 -14
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/HaltCompiler.php +7 -8
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/If_.php +18 -15
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/InlineHTML.php +7 -8
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Interface_.php +13 -10
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Label.php +7 -8
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Namespace_.php +11 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Nop.php +4 -5
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Property.php +68 -38
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/PropertyProperty.php +5 -26
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Return_.php +8 -9
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/StaticVar.php +4 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Static_.php +8 -8
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Switch_.php +9 -10
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUse.php +8 -9
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation/Alias.php +12 -13
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation/Precedence.php +9 -10
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation.php +3 -4
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Trait_.php +10 -8
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/TryCatch.php +11 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Unset_.php +7 -8
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/UseUse.php +5 -44
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Use_.php +16 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/While_.php +9 -10
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt.php +1 -2
- package/plugins/nikic/php-parser/lib/PhpParser/Node/UnionType.php +7 -8
- package/plugins/nikic/php-parser/lib/PhpParser/Node/UseItem.php +55 -0
- package/plugins/nikic/php-parser/lib/PhpParser/Node/VarLikeIdentifier.php +2 -3
- package/plugins/nikic/php-parser/lib/PhpParser/Node/VariadicPlaceholder.php +2 -2
- package/plugins/nikic/php-parser/lib/PhpParser/Node.php +28 -29
- package/plugins/nikic/php-parser/lib/PhpParser/NodeAbstract.php +23 -20
- package/plugins/nikic/php-parser/lib/PhpParser/NodeDumper.php +177 -84
- package/plugins/nikic/php-parser/lib/PhpParser/NodeFinder.php +28 -19
- package/plugins/nikic/php-parser/lib/PhpParser/NodeTraverser.php +156 -160
- package/plugins/nikic/php-parser/lib/PhpParser/NodeTraverserInterface.php +4 -7
- package/plugins/nikic/php-parser/lib/PhpParser/NodeVisitor/CloningVisitor.php +1 -2
- package/plugins/nikic/php-parser/lib/PhpParser/NodeVisitor/CommentAnnotatingVisitor.php +82 -0
- package/plugins/nikic/php-parser/lib/PhpParser/NodeVisitor/FindingVisitor.php +6 -7
- package/plugins/nikic/php-parser/lib/PhpParser/NodeVisitor/FirstFindingVisitor.php +6 -7
- package/plugins/nikic/php-parser/lib/PhpParser/NodeVisitor/NameResolver.php +37 -28
- package/plugins/nikic/php-parser/lib/PhpParser/NodeVisitor/NodeConnectingVisitor.php +29 -8
- package/plugins/nikic/php-parser/lib/PhpParser/NodeVisitor/ParentConnectingVisitor.php +23 -13
- package/plugins/nikic/php-parser/lib/PhpParser/NodeVisitor.php +59 -7
- package/plugins/nikic/php-parser/lib/PhpParser/NodeVisitorAbstract.php +1 -2
- package/plugins/nikic/php-parser/lib/PhpParser/Parser/Php7.php +2034 -2141
- package/plugins/nikic/php-parser/lib/PhpParser/Parser/Php8.php +2814 -0
- package/plugins/nikic/php-parser/lib/PhpParser/Parser.php +9 -3
- package/plugins/nikic/php-parser/lib/PhpParser/ParserAbstract.php +503 -269
- package/plugins/nikic/php-parser/lib/PhpParser/ParserFactory.php +15 -49
- package/plugins/nikic/php-parser/lib/PhpParser/PhpVersion.php +171 -0
- package/plugins/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php +428 -339
- package/plugins/nikic/php-parser/lib/PhpParser/PrettyPrinter.php +51 -0
- package/plugins/nikic/php-parser/lib/PhpParser/PrettyPrinterAbstract.php +563 -445
- package/plugins/nikic/php-parser/lib/PhpParser/Token.php +18 -0
- package/plugins/nikic/php-parser/lib/PhpParser/compatibility_tokens.php +68 -0
- package/plugins/rubyastgen/Gemfile +3 -2
- package/plugins/rubyastgen/Gemfile.lock +10 -5
- package/plugins/rubyastgen/bundle/bundler/setup.rb +4 -2
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bin/bundle +29 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bin/bundler +29 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/{ruby_ast_gen-2a9186207494 → ruby_ast_gen-8738b155eb4f}/Gemfile +2 -1
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/{ruby_ast_gen-2a9186207494 → ruby_ast_gen-8738b155eb4f}/README.md +7 -4
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-8738b155eb4f/bin/console +11 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-8738b155eb4f/exe/ruby_ast_gen +60 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/{ruby_ast_gen-2a9186207494 → ruby_ast_gen-8738b155eb4f}/lib/ruby_ast_gen/node_handling.rb +49 -31
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/{ruby_ast_gen-2a9186207494 → ruby_ast_gen-8738b155eb4f}/lib/ruby_ast_gen/version.rb +1 -1
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/{ruby_ast_gen-2a9186207494 → ruby_ast_gen-8738b155eb4f}/lib/ruby_ast_gen.rb +24 -10
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/{ruby_ast_gen-2a9186207494 → ruby_ast_gen-8738b155eb4f}/ruby_ast_gen.gemspec +4 -4
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-8738b155eb4f/spec/ruby_ast_gen_spec.rb +299 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/{ruby_ast_gen-2a9186207494 → ruby_ast_gen-8738b155eb4f}/update_version.rb +6 -5
- package/plugins/rubyastgen/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/prism-1.4.0/gem.build_complete +0 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/prism-1.4.0/gem_make.out +44 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/prism-1.4.0/mkmf.log +74 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/prism-1.4.0/prism/prism.so +0 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/racc-1.8.1/gem_make.out +6 -6
- package/plugins/rubyastgen/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/racc-1.8.1/racc/cparse.so +0 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/CHANGELOG.md +5239 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/LICENSE.md +22 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/README.md +58 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/bundler.gemspec +46 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/exe/bundle +29 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/exe/bundler +4 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/.document +1 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/build_metadata.rb +45 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/capistrano.rb +22 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/checksum.rb +264 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/ci_detector.rb +75 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/cli/add.rb +49 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/cli/binstubs.rb +57 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/cli/cache.rb +43 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/cli/check.rb +40 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/cli/clean.rb +25 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/cli/common.rb +138 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/cli/config.rb +204 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/cli/console.rb +42 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/cli/doctor.rb +161 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/cli/exec.rb +89 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/cli/fund.rb +36 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/cli/gem.rb +467 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/cli/info.rb +83 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/cli/init.rb +51 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/cli/inject.rb +60 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/cli/install.rb +199 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/cli/issue.rb +41 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/cli/list.rb +66 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/cli/lock.rb +94 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/cli/open.rb +29 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/cli/outdated.rb +297 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/cli/platform.rb +48 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/cli/plugin.rb +35 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/cli/pristine.rb +60 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/cli/remove.rb +17 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/cli/show.rb +75 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/cli/update.rb +123 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/cli/viz.rb +31 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/cli.rb +799 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/compact_index_client/cache.rb +96 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/compact_index_client/cache_file.rb +148 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/compact_index_client/parser.rb +84 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/compact_index_client/updater.rb +105 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/compact_index_client.rb +97 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/constants.rb +14 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/current_ruby.rb +82 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/definition.rb +1170 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/dependency.rb +151 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/deployment.rb +69 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/deprecate.rb +44 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/digest.rb +71 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/dsl.rb +638 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/endpoint_specification.rb +174 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/env.rb +148 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/environment_preserver.rb +68 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/errors.rb +281 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/feature_flag.rb +50 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/fetcher/base.rb +52 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/fetcher/compact_index.rb +120 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/fetcher/dependency.rb +78 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/fetcher/downloader.rb +91 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/fetcher/gem_remote_fetcher.rb +16 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/fetcher/index.rb +25 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/fetcher.rb +331 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/force_platform.rb +16 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/friendly_errors.rb +126 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/gem_helper.rb +237 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/gem_helpers.rb +144 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/gem_tasks.rb +7 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/gem_version_promoter.rb +147 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/graph.rb +152 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/index.rb +205 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/injector.rb +285 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/inline.rb +98 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/installer/gem_installer.rb +85 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/installer/parallel_installer.rb +203 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/installer/standalone.rb +113 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/installer.rb +243 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/lazy_specification.rb +234 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/lockfile_generator.rb +104 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/lockfile_parser.rb +300 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/.document +1 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-add.1 +76 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-add.1.ronn +87 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-binstubs.1 +33 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-binstubs.1.ronn +44 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-cache.1 +68 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-cache.1.ronn +108 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-check.1 +24 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-check.1.ronn +31 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-clean.1 +17 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-clean.1.ronn +18 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-config.1 +317 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-config.1.ronn +408 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-console.1 +33 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-console.1.ronn +39 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-doctor.1 +30 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-doctor.1.ronn +33 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-env.1 +9 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-env.1.ronn +10 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-exec.1 +107 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-exec.1.ronn +154 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-fund.1 +22 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-fund.1.ronn +25 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-gem.1 +87 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-gem.1.ronn +149 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-help.1 +9 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-help.1.ronn +12 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-info.1 +17 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-info.1.ronn +21 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-init.1 +20 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-init.1.ronn +32 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-inject.1 +31 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-inject.1.ronn +32 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-install.1 +218 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-install.1.ronn +387 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-issue.1 +45 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-issue.1.ronn +37 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-licenses.1 +9 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-licenses.1.ronn +10 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-list.1 +35 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-list.1.ronn +36 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-lock.1 +75 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-lock.1.ronn +115 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-open.1 +32 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-open.1.ronn +28 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-outdated.1 +103 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-outdated.1.ronn +110 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-platform.1 +49 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-platform.1.ronn +49 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-plugin.1 +58 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-plugin.1.ronn +63 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-pristine.1 +23 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-pristine.1.ronn +34 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-remove.1 +21 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-remove.1.ronn +23 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-show.1 +19 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-show.1.ronn +25 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-update.1 +281 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-update.1.ronn +359 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-version.1 +22 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-version.1.ronn +24 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-viz.1 +30 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle-viz.1.ronn +36 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle.1 +102 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/bundle.1.ronn +116 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/gemfile.5 +472 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/gemfile.5.ronn +558 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/man/index.txt +33 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/match_metadata.rb +30 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/match_platform.rb +23 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/match_remote_metadata.rb +29 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/materialization.rb +59 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/mirror.rb +221 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/plugin/api/source.rb +322 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/plugin/api.rb +81 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/plugin/dsl.rb +53 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/plugin/events.rb +85 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/plugin/index.rb +197 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/plugin/installer/git.rb +34 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/plugin/installer/path.rb +26 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/plugin/installer/rubygems.rb +19 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/plugin/installer.rb +132 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/plugin/source_list.rb +31 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/plugin.rb +378 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/process_lock.rb +20 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/remote_specification.rb +126 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/resolver/base.rb +118 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/resolver/candidate.rb +85 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/resolver/incompatibility.rb +15 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/resolver/package.rb +94 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/resolver/root.rb +25 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/resolver/spec_group.rb +74 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/resolver/strategy.rb +40 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/resolver.rb +522 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/retry.rb +66 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/ruby_dsl.rb +62 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/ruby_version.rb +137 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/rubygems_ext.rb +485 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/rubygems_gem_installer.rb +172 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/rubygems_integration.rb +455 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/runtime.rb +320 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/safe_marshal.rb +31 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/self_manager.rb +206 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/settings/validator.rb +102 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/settings.rb +599 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/setup.rb +39 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/shared_helpers.rb +398 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/similarity_detector.rb +63 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/source/gemspec.rb +15 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/source/git/git_proxy.rb +472 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/source/git.rb +452 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/source/metadata.rb +63 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/source/path/installer.rb +53 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/source/path.rb +250 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/source/rubygems/remote.rb +76 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/source/rubygems.rb +522 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/source/rubygems_aggregate.rb +68 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/source.rb +118 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/source_list.rb +273 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/source_map.rb +71 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/spec_set.rb +367 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/stub_specification.rb +146 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/.document +1 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/Executable +27 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/Executable.bundler +109 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/Executable.standalone +14 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/Gemfile +5 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/newgem/CHANGELOG.md.tt +5 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/newgem/CODE_OF_CONDUCT.md.tt +132 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/newgem/Cargo.toml.tt +7 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/newgem/Gemfile.tt +24 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/newgem/LICENSE.txt.tt +21 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/newgem/README.md.tt +49 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/newgem/Rakefile.tt +67 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/{bundler/gems/ruby_ast_gen-2a9186207494/bin/console → gems/bundler-2.6.7/lib/bundler/templates/newgem/bin/console.tt} +1 -1
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/{ostruct-0.6.1/bin/setup → bundler-2.6.7/lib/bundler/templates/newgem/bin/setup.tt} +0 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/newgem/circleci/config.yml.tt +25 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/newgem/exe/newgem.tt +3 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/newgem/ext/newgem/Cargo.toml.tt +15 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/newgem/ext/newgem/extconf-c.rb.tt +10 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/newgem/ext/newgem/extconf-rust.rb.tt +6 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/newgem/ext/newgem/newgem.c.tt +9 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/newgem/ext/newgem/newgem.h.tt +6 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/newgem/ext/newgem/src/lib.rs.tt +12 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/newgem/github/workflows/main.yml.tt +37 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/newgem/gitignore.tt +23 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/newgem/gitlab-ci.yml.tt +18 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/newgem/lib/newgem/version.rb.tt +9 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/newgem/lib/newgem.rb.tt +15 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/newgem/newgem.gemspec.tt +52 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/newgem/rspec.tt +3 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/newgem/rubocop.yml.tt +8 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/newgem/sig/newgem.rbs.tt +8 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt +11 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/newgem/spec/spec_helper.rb.tt +15 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/newgem/standard.yml.tt +3 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/newgem/test/minitest/test_helper.rb.tt +6 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/newgem/test/minitest/test_newgem.rb.tt +13 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/newgem/test/test-unit/newgem_test.rb.tt +15 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/templates/newgem/test/test-unit/test_helper.rb.tt +6 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/ui/rg_proxy.rb +19 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/ui/shell.rb +187 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/ui/silent.rb +96 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/ui.rb +9 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/uri_credentials_filter.rb +43 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/uri_normalizer.rb +23 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/.document +1 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/connection_pool/.document +1 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/connection_pool/LICENSE +20 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/connection_pool/lib/connection_pool/timed_stack.rb +224 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/connection_pool/lib/connection_pool/version.rb +3 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/connection_pool/lib/connection_pool/wrapper.rb +56 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/connection_pool/lib/connection_pool.rb +186 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/fileutils/.document +1 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/fileutils/lib/fileutils.rb +2696 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/net-http-persistent/.document +1 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/net-http-persistent/README.rdoc +82 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/connection.rb +41 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/pool.rb +65 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/timed_stack_multi.rb +79 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +1111 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/pub_grub/.document +1 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/pub_grub/LICENSE.txt +21 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb +20 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/pub_grub/lib/pub_grub/basic_package_source.rb +169 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/pub_grub/lib/pub_grub/failure_writer.rb +182 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/pub_grub/lib/pub_grub/incompatibility.rb +150 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/pub_grub/lib/pub_grub/package.rb +43 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/pub_grub/lib/pub_grub/partial_solution.rb +121 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/pub_grub/lib/pub_grub/rubygems.rb +45 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/pub_grub/lib/pub_grub/solve_failure.rb +19 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/pub_grub/lib/pub_grub/static_package_source.rb +61 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/pub_grub/lib/pub_grub/strategy.rb +42 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/pub_grub/lib/pub_grub/term.rb +105 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/pub_grub/lib/pub_grub/version.rb +3 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/pub_grub/lib/pub_grub/version_constraint.rb +129 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb +423 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/pub_grub/lib/pub_grub/version_solver.rb +236 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/pub_grub/lib/pub_grub/version_union.rb +178 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/pub_grub/lib/pub_grub.rb +31 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/securerandom/.document +1 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/securerandom/COPYING +56 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/securerandom/lib/securerandom.rb +102 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/.document +1 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/LICENSE.md +20 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/actions/create_file.rb +105 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/actions/create_link.rb +61 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/actions/directory.rb +108 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/actions/empty_directory.rb +143 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb +371 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/actions/inject_into_file.rb +130 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/actions.rb +340 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/base.rb +825 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/command.rb +151 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/core_ext/hash_with_indifferent_access.rb +107 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/error.rb +106 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/group.rb +292 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/invocation.rb +178 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/line_editor/basic.rb +37 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/line_editor/readline.rb +88 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/line_editor.rb +17 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/nested_context.rb +29 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/parser/argument.rb +86 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/parser/arguments.rb +195 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/parser/option.rb +178 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/parser/options.rb +294 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/parser.rb +4 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/rake_compat.rb +72 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/runner.rb +335 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/shell/basic.rb +388 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/shell/color.rb +112 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/shell/column_printer.rb +29 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/shell/html.rb +81 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/shell/table_printer.rb +118 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/shell/terminal.rb +42 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/shell/wrapped_printer.rb +38 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/shell.rb +81 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/util.rb +285 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor/version.rb +3 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/thor/lib/thor.rb +674 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/tsort/.document +1 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/tsort/LICENSE.txt +22 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/tsort/lib/tsort.rb +455 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/uri/.document +1 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/uri/COPYING +56 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/uri/lib/uri/common.rb +880 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/uri/lib/uri/file.rb +100 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/uri/lib/uri/ftp.rb +267 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/uri/lib/uri/generic.rb +1579 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/uri/lib/uri/http.rb +125 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/uri/lib/uri/https.rb +23 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/uri/lib/uri/ldap.rb +261 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/uri/lib/uri/ldaps.rb +22 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/uri/lib/uri/mailto.rb +293 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/uri/lib/uri/rfc2396_parser.rb +546 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/uri/lib/uri/rfc3986_parser.rb +206 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/uri/lib/uri/version.rb +6 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/uri/lib/uri/ws.rb +83 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/uri/lib/uri/wss.rb +23 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendor/uri/lib/uri.rb +104 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendored_fileutils.rb +4 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendored_net_http.rb +23 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendored_persistent.rb +11 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendored_pub_grub.rb +4 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendored_securerandom.rb +12 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendored_thor.rb +8 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendored_timeout.rb +12 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendored_tsort.rb +4 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vendored_uri.rb +21 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/version.rb +13 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/vlad.rb +17 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/worker.rb +117 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler/yaml_serializer.rb +98 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/bundler-2.6.7/lib/bundler.rb +701 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ostruct-0.6.3/COPYING +56 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ostruct-0.6.3/bin/setup +8 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/{ostruct-0.6.1 → ostruct-0.6.3}/lib/ostruct.rb +5 -2
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/{ostruct-0.6.1 → ostruct-0.6.3}/ostruct.gemspec +2 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/BSDmakefile +58 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/CHANGELOG.md +684 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/CODE_OF_CONDUCT.md +76 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/CONTRIBUTING.md +58 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/LICENSE.md +7 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/Makefile +108 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/README.md +141 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/config.yml +4486 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/docs/build_system.md +119 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/docs/configuration.md +68 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/docs/cruby_compilation.md +27 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/docs/design.md +53 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/docs/encoding.md +121 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/docs/fuzzing.md +88 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/docs/heredocs.md +36 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/docs/javascript.md +118 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/docs/local_variable_depth.md +229 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/docs/mapping.md +117 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/docs/parser_translation.md +39 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/docs/parsing_rules.md +22 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/docs/releasing.md +96 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/docs/relocation.md +34 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/docs/ripper_translation.md +72 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/docs/ruby_api.md +44 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/docs/ruby_parser_translation.md +19 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/docs/serialization.md +233 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/docs/testing.md +55 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/ext/prism/Makefile +273 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/ext/prism/api_node.c +6939 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/ext/prism/api_pack.c +276 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/ext/prism/extconf.rb +127 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/ext/prism/extension.c +1406 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/ext/prism/extension.h +19 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/include/prism/ast.h +7964 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/include/prism/defines.h +260 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/include/prism/diagnostic.h +451 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/include/prism/encoding.h +283 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/include/prism/node.h +129 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/include/prism/options.h +442 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/include/prism/pack.h +163 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/include/prism/parser.h +933 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/include/prism/prettyprint.h +34 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/include/prism/regexp.h +43 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/include/prism/static_literals.h +121 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/include/prism/util/pm_buffer.h +228 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/include/prism/util/pm_char.h +204 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/include/prism/util/pm_constant_pool.h +218 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/include/prism/util/pm_integer.h +126 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/include/prism/util/pm_list.h +97 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/include/prism/util/pm_memchr.h +29 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/include/prism/util/pm_newline_list.h +113 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/include/prism/util/pm_string.h +190 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/include/prism/util/pm_strncasecmp.h +32 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/include/prism/util/pm_strpbrk.h +46 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/include/prism/version.h +29 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/include/prism.h +383 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/compiler.rb +496 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/desugar_compiler.rb +391 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/dispatcher.rb +2194 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/dot_visitor.rb +4758 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/dsl.rb +1000 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/ffi.rb +560 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/inspect_visitor.rb +2389 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/lex_compat.rb +927 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/mutation_compiler.rb +769 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/node.rb +18645 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/node_ext.rb +508 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/pack.rb +228 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/parse_result/comments.rb +187 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/parse_result/errors.rb +65 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/parse_result/newlines.rb +154 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/parse_result.rb +910 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/pattern.rb +268 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/polyfill/append_as_bytes.rb +15 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/polyfill/byteindex.rb +13 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/polyfill/unpack1.rb +14 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/prism.so +0 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/reflection.rb +413 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/relocation.rb +504 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/serialize.rb +2392 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/string_query.rb +30 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/translation/parser/builder.rb +61 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/translation/parser/compiler.rb +2212 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/translation/parser/lexer.rb +812 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/translation/parser.rb +355 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/translation/parser33.rb +12 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/translation/parser34.rb +12 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/translation/parser35.rb +12 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/translation/ripper/sexp.rb +125 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/translation/ripper/shim.rb +5 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/translation/ripper.rb +3458 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/translation/ruby_parser.rb +1646 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/translation.rb +14 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism/visitor.rb +508 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/lib/prism.rb +89 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/prism.gemspec +170 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/rbi/prism/compiler.rbi +12 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/rbi/prism/dsl.rbi +524 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/rbi/prism/inspect_visitor.rbi +12 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/rbi/prism/node.rbi +8722 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/rbi/prism/node_ext.rbi +107 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/rbi/prism/parse_result.rbi +404 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/rbi/prism/reflection.rbi +58 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/rbi/prism/string_query.rbi +12 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/rbi/prism/translation/parser.rbi +11 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/rbi/prism/translation/parser33.rbi +6 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/rbi/prism/translation/parser34.rbi +6 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/rbi/prism/translation/parser35.rbi +6 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/rbi/prism/translation/ripper.rbi +15 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/rbi/prism/visitor.rbi +473 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/rbi/prism.rbi +66 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/sig/prism/compiler.rbs +9 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/sig/prism/dispatcher.rbs +16 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/sig/prism/dot_visitor.rbs +6 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/sig/prism/dsl.rbs +351 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/sig/prism/inspect_visitor.rbs +22 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/sig/prism/lex_compat.rbs +10 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/sig/prism/mutation_compiler.rbs +159 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/sig/prism/node.rbs +3614 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/sig/prism/node_ext.rbs +82 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/sig/prism/pack.rbs +43 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/sig/prism/parse_result.rbs +192 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/sig/prism/pattern.rbs +13 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/sig/prism/reflection.rbs +50 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/sig/prism/relocation.rbs +185 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/sig/prism/serialize.rbs +8 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/sig/prism/string_query.rbs +11 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/sig/prism/visitor.rbs +169 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/sig/prism.rbs +254 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/src/diagnostic.c +842 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/src/encoding.c +5235 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/src/node.c +8674 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/src/options.c +328 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/src/pack.c +509 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/src/prettyprint.c +8939 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/src/prism.c +23184 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/src/regexp.c +790 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/src/serialize.c +2266 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/src/static_literals.c +617 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/src/token_type.c +701 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/src/util/pm_buffer.c +357 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/src/util/pm_char.c +318 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/src/util/pm_constant_pool.c +342 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/src/util/pm_integer.c +670 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/src/util/pm_list.c +49 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/src/util/pm_memchr.c +35 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/src/util/pm_newline_list.c +125 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/src/util/pm_string.c +383 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/src/util/pm_strncasecmp.c +36 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/prism-1.4.0/src/util/pm_strpbrk.c +206 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/ext/racc/cparse/Makefile +3 -3
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/cparse.so +0 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/specifications/ast-2.4.3.gemspec +1 -1
- package/plugins/rubyastgen/bundle/ruby/3.4.0/specifications/bundler-2.6.7.gemspec +25 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/specifications/{ostruct-0.6.1.gemspec → ostruct-0.6.3.gemspec} +5 -4
- package/plugins/rubyastgen/bundle/ruby/3.4.0/specifications/parser-3.3.8.0.gemspec +1 -1
- package/plugins/rubyastgen/bundle/ruby/3.4.0/specifications/prism-1.4.0.gemspec +24 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/specifications/racc-1.8.1.gemspec +1 -1
- package/rbastgen.js +1 -1
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/CoaleseEqualTokenEmulator.php +0 -47
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/FlexibleDocStringEmulator.php +0 -76
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/FnTokenEmulator.php +0 -23
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/NumericLiteralSeparatorEmulator.php +0 -105
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Throw_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Parser/Multiple.php +0 -55
- package/plugins/nikic/php-parser/lib/PhpParser/Parser/Php5.php +0 -2682
- package/plugins/nikic/php-parser/lib/PhpParser/Parser/Tokens.php +0 -148
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-2a9186207494/exe/ruby_ast_gen +0 -59
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-2a9186207494/spec/ruby_ast_gen_spec.rb +0 -175
- /package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/{ruby_ast_gen-2a9186207494 → ruby_ast_gen-8738b155eb4f}/.rspec +0 -0
- /package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/{ruby_ast_gen-2a9186207494 → ruby_ast_gen-8738b155eb4f}/LICENSE.txt +0 -0
- /package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/{ruby_ast_gen-2a9186207494 → ruby_ast_gen-8738b155eb4f}/Rakefile +0 -0
- /package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/{ruby_ast_gen-2a9186207494 → ruby_ast_gen-8738b155eb4f}/bin/setup +0 -0
- /package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/{ruby_ast_gen-2a9186207494 → ruby_ast_gen-8738b155eb4f}/spec/spec_helper.rb +0 -0
- /package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/{ostruct-0.6.1 → bundler-2.6.7/lib/bundler/vendor/fileutils}/COPYING +0 -0
- /package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/{ostruct-0.6.1 → ostruct-0.6.3}/BSDL +0 -0
- /package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/{ostruct-0.6.1 → ostruct-0.6.3}/Gemfile +0 -0
- /package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/{ostruct-0.6.1 → ostruct-0.6.3}/README.md +0 -0
- /package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/{ostruct-0.6.1 → ostruct-0.6.3}/Rakefile +0 -0
- /package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/{ostruct-0.6.1 → ostruct-0.6.3}/bin/console +0 -0
|
@@ -0,0 +1,1579 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# = uri/generic.rb
|
|
4
|
+
#
|
|
5
|
+
# Author:: Akira Yamada <akira@ruby-lang.org>
|
|
6
|
+
# License:: You can redistribute it and/or modify it under the same term as Ruby.
|
|
7
|
+
#
|
|
8
|
+
# See Bundler::URI for general documentation
|
|
9
|
+
#
|
|
10
|
+
|
|
11
|
+
require_relative 'common'
|
|
12
|
+
autoload :IPSocket, 'socket'
|
|
13
|
+
autoload :IPAddr, 'ipaddr'
|
|
14
|
+
|
|
15
|
+
module Bundler::URI
|
|
16
|
+
|
|
17
|
+
#
|
|
18
|
+
# Base class for all Bundler::URI classes.
|
|
19
|
+
# Implements generic Bundler::URI syntax as per RFC 2396.
|
|
20
|
+
#
|
|
21
|
+
class Generic
|
|
22
|
+
include Bundler::URI
|
|
23
|
+
|
|
24
|
+
#
|
|
25
|
+
# A Default port of nil for Bundler::URI::Generic.
|
|
26
|
+
#
|
|
27
|
+
DEFAULT_PORT = nil
|
|
28
|
+
|
|
29
|
+
#
|
|
30
|
+
# Returns default port.
|
|
31
|
+
#
|
|
32
|
+
def self.default_port
|
|
33
|
+
self::DEFAULT_PORT
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
#
|
|
37
|
+
# Returns default port.
|
|
38
|
+
#
|
|
39
|
+
def default_port
|
|
40
|
+
self.class.default_port
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
#
|
|
44
|
+
# An Array of the available components for Bundler::URI::Generic.
|
|
45
|
+
#
|
|
46
|
+
COMPONENT = [
|
|
47
|
+
:scheme,
|
|
48
|
+
:userinfo, :host, :port, :registry,
|
|
49
|
+
:path, :opaque,
|
|
50
|
+
:query,
|
|
51
|
+
:fragment
|
|
52
|
+
].freeze
|
|
53
|
+
|
|
54
|
+
#
|
|
55
|
+
# Components of the Bundler::URI in the order.
|
|
56
|
+
#
|
|
57
|
+
def self.component
|
|
58
|
+
self::COMPONENT
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
USE_REGISTRY = false # :nodoc:
|
|
62
|
+
|
|
63
|
+
def self.use_registry # :nodoc:
|
|
64
|
+
self::USE_REGISTRY
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
#
|
|
68
|
+
# == Synopsis
|
|
69
|
+
#
|
|
70
|
+
# See ::new.
|
|
71
|
+
#
|
|
72
|
+
# == Description
|
|
73
|
+
#
|
|
74
|
+
# At first, tries to create a new Bundler::URI::Generic instance using
|
|
75
|
+
# Bundler::URI::Generic::build. But, if exception Bundler::URI::InvalidComponentError is raised,
|
|
76
|
+
# then it does Bundler::URI::Escape.escape all Bundler::URI components and tries again.
|
|
77
|
+
#
|
|
78
|
+
def self.build2(args)
|
|
79
|
+
begin
|
|
80
|
+
return self.build(args)
|
|
81
|
+
rescue InvalidComponentError
|
|
82
|
+
if args.kind_of?(Array)
|
|
83
|
+
return self.build(args.collect{|x|
|
|
84
|
+
if x.is_a?(String)
|
|
85
|
+
Bundler::URI::RFC2396_PARSER.escape(x)
|
|
86
|
+
else
|
|
87
|
+
x
|
|
88
|
+
end
|
|
89
|
+
})
|
|
90
|
+
elsif args.kind_of?(Hash)
|
|
91
|
+
tmp = {}
|
|
92
|
+
args.each do |key, value|
|
|
93
|
+
tmp[key] = if value
|
|
94
|
+
Bundler::URI::RFC2396_PARSER.escape(value)
|
|
95
|
+
else
|
|
96
|
+
value
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
return self.build(tmp)
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
#
|
|
105
|
+
# == Synopsis
|
|
106
|
+
#
|
|
107
|
+
# See ::new.
|
|
108
|
+
#
|
|
109
|
+
# == Description
|
|
110
|
+
#
|
|
111
|
+
# Creates a new Bundler::URI::Generic instance from components of Bundler::URI::Generic
|
|
112
|
+
# with check. Components are: scheme, userinfo, host, port, registry, path,
|
|
113
|
+
# opaque, query, and fragment. You can provide arguments either by an Array or a Hash.
|
|
114
|
+
# See ::new for hash keys to use or for order of array items.
|
|
115
|
+
#
|
|
116
|
+
def self.build(args)
|
|
117
|
+
if args.kind_of?(Array) &&
|
|
118
|
+
args.size == ::Bundler::URI::Generic::COMPONENT.size
|
|
119
|
+
tmp = args.dup
|
|
120
|
+
elsif args.kind_of?(Hash)
|
|
121
|
+
tmp = ::Bundler::URI::Generic::COMPONENT.collect do |c|
|
|
122
|
+
if args.include?(c)
|
|
123
|
+
args[c]
|
|
124
|
+
else
|
|
125
|
+
nil
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
else
|
|
129
|
+
component = self.class.component rescue ::Bundler::URI::Generic::COMPONENT
|
|
130
|
+
raise ArgumentError,
|
|
131
|
+
"expected Array of or Hash of components of #{self.class} (#{component.join(', ')})"
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
tmp << nil
|
|
135
|
+
tmp << true
|
|
136
|
+
return self.new(*tmp)
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
#
|
|
140
|
+
# == Args
|
|
141
|
+
#
|
|
142
|
+
# +scheme+::
|
|
143
|
+
# Protocol scheme, i.e. 'http','ftp','mailto' and so on.
|
|
144
|
+
# +userinfo+::
|
|
145
|
+
# User name and password, i.e. 'sdmitry:bla'.
|
|
146
|
+
# +host+::
|
|
147
|
+
# Server host name.
|
|
148
|
+
# +port+::
|
|
149
|
+
# Server port.
|
|
150
|
+
# +registry+::
|
|
151
|
+
# Registry of naming authorities.
|
|
152
|
+
# +path+::
|
|
153
|
+
# Path on server.
|
|
154
|
+
# +opaque+::
|
|
155
|
+
# Opaque part.
|
|
156
|
+
# +query+::
|
|
157
|
+
# Query data.
|
|
158
|
+
# +fragment+::
|
|
159
|
+
# Part of the Bundler::URI after '#' character.
|
|
160
|
+
# +parser+::
|
|
161
|
+
# Parser for internal use [Bundler::URI::DEFAULT_PARSER by default].
|
|
162
|
+
# +arg_check+::
|
|
163
|
+
# Check arguments [false by default].
|
|
164
|
+
#
|
|
165
|
+
# == Description
|
|
166
|
+
#
|
|
167
|
+
# Creates a new Bundler::URI::Generic instance from ``generic'' components without check.
|
|
168
|
+
#
|
|
169
|
+
def initialize(scheme,
|
|
170
|
+
userinfo, host, port, registry,
|
|
171
|
+
path, opaque,
|
|
172
|
+
query,
|
|
173
|
+
fragment,
|
|
174
|
+
parser = DEFAULT_PARSER,
|
|
175
|
+
arg_check = false)
|
|
176
|
+
@scheme = nil
|
|
177
|
+
@user = nil
|
|
178
|
+
@password = nil
|
|
179
|
+
@host = nil
|
|
180
|
+
@port = nil
|
|
181
|
+
@path = nil
|
|
182
|
+
@query = nil
|
|
183
|
+
@opaque = nil
|
|
184
|
+
@fragment = nil
|
|
185
|
+
@parser = parser == DEFAULT_PARSER ? nil : parser
|
|
186
|
+
|
|
187
|
+
if arg_check
|
|
188
|
+
self.scheme = scheme
|
|
189
|
+
self.userinfo = userinfo
|
|
190
|
+
self.hostname = host
|
|
191
|
+
self.port = port
|
|
192
|
+
self.path = path
|
|
193
|
+
self.query = query
|
|
194
|
+
self.opaque = opaque
|
|
195
|
+
self.fragment = fragment
|
|
196
|
+
else
|
|
197
|
+
self.set_scheme(scheme)
|
|
198
|
+
self.set_userinfo(userinfo)
|
|
199
|
+
self.set_host(host)
|
|
200
|
+
self.set_port(port)
|
|
201
|
+
self.set_path(path)
|
|
202
|
+
self.query = query
|
|
203
|
+
self.set_opaque(opaque)
|
|
204
|
+
self.fragment=(fragment)
|
|
205
|
+
end
|
|
206
|
+
if registry
|
|
207
|
+
raise InvalidURIError,
|
|
208
|
+
"the scheme #{@scheme} does not accept registry part: #{registry} (or bad hostname?)"
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
@scheme&.freeze
|
|
212
|
+
self.set_path('') if !@path && !@opaque # (see RFC2396 Section 5.2)
|
|
213
|
+
self.set_port(self.default_port) if self.default_port && !@port
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
#
|
|
217
|
+
# Returns the scheme component of the Bundler::URI.
|
|
218
|
+
#
|
|
219
|
+
# Bundler::URI("http://foo/bar/baz").scheme #=> "http"
|
|
220
|
+
#
|
|
221
|
+
attr_reader :scheme
|
|
222
|
+
|
|
223
|
+
# Returns the host component of the Bundler::URI.
|
|
224
|
+
#
|
|
225
|
+
# Bundler::URI("http://foo/bar/baz").host #=> "foo"
|
|
226
|
+
#
|
|
227
|
+
# It returns nil if no host component exists.
|
|
228
|
+
#
|
|
229
|
+
# Bundler::URI("mailto:foo@example.org").host #=> nil
|
|
230
|
+
#
|
|
231
|
+
# The component does not contain the port number.
|
|
232
|
+
#
|
|
233
|
+
# Bundler::URI("http://foo:8080/bar/baz").host #=> "foo"
|
|
234
|
+
#
|
|
235
|
+
# Since IPv6 addresses are wrapped with brackets in URIs,
|
|
236
|
+
# this method returns IPv6 addresses wrapped with brackets.
|
|
237
|
+
# This form is not appropriate to pass to socket methods such as TCPSocket.open.
|
|
238
|
+
# If unwrapped host names are required, use the #hostname method.
|
|
239
|
+
#
|
|
240
|
+
# Bundler::URI("http://[::1]/bar/baz").host #=> "[::1]"
|
|
241
|
+
# Bundler::URI("http://[::1]/bar/baz").hostname #=> "::1"
|
|
242
|
+
#
|
|
243
|
+
attr_reader :host
|
|
244
|
+
|
|
245
|
+
# Returns the port component of the Bundler::URI.
|
|
246
|
+
#
|
|
247
|
+
# Bundler::URI("http://foo/bar/baz").port #=> 80
|
|
248
|
+
# Bundler::URI("http://foo:8080/bar/baz").port #=> 8080
|
|
249
|
+
#
|
|
250
|
+
attr_reader :port
|
|
251
|
+
|
|
252
|
+
def registry # :nodoc:
|
|
253
|
+
nil
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# Returns the path component of the Bundler::URI.
|
|
257
|
+
#
|
|
258
|
+
# Bundler::URI("http://foo/bar/baz").path #=> "/bar/baz"
|
|
259
|
+
#
|
|
260
|
+
attr_reader :path
|
|
261
|
+
|
|
262
|
+
# Returns the query component of the Bundler::URI.
|
|
263
|
+
#
|
|
264
|
+
# Bundler::URI("http://foo/bar/baz?search=FooBar").query #=> "search=FooBar"
|
|
265
|
+
#
|
|
266
|
+
attr_reader :query
|
|
267
|
+
|
|
268
|
+
# Returns the opaque part of the Bundler::URI.
|
|
269
|
+
#
|
|
270
|
+
# Bundler::URI("mailto:foo@example.org").opaque #=> "foo@example.org"
|
|
271
|
+
# Bundler::URI("http://foo/bar/baz").opaque #=> nil
|
|
272
|
+
#
|
|
273
|
+
# The portion of the path that does not make use of the slash '/'.
|
|
274
|
+
# The path typically refers to an absolute path or an opaque part.
|
|
275
|
+
# (See RFC2396 Section 3 and 5.2.)
|
|
276
|
+
#
|
|
277
|
+
attr_reader :opaque
|
|
278
|
+
|
|
279
|
+
# Returns the fragment component of the Bundler::URI.
|
|
280
|
+
#
|
|
281
|
+
# Bundler::URI("http://foo/bar/baz?search=FooBar#ponies").fragment #=> "ponies"
|
|
282
|
+
#
|
|
283
|
+
attr_reader :fragment
|
|
284
|
+
|
|
285
|
+
# Returns the parser to be used.
|
|
286
|
+
#
|
|
287
|
+
# Unless a Bundler::URI::Parser is defined, DEFAULT_PARSER is used.
|
|
288
|
+
#
|
|
289
|
+
def parser
|
|
290
|
+
if !defined?(@parser) || !@parser
|
|
291
|
+
DEFAULT_PARSER
|
|
292
|
+
else
|
|
293
|
+
@parser || DEFAULT_PARSER
|
|
294
|
+
end
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
# Replaces self by other Bundler::URI object.
|
|
298
|
+
#
|
|
299
|
+
def replace!(oth)
|
|
300
|
+
if self.class != oth.class
|
|
301
|
+
raise ArgumentError, "expected #{self.class} object"
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
component.each do |c|
|
|
305
|
+
self.__send__("#{c}=", oth.__send__(c))
|
|
306
|
+
end
|
|
307
|
+
end
|
|
308
|
+
private :replace!
|
|
309
|
+
|
|
310
|
+
#
|
|
311
|
+
# Components of the Bundler::URI in the order.
|
|
312
|
+
#
|
|
313
|
+
def component
|
|
314
|
+
self.class.component
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
#
|
|
318
|
+
# Checks the scheme +v+ component against the Bundler::URI::Parser Regexp for :SCHEME.
|
|
319
|
+
#
|
|
320
|
+
def check_scheme(v)
|
|
321
|
+
if v && parser.regexp[:SCHEME] !~ v
|
|
322
|
+
raise InvalidComponentError,
|
|
323
|
+
"bad component(expected scheme component): #{v}"
|
|
324
|
+
end
|
|
325
|
+
|
|
326
|
+
return true
|
|
327
|
+
end
|
|
328
|
+
private :check_scheme
|
|
329
|
+
|
|
330
|
+
# Protected setter for the scheme component +v+.
|
|
331
|
+
#
|
|
332
|
+
# See also Bundler::URI::Generic.scheme=.
|
|
333
|
+
#
|
|
334
|
+
def set_scheme(v)
|
|
335
|
+
@scheme = v&.downcase
|
|
336
|
+
end
|
|
337
|
+
protected :set_scheme
|
|
338
|
+
|
|
339
|
+
#
|
|
340
|
+
# == Args
|
|
341
|
+
#
|
|
342
|
+
# +v+::
|
|
343
|
+
# String
|
|
344
|
+
#
|
|
345
|
+
# == Description
|
|
346
|
+
#
|
|
347
|
+
# Public setter for the scheme component +v+
|
|
348
|
+
# (with validation).
|
|
349
|
+
#
|
|
350
|
+
# See also Bundler::URI::Generic.check_scheme.
|
|
351
|
+
#
|
|
352
|
+
# == Usage
|
|
353
|
+
#
|
|
354
|
+
# require 'bundler/vendor/uri/lib/uri'
|
|
355
|
+
#
|
|
356
|
+
# uri = Bundler::URI.parse("http://my.example.com")
|
|
357
|
+
# uri.scheme = "https"
|
|
358
|
+
# uri.to_s #=> "https://my.example.com"
|
|
359
|
+
#
|
|
360
|
+
def scheme=(v)
|
|
361
|
+
check_scheme(v)
|
|
362
|
+
set_scheme(v)
|
|
363
|
+
v
|
|
364
|
+
end
|
|
365
|
+
|
|
366
|
+
#
|
|
367
|
+
# Checks the +user+ and +password+.
|
|
368
|
+
#
|
|
369
|
+
# If +password+ is not provided, then +user+ is
|
|
370
|
+
# split, using Bundler::URI::Generic.split_userinfo, to
|
|
371
|
+
# pull +user+ and +password.
|
|
372
|
+
#
|
|
373
|
+
# See also Bundler::URI::Generic.check_user, Bundler::URI::Generic.check_password.
|
|
374
|
+
#
|
|
375
|
+
def check_userinfo(user, password = nil)
|
|
376
|
+
if !password
|
|
377
|
+
user, password = split_userinfo(user)
|
|
378
|
+
end
|
|
379
|
+
check_user(user)
|
|
380
|
+
check_password(password, user)
|
|
381
|
+
|
|
382
|
+
return true
|
|
383
|
+
end
|
|
384
|
+
private :check_userinfo
|
|
385
|
+
|
|
386
|
+
#
|
|
387
|
+
# Checks the user +v+ component for RFC2396 compliance
|
|
388
|
+
# and against the Bundler::URI::Parser Regexp for :USERINFO.
|
|
389
|
+
#
|
|
390
|
+
# Can not have a registry or opaque component defined,
|
|
391
|
+
# with a user component defined.
|
|
392
|
+
#
|
|
393
|
+
def check_user(v)
|
|
394
|
+
if @opaque
|
|
395
|
+
raise InvalidURIError,
|
|
396
|
+
"cannot set user with opaque"
|
|
397
|
+
end
|
|
398
|
+
|
|
399
|
+
return v unless v
|
|
400
|
+
|
|
401
|
+
if parser.regexp[:USERINFO] !~ v
|
|
402
|
+
raise InvalidComponentError,
|
|
403
|
+
"bad component(expected userinfo component or user component): #{v}"
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
return true
|
|
407
|
+
end
|
|
408
|
+
private :check_user
|
|
409
|
+
|
|
410
|
+
#
|
|
411
|
+
# Checks the password +v+ component for RFC2396 compliance
|
|
412
|
+
# and against the Bundler::URI::Parser Regexp for :USERINFO.
|
|
413
|
+
#
|
|
414
|
+
# Can not have a registry or opaque component defined,
|
|
415
|
+
# with a user component defined.
|
|
416
|
+
#
|
|
417
|
+
def check_password(v, user = @user)
|
|
418
|
+
if @opaque
|
|
419
|
+
raise InvalidURIError,
|
|
420
|
+
"cannot set password with opaque"
|
|
421
|
+
end
|
|
422
|
+
return v unless v
|
|
423
|
+
|
|
424
|
+
if !user
|
|
425
|
+
raise InvalidURIError,
|
|
426
|
+
"password component depends user component"
|
|
427
|
+
end
|
|
428
|
+
|
|
429
|
+
if parser.regexp[:USERINFO] !~ v
|
|
430
|
+
raise InvalidComponentError,
|
|
431
|
+
"bad password component"
|
|
432
|
+
end
|
|
433
|
+
|
|
434
|
+
return true
|
|
435
|
+
end
|
|
436
|
+
private :check_password
|
|
437
|
+
|
|
438
|
+
#
|
|
439
|
+
# Sets userinfo, argument is string like 'name:pass'.
|
|
440
|
+
#
|
|
441
|
+
def userinfo=(userinfo)
|
|
442
|
+
if userinfo.nil?
|
|
443
|
+
return nil
|
|
444
|
+
end
|
|
445
|
+
check_userinfo(*userinfo)
|
|
446
|
+
set_userinfo(*userinfo)
|
|
447
|
+
# returns userinfo
|
|
448
|
+
end
|
|
449
|
+
|
|
450
|
+
#
|
|
451
|
+
# == Args
|
|
452
|
+
#
|
|
453
|
+
# +v+::
|
|
454
|
+
# String
|
|
455
|
+
#
|
|
456
|
+
# == Description
|
|
457
|
+
#
|
|
458
|
+
# Public setter for the +user+ component
|
|
459
|
+
# (with validation).
|
|
460
|
+
#
|
|
461
|
+
# See also Bundler::URI::Generic.check_user.
|
|
462
|
+
#
|
|
463
|
+
# == Usage
|
|
464
|
+
#
|
|
465
|
+
# require 'bundler/vendor/uri/lib/uri'
|
|
466
|
+
#
|
|
467
|
+
# uri = Bundler::URI.parse("http://john:S3nsit1ve@my.example.com")
|
|
468
|
+
# uri.user = "sam"
|
|
469
|
+
# uri.to_s #=> "http://sam:V3ry_S3nsit1ve@my.example.com"
|
|
470
|
+
#
|
|
471
|
+
def user=(user)
|
|
472
|
+
check_user(user)
|
|
473
|
+
set_user(user)
|
|
474
|
+
# returns user
|
|
475
|
+
end
|
|
476
|
+
|
|
477
|
+
#
|
|
478
|
+
# == Args
|
|
479
|
+
#
|
|
480
|
+
# +v+::
|
|
481
|
+
# String
|
|
482
|
+
#
|
|
483
|
+
# == Description
|
|
484
|
+
#
|
|
485
|
+
# Public setter for the +password+ component
|
|
486
|
+
# (with validation).
|
|
487
|
+
#
|
|
488
|
+
# See also Bundler::URI::Generic.check_password.
|
|
489
|
+
#
|
|
490
|
+
# == Usage
|
|
491
|
+
#
|
|
492
|
+
# require 'bundler/vendor/uri/lib/uri'
|
|
493
|
+
#
|
|
494
|
+
# uri = Bundler::URI.parse("http://john:S3nsit1ve@my.example.com")
|
|
495
|
+
# uri.password = "V3ry_S3nsit1ve"
|
|
496
|
+
# uri.to_s #=> "http://john:V3ry_S3nsit1ve@my.example.com"
|
|
497
|
+
#
|
|
498
|
+
def password=(password)
|
|
499
|
+
check_password(password)
|
|
500
|
+
set_password(password)
|
|
501
|
+
# returns password
|
|
502
|
+
end
|
|
503
|
+
|
|
504
|
+
# Protected setter for the +user+ component, and +password+ if available
|
|
505
|
+
# (with validation).
|
|
506
|
+
#
|
|
507
|
+
# See also Bundler::URI::Generic.userinfo=.
|
|
508
|
+
#
|
|
509
|
+
def set_userinfo(user, password = nil)
|
|
510
|
+
unless password
|
|
511
|
+
user, password = split_userinfo(user)
|
|
512
|
+
end
|
|
513
|
+
@user = user
|
|
514
|
+
@password = password if password
|
|
515
|
+
|
|
516
|
+
[@user, @password]
|
|
517
|
+
end
|
|
518
|
+
protected :set_userinfo
|
|
519
|
+
|
|
520
|
+
# Protected setter for the user component +v+.
|
|
521
|
+
#
|
|
522
|
+
# See also Bundler::URI::Generic.user=.
|
|
523
|
+
#
|
|
524
|
+
def set_user(v)
|
|
525
|
+
set_userinfo(v, @password)
|
|
526
|
+
v
|
|
527
|
+
end
|
|
528
|
+
protected :set_user
|
|
529
|
+
|
|
530
|
+
# Protected setter for the password component +v+.
|
|
531
|
+
#
|
|
532
|
+
# See also Bundler::URI::Generic.password=.
|
|
533
|
+
#
|
|
534
|
+
def set_password(v)
|
|
535
|
+
@password = v
|
|
536
|
+
# returns v
|
|
537
|
+
end
|
|
538
|
+
protected :set_password
|
|
539
|
+
|
|
540
|
+
# Returns the userinfo +ui+ as <code>[user, password]</code>
|
|
541
|
+
# if properly formatted as 'user:password'.
|
|
542
|
+
def split_userinfo(ui)
|
|
543
|
+
return nil, nil unless ui
|
|
544
|
+
user, password = ui.split(':', 2)
|
|
545
|
+
|
|
546
|
+
return user, password
|
|
547
|
+
end
|
|
548
|
+
private :split_userinfo
|
|
549
|
+
|
|
550
|
+
# Escapes 'user:password' +v+ based on RFC 1738 section 3.1.
|
|
551
|
+
def escape_userpass(v)
|
|
552
|
+
parser.escape(v, /[@:\/]/o) # RFC 1738 section 3.1 #/
|
|
553
|
+
end
|
|
554
|
+
private :escape_userpass
|
|
555
|
+
|
|
556
|
+
# Returns the userinfo, either as 'user' or 'user:password'.
|
|
557
|
+
def userinfo
|
|
558
|
+
if @user.nil?
|
|
559
|
+
nil
|
|
560
|
+
elsif @password.nil?
|
|
561
|
+
@user
|
|
562
|
+
else
|
|
563
|
+
@user + ':' + @password
|
|
564
|
+
end
|
|
565
|
+
end
|
|
566
|
+
|
|
567
|
+
# Returns the user component (without Bundler::URI decoding).
|
|
568
|
+
def user
|
|
569
|
+
@user
|
|
570
|
+
end
|
|
571
|
+
|
|
572
|
+
# Returns the password component (without Bundler::URI decoding).
|
|
573
|
+
def password
|
|
574
|
+
@password
|
|
575
|
+
end
|
|
576
|
+
|
|
577
|
+
# Returns the user component after Bundler::URI decoding.
|
|
578
|
+
def decoded_user
|
|
579
|
+
Bundler::URI.decode_uri_component(@user) if @user
|
|
580
|
+
end
|
|
581
|
+
|
|
582
|
+
# Returns the password component after Bundler::URI decoding.
|
|
583
|
+
def decoded_password
|
|
584
|
+
Bundler::URI.decode_uri_component(@password) if @password
|
|
585
|
+
end
|
|
586
|
+
|
|
587
|
+
#
|
|
588
|
+
# Checks the host +v+ component for RFC2396 compliance
|
|
589
|
+
# and against the Bundler::URI::Parser Regexp for :HOST.
|
|
590
|
+
#
|
|
591
|
+
# Can not have a registry or opaque component defined,
|
|
592
|
+
# with a host component defined.
|
|
593
|
+
#
|
|
594
|
+
def check_host(v)
|
|
595
|
+
return v unless v
|
|
596
|
+
|
|
597
|
+
if @opaque
|
|
598
|
+
raise InvalidURIError,
|
|
599
|
+
"cannot set host with registry or opaque"
|
|
600
|
+
elsif parser.regexp[:HOST] !~ v
|
|
601
|
+
raise InvalidComponentError,
|
|
602
|
+
"bad component(expected host component): #{v}"
|
|
603
|
+
end
|
|
604
|
+
|
|
605
|
+
return true
|
|
606
|
+
end
|
|
607
|
+
private :check_host
|
|
608
|
+
|
|
609
|
+
# Protected setter for the host component +v+.
|
|
610
|
+
#
|
|
611
|
+
# See also Bundler::URI::Generic.host=.
|
|
612
|
+
#
|
|
613
|
+
def set_host(v)
|
|
614
|
+
@host = v
|
|
615
|
+
end
|
|
616
|
+
protected :set_host
|
|
617
|
+
|
|
618
|
+
#
|
|
619
|
+
# == Args
|
|
620
|
+
#
|
|
621
|
+
# +v+::
|
|
622
|
+
# String
|
|
623
|
+
#
|
|
624
|
+
# == Description
|
|
625
|
+
#
|
|
626
|
+
# Public setter for the host component +v+
|
|
627
|
+
# (with validation).
|
|
628
|
+
#
|
|
629
|
+
# See also Bundler::URI::Generic.check_host.
|
|
630
|
+
#
|
|
631
|
+
# == Usage
|
|
632
|
+
#
|
|
633
|
+
# require 'bundler/vendor/uri/lib/uri'
|
|
634
|
+
#
|
|
635
|
+
# uri = Bundler::URI.parse("http://my.example.com")
|
|
636
|
+
# uri.host = "foo.com"
|
|
637
|
+
# uri.to_s #=> "http://foo.com"
|
|
638
|
+
#
|
|
639
|
+
def host=(v)
|
|
640
|
+
check_host(v)
|
|
641
|
+
set_host(v)
|
|
642
|
+
v
|
|
643
|
+
end
|
|
644
|
+
|
|
645
|
+
# Extract the host part of the Bundler::URI and unwrap brackets for IPv6 addresses.
|
|
646
|
+
#
|
|
647
|
+
# This method is the same as Bundler::URI::Generic#host except
|
|
648
|
+
# brackets for IPv6 (and future IP) addresses are removed.
|
|
649
|
+
#
|
|
650
|
+
# uri = Bundler::URI("http://[::1]/bar")
|
|
651
|
+
# uri.hostname #=> "::1"
|
|
652
|
+
# uri.host #=> "[::1]"
|
|
653
|
+
#
|
|
654
|
+
def hostname
|
|
655
|
+
v = self.host
|
|
656
|
+
v&.start_with?('[') && v.end_with?(']') ? v[1..-2] : v
|
|
657
|
+
end
|
|
658
|
+
|
|
659
|
+
# Sets the host part of the Bundler::URI as the argument with brackets for IPv6 addresses.
|
|
660
|
+
#
|
|
661
|
+
# This method is the same as Bundler::URI::Generic#host= except
|
|
662
|
+
# the argument can be a bare IPv6 address.
|
|
663
|
+
#
|
|
664
|
+
# uri = Bundler::URI("http://foo/bar")
|
|
665
|
+
# uri.hostname = "::1"
|
|
666
|
+
# uri.to_s #=> "http://[::1]/bar"
|
|
667
|
+
#
|
|
668
|
+
# If the argument seems to be an IPv6 address,
|
|
669
|
+
# it is wrapped with brackets.
|
|
670
|
+
#
|
|
671
|
+
def hostname=(v)
|
|
672
|
+
v = "[#{v}]" if !(v&.start_with?('[') && v&.end_with?(']')) && v&.index(':')
|
|
673
|
+
self.host = v
|
|
674
|
+
end
|
|
675
|
+
|
|
676
|
+
#
|
|
677
|
+
# Checks the port +v+ component for RFC2396 compliance
|
|
678
|
+
# and against the Bundler::URI::Parser Regexp for :PORT.
|
|
679
|
+
#
|
|
680
|
+
# Can not have a registry or opaque component defined,
|
|
681
|
+
# with a port component defined.
|
|
682
|
+
#
|
|
683
|
+
def check_port(v)
|
|
684
|
+
return v unless v
|
|
685
|
+
|
|
686
|
+
if @opaque
|
|
687
|
+
raise InvalidURIError,
|
|
688
|
+
"cannot set port with registry or opaque"
|
|
689
|
+
elsif !v.kind_of?(Integer) && parser.regexp[:PORT] !~ v
|
|
690
|
+
raise InvalidComponentError,
|
|
691
|
+
"bad component(expected port component): #{v.inspect}"
|
|
692
|
+
end
|
|
693
|
+
|
|
694
|
+
return true
|
|
695
|
+
end
|
|
696
|
+
private :check_port
|
|
697
|
+
|
|
698
|
+
# Protected setter for the port component +v+.
|
|
699
|
+
#
|
|
700
|
+
# See also Bundler::URI::Generic.port=.
|
|
701
|
+
#
|
|
702
|
+
def set_port(v)
|
|
703
|
+
v = v.empty? ? nil : v.to_i unless !v || v.kind_of?(Integer)
|
|
704
|
+
@port = v
|
|
705
|
+
end
|
|
706
|
+
protected :set_port
|
|
707
|
+
|
|
708
|
+
#
|
|
709
|
+
# == Args
|
|
710
|
+
#
|
|
711
|
+
# +v+::
|
|
712
|
+
# String
|
|
713
|
+
#
|
|
714
|
+
# == Description
|
|
715
|
+
#
|
|
716
|
+
# Public setter for the port component +v+
|
|
717
|
+
# (with validation).
|
|
718
|
+
#
|
|
719
|
+
# See also Bundler::URI::Generic.check_port.
|
|
720
|
+
#
|
|
721
|
+
# == Usage
|
|
722
|
+
#
|
|
723
|
+
# require 'bundler/vendor/uri/lib/uri'
|
|
724
|
+
#
|
|
725
|
+
# uri = Bundler::URI.parse("http://my.example.com")
|
|
726
|
+
# uri.port = 8080
|
|
727
|
+
# uri.to_s #=> "http://my.example.com:8080"
|
|
728
|
+
#
|
|
729
|
+
def port=(v)
|
|
730
|
+
check_port(v)
|
|
731
|
+
set_port(v)
|
|
732
|
+
port
|
|
733
|
+
end
|
|
734
|
+
|
|
735
|
+
def check_registry(v) # :nodoc:
|
|
736
|
+
raise InvalidURIError, "cannot set registry"
|
|
737
|
+
end
|
|
738
|
+
private :check_registry
|
|
739
|
+
|
|
740
|
+
def set_registry(v) # :nodoc:
|
|
741
|
+
raise InvalidURIError, "cannot set registry"
|
|
742
|
+
end
|
|
743
|
+
protected :set_registry
|
|
744
|
+
|
|
745
|
+
def registry=(v) # :nodoc:
|
|
746
|
+
raise InvalidURIError, "cannot set registry"
|
|
747
|
+
end
|
|
748
|
+
|
|
749
|
+
#
|
|
750
|
+
# Checks the path +v+ component for RFC2396 compliance
|
|
751
|
+
# and against the Bundler::URI::Parser Regexp
|
|
752
|
+
# for :ABS_PATH and :REL_PATH.
|
|
753
|
+
#
|
|
754
|
+
# Can not have a opaque component defined,
|
|
755
|
+
# with a path component defined.
|
|
756
|
+
#
|
|
757
|
+
def check_path(v)
|
|
758
|
+
# raise if both hier and opaque are not nil, because:
|
|
759
|
+
# absoluteURI = scheme ":" ( hier_part | opaque_part )
|
|
760
|
+
# hier_part = ( net_path | abs_path ) [ "?" query ]
|
|
761
|
+
if v && @opaque
|
|
762
|
+
raise InvalidURIError,
|
|
763
|
+
"path conflicts with opaque"
|
|
764
|
+
end
|
|
765
|
+
|
|
766
|
+
# If scheme is ftp, path may be relative.
|
|
767
|
+
# See RFC 1738 section 3.2.2, and RFC 2396.
|
|
768
|
+
if @scheme && @scheme != "ftp"
|
|
769
|
+
if v && v != '' && parser.regexp[:ABS_PATH] !~ v
|
|
770
|
+
raise InvalidComponentError,
|
|
771
|
+
"bad component(expected absolute path component): #{v}"
|
|
772
|
+
end
|
|
773
|
+
else
|
|
774
|
+
if v && v != '' && parser.regexp[:ABS_PATH] !~ v &&
|
|
775
|
+
parser.regexp[:REL_PATH] !~ v
|
|
776
|
+
raise InvalidComponentError,
|
|
777
|
+
"bad component(expected relative path component): #{v}"
|
|
778
|
+
end
|
|
779
|
+
end
|
|
780
|
+
|
|
781
|
+
return true
|
|
782
|
+
end
|
|
783
|
+
private :check_path
|
|
784
|
+
|
|
785
|
+
# Protected setter for the path component +v+.
|
|
786
|
+
#
|
|
787
|
+
# See also Bundler::URI::Generic.path=.
|
|
788
|
+
#
|
|
789
|
+
def set_path(v)
|
|
790
|
+
@path = v
|
|
791
|
+
end
|
|
792
|
+
protected :set_path
|
|
793
|
+
|
|
794
|
+
#
|
|
795
|
+
# == Args
|
|
796
|
+
#
|
|
797
|
+
# +v+::
|
|
798
|
+
# String
|
|
799
|
+
#
|
|
800
|
+
# == Description
|
|
801
|
+
#
|
|
802
|
+
# Public setter for the path component +v+
|
|
803
|
+
# (with validation).
|
|
804
|
+
#
|
|
805
|
+
# See also Bundler::URI::Generic.check_path.
|
|
806
|
+
#
|
|
807
|
+
# == Usage
|
|
808
|
+
#
|
|
809
|
+
# require 'bundler/vendor/uri/lib/uri'
|
|
810
|
+
#
|
|
811
|
+
# uri = Bundler::URI.parse("http://my.example.com/pub/files")
|
|
812
|
+
# uri.path = "/faq/"
|
|
813
|
+
# uri.to_s #=> "http://my.example.com/faq/"
|
|
814
|
+
#
|
|
815
|
+
def path=(v)
|
|
816
|
+
check_path(v)
|
|
817
|
+
set_path(v)
|
|
818
|
+
v
|
|
819
|
+
end
|
|
820
|
+
|
|
821
|
+
#
|
|
822
|
+
# == Args
|
|
823
|
+
#
|
|
824
|
+
# +v+::
|
|
825
|
+
# String
|
|
826
|
+
#
|
|
827
|
+
# == Description
|
|
828
|
+
#
|
|
829
|
+
# Public setter for the query component +v+.
|
|
830
|
+
#
|
|
831
|
+
# == Usage
|
|
832
|
+
#
|
|
833
|
+
# require 'bundler/vendor/uri/lib/uri'
|
|
834
|
+
#
|
|
835
|
+
# uri = Bundler::URI.parse("http://my.example.com/?id=25")
|
|
836
|
+
# uri.query = "id=1"
|
|
837
|
+
# uri.to_s #=> "http://my.example.com/?id=1"
|
|
838
|
+
#
|
|
839
|
+
def query=(v)
|
|
840
|
+
return @query = nil unless v
|
|
841
|
+
raise InvalidURIError, "query conflicts with opaque" if @opaque
|
|
842
|
+
|
|
843
|
+
x = v.to_str
|
|
844
|
+
v = x.dup if x.equal? v
|
|
845
|
+
v.encode!(Encoding::UTF_8) rescue nil
|
|
846
|
+
v.delete!("\t\r\n")
|
|
847
|
+
v.force_encoding(Encoding::ASCII_8BIT)
|
|
848
|
+
raise InvalidURIError, "invalid percent escape: #{$1}" if /(%\H\H)/n.match(v)
|
|
849
|
+
v.gsub!(/(?!%\h\h|[!$-&(-;=?-_a-~])./n.freeze){'%%%02X' % $&.ord}
|
|
850
|
+
v.force_encoding(Encoding::US_ASCII)
|
|
851
|
+
@query = v
|
|
852
|
+
end
|
|
853
|
+
|
|
854
|
+
#
|
|
855
|
+
# Checks the opaque +v+ component for RFC2396 compliance and
|
|
856
|
+
# against the Bundler::URI::Parser Regexp for :OPAQUE.
|
|
857
|
+
#
|
|
858
|
+
# Can not have a host, port, user, or path component defined,
|
|
859
|
+
# with an opaque component defined.
|
|
860
|
+
#
|
|
861
|
+
def check_opaque(v)
|
|
862
|
+
return v unless v
|
|
863
|
+
|
|
864
|
+
# raise if both hier and opaque are not nil, because:
|
|
865
|
+
# absoluteURI = scheme ":" ( hier_part | opaque_part )
|
|
866
|
+
# hier_part = ( net_path | abs_path ) [ "?" query ]
|
|
867
|
+
if @host || @port || @user || @path # userinfo = @user + ':' + @password
|
|
868
|
+
raise InvalidURIError,
|
|
869
|
+
"cannot set opaque with host, port, userinfo or path"
|
|
870
|
+
elsif v && parser.regexp[:OPAQUE] !~ v
|
|
871
|
+
raise InvalidComponentError,
|
|
872
|
+
"bad component(expected opaque component): #{v}"
|
|
873
|
+
end
|
|
874
|
+
|
|
875
|
+
return true
|
|
876
|
+
end
|
|
877
|
+
private :check_opaque
|
|
878
|
+
|
|
879
|
+
# Protected setter for the opaque component +v+.
|
|
880
|
+
#
|
|
881
|
+
# See also Bundler::URI::Generic.opaque=.
|
|
882
|
+
#
|
|
883
|
+
def set_opaque(v)
|
|
884
|
+
@opaque = v
|
|
885
|
+
end
|
|
886
|
+
protected :set_opaque
|
|
887
|
+
|
|
888
|
+
#
|
|
889
|
+
# == Args
|
|
890
|
+
#
|
|
891
|
+
# +v+::
|
|
892
|
+
# String
|
|
893
|
+
#
|
|
894
|
+
# == Description
|
|
895
|
+
#
|
|
896
|
+
# Public setter for the opaque component +v+
|
|
897
|
+
# (with validation).
|
|
898
|
+
#
|
|
899
|
+
# See also Bundler::URI::Generic.check_opaque.
|
|
900
|
+
#
|
|
901
|
+
def opaque=(v)
|
|
902
|
+
check_opaque(v)
|
|
903
|
+
set_opaque(v)
|
|
904
|
+
v
|
|
905
|
+
end
|
|
906
|
+
|
|
907
|
+
#
|
|
908
|
+
# Checks the fragment +v+ component against the Bundler::URI::Parser Regexp for :FRAGMENT.
|
|
909
|
+
#
|
|
910
|
+
#
|
|
911
|
+
# == Args
|
|
912
|
+
#
|
|
913
|
+
# +v+::
|
|
914
|
+
# String
|
|
915
|
+
#
|
|
916
|
+
# == Description
|
|
917
|
+
#
|
|
918
|
+
# Public setter for the fragment component +v+
|
|
919
|
+
# (with validation).
|
|
920
|
+
#
|
|
921
|
+
# == Usage
|
|
922
|
+
#
|
|
923
|
+
# require 'bundler/vendor/uri/lib/uri'
|
|
924
|
+
#
|
|
925
|
+
# uri = Bundler::URI.parse("http://my.example.com/?id=25#time=1305212049")
|
|
926
|
+
# uri.fragment = "time=1305212086"
|
|
927
|
+
# uri.to_s #=> "http://my.example.com/?id=25#time=1305212086"
|
|
928
|
+
#
|
|
929
|
+
def fragment=(v)
|
|
930
|
+
return @fragment = nil unless v
|
|
931
|
+
|
|
932
|
+
x = v.to_str
|
|
933
|
+
v = x.dup if x.equal? v
|
|
934
|
+
v.encode!(Encoding::UTF_8) rescue nil
|
|
935
|
+
v.delete!("\t\r\n")
|
|
936
|
+
v.force_encoding(Encoding::ASCII_8BIT)
|
|
937
|
+
v.gsub!(/(?!%\h\h|[!-~])./n){'%%%02X' % $&.ord}
|
|
938
|
+
v.force_encoding(Encoding::US_ASCII)
|
|
939
|
+
@fragment = v
|
|
940
|
+
end
|
|
941
|
+
|
|
942
|
+
#
|
|
943
|
+
# Returns true if Bundler::URI is hierarchical.
|
|
944
|
+
#
|
|
945
|
+
# == Description
|
|
946
|
+
#
|
|
947
|
+
# Bundler::URI has components listed in order of decreasing significance from left to right,
|
|
948
|
+
# see RFC3986 https://www.rfc-editor.org/rfc/rfc3986 1.2.3.
|
|
949
|
+
#
|
|
950
|
+
# == Usage
|
|
951
|
+
#
|
|
952
|
+
# require 'bundler/vendor/uri/lib/uri'
|
|
953
|
+
#
|
|
954
|
+
# uri = Bundler::URI.parse("http://my.example.com/")
|
|
955
|
+
# uri.hierarchical?
|
|
956
|
+
# #=> true
|
|
957
|
+
# uri = Bundler::URI.parse("mailto:joe@example.com")
|
|
958
|
+
# uri.hierarchical?
|
|
959
|
+
# #=> false
|
|
960
|
+
#
|
|
961
|
+
def hierarchical?
|
|
962
|
+
if @path
|
|
963
|
+
true
|
|
964
|
+
else
|
|
965
|
+
false
|
|
966
|
+
end
|
|
967
|
+
end
|
|
968
|
+
|
|
969
|
+
#
|
|
970
|
+
# Returns true if Bundler::URI has a scheme (e.g. http:// or https://) specified.
|
|
971
|
+
#
|
|
972
|
+
def absolute?
|
|
973
|
+
if @scheme
|
|
974
|
+
true
|
|
975
|
+
else
|
|
976
|
+
false
|
|
977
|
+
end
|
|
978
|
+
end
|
|
979
|
+
alias absolute absolute?
|
|
980
|
+
|
|
981
|
+
#
|
|
982
|
+
# Returns true if Bundler::URI does not have a scheme (e.g. http:// or https://) specified.
|
|
983
|
+
#
|
|
984
|
+
def relative?
|
|
985
|
+
!absolute?
|
|
986
|
+
end
|
|
987
|
+
|
|
988
|
+
#
|
|
989
|
+
# Returns an Array of the path split on '/'.
|
|
990
|
+
#
|
|
991
|
+
def split_path(path)
|
|
992
|
+
path.split("/", -1)
|
|
993
|
+
end
|
|
994
|
+
private :split_path
|
|
995
|
+
|
|
996
|
+
#
|
|
997
|
+
# Merges a base path +base+, with relative path +rel+,
|
|
998
|
+
# returns a modified base path.
|
|
999
|
+
#
|
|
1000
|
+
def merge_path(base, rel)
|
|
1001
|
+
|
|
1002
|
+
# RFC2396, Section 5.2, 5)
|
|
1003
|
+
# RFC2396, Section 5.2, 6)
|
|
1004
|
+
base_path = split_path(base)
|
|
1005
|
+
rel_path = split_path(rel)
|
|
1006
|
+
|
|
1007
|
+
# RFC2396, Section 5.2, 6), a)
|
|
1008
|
+
base_path << '' if base_path.last == '..'
|
|
1009
|
+
while i = base_path.index('..')
|
|
1010
|
+
base_path.slice!(i - 1, 2)
|
|
1011
|
+
end
|
|
1012
|
+
|
|
1013
|
+
if (first = rel_path.first) and first.empty?
|
|
1014
|
+
base_path.clear
|
|
1015
|
+
rel_path.shift
|
|
1016
|
+
end
|
|
1017
|
+
|
|
1018
|
+
# RFC2396, Section 5.2, 6), c)
|
|
1019
|
+
# RFC2396, Section 5.2, 6), d)
|
|
1020
|
+
rel_path.push('') if rel_path.last == '.' || rel_path.last == '..'
|
|
1021
|
+
rel_path.delete('.')
|
|
1022
|
+
|
|
1023
|
+
# RFC2396, Section 5.2, 6), e)
|
|
1024
|
+
tmp = []
|
|
1025
|
+
rel_path.each do |x|
|
|
1026
|
+
if x == '..' &&
|
|
1027
|
+
!(tmp.empty? || tmp.last == '..')
|
|
1028
|
+
tmp.pop
|
|
1029
|
+
else
|
|
1030
|
+
tmp << x
|
|
1031
|
+
end
|
|
1032
|
+
end
|
|
1033
|
+
|
|
1034
|
+
add_trailer_slash = !tmp.empty?
|
|
1035
|
+
if base_path.empty?
|
|
1036
|
+
base_path = [''] # keep '/' for root directory
|
|
1037
|
+
elsif add_trailer_slash
|
|
1038
|
+
base_path.pop
|
|
1039
|
+
end
|
|
1040
|
+
while x = tmp.shift
|
|
1041
|
+
if x == '..'
|
|
1042
|
+
# RFC2396, Section 4
|
|
1043
|
+
# a .. or . in an absolute path has no special meaning
|
|
1044
|
+
base_path.pop if base_path.size > 1
|
|
1045
|
+
else
|
|
1046
|
+
# if x == '..'
|
|
1047
|
+
# valid absolute (but abnormal) path "/../..."
|
|
1048
|
+
# else
|
|
1049
|
+
# valid absolute path
|
|
1050
|
+
# end
|
|
1051
|
+
base_path << x
|
|
1052
|
+
tmp.each {|t| base_path << t}
|
|
1053
|
+
add_trailer_slash = false
|
|
1054
|
+
break
|
|
1055
|
+
end
|
|
1056
|
+
end
|
|
1057
|
+
base_path.push('') if add_trailer_slash
|
|
1058
|
+
|
|
1059
|
+
return base_path.join('/')
|
|
1060
|
+
end
|
|
1061
|
+
private :merge_path
|
|
1062
|
+
|
|
1063
|
+
#
|
|
1064
|
+
# == Args
|
|
1065
|
+
#
|
|
1066
|
+
# +oth+::
|
|
1067
|
+
# Bundler::URI or String
|
|
1068
|
+
#
|
|
1069
|
+
# == Description
|
|
1070
|
+
#
|
|
1071
|
+
# Destructive form of #merge.
|
|
1072
|
+
#
|
|
1073
|
+
# == Usage
|
|
1074
|
+
#
|
|
1075
|
+
# require 'bundler/vendor/uri/lib/uri'
|
|
1076
|
+
#
|
|
1077
|
+
# uri = Bundler::URI.parse("http://my.example.com")
|
|
1078
|
+
# uri.merge!("/main.rbx?page=1")
|
|
1079
|
+
# uri.to_s # => "http://my.example.com/main.rbx?page=1"
|
|
1080
|
+
#
|
|
1081
|
+
def merge!(oth)
|
|
1082
|
+
t = merge(oth)
|
|
1083
|
+
if self == t
|
|
1084
|
+
nil
|
|
1085
|
+
else
|
|
1086
|
+
replace!(t)
|
|
1087
|
+
self
|
|
1088
|
+
end
|
|
1089
|
+
end
|
|
1090
|
+
|
|
1091
|
+
#
|
|
1092
|
+
# == Args
|
|
1093
|
+
#
|
|
1094
|
+
# +oth+::
|
|
1095
|
+
# Bundler::URI or String
|
|
1096
|
+
#
|
|
1097
|
+
# == Description
|
|
1098
|
+
#
|
|
1099
|
+
# Merges two URIs.
|
|
1100
|
+
#
|
|
1101
|
+
# == Usage
|
|
1102
|
+
#
|
|
1103
|
+
# require 'bundler/vendor/uri/lib/uri'
|
|
1104
|
+
#
|
|
1105
|
+
# uri = Bundler::URI.parse("http://my.example.com")
|
|
1106
|
+
# uri.merge("/main.rbx?page=1")
|
|
1107
|
+
# # => "http://my.example.com/main.rbx?page=1"
|
|
1108
|
+
#
|
|
1109
|
+
def merge(oth)
|
|
1110
|
+
rel = parser.__send__(:convert_to_uri, oth)
|
|
1111
|
+
|
|
1112
|
+
if rel.absolute?
|
|
1113
|
+
#raise BadURIError, "both Bundler::URI are absolute" if absolute?
|
|
1114
|
+
# hmm... should return oth for usability?
|
|
1115
|
+
return rel
|
|
1116
|
+
end
|
|
1117
|
+
|
|
1118
|
+
unless self.absolute?
|
|
1119
|
+
raise BadURIError, "both Bundler::URI are relative"
|
|
1120
|
+
end
|
|
1121
|
+
|
|
1122
|
+
base = self.dup
|
|
1123
|
+
|
|
1124
|
+
authority = rel.userinfo || rel.host || rel.port
|
|
1125
|
+
|
|
1126
|
+
# RFC2396, Section 5.2, 2)
|
|
1127
|
+
if (rel.path.nil? || rel.path.empty?) && !authority && !rel.query
|
|
1128
|
+
base.fragment=(rel.fragment) if rel.fragment
|
|
1129
|
+
return base
|
|
1130
|
+
end
|
|
1131
|
+
|
|
1132
|
+
base.query = nil
|
|
1133
|
+
base.fragment=(nil)
|
|
1134
|
+
|
|
1135
|
+
# RFC2396, Section 5.2, 4)
|
|
1136
|
+
if authority
|
|
1137
|
+
base.set_userinfo(rel.userinfo)
|
|
1138
|
+
base.set_host(rel.host)
|
|
1139
|
+
base.set_port(rel.port || base.default_port)
|
|
1140
|
+
base.set_path(rel.path)
|
|
1141
|
+
elsif base.path && rel.path
|
|
1142
|
+
base.set_path(merge_path(base.path, rel.path))
|
|
1143
|
+
end
|
|
1144
|
+
|
|
1145
|
+
# RFC2396, Section 5.2, 7)
|
|
1146
|
+
base.query = rel.query if rel.query
|
|
1147
|
+
base.fragment=(rel.fragment) if rel.fragment
|
|
1148
|
+
|
|
1149
|
+
return base
|
|
1150
|
+
end # merge
|
|
1151
|
+
alias + merge
|
|
1152
|
+
|
|
1153
|
+
# :stopdoc:
|
|
1154
|
+
def route_from_path(src, dst)
|
|
1155
|
+
case dst
|
|
1156
|
+
when src
|
|
1157
|
+
# RFC2396, Section 4.2
|
|
1158
|
+
return ''
|
|
1159
|
+
when %r{(?:\A|/)\.\.?(?:/|\z)}
|
|
1160
|
+
# dst has abnormal absolute path,
|
|
1161
|
+
# like "/./", "/../", "/x/../", ...
|
|
1162
|
+
return dst.dup
|
|
1163
|
+
end
|
|
1164
|
+
|
|
1165
|
+
src_path = src.scan(%r{[^/]*/})
|
|
1166
|
+
dst_path = dst.scan(%r{[^/]*/?})
|
|
1167
|
+
|
|
1168
|
+
# discard same parts
|
|
1169
|
+
while !dst_path.empty? && dst_path.first == src_path.first
|
|
1170
|
+
src_path.shift
|
|
1171
|
+
dst_path.shift
|
|
1172
|
+
end
|
|
1173
|
+
|
|
1174
|
+
tmp = dst_path.join
|
|
1175
|
+
|
|
1176
|
+
# calculate
|
|
1177
|
+
if src_path.empty?
|
|
1178
|
+
if tmp.empty?
|
|
1179
|
+
return './'
|
|
1180
|
+
elsif dst_path.first.include?(':') # (see RFC2396 Section 5)
|
|
1181
|
+
return './' + tmp
|
|
1182
|
+
else
|
|
1183
|
+
return tmp
|
|
1184
|
+
end
|
|
1185
|
+
end
|
|
1186
|
+
|
|
1187
|
+
return '../' * src_path.size + tmp
|
|
1188
|
+
end
|
|
1189
|
+
private :route_from_path
|
|
1190
|
+
# :startdoc:
|
|
1191
|
+
|
|
1192
|
+
# :stopdoc:
|
|
1193
|
+
def route_from0(oth)
|
|
1194
|
+
oth = parser.__send__(:convert_to_uri, oth)
|
|
1195
|
+
if self.relative?
|
|
1196
|
+
raise BadURIError,
|
|
1197
|
+
"relative Bundler::URI: #{self}"
|
|
1198
|
+
end
|
|
1199
|
+
if oth.relative?
|
|
1200
|
+
raise BadURIError,
|
|
1201
|
+
"relative Bundler::URI: #{oth}"
|
|
1202
|
+
end
|
|
1203
|
+
|
|
1204
|
+
if self.scheme != oth.scheme
|
|
1205
|
+
return self, self.dup
|
|
1206
|
+
end
|
|
1207
|
+
rel = Bundler::URI::Generic.new(nil, # it is relative Bundler::URI
|
|
1208
|
+
self.userinfo, self.host, self.port,
|
|
1209
|
+
nil, self.path, self.opaque,
|
|
1210
|
+
self.query, self.fragment, parser)
|
|
1211
|
+
|
|
1212
|
+
if rel.userinfo != oth.userinfo ||
|
|
1213
|
+
rel.host.to_s.downcase != oth.host.to_s.downcase ||
|
|
1214
|
+
rel.port != oth.port
|
|
1215
|
+
|
|
1216
|
+
if self.userinfo.nil? && self.host.nil?
|
|
1217
|
+
return self, self.dup
|
|
1218
|
+
end
|
|
1219
|
+
|
|
1220
|
+
rel.set_port(nil) if rel.port == oth.default_port
|
|
1221
|
+
return rel, rel
|
|
1222
|
+
end
|
|
1223
|
+
rel.set_userinfo(nil)
|
|
1224
|
+
rel.set_host(nil)
|
|
1225
|
+
rel.set_port(nil)
|
|
1226
|
+
|
|
1227
|
+
if rel.path && rel.path == oth.path
|
|
1228
|
+
rel.set_path('')
|
|
1229
|
+
rel.query = nil if rel.query == oth.query
|
|
1230
|
+
return rel, rel
|
|
1231
|
+
elsif rel.opaque && rel.opaque == oth.opaque
|
|
1232
|
+
rel.set_opaque('')
|
|
1233
|
+
rel.query = nil if rel.query == oth.query
|
|
1234
|
+
return rel, rel
|
|
1235
|
+
end
|
|
1236
|
+
|
|
1237
|
+
# you can modify `rel', but cannot `oth'.
|
|
1238
|
+
return oth, rel
|
|
1239
|
+
end
|
|
1240
|
+
private :route_from0
|
|
1241
|
+
# :startdoc:
|
|
1242
|
+
|
|
1243
|
+
#
|
|
1244
|
+
# == Args
|
|
1245
|
+
#
|
|
1246
|
+
# +oth+::
|
|
1247
|
+
# Bundler::URI or String
|
|
1248
|
+
#
|
|
1249
|
+
# == Description
|
|
1250
|
+
#
|
|
1251
|
+
# Calculates relative path from oth to self.
|
|
1252
|
+
#
|
|
1253
|
+
# == Usage
|
|
1254
|
+
#
|
|
1255
|
+
# require 'bundler/vendor/uri/lib/uri'
|
|
1256
|
+
#
|
|
1257
|
+
# uri = Bundler::URI.parse('http://my.example.com/main.rbx?page=1')
|
|
1258
|
+
# uri.route_from('http://my.example.com')
|
|
1259
|
+
# #=> #<Bundler::URI::Generic /main.rbx?page=1>
|
|
1260
|
+
#
|
|
1261
|
+
def route_from(oth)
|
|
1262
|
+
# you can modify `rel', but cannot `oth'.
|
|
1263
|
+
begin
|
|
1264
|
+
oth, rel = route_from0(oth)
|
|
1265
|
+
rescue
|
|
1266
|
+
raise $!.class, $!.message
|
|
1267
|
+
end
|
|
1268
|
+
if oth == rel
|
|
1269
|
+
return rel
|
|
1270
|
+
end
|
|
1271
|
+
|
|
1272
|
+
rel.set_path(route_from_path(oth.path, self.path))
|
|
1273
|
+
if rel.path == './' && self.query
|
|
1274
|
+
# "./?foo" -> "?foo"
|
|
1275
|
+
rel.set_path('')
|
|
1276
|
+
end
|
|
1277
|
+
|
|
1278
|
+
return rel
|
|
1279
|
+
end
|
|
1280
|
+
|
|
1281
|
+
alias - route_from
|
|
1282
|
+
|
|
1283
|
+
#
|
|
1284
|
+
# == Args
|
|
1285
|
+
#
|
|
1286
|
+
# +oth+::
|
|
1287
|
+
# Bundler::URI or String
|
|
1288
|
+
#
|
|
1289
|
+
# == Description
|
|
1290
|
+
#
|
|
1291
|
+
# Calculates relative path to oth from self.
|
|
1292
|
+
#
|
|
1293
|
+
# == Usage
|
|
1294
|
+
#
|
|
1295
|
+
# require 'bundler/vendor/uri/lib/uri'
|
|
1296
|
+
#
|
|
1297
|
+
# uri = Bundler::URI.parse('http://my.example.com')
|
|
1298
|
+
# uri.route_to('http://my.example.com/main.rbx?page=1')
|
|
1299
|
+
# #=> #<Bundler::URI::Generic /main.rbx?page=1>
|
|
1300
|
+
#
|
|
1301
|
+
def route_to(oth)
|
|
1302
|
+
parser.__send__(:convert_to_uri, oth).route_from(self)
|
|
1303
|
+
end
|
|
1304
|
+
|
|
1305
|
+
#
|
|
1306
|
+
# Returns normalized Bundler::URI.
|
|
1307
|
+
#
|
|
1308
|
+
# require 'bundler/vendor/uri/lib/uri'
|
|
1309
|
+
#
|
|
1310
|
+
# Bundler::URI("HTTP://my.EXAMPLE.com").normalize
|
|
1311
|
+
# #=> #<Bundler::URI::HTTP http://my.example.com/>
|
|
1312
|
+
#
|
|
1313
|
+
# Normalization here means:
|
|
1314
|
+
#
|
|
1315
|
+
# * scheme and host are converted to lowercase,
|
|
1316
|
+
# * an empty path component is set to "/".
|
|
1317
|
+
#
|
|
1318
|
+
def normalize
|
|
1319
|
+
uri = dup
|
|
1320
|
+
uri.normalize!
|
|
1321
|
+
uri
|
|
1322
|
+
end
|
|
1323
|
+
|
|
1324
|
+
#
|
|
1325
|
+
# Destructive version of #normalize.
|
|
1326
|
+
#
|
|
1327
|
+
def normalize!
|
|
1328
|
+
if path&.empty?
|
|
1329
|
+
set_path('/')
|
|
1330
|
+
end
|
|
1331
|
+
if scheme && scheme != scheme.downcase
|
|
1332
|
+
set_scheme(self.scheme.downcase)
|
|
1333
|
+
end
|
|
1334
|
+
if host && host != host.downcase
|
|
1335
|
+
set_host(self.host.downcase)
|
|
1336
|
+
end
|
|
1337
|
+
end
|
|
1338
|
+
|
|
1339
|
+
#
|
|
1340
|
+
# Constructs String from Bundler::URI.
|
|
1341
|
+
#
|
|
1342
|
+
def to_s
|
|
1343
|
+
str = ''.dup
|
|
1344
|
+
if @scheme
|
|
1345
|
+
str << @scheme
|
|
1346
|
+
str << ':'
|
|
1347
|
+
end
|
|
1348
|
+
|
|
1349
|
+
if @opaque
|
|
1350
|
+
str << @opaque
|
|
1351
|
+
else
|
|
1352
|
+
if @host || %w[file postgres].include?(@scheme)
|
|
1353
|
+
str << '//'
|
|
1354
|
+
end
|
|
1355
|
+
if self.userinfo
|
|
1356
|
+
str << self.userinfo
|
|
1357
|
+
str << '@'
|
|
1358
|
+
end
|
|
1359
|
+
if @host
|
|
1360
|
+
str << @host
|
|
1361
|
+
end
|
|
1362
|
+
if @port && @port != self.default_port
|
|
1363
|
+
str << ':'
|
|
1364
|
+
str << @port.to_s
|
|
1365
|
+
end
|
|
1366
|
+
if (@host || @port) && !@path.empty? && !@path.start_with?('/')
|
|
1367
|
+
str << '/'
|
|
1368
|
+
end
|
|
1369
|
+
str << @path
|
|
1370
|
+
if @query
|
|
1371
|
+
str << '?'
|
|
1372
|
+
str << @query
|
|
1373
|
+
end
|
|
1374
|
+
end
|
|
1375
|
+
if @fragment
|
|
1376
|
+
str << '#'
|
|
1377
|
+
str << @fragment
|
|
1378
|
+
end
|
|
1379
|
+
str
|
|
1380
|
+
end
|
|
1381
|
+
alias to_str to_s
|
|
1382
|
+
|
|
1383
|
+
#
|
|
1384
|
+
# Compares two URIs.
|
|
1385
|
+
#
|
|
1386
|
+
def ==(oth)
|
|
1387
|
+
if self.class == oth.class
|
|
1388
|
+
self.normalize.component_ary == oth.normalize.component_ary
|
|
1389
|
+
else
|
|
1390
|
+
false
|
|
1391
|
+
end
|
|
1392
|
+
end
|
|
1393
|
+
|
|
1394
|
+
# Returns the hash value.
|
|
1395
|
+
def hash
|
|
1396
|
+
self.component_ary.hash
|
|
1397
|
+
end
|
|
1398
|
+
|
|
1399
|
+
# Compares with _oth_ for Hash.
|
|
1400
|
+
def eql?(oth)
|
|
1401
|
+
self.class == oth.class &&
|
|
1402
|
+
parser == oth.parser &&
|
|
1403
|
+
self.component_ary.eql?(oth.component_ary)
|
|
1404
|
+
end
|
|
1405
|
+
|
|
1406
|
+
# Returns an Array of the components defined from the COMPONENT Array.
|
|
1407
|
+
def component_ary
|
|
1408
|
+
component.collect do |x|
|
|
1409
|
+
self.__send__(x)
|
|
1410
|
+
end
|
|
1411
|
+
end
|
|
1412
|
+
protected :component_ary
|
|
1413
|
+
|
|
1414
|
+
# == Args
|
|
1415
|
+
#
|
|
1416
|
+
# +components+::
|
|
1417
|
+
# Multiple Symbol arguments defined in Bundler::URI::HTTP.
|
|
1418
|
+
#
|
|
1419
|
+
# == Description
|
|
1420
|
+
#
|
|
1421
|
+
# Selects specified components from Bundler::URI.
|
|
1422
|
+
#
|
|
1423
|
+
# == Usage
|
|
1424
|
+
#
|
|
1425
|
+
# require 'bundler/vendor/uri/lib/uri'
|
|
1426
|
+
#
|
|
1427
|
+
# uri = Bundler::URI.parse('http://myuser:mypass@my.example.com/test.rbx')
|
|
1428
|
+
# uri.select(:userinfo, :host, :path)
|
|
1429
|
+
# # => ["myuser:mypass", "my.example.com", "/test.rbx"]
|
|
1430
|
+
#
|
|
1431
|
+
def select(*components)
|
|
1432
|
+
components.collect do |c|
|
|
1433
|
+
if component.include?(c)
|
|
1434
|
+
self.__send__(c)
|
|
1435
|
+
else
|
|
1436
|
+
raise ArgumentError,
|
|
1437
|
+
"expected of components of #{self.class} (#{self.class.component.join(', ')})"
|
|
1438
|
+
end
|
|
1439
|
+
end
|
|
1440
|
+
end
|
|
1441
|
+
|
|
1442
|
+
def inspect # :nodoc:
|
|
1443
|
+
"#<#{self.class} #{self}>"
|
|
1444
|
+
end
|
|
1445
|
+
|
|
1446
|
+
#
|
|
1447
|
+
# == Args
|
|
1448
|
+
#
|
|
1449
|
+
# +v+::
|
|
1450
|
+
# Bundler::URI or String
|
|
1451
|
+
#
|
|
1452
|
+
# == Description
|
|
1453
|
+
#
|
|
1454
|
+
# Attempts to parse other Bundler::URI +oth+,
|
|
1455
|
+
# returns [parsed_oth, self].
|
|
1456
|
+
#
|
|
1457
|
+
# == Usage
|
|
1458
|
+
#
|
|
1459
|
+
# require 'bundler/vendor/uri/lib/uri'
|
|
1460
|
+
#
|
|
1461
|
+
# uri = Bundler::URI.parse("http://my.example.com")
|
|
1462
|
+
# uri.coerce("http://foo.com")
|
|
1463
|
+
# #=> [#<Bundler::URI::HTTP http://foo.com>, #<Bundler::URI::HTTP http://my.example.com>]
|
|
1464
|
+
#
|
|
1465
|
+
def coerce(oth)
|
|
1466
|
+
case oth
|
|
1467
|
+
when String
|
|
1468
|
+
oth = parser.parse(oth)
|
|
1469
|
+
else
|
|
1470
|
+
super
|
|
1471
|
+
end
|
|
1472
|
+
|
|
1473
|
+
return oth, self
|
|
1474
|
+
end
|
|
1475
|
+
|
|
1476
|
+
# Returns a proxy Bundler::URI.
|
|
1477
|
+
# The proxy Bundler::URI is obtained from environment variables such as http_proxy,
|
|
1478
|
+
# ftp_proxy, no_proxy, etc.
|
|
1479
|
+
# If there is no proper proxy, nil is returned.
|
|
1480
|
+
#
|
|
1481
|
+
# If the optional parameter +env+ is specified, it is used instead of ENV.
|
|
1482
|
+
#
|
|
1483
|
+
# Note that capitalized variables (HTTP_PROXY, FTP_PROXY, NO_PROXY, etc.)
|
|
1484
|
+
# are examined, too.
|
|
1485
|
+
#
|
|
1486
|
+
# But http_proxy and HTTP_PROXY is treated specially under CGI environment.
|
|
1487
|
+
# It's because HTTP_PROXY may be set by Proxy: header.
|
|
1488
|
+
# So HTTP_PROXY is not used.
|
|
1489
|
+
# http_proxy is not used too if the variable is case insensitive.
|
|
1490
|
+
# CGI_HTTP_PROXY can be used instead.
|
|
1491
|
+
def find_proxy(env=ENV)
|
|
1492
|
+
raise BadURIError, "relative Bundler::URI: #{self}" if self.relative?
|
|
1493
|
+
name = self.scheme.downcase + '_proxy'
|
|
1494
|
+
proxy_uri = nil
|
|
1495
|
+
if name == 'http_proxy' && env.include?('REQUEST_METHOD') # CGI?
|
|
1496
|
+
# HTTP_PROXY conflicts with *_proxy for proxy settings and
|
|
1497
|
+
# HTTP_* for header information in CGI.
|
|
1498
|
+
# So it should be careful to use it.
|
|
1499
|
+
pairs = env.reject {|k, v| /\Ahttp_proxy\z/i !~ k }
|
|
1500
|
+
case pairs.length
|
|
1501
|
+
when 0 # no proxy setting anyway.
|
|
1502
|
+
proxy_uri = nil
|
|
1503
|
+
when 1
|
|
1504
|
+
k, _ = pairs.shift
|
|
1505
|
+
if k == 'http_proxy' && env[k.upcase] == nil
|
|
1506
|
+
# http_proxy is safe to use because ENV is case sensitive.
|
|
1507
|
+
proxy_uri = env[name]
|
|
1508
|
+
else
|
|
1509
|
+
proxy_uri = nil
|
|
1510
|
+
end
|
|
1511
|
+
else # http_proxy is safe to use because ENV is case sensitive.
|
|
1512
|
+
proxy_uri = env.to_hash[name]
|
|
1513
|
+
end
|
|
1514
|
+
if !proxy_uri
|
|
1515
|
+
# Use CGI_HTTP_PROXY. cf. libwww-perl.
|
|
1516
|
+
proxy_uri = env["CGI_#{name.upcase}"]
|
|
1517
|
+
end
|
|
1518
|
+
elsif name == 'http_proxy'
|
|
1519
|
+
if RUBY_ENGINE == 'jruby' && p_addr = ENV_JAVA['http.proxyHost']
|
|
1520
|
+
p_port = ENV_JAVA['http.proxyPort']
|
|
1521
|
+
if p_user = ENV_JAVA['http.proxyUser']
|
|
1522
|
+
p_pass = ENV_JAVA['http.proxyPass']
|
|
1523
|
+
proxy_uri = "http://#{p_user}:#{p_pass}@#{p_addr}:#{p_port}"
|
|
1524
|
+
else
|
|
1525
|
+
proxy_uri = "http://#{p_addr}:#{p_port}"
|
|
1526
|
+
end
|
|
1527
|
+
else
|
|
1528
|
+
unless proxy_uri = env[name]
|
|
1529
|
+
if proxy_uri = env[name.upcase]
|
|
1530
|
+
warn 'The environment variable HTTP_PROXY is discouraged. Use http_proxy.', uplevel: 1
|
|
1531
|
+
end
|
|
1532
|
+
end
|
|
1533
|
+
end
|
|
1534
|
+
else
|
|
1535
|
+
proxy_uri = env[name] || env[name.upcase]
|
|
1536
|
+
end
|
|
1537
|
+
|
|
1538
|
+
if proxy_uri.nil? || proxy_uri.empty?
|
|
1539
|
+
return nil
|
|
1540
|
+
end
|
|
1541
|
+
|
|
1542
|
+
if self.hostname
|
|
1543
|
+
begin
|
|
1544
|
+
addr = IPSocket.getaddress(self.hostname)
|
|
1545
|
+
return nil if /\A127\.|\A::1\z/ =~ addr
|
|
1546
|
+
rescue SocketError
|
|
1547
|
+
end
|
|
1548
|
+
end
|
|
1549
|
+
|
|
1550
|
+
name = 'no_proxy'
|
|
1551
|
+
if no_proxy = env[name] || env[name.upcase]
|
|
1552
|
+
return nil unless Bundler::URI::Generic.use_proxy?(self.hostname, addr, self.port, no_proxy)
|
|
1553
|
+
end
|
|
1554
|
+
Bundler::URI.parse(proxy_uri)
|
|
1555
|
+
end
|
|
1556
|
+
|
|
1557
|
+
def self.use_proxy?(hostname, addr, port, no_proxy) # :nodoc:
|
|
1558
|
+
hostname = hostname.downcase
|
|
1559
|
+
dothostname = ".#{hostname}"
|
|
1560
|
+
no_proxy.scan(/([^:,\s]+)(?::(\d+))?/) {|p_host, p_port|
|
|
1561
|
+
if !p_port || port == p_port.to_i
|
|
1562
|
+
if p_host.start_with?('.')
|
|
1563
|
+
return false if hostname.end_with?(p_host.downcase)
|
|
1564
|
+
else
|
|
1565
|
+
return false if dothostname.end_with?(".#{p_host.downcase}")
|
|
1566
|
+
end
|
|
1567
|
+
if addr
|
|
1568
|
+
begin
|
|
1569
|
+
return false if IPAddr.new(p_host).include?(addr)
|
|
1570
|
+
rescue IPAddr::InvalidAddressError
|
|
1571
|
+
next
|
|
1572
|
+
end
|
|
1573
|
+
end
|
|
1574
|
+
end
|
|
1575
|
+
}
|
|
1576
|
+
true
|
|
1577
|
+
end
|
|
1578
|
+
end
|
|
1579
|
+
end
|