@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,1170 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "lockfile_parser"
|
|
4
|
+
|
|
5
|
+
module Bundler
|
|
6
|
+
class Definition
|
|
7
|
+
include GemHelpers
|
|
8
|
+
|
|
9
|
+
class << self
|
|
10
|
+
# Do not create or modify a lockfile (Makes #lock a noop)
|
|
11
|
+
attr_accessor :no_lock
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
attr_reader(
|
|
15
|
+
:dependencies,
|
|
16
|
+
:locked_checksums,
|
|
17
|
+
:locked_deps,
|
|
18
|
+
:locked_gems,
|
|
19
|
+
:platforms,
|
|
20
|
+
:ruby_version,
|
|
21
|
+
:lockfile,
|
|
22
|
+
:gemfiles,
|
|
23
|
+
:sources
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
# Given a gemfile and lockfile creates a Bundler definition
|
|
27
|
+
#
|
|
28
|
+
# @param gemfile [Pathname] Path to Gemfile
|
|
29
|
+
# @param lockfile [Pathname,nil] Path to Gemfile.lock
|
|
30
|
+
# @param unlock [Hash, Boolean, nil] Gems that have been requested
|
|
31
|
+
# to be updated or true if all gems should be updated
|
|
32
|
+
# @return [Bundler::Definition]
|
|
33
|
+
def self.build(gemfile, lockfile, unlock)
|
|
34
|
+
unlock ||= {}
|
|
35
|
+
gemfile = Pathname.new(gemfile).expand_path
|
|
36
|
+
|
|
37
|
+
raise GemfileNotFound, "#{gemfile} not found" unless gemfile.file?
|
|
38
|
+
|
|
39
|
+
Dsl.evaluate(gemfile, lockfile, unlock)
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
#
|
|
43
|
+
# How does the new system work?
|
|
44
|
+
#
|
|
45
|
+
# * Load information from Gemfile and Lockfile
|
|
46
|
+
# * Invalidate stale locked specs
|
|
47
|
+
# * All specs from stale source are stale
|
|
48
|
+
# * All specs that are reachable only through a stale
|
|
49
|
+
# dependency are stale.
|
|
50
|
+
# * If all fresh dependencies are satisfied by the locked
|
|
51
|
+
# specs, then we can try to resolve locally.
|
|
52
|
+
#
|
|
53
|
+
# @param lockfile [Pathname] Path to Gemfile.lock
|
|
54
|
+
# @param dependencies [Array(Bundler::Dependency)] array of dependencies from Gemfile
|
|
55
|
+
# @param sources [Bundler::SourceList]
|
|
56
|
+
# @param unlock [Hash, Boolean, nil] Gems that have been requested
|
|
57
|
+
# to be updated or true if all gems should be updated
|
|
58
|
+
# @param ruby_version [Bundler::RubyVersion, nil] Requested Ruby Version
|
|
59
|
+
# @param optional_groups [Array(String)] A list of optional groups
|
|
60
|
+
def initialize(lockfile, dependencies, sources, unlock, ruby_version = nil, optional_groups = [], gemfiles = [])
|
|
61
|
+
unlock ||= {}
|
|
62
|
+
|
|
63
|
+
if unlock == true
|
|
64
|
+
@unlocking_all = true
|
|
65
|
+
@unlocking_bundler = false
|
|
66
|
+
@unlocking = unlock
|
|
67
|
+
@sources_to_unlock = []
|
|
68
|
+
@unlocking_ruby = false
|
|
69
|
+
@explicit_unlocks = []
|
|
70
|
+
conservative = false
|
|
71
|
+
else
|
|
72
|
+
@unlocking_all = false
|
|
73
|
+
@unlocking_bundler = unlock.delete(:bundler)
|
|
74
|
+
@unlocking = unlock.any? {|_k, v| !Array(v).empty? }
|
|
75
|
+
@sources_to_unlock = unlock.delete(:sources) || []
|
|
76
|
+
@unlocking_ruby = unlock.delete(:ruby)
|
|
77
|
+
@explicit_unlocks = unlock.delete(:gems) || []
|
|
78
|
+
conservative = unlock.delete(:conservative)
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
@dependencies = dependencies
|
|
82
|
+
@sources = sources
|
|
83
|
+
@optional_groups = optional_groups
|
|
84
|
+
@prefer_local = false
|
|
85
|
+
@specs = nil
|
|
86
|
+
@ruby_version = ruby_version
|
|
87
|
+
@gemfiles = gemfiles
|
|
88
|
+
|
|
89
|
+
@lockfile = lockfile
|
|
90
|
+
@lockfile_contents = String.new
|
|
91
|
+
|
|
92
|
+
@locked_bundler_version = nil
|
|
93
|
+
@resolved_bundler_version = nil
|
|
94
|
+
|
|
95
|
+
@locked_ruby_version = nil
|
|
96
|
+
@new_platforms = []
|
|
97
|
+
@removed_platforms = []
|
|
98
|
+
@originally_invalid_platforms = []
|
|
99
|
+
|
|
100
|
+
if lockfile_exists?
|
|
101
|
+
@lockfile_contents = Bundler.read_file(lockfile)
|
|
102
|
+
@locked_gems = LockfileParser.new(@lockfile_contents)
|
|
103
|
+
@locked_platforms = @locked_gems.platforms
|
|
104
|
+
@most_specific_locked_platform = @locked_gems.most_specific_locked_platform
|
|
105
|
+
@platforms = @locked_platforms.dup
|
|
106
|
+
@locked_bundler_version = @locked_gems.bundler_version
|
|
107
|
+
@locked_ruby_version = @locked_gems.ruby_version
|
|
108
|
+
@locked_deps = @locked_gems.dependencies
|
|
109
|
+
@originally_locked_specs = SpecSet.new(@locked_gems.specs)
|
|
110
|
+
@locked_checksums = @locked_gems.checksums
|
|
111
|
+
|
|
112
|
+
if @unlocking_all
|
|
113
|
+
@locked_specs = SpecSet.new([])
|
|
114
|
+
@locked_sources = []
|
|
115
|
+
else
|
|
116
|
+
@locked_specs = @originally_locked_specs
|
|
117
|
+
@locked_sources = @locked_gems.sources
|
|
118
|
+
end
|
|
119
|
+
else
|
|
120
|
+
@locked_gems = nil
|
|
121
|
+
@locked_platforms = []
|
|
122
|
+
@most_specific_locked_platform = nil
|
|
123
|
+
@platforms = []
|
|
124
|
+
@locked_deps = {}
|
|
125
|
+
@locked_specs = SpecSet.new([])
|
|
126
|
+
@originally_locked_specs = @locked_specs
|
|
127
|
+
@locked_sources = []
|
|
128
|
+
@locked_checksums = Bundler.feature_flag.lockfile_checksums?
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
locked_gem_sources = @locked_sources.select {|s| s.is_a?(Source::Rubygems) }
|
|
132
|
+
@multisource_allowed = locked_gem_sources.size == 1 && locked_gem_sources.first.multiple_remotes? && Bundler.frozen_bundle?
|
|
133
|
+
|
|
134
|
+
if @multisource_allowed
|
|
135
|
+
unless sources.aggregate_global_source?
|
|
136
|
+
msg = "Your lockfile contains a single rubygems source section with multiple remotes, which is insecure. Make sure you run `bundle install` in non frozen mode and commit the result to make your lockfile secure."
|
|
137
|
+
|
|
138
|
+
Bundler::SharedHelpers.major_deprecation 2, msg
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
@sources.merged_gem_lockfile_sections!(locked_gem_sources.first)
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
@unlocking_ruby ||= if @ruby_version && locked_ruby_version_object
|
|
145
|
+
@ruby_version.diff(locked_ruby_version_object)
|
|
146
|
+
end
|
|
147
|
+
@unlocking ||= @unlocking_ruby ||= (!@locked_ruby_version ^ !@ruby_version)
|
|
148
|
+
|
|
149
|
+
@current_platform_missing = add_current_platform unless Bundler.frozen_bundle?
|
|
150
|
+
|
|
151
|
+
@source_changes = converge_sources
|
|
152
|
+
@path_changes = converge_paths
|
|
153
|
+
|
|
154
|
+
if conservative
|
|
155
|
+
@gems_to_unlock = @explicit_unlocks.any? ? @explicit_unlocks : @dependencies.map(&:name)
|
|
156
|
+
else
|
|
157
|
+
eager_unlock = @explicit_unlocks.map {|name| Dependency.new(name, ">= 0") }
|
|
158
|
+
@gems_to_unlock = @locked_specs.for(eager_unlock, platforms).map(&:name).uniq
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
@dependency_changes = converge_dependencies
|
|
162
|
+
@local_changes = converge_locals
|
|
163
|
+
|
|
164
|
+
check_lockfile
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
def gem_version_promoter
|
|
168
|
+
@gem_version_promoter ||= GemVersionPromoter.new
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
def check!
|
|
172
|
+
# If dependencies have changed, we need to resolve remotely. Otherwise,
|
|
173
|
+
# since we'll be resolving with a single local source, we may end up
|
|
174
|
+
# locking gems under the wrong source in the lockfile, and missing lockfile
|
|
175
|
+
# checksums
|
|
176
|
+
resolve_remotely! if @dependency_changes
|
|
177
|
+
|
|
178
|
+
# Now do a local only resolve, to verify if any gems are missing locally
|
|
179
|
+
sources.local_only!
|
|
180
|
+
resolve
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
#
|
|
184
|
+
# Setup sources according to the given options and the state of the
|
|
185
|
+
# definition.
|
|
186
|
+
#
|
|
187
|
+
# @return [Boolean] Whether fetching remote information will be necessary or not
|
|
188
|
+
#
|
|
189
|
+
def setup_domain!(options = {})
|
|
190
|
+
prefer_local! if options[:"prefer-local"]
|
|
191
|
+
|
|
192
|
+
if options[:add_checksums] || (!options[:local] && install_needed?)
|
|
193
|
+
remotely!
|
|
194
|
+
true
|
|
195
|
+
else
|
|
196
|
+
Bundler.settings.set_command_option(:jobs, 1) unless install_needed? # to avoid the overhead of Bundler::Worker
|
|
197
|
+
with_cache!
|
|
198
|
+
false
|
|
199
|
+
end
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
def resolve_with_cache!
|
|
203
|
+
with_cache!
|
|
204
|
+
|
|
205
|
+
resolve
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
def with_cache!
|
|
209
|
+
sources.local!
|
|
210
|
+
sources.cached!
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
def resolve_remotely!
|
|
214
|
+
remotely!
|
|
215
|
+
|
|
216
|
+
resolve
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
def remotely!
|
|
220
|
+
sources.cached!
|
|
221
|
+
sources.remote!
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
def prefer_local!
|
|
225
|
+
@prefer_local = true
|
|
226
|
+
|
|
227
|
+
sources.prefer_local!
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
# For given dependency list returns a SpecSet with Gemspec of all the required
|
|
231
|
+
# dependencies.
|
|
232
|
+
# 1. The method first resolves the dependencies specified in Gemfile
|
|
233
|
+
# 2. After that it tries and fetches gemspec of resolved dependencies
|
|
234
|
+
#
|
|
235
|
+
# @return [Bundler::SpecSet]
|
|
236
|
+
def specs
|
|
237
|
+
@specs ||= materialize(requested_dependencies)
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
def new_specs
|
|
241
|
+
specs - @locked_specs
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
def removed_specs
|
|
245
|
+
@locked_specs - specs
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
def missing_specs
|
|
249
|
+
resolve.missing_specs_for(requested_dependencies)
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
def missing_specs?
|
|
253
|
+
missing = missing_specs
|
|
254
|
+
return false if missing.empty?
|
|
255
|
+
Bundler.ui.debug "The definition is missing #{missing.map(&:full_name)}"
|
|
256
|
+
true
|
|
257
|
+
rescue BundlerError => e
|
|
258
|
+
@resolve = nil
|
|
259
|
+
@resolver = nil
|
|
260
|
+
@resolution_packages = nil
|
|
261
|
+
@source_requirements = nil
|
|
262
|
+
@specs = nil
|
|
263
|
+
|
|
264
|
+
Bundler.ui.debug "The definition is missing dependencies, failed to resolve & materialize locally (#{e})"
|
|
265
|
+
true
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
def requested_specs
|
|
269
|
+
specs_for(requested_groups)
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
def requested_dependencies
|
|
273
|
+
dependencies_for(requested_groups)
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
def current_dependencies
|
|
277
|
+
filter_relevant(dependencies)
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
def current_locked_dependencies
|
|
281
|
+
filter_relevant(locked_dependencies)
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
def filter_relevant(dependencies)
|
|
285
|
+
platforms_array = [generic_local_platform].freeze
|
|
286
|
+
dependencies.select do |d|
|
|
287
|
+
d.should_include? && !d.gem_platforms(platforms_array).empty?
|
|
288
|
+
end
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
def locked_dependencies
|
|
292
|
+
@locked_deps.values
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
def new_deps
|
|
296
|
+
@new_deps ||= @dependencies - locked_dependencies
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
def deleted_deps
|
|
300
|
+
@deleted_deps ||= locked_dependencies - @dependencies
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
def specs_for(groups)
|
|
304
|
+
return specs if groups.empty?
|
|
305
|
+
deps = dependencies_for(groups)
|
|
306
|
+
materialize(deps)
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
def dependencies_for(groups)
|
|
310
|
+
groups.map!(&:to_sym)
|
|
311
|
+
deps = current_dependencies # always returns a new array
|
|
312
|
+
deps.select! do |d|
|
|
313
|
+
d.groups.intersect?(groups)
|
|
314
|
+
end
|
|
315
|
+
deps
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
# Resolve all the dependencies specified in Gemfile. It ensures that
|
|
319
|
+
# dependencies that have been already resolved via locked file and are fresh
|
|
320
|
+
# are reused when resolving dependencies
|
|
321
|
+
#
|
|
322
|
+
# @return [SpecSet] resolved dependencies
|
|
323
|
+
def resolve
|
|
324
|
+
@resolve ||= if Bundler.frozen_bundle?
|
|
325
|
+
Bundler.ui.debug "Frozen, using resolution from the lockfile"
|
|
326
|
+
@locked_specs
|
|
327
|
+
elsif no_resolve_needed?
|
|
328
|
+
if deleted_deps.any?
|
|
329
|
+
Bundler.ui.debug "Some dependencies were deleted, using a subset of the resolution from the lockfile"
|
|
330
|
+
SpecSet.new(filter_specs(@locked_specs, @dependencies - deleted_deps))
|
|
331
|
+
else
|
|
332
|
+
Bundler.ui.debug "Found no changes, using resolution from the lockfile"
|
|
333
|
+
if @removed_platforms.any? || @locked_gems.may_include_redundant_platform_specific_gems?
|
|
334
|
+
SpecSet.new(filter_specs(@locked_specs, @dependencies))
|
|
335
|
+
else
|
|
336
|
+
@locked_specs
|
|
337
|
+
end
|
|
338
|
+
end
|
|
339
|
+
else
|
|
340
|
+
if lockfile_exists?
|
|
341
|
+
Bundler.ui.debug "Found changes from the lockfile, re-resolving dependencies because #{change_reason}"
|
|
342
|
+
else
|
|
343
|
+
Bundler.ui.debug "Resolving dependencies because there's no lockfile"
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
start_resolution
|
|
347
|
+
end
|
|
348
|
+
end
|
|
349
|
+
|
|
350
|
+
def spec_git_paths
|
|
351
|
+
sources.git_sources.filter_map {|s| File.realpath(s.path) if File.exist?(s.path) }
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
def groups
|
|
355
|
+
dependencies.flat_map(&:groups).uniq
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
def lock(file_or_preserve_unknown_sections = false, preserve_unknown_sections_or_unused = false)
|
|
359
|
+
if [true, false, nil].include?(file_or_preserve_unknown_sections)
|
|
360
|
+
target_lockfile = lockfile
|
|
361
|
+
preserve_unknown_sections = file_or_preserve_unknown_sections
|
|
362
|
+
else
|
|
363
|
+
target_lockfile = file_or_preserve_unknown_sections
|
|
364
|
+
preserve_unknown_sections = preserve_unknown_sections_or_unused
|
|
365
|
+
|
|
366
|
+
suggestion = if target_lockfile == lockfile
|
|
367
|
+
"To fix this warning, remove it from the `Definition#lock` call."
|
|
368
|
+
else
|
|
369
|
+
"Instead, instantiate a new definition passing `#{target_lockfile}`, and call `lock` without a file argument on that definition"
|
|
370
|
+
end
|
|
371
|
+
|
|
372
|
+
msg = "`Definition#lock` was passed a target file argument. #{suggestion}"
|
|
373
|
+
|
|
374
|
+
Bundler::SharedHelpers.major_deprecation 2, msg
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
write_lock(target_lockfile, preserve_unknown_sections)
|
|
378
|
+
end
|
|
379
|
+
|
|
380
|
+
def locked_ruby_version
|
|
381
|
+
return unless ruby_version
|
|
382
|
+
if @unlocking_ruby || !@locked_ruby_version
|
|
383
|
+
Bundler::RubyVersion.system
|
|
384
|
+
else
|
|
385
|
+
@locked_ruby_version
|
|
386
|
+
end
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
def locked_ruby_version_object
|
|
390
|
+
return unless @locked_ruby_version
|
|
391
|
+
@locked_ruby_version_object ||= begin
|
|
392
|
+
unless version = RubyVersion.from_string(@locked_ruby_version)
|
|
393
|
+
raise LockfileError, "The Ruby version #{@locked_ruby_version} from " \
|
|
394
|
+
"#{@lockfile} could not be parsed. " \
|
|
395
|
+
"Try running bundle update --ruby to resolve this."
|
|
396
|
+
end
|
|
397
|
+
version
|
|
398
|
+
end
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
def bundler_version_to_lock
|
|
402
|
+
@resolved_bundler_version || Bundler.gem_version
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
def to_lock
|
|
406
|
+
require_relative "lockfile_generator"
|
|
407
|
+
LockfileGenerator.generate(self)
|
|
408
|
+
end
|
|
409
|
+
|
|
410
|
+
def ensure_equivalent_gemfile_and_lockfile(explicit_flag = false)
|
|
411
|
+
return unless Bundler.frozen_bundle?
|
|
412
|
+
|
|
413
|
+
raise ProductionError, "Frozen mode is set, but there's no lockfile" unless lockfile_exists?
|
|
414
|
+
|
|
415
|
+
msg = lockfile_changes_summary("frozen mode is set")
|
|
416
|
+
return unless msg
|
|
417
|
+
|
|
418
|
+
unless explicit_flag
|
|
419
|
+
suggested_command = unless Bundler.settings.locations("frozen").keys.include?(:env)
|
|
420
|
+
"bundle config set frozen false"
|
|
421
|
+
end
|
|
422
|
+
msg << "\n\nIf this is a development machine, remove the #{SharedHelpers.relative_lockfile_path} " \
|
|
423
|
+
"freeze by running `#{suggested_command}`." if suggested_command
|
|
424
|
+
end
|
|
425
|
+
|
|
426
|
+
raise ProductionError, msg
|
|
427
|
+
end
|
|
428
|
+
|
|
429
|
+
def validate_runtime!
|
|
430
|
+
validate_ruby!
|
|
431
|
+
validate_platforms!
|
|
432
|
+
end
|
|
433
|
+
|
|
434
|
+
def validate_ruby!
|
|
435
|
+
return unless ruby_version
|
|
436
|
+
|
|
437
|
+
if diff = ruby_version.diff(Bundler::RubyVersion.system)
|
|
438
|
+
problem, expected, actual = diff
|
|
439
|
+
|
|
440
|
+
msg = case problem
|
|
441
|
+
when :engine
|
|
442
|
+
"Your Ruby engine is #{actual}, but your Gemfile specified #{expected}"
|
|
443
|
+
when :version
|
|
444
|
+
"Your Ruby version is #{actual}, but your Gemfile specified #{expected}"
|
|
445
|
+
when :engine_version
|
|
446
|
+
"Your #{Bundler::RubyVersion.system.engine} version is #{actual}, but your Gemfile specified #{ruby_version.engine} #{expected}"
|
|
447
|
+
when :patchlevel
|
|
448
|
+
if !expected.is_a?(String)
|
|
449
|
+
"The Ruby patchlevel in your Gemfile must be a string"
|
|
450
|
+
else
|
|
451
|
+
"Your Ruby patchlevel is #{actual}, but your Gemfile specified #{expected}"
|
|
452
|
+
end
|
|
453
|
+
end
|
|
454
|
+
|
|
455
|
+
raise RubyVersionMismatch, msg
|
|
456
|
+
end
|
|
457
|
+
end
|
|
458
|
+
|
|
459
|
+
def validate_platforms!
|
|
460
|
+
return if current_platform_locked? || @platforms.include?(Gem::Platform::RUBY)
|
|
461
|
+
|
|
462
|
+
raise ProductionError, "Your bundle only supports platforms #{@platforms.map(&:to_s)} " \
|
|
463
|
+
"but your local platform is #{local_platform}. " \
|
|
464
|
+
"Add the current platform to the lockfile with\n`bundle lock --add-platform #{local_platform}` and try again."
|
|
465
|
+
end
|
|
466
|
+
|
|
467
|
+
def normalize_platforms
|
|
468
|
+
@platforms = resolve.normalize_platforms!(current_dependencies, platforms)
|
|
469
|
+
|
|
470
|
+
@resolve = SpecSet.new(resolve.for(current_dependencies, @platforms))
|
|
471
|
+
end
|
|
472
|
+
|
|
473
|
+
def add_platform(platform)
|
|
474
|
+
return if @platforms.include?(platform)
|
|
475
|
+
|
|
476
|
+
@new_platforms << platform
|
|
477
|
+
@platforms << platform
|
|
478
|
+
end
|
|
479
|
+
|
|
480
|
+
def remove_platform(platform)
|
|
481
|
+
raise InvalidOption, "Unable to remove the platform `#{platform}` since the only platforms are #{@platforms.join ", "}" unless @platforms.include?(platform)
|
|
482
|
+
|
|
483
|
+
@removed_platforms << platform
|
|
484
|
+
@platforms.delete(platform)
|
|
485
|
+
end
|
|
486
|
+
|
|
487
|
+
def nothing_changed?
|
|
488
|
+
!something_changed?
|
|
489
|
+
end
|
|
490
|
+
|
|
491
|
+
def no_resolve_needed?
|
|
492
|
+
!resolve_needed?
|
|
493
|
+
end
|
|
494
|
+
|
|
495
|
+
def unlocking?
|
|
496
|
+
@unlocking
|
|
497
|
+
end
|
|
498
|
+
|
|
499
|
+
attr_writer :source_requirements
|
|
500
|
+
|
|
501
|
+
def add_checksums
|
|
502
|
+
@locked_checksums = true
|
|
503
|
+
|
|
504
|
+
setup_domain!(add_checksums: true)
|
|
505
|
+
|
|
506
|
+
specs # force materialization to real specifications, so that checksums are fetched
|
|
507
|
+
end
|
|
508
|
+
|
|
509
|
+
private
|
|
510
|
+
|
|
511
|
+
def lockfile_changes_summary(update_refused_reason)
|
|
512
|
+
added = []
|
|
513
|
+
deleted = []
|
|
514
|
+
changed = []
|
|
515
|
+
|
|
516
|
+
added.concat @new_platforms.map {|p| "* platform: #{p}" }
|
|
517
|
+
deleted.concat @removed_platforms.map {|p| "* platform: #{p}" }
|
|
518
|
+
|
|
519
|
+
added.concat new_deps.map {|d| "* #{pretty_dep(d)}" } if new_deps.any?
|
|
520
|
+
deleted.concat deleted_deps.map {|d| "* #{pretty_dep(d)}" } if deleted_deps.any?
|
|
521
|
+
|
|
522
|
+
both_sources = Hash.new {|h, k| h[k] = [] }
|
|
523
|
+
current_dependencies.each {|d| both_sources[d.name][0] = d }
|
|
524
|
+
current_locked_dependencies.each {|d| both_sources[d.name][1] = d }
|
|
525
|
+
|
|
526
|
+
both_sources.each do |name, (dep, lock_dep)|
|
|
527
|
+
next if dep.nil? || lock_dep.nil?
|
|
528
|
+
|
|
529
|
+
gemfile_source = dep.source || default_source
|
|
530
|
+
lock_source = lock_dep.source || default_source
|
|
531
|
+
next if lock_source.include?(gemfile_source)
|
|
532
|
+
|
|
533
|
+
gemfile_source_name = dep.source ? gemfile_source.to_gemfile : "no specified source"
|
|
534
|
+
lockfile_source_name = lock_dep.source ? lock_source.to_gemfile : "no specified source"
|
|
535
|
+
changed << "* #{name} from `#{lockfile_source_name}` to `#{gemfile_source_name}`"
|
|
536
|
+
end
|
|
537
|
+
|
|
538
|
+
return unless added.any? || deleted.any? || changed.any? || resolve_needed?
|
|
539
|
+
|
|
540
|
+
reason = resolve_needed? ? change_reason : "some dependencies were deleted from your gemfile"
|
|
541
|
+
|
|
542
|
+
msg = String.new("#{reason.capitalize.strip}, but ")
|
|
543
|
+
msg << "the lockfile " unless msg.start_with?("Your lockfile")
|
|
544
|
+
msg << "can't be updated because #{update_refused_reason}"
|
|
545
|
+
msg << "\n\nYou have added to the Gemfile:\n" << added.join("\n") if added.any?
|
|
546
|
+
msg << "\n\nYou have deleted from the Gemfile:\n" << deleted.join("\n") if deleted.any?
|
|
547
|
+
msg << "\n\nYou have changed in the Gemfile:\n" << changed.join("\n") if changed.any?
|
|
548
|
+
msg << "\n\nRun `bundle install` elsewhere and add the updated #{SharedHelpers.relative_lockfile_path} to version control.\n" unless unlocking?
|
|
549
|
+
msg
|
|
550
|
+
end
|
|
551
|
+
|
|
552
|
+
def install_needed?
|
|
553
|
+
resolve_needed? || missing_specs?
|
|
554
|
+
end
|
|
555
|
+
|
|
556
|
+
def something_changed?
|
|
557
|
+
return true unless lockfile_exists?
|
|
558
|
+
|
|
559
|
+
@source_changes ||
|
|
560
|
+
@dependency_changes ||
|
|
561
|
+
@current_platform_missing ||
|
|
562
|
+
@new_platforms.any? ||
|
|
563
|
+
@path_changes ||
|
|
564
|
+
@local_changes ||
|
|
565
|
+
@missing_lockfile_dep ||
|
|
566
|
+
@unlocking_bundler ||
|
|
567
|
+
@locked_spec_with_missing_checksums ||
|
|
568
|
+
@locked_spec_with_missing_deps ||
|
|
569
|
+
@locked_spec_with_invalid_deps
|
|
570
|
+
end
|
|
571
|
+
|
|
572
|
+
def resolve_needed?
|
|
573
|
+
unlocking? || something_changed?
|
|
574
|
+
end
|
|
575
|
+
|
|
576
|
+
def should_add_extra_platforms?
|
|
577
|
+
!lockfile_exists? && generic_local_platform_is_ruby? && !Bundler.settings[:force_ruby_platform]
|
|
578
|
+
end
|
|
579
|
+
|
|
580
|
+
def lockfile_exists?
|
|
581
|
+
lockfile && File.exist?(lockfile)
|
|
582
|
+
end
|
|
583
|
+
|
|
584
|
+
def write_lock(file, preserve_unknown_sections)
|
|
585
|
+
return if Definition.no_lock || file.nil?
|
|
586
|
+
|
|
587
|
+
contents = to_lock
|
|
588
|
+
|
|
589
|
+
# Convert to \r\n if the existing lock has them
|
|
590
|
+
# i.e., Windows with `git config core.autocrlf=true`
|
|
591
|
+
contents.gsub!(/\n/, "\r\n") if @lockfile_contents.match?("\r\n")
|
|
592
|
+
|
|
593
|
+
if @locked_bundler_version
|
|
594
|
+
locked_major = @locked_bundler_version.segments.first
|
|
595
|
+
current_major = bundler_version_to_lock.segments.first
|
|
596
|
+
|
|
597
|
+
updating_major = locked_major < current_major
|
|
598
|
+
end
|
|
599
|
+
|
|
600
|
+
preserve_unknown_sections ||= !updating_major && (Bundler.frozen_bundle? || !(unlocking? || @unlocking_bundler))
|
|
601
|
+
|
|
602
|
+
if File.exist?(file) && lockfiles_equal?(@lockfile_contents, contents, preserve_unknown_sections)
|
|
603
|
+
return if Bundler.frozen_bundle?
|
|
604
|
+
SharedHelpers.filesystem_access(file) { FileUtils.touch(file) }
|
|
605
|
+
return
|
|
606
|
+
end
|
|
607
|
+
|
|
608
|
+
if Bundler.frozen_bundle?
|
|
609
|
+
Bundler.ui.error "Cannot write a changed lockfile while frozen."
|
|
610
|
+
return
|
|
611
|
+
end
|
|
612
|
+
|
|
613
|
+
begin
|
|
614
|
+
SharedHelpers.filesystem_access(file) do |p|
|
|
615
|
+
File.open(p, "wb") {|f| f.puts(contents) }
|
|
616
|
+
end
|
|
617
|
+
rescue ReadOnlyFileSystemError
|
|
618
|
+
raise ProductionError, lockfile_changes_summary("file system is read-only")
|
|
619
|
+
end
|
|
620
|
+
end
|
|
621
|
+
|
|
622
|
+
def resolver
|
|
623
|
+
@resolver ||= Resolver.new(resolution_packages, gem_version_promoter, @most_specific_locked_platform)
|
|
624
|
+
end
|
|
625
|
+
|
|
626
|
+
def expanded_dependencies
|
|
627
|
+
dependencies_with_bundler + metadata_dependencies
|
|
628
|
+
end
|
|
629
|
+
|
|
630
|
+
def dependencies_with_bundler
|
|
631
|
+
return dependencies unless @unlocking_bundler
|
|
632
|
+
return dependencies if dependencies.any? {|d| d.name == "bundler" }
|
|
633
|
+
|
|
634
|
+
[Dependency.new("bundler", @unlocking_bundler)] + dependencies
|
|
635
|
+
end
|
|
636
|
+
|
|
637
|
+
def resolution_packages
|
|
638
|
+
@resolution_packages ||= begin
|
|
639
|
+
last_resolve = converge_locked_specs
|
|
640
|
+
remove_invalid_platforms!
|
|
641
|
+
new_resolution_platforms = @current_platform_missing ? @new_platforms + [local_platform] : @new_platforms
|
|
642
|
+
packages = Resolver::Base.new(source_requirements, expanded_dependencies, last_resolve, @platforms, locked_specs: @originally_locked_specs, unlock: @unlocking_all || @gems_to_unlock, prerelease: gem_version_promoter.pre?, prefer_local: @prefer_local, new_platforms: new_resolution_platforms)
|
|
643
|
+
packages = additional_base_requirements_to_prevent_downgrades(packages)
|
|
644
|
+
packages = additional_base_requirements_to_force_updates(packages)
|
|
645
|
+
packages
|
|
646
|
+
end
|
|
647
|
+
end
|
|
648
|
+
|
|
649
|
+
def filter_specs(specs, deps, skips: [])
|
|
650
|
+
SpecSet.new(specs).for(deps, platforms, skips: skips)
|
|
651
|
+
end
|
|
652
|
+
|
|
653
|
+
def materialize(dependencies)
|
|
654
|
+
# Tracks potential endless loops trying to re-resolve.
|
|
655
|
+
# TODO: Remove as dead code if not reports are received in a while
|
|
656
|
+
incorrect_spec = nil
|
|
657
|
+
|
|
658
|
+
specs = begin
|
|
659
|
+
resolve.materialize(dependencies)
|
|
660
|
+
rescue IncorrectLockfileDependencies => e
|
|
661
|
+
raise if Bundler.frozen_bundle?
|
|
662
|
+
|
|
663
|
+
spec = e.spec
|
|
664
|
+
raise "Infinite loop while fixing lockfile dependencies" if incorrect_spec == spec
|
|
665
|
+
|
|
666
|
+
incorrect_spec = spec
|
|
667
|
+
reresolve_without([spec])
|
|
668
|
+
retry
|
|
669
|
+
end
|
|
670
|
+
|
|
671
|
+
missing_specs = resolve.missing_specs
|
|
672
|
+
|
|
673
|
+
if missing_specs.any?
|
|
674
|
+
missing_specs.each do |s|
|
|
675
|
+
locked_gem = @locked_specs[s.name].last
|
|
676
|
+
next if locked_gem.nil? || locked_gem.version != s.version || sources.local_mode?
|
|
677
|
+
|
|
678
|
+
message = if sources.implicit_global_source?
|
|
679
|
+
"Because your Gemfile specifies no global remote source, your bundle is locked to " \
|
|
680
|
+
"#{locked_gem} from #{locked_gem.source}. However, #{locked_gem} is not installed. You'll " \
|
|
681
|
+
"need to either add a global remote source to your Gemfile or make sure #{locked_gem} is " \
|
|
682
|
+
"available locally before rerunning Bundler."
|
|
683
|
+
else
|
|
684
|
+
"Your bundle is locked to #{locked_gem} from #{locked_gem.source}, but that version can " \
|
|
685
|
+
"no longer be found in that source. That means the author of #{locked_gem} has removed it. " \
|
|
686
|
+
"You'll need to update your bundle to a version other than #{locked_gem} that hasn't been " \
|
|
687
|
+
"removed in order to install."
|
|
688
|
+
end
|
|
689
|
+
|
|
690
|
+
raise GemNotFound, message
|
|
691
|
+
end
|
|
692
|
+
|
|
693
|
+
missing_specs_list = missing_specs.group_by(&:source).map do |source, missing_specs_for_source|
|
|
694
|
+
"#{missing_specs_for_source.map(&:full_name).join(", ")} in #{source}"
|
|
695
|
+
end
|
|
696
|
+
|
|
697
|
+
raise GemNotFound, "Could not find #{missing_specs_list.join(" nor ")}"
|
|
698
|
+
end
|
|
699
|
+
|
|
700
|
+
partially_missing_specs = resolve.partially_missing_specs
|
|
701
|
+
|
|
702
|
+
if partially_missing_specs.any? && !sources.local_mode?
|
|
703
|
+
Bundler.ui.warn "Some locked specs have possibly been yanked (#{partially_missing_specs.map(&:full_name).join(", ")}). Ignoring them..."
|
|
704
|
+
|
|
705
|
+
resolve.delete(partially_missing_specs)
|
|
706
|
+
end
|
|
707
|
+
|
|
708
|
+
incomplete_specs = resolve.incomplete_specs
|
|
709
|
+
loop do
|
|
710
|
+
break if incomplete_specs.empty?
|
|
711
|
+
|
|
712
|
+
Bundler.ui.debug("The lockfile does not have all gems needed for the current platform though, Bundler will still re-resolve dependencies")
|
|
713
|
+
sources.remote!
|
|
714
|
+
reresolve_without(incomplete_specs)
|
|
715
|
+
specs = resolve.materialize(dependencies)
|
|
716
|
+
|
|
717
|
+
still_incomplete_specs = resolve.incomplete_specs
|
|
718
|
+
|
|
719
|
+
if still_incomplete_specs == incomplete_specs
|
|
720
|
+
package = resolution_packages.get_package(incomplete_specs.first.name)
|
|
721
|
+
resolver.raise_not_found! package
|
|
722
|
+
end
|
|
723
|
+
|
|
724
|
+
incomplete_specs = still_incomplete_specs
|
|
725
|
+
end
|
|
726
|
+
|
|
727
|
+
insecurely_materialized_specs = resolve.insecurely_materialized_specs
|
|
728
|
+
|
|
729
|
+
if insecurely_materialized_specs.any?
|
|
730
|
+
Bundler.ui.warn "The following platform specific gems are getting installed, yet the lockfile includes only their generic ruby version:\n" \
|
|
731
|
+
" * #{insecurely_materialized_specs.map(&:full_name).join("\n * ")}\n" \
|
|
732
|
+
"Please run `bundle lock --normalize-platforms` and commit the resulting lockfile.\n" \
|
|
733
|
+
"Alternatively, you may run `bundle lock --add-platform <list-of-platforms-that-you-want-to-support>`"
|
|
734
|
+
end
|
|
735
|
+
|
|
736
|
+
bundler = sources.metadata_source.specs.search(["bundler", Bundler.gem_version]).last
|
|
737
|
+
specs["bundler"] = bundler
|
|
738
|
+
|
|
739
|
+
specs
|
|
740
|
+
end
|
|
741
|
+
|
|
742
|
+
def reresolve_without(incomplete_specs)
|
|
743
|
+
resolution_packages.delete(incomplete_specs)
|
|
744
|
+
@resolve = start_resolution
|
|
745
|
+
end
|
|
746
|
+
|
|
747
|
+
def start_resolution
|
|
748
|
+
local_platform_needed_for_resolvability = @most_specific_non_local_locked_platform && !@platforms.include?(local_platform)
|
|
749
|
+
@platforms << local_platform if local_platform_needed_for_resolvability
|
|
750
|
+
add_platform(Gem::Platform::RUBY) if RUBY_ENGINE == "truffleruby"
|
|
751
|
+
|
|
752
|
+
result = SpecSet.new(resolver.start)
|
|
753
|
+
|
|
754
|
+
@resolved_bundler_version = result.find {|spec| spec.name == "bundler" }&.version
|
|
755
|
+
|
|
756
|
+
if @most_specific_non_local_locked_platform
|
|
757
|
+
if spec_set_incomplete_for_platform?(result, @most_specific_non_local_locked_platform)
|
|
758
|
+
@platforms.delete(@most_specific_non_local_locked_platform)
|
|
759
|
+
elsif local_platform_needed_for_resolvability
|
|
760
|
+
@platforms.delete(local_platform)
|
|
761
|
+
end
|
|
762
|
+
end
|
|
763
|
+
|
|
764
|
+
if should_add_extra_platforms?
|
|
765
|
+
result.add_extra_platforms!(platforms)
|
|
766
|
+
elsif @originally_invalid_platforms.any?
|
|
767
|
+
result.add_originally_invalid_platforms!(platforms, @originally_invalid_platforms)
|
|
768
|
+
end
|
|
769
|
+
|
|
770
|
+
SpecSet.new(result.for(dependencies, @platforms | [Gem::Platform::RUBY]))
|
|
771
|
+
end
|
|
772
|
+
|
|
773
|
+
def precompute_source_requirements_for_indirect_dependencies?
|
|
774
|
+
sources.non_global_rubygems_sources.all?(&:dependency_api_available?) && !sources.aggregate_global_source?
|
|
775
|
+
end
|
|
776
|
+
|
|
777
|
+
def current_platform_locked?
|
|
778
|
+
@platforms.any? do |bundle_platform|
|
|
779
|
+
generic_local_platform == bundle_platform || local_platform === bundle_platform
|
|
780
|
+
end
|
|
781
|
+
end
|
|
782
|
+
|
|
783
|
+
def add_current_platform
|
|
784
|
+
return if @platforms.include?(local_platform)
|
|
785
|
+
|
|
786
|
+
@most_specific_non_local_locked_platform = find_most_specific_locked_platform
|
|
787
|
+
return if @most_specific_non_local_locked_platform
|
|
788
|
+
|
|
789
|
+
@platforms << local_platform
|
|
790
|
+
true
|
|
791
|
+
end
|
|
792
|
+
|
|
793
|
+
def find_most_specific_locked_platform
|
|
794
|
+
return unless current_platform_locked?
|
|
795
|
+
|
|
796
|
+
@most_specific_locked_platform
|
|
797
|
+
end
|
|
798
|
+
|
|
799
|
+
def change_reason
|
|
800
|
+
if unlocking?
|
|
801
|
+
unlock_targets = if @gems_to_unlock.any?
|
|
802
|
+
["gems", @gems_to_unlock]
|
|
803
|
+
elsif @sources_to_unlock.any?
|
|
804
|
+
["sources", @sources_to_unlock]
|
|
805
|
+
end
|
|
806
|
+
|
|
807
|
+
unlock_reason = if unlock_targets
|
|
808
|
+
"#{unlock_targets.first}: (#{unlock_targets.last.join(", ")})"
|
|
809
|
+
else
|
|
810
|
+
@unlocking_ruby ? "ruby" : ""
|
|
811
|
+
end
|
|
812
|
+
|
|
813
|
+
return "bundler is unlocking #{unlock_reason}"
|
|
814
|
+
end
|
|
815
|
+
[
|
|
816
|
+
[@source_changes, "the list of sources changed"],
|
|
817
|
+
[@dependency_changes, "the dependencies in your gemfile changed"],
|
|
818
|
+
[@current_platform_missing, "your lockfile is missing the current platform"],
|
|
819
|
+
[@new_platforms.any?, "you are adding a new platform to your lockfile"],
|
|
820
|
+
[@path_changes, "the gemspecs for path gems changed"],
|
|
821
|
+
[@local_changes, "the gemspecs for git local gems changed"],
|
|
822
|
+
[@missing_lockfile_dep, "your lockfile is missing \"#{@missing_lockfile_dep}\""],
|
|
823
|
+
[@unlocking_bundler, "an update to the version of Bundler itself was requested"],
|
|
824
|
+
[@locked_spec_with_missing_checksums, "your lockfile is missing a CHECKSUMS entry for \"#{@locked_spec_with_missing_checksums}\""],
|
|
825
|
+
[@locked_spec_with_missing_deps, "your lockfile includes \"#{@locked_spec_with_missing_deps}\" but not some of its dependencies"],
|
|
826
|
+
[@locked_spec_with_invalid_deps, "your lockfile does not satisfy dependencies of \"#{@locked_spec_with_invalid_deps}\""],
|
|
827
|
+
].select(&:first).map(&:last).join(", ")
|
|
828
|
+
end
|
|
829
|
+
|
|
830
|
+
def pretty_dep(dep)
|
|
831
|
+
SharedHelpers.pretty_dependency(dep)
|
|
832
|
+
end
|
|
833
|
+
|
|
834
|
+
# Check if the specs of the given source changed
|
|
835
|
+
# according to the locked source.
|
|
836
|
+
def specs_changed?(source)
|
|
837
|
+
locked = @locked_sources.find {|s| s == source }
|
|
838
|
+
|
|
839
|
+
!locked || dependencies_for_source_changed?(source, locked) || specs_for_source_changed?(source)
|
|
840
|
+
end
|
|
841
|
+
|
|
842
|
+
def dependencies_for_source_changed?(source, locked_source)
|
|
843
|
+
deps_for_source = @dependencies.select {|dep| dep.source == source }
|
|
844
|
+
locked_deps_for_source = locked_dependencies.select {|dep| dep.source == locked_source }
|
|
845
|
+
|
|
846
|
+
deps_for_source.uniq.sort != locked_deps_for_source.sort
|
|
847
|
+
end
|
|
848
|
+
|
|
849
|
+
def specs_for_source_changed?(source)
|
|
850
|
+
locked_index = Index.new
|
|
851
|
+
locked_index.use(@locked_specs.select {|s| s.replace_source_with!(source) })
|
|
852
|
+
|
|
853
|
+
!locked_index.subset?(source.specs)
|
|
854
|
+
rescue PathError, GitError => e
|
|
855
|
+
Bundler.ui.debug "Assuming that #{source} has not changed since fetching its specs errored (#{e})"
|
|
856
|
+
false
|
|
857
|
+
end
|
|
858
|
+
|
|
859
|
+
# Get all locals and override their matching sources.
|
|
860
|
+
# Return true if any of the locals changed (for example,
|
|
861
|
+
# they point to a new revision) or depend on new specs.
|
|
862
|
+
def converge_locals
|
|
863
|
+
locals = []
|
|
864
|
+
|
|
865
|
+
Bundler.settings.local_overrides.map do |k, v|
|
|
866
|
+
spec = @dependencies.find {|s| s.name == k }
|
|
867
|
+
source = spec&.source
|
|
868
|
+
if source&.respond_to?(:local_override!)
|
|
869
|
+
source.unlock! if @gems_to_unlock.include?(spec.name)
|
|
870
|
+
locals << [source, source.local_override!(v)]
|
|
871
|
+
end
|
|
872
|
+
end
|
|
873
|
+
|
|
874
|
+
sources_with_changes = locals.select do |source, changed|
|
|
875
|
+
changed || specs_changed?(source)
|
|
876
|
+
end.map(&:first)
|
|
877
|
+
!sources_with_changes.each {|source| @sources_to_unlock << source.name }.empty?
|
|
878
|
+
end
|
|
879
|
+
|
|
880
|
+
def check_lockfile
|
|
881
|
+
@locked_spec_with_invalid_deps = nil
|
|
882
|
+
@locked_spec_with_missing_deps = nil
|
|
883
|
+
@locked_spec_with_missing_checksums = nil
|
|
884
|
+
|
|
885
|
+
missing_deps = []
|
|
886
|
+
missing_checksums = []
|
|
887
|
+
invalid = []
|
|
888
|
+
|
|
889
|
+
@locked_specs.each do |s|
|
|
890
|
+
missing_checksums << s if @locked_checksums && s.source.checksum_store.missing?(s)
|
|
891
|
+
|
|
892
|
+
validation = @locked_specs.validate_deps(s)
|
|
893
|
+
|
|
894
|
+
missing_deps << s if validation == :missing
|
|
895
|
+
invalid << s if validation == :invalid
|
|
896
|
+
end
|
|
897
|
+
|
|
898
|
+
@locked_spec_with_missing_checksums = missing_checksums.first.name if missing_checksums.any?
|
|
899
|
+
|
|
900
|
+
if missing_deps.any?
|
|
901
|
+
@locked_specs.delete(missing_deps)
|
|
902
|
+
|
|
903
|
+
@locked_spec_with_missing_deps = missing_deps.first.name
|
|
904
|
+
end
|
|
905
|
+
|
|
906
|
+
if invalid.any?
|
|
907
|
+
@locked_specs.delete(invalid)
|
|
908
|
+
|
|
909
|
+
@locked_spec_with_invalid_deps = invalid.first.name
|
|
910
|
+
end
|
|
911
|
+
end
|
|
912
|
+
|
|
913
|
+
def converge_paths
|
|
914
|
+
sources.path_sources.any? do |source|
|
|
915
|
+
specs_changed?(source)
|
|
916
|
+
end
|
|
917
|
+
end
|
|
918
|
+
|
|
919
|
+
def converge_sources
|
|
920
|
+
# Replace the sources from the Gemfile with the sources from the Gemfile.lock,
|
|
921
|
+
# if they exist in the Gemfile.lock and are `==`. If you can't find an equivalent
|
|
922
|
+
# source in the Gemfile.lock, use the one from the Gemfile.
|
|
923
|
+
changes = sources.replace_sources!(@locked_sources)
|
|
924
|
+
|
|
925
|
+
sources.all_sources.each do |source|
|
|
926
|
+
# has to be done separately, because we want to keep the locked checksum
|
|
927
|
+
# store for a source, even when doing a full update
|
|
928
|
+
if @locked_checksums && @locked_gems && locked_source = @locked_gems.sources.find {|s| s == source && !s.equal?(source) }
|
|
929
|
+
source.checksum_store.merge!(locked_source.checksum_store)
|
|
930
|
+
end
|
|
931
|
+
# If the source is unlockable and the current command allows an unlock of
|
|
932
|
+
# the source (for example, you are doing a `bundle update <foo>` of a git-pinned
|
|
933
|
+
# gem), unlock it. For git sources, this means to unlock the revision, which
|
|
934
|
+
# will cause the `ref` used to be the most recent for the branch (or master) if
|
|
935
|
+
# an explicit `ref` is not used.
|
|
936
|
+
if source.respond_to?(:unlock!) && @sources_to_unlock.include?(source.name)
|
|
937
|
+
source.unlock!
|
|
938
|
+
changes = true
|
|
939
|
+
end
|
|
940
|
+
end
|
|
941
|
+
|
|
942
|
+
changes
|
|
943
|
+
end
|
|
944
|
+
|
|
945
|
+
def converge_dependencies
|
|
946
|
+
@missing_lockfile_dep = nil
|
|
947
|
+
@changed_dependencies = []
|
|
948
|
+
|
|
949
|
+
current_dependencies.each do |dep|
|
|
950
|
+
if dep.source
|
|
951
|
+
dep.source = sources.get(dep.source)
|
|
952
|
+
end
|
|
953
|
+
|
|
954
|
+
name = dep.name
|
|
955
|
+
|
|
956
|
+
dep_changed = @locked_deps[name].nil?
|
|
957
|
+
|
|
958
|
+
unless name == "bundler"
|
|
959
|
+
locked_specs = @originally_locked_specs[name]
|
|
960
|
+
|
|
961
|
+
if locked_specs.empty?
|
|
962
|
+
@missing_lockfile_dep = name if dep_changed == false
|
|
963
|
+
else
|
|
964
|
+
if locked_specs.map(&:source).uniq.size > 1
|
|
965
|
+
@locked_specs.delete(locked_specs.select {|s| s.source != dep.source })
|
|
966
|
+
end
|
|
967
|
+
|
|
968
|
+
unless dep.matches_spec?(locked_specs.first)
|
|
969
|
+
@gems_to_unlock << name
|
|
970
|
+
dep_changed = true
|
|
971
|
+
end
|
|
972
|
+
end
|
|
973
|
+
end
|
|
974
|
+
|
|
975
|
+
@changed_dependencies << name if dep_changed
|
|
976
|
+
end
|
|
977
|
+
|
|
978
|
+
@changed_dependencies.any?
|
|
979
|
+
end
|
|
980
|
+
|
|
981
|
+
# Remove elements from the locked specs that are expired. This will most
|
|
982
|
+
# commonly happen if the Gemfile has changed since the lockfile was last
|
|
983
|
+
# generated
|
|
984
|
+
def converge_locked_specs
|
|
985
|
+
converged = converge_specs(@locked_specs)
|
|
986
|
+
|
|
987
|
+
resolve = SpecSet.new(converged)
|
|
988
|
+
|
|
989
|
+
diff = nil
|
|
990
|
+
|
|
991
|
+
# Now, we unlock any sources that do not have anymore gems pinned to it
|
|
992
|
+
sources.all_sources.each do |source|
|
|
993
|
+
next unless source.respond_to?(:unlock!)
|
|
994
|
+
|
|
995
|
+
unless resolve.any? {|s| s.source == source }
|
|
996
|
+
diff ||= @locked_specs.to_a - resolve.to_a
|
|
997
|
+
source.unlock! if diff.any? {|s| s.source == source }
|
|
998
|
+
end
|
|
999
|
+
end
|
|
1000
|
+
|
|
1001
|
+
resolve
|
|
1002
|
+
end
|
|
1003
|
+
|
|
1004
|
+
def converge_specs(specs)
|
|
1005
|
+
converged = []
|
|
1006
|
+
deps = []
|
|
1007
|
+
|
|
1008
|
+
specs.each do |s|
|
|
1009
|
+
name = s.name
|
|
1010
|
+
dep = @dependencies.find {|d| s.satisfies?(d) }
|
|
1011
|
+
lockfile_source = s.source
|
|
1012
|
+
|
|
1013
|
+
if dep
|
|
1014
|
+
gemfile_source = dep.source || default_source
|
|
1015
|
+
|
|
1016
|
+
deps << dep if !dep.source || lockfile_source.include?(dep.source) || new_deps.include?(dep)
|
|
1017
|
+
|
|
1018
|
+
# Replace the locked dependency's source with the equivalent source from the Gemfile
|
|
1019
|
+
s.source = gemfile_source
|
|
1020
|
+
else
|
|
1021
|
+
# Replace the locked dependency's source with the default source, if the locked source is no longer in the Gemfile
|
|
1022
|
+
s.source = default_source unless sources.get(lockfile_source)
|
|
1023
|
+
end
|
|
1024
|
+
|
|
1025
|
+
source = s.source
|
|
1026
|
+
next if @sources_to_unlock.include?(source.name)
|
|
1027
|
+
|
|
1028
|
+
# Path sources have special logic
|
|
1029
|
+
if source.instance_of?(Source::Path) || source.instance_of?(Source::Gemspec) || (source.instance_of?(Source::Git) && !@gems_to_unlock.include?(name) && deps.include?(dep))
|
|
1030
|
+
new_spec = source.specs[s].first
|
|
1031
|
+
if new_spec
|
|
1032
|
+
s.runtime_dependencies.replace(new_spec.runtime_dependencies)
|
|
1033
|
+
else
|
|
1034
|
+
# If the spec is no longer in the path source, unlock it. This
|
|
1035
|
+
# commonly happens if the version changed in the gemspec
|
|
1036
|
+
@gems_to_unlock << name
|
|
1037
|
+
end
|
|
1038
|
+
end
|
|
1039
|
+
|
|
1040
|
+
converged << s
|
|
1041
|
+
end
|
|
1042
|
+
|
|
1043
|
+
filter_specs(converged, deps, skips: @gems_to_unlock)
|
|
1044
|
+
end
|
|
1045
|
+
|
|
1046
|
+
def metadata_dependencies
|
|
1047
|
+
@metadata_dependencies ||= [
|
|
1048
|
+
Dependency.new("Ruby\0", Bundler::RubyVersion.system.gem_version),
|
|
1049
|
+
Dependency.new("RubyGems\0", Gem::VERSION),
|
|
1050
|
+
]
|
|
1051
|
+
end
|
|
1052
|
+
|
|
1053
|
+
def source_requirements
|
|
1054
|
+
@source_requirements ||= find_source_requirements
|
|
1055
|
+
end
|
|
1056
|
+
|
|
1057
|
+
def find_source_requirements
|
|
1058
|
+
# Record the specs available in each gem's source, so that those
|
|
1059
|
+
# specs will be available later when the resolver knows where to
|
|
1060
|
+
# look for that gemspec (or its dependencies)
|
|
1061
|
+
source_requirements = if precompute_source_requirements_for_indirect_dependencies?
|
|
1062
|
+
all_requirements = source_map.all_requirements
|
|
1063
|
+
{ default: default_source }.merge(all_requirements)
|
|
1064
|
+
else
|
|
1065
|
+
{ default: Source::RubygemsAggregate.new(sources, source_map) }.merge(source_map.direct_requirements)
|
|
1066
|
+
end
|
|
1067
|
+
source_requirements.merge!(source_map.locked_requirements) if nothing_changed?
|
|
1068
|
+
metadata_dependencies.each do |dep|
|
|
1069
|
+
source_requirements[dep.name] = sources.metadata_source
|
|
1070
|
+
end
|
|
1071
|
+
|
|
1072
|
+
default_bundler_source = source_requirements["bundler"] || default_source
|
|
1073
|
+
|
|
1074
|
+
if @unlocking_bundler
|
|
1075
|
+
default_bundler_source.add_dependency_names("bundler")
|
|
1076
|
+
else
|
|
1077
|
+
source_requirements[:default_bundler] = default_bundler_source
|
|
1078
|
+
source_requirements["bundler"] = sources.metadata_source # needs to come last to override
|
|
1079
|
+
end
|
|
1080
|
+
|
|
1081
|
+
source_requirements
|
|
1082
|
+
end
|
|
1083
|
+
|
|
1084
|
+
def default_source
|
|
1085
|
+
sources.default_source
|
|
1086
|
+
end
|
|
1087
|
+
|
|
1088
|
+
def requested_groups
|
|
1089
|
+
values = groups - Bundler.settings[:without] - @optional_groups + Bundler.settings[:with]
|
|
1090
|
+
values &= Bundler.settings[:only] unless Bundler.settings[:only].empty?
|
|
1091
|
+
values
|
|
1092
|
+
end
|
|
1093
|
+
|
|
1094
|
+
def lockfiles_equal?(current, proposed, preserve_unknown_sections)
|
|
1095
|
+
if preserve_unknown_sections
|
|
1096
|
+
sections_to_ignore = LockfileParser.sections_to_ignore(@locked_bundler_version)
|
|
1097
|
+
sections_to_ignore += LockfileParser.unknown_sections_in_lockfile(current)
|
|
1098
|
+
sections_to_ignore << LockfileParser::RUBY
|
|
1099
|
+
sections_to_ignore << LockfileParser::BUNDLED unless @unlocking_bundler
|
|
1100
|
+
pattern = /#{Regexp.union(sections_to_ignore)}\n(\s{2,}.*\n)+/
|
|
1101
|
+
whitespace_cleanup = /\n{2,}/
|
|
1102
|
+
current = current.gsub(pattern, "\n").gsub(whitespace_cleanup, "\n\n").strip
|
|
1103
|
+
proposed = proposed.gsub(pattern, "\n").gsub(whitespace_cleanup, "\n\n").strip
|
|
1104
|
+
end
|
|
1105
|
+
current == proposed
|
|
1106
|
+
end
|
|
1107
|
+
|
|
1108
|
+
def additional_base_requirements_to_prevent_downgrades(resolution_packages)
|
|
1109
|
+
return resolution_packages unless @locked_gems && !sources.expired_sources?(@locked_gems.sources)
|
|
1110
|
+
@originally_locked_specs.each do |locked_spec|
|
|
1111
|
+
next if locked_spec.source.is_a?(Source::Path)
|
|
1112
|
+
|
|
1113
|
+
name = locked_spec.name
|
|
1114
|
+
next if @changed_dependencies.include?(name)
|
|
1115
|
+
|
|
1116
|
+
resolution_packages.base_requirements[name] = Gem::Requirement.new(">= #{locked_spec.version}")
|
|
1117
|
+
end
|
|
1118
|
+
resolution_packages
|
|
1119
|
+
end
|
|
1120
|
+
|
|
1121
|
+
def additional_base_requirements_to_force_updates(resolution_packages)
|
|
1122
|
+
return resolution_packages if @explicit_unlocks.empty?
|
|
1123
|
+
full_update = dup_for_full_unlock.resolve
|
|
1124
|
+
@explicit_unlocks.each do |name|
|
|
1125
|
+
version = full_update.version_for(name)
|
|
1126
|
+
resolution_packages.base_requirements[name] = Gem::Requirement.new("= #{version}") if version
|
|
1127
|
+
end
|
|
1128
|
+
resolution_packages
|
|
1129
|
+
end
|
|
1130
|
+
|
|
1131
|
+
def dup_for_full_unlock
|
|
1132
|
+
unlocked_definition = self.class.new(@lockfile, @dependencies, @sources, true, @ruby_version, @optional_groups, @gemfiles)
|
|
1133
|
+
unlocked_definition.source_requirements = source_requirements
|
|
1134
|
+
unlocked_definition.gem_version_promoter.tap do |gvp|
|
|
1135
|
+
gvp.level = gem_version_promoter.level
|
|
1136
|
+
gvp.strict = gem_version_promoter.strict
|
|
1137
|
+
gvp.pre = gem_version_promoter.pre
|
|
1138
|
+
end
|
|
1139
|
+
unlocked_definition
|
|
1140
|
+
end
|
|
1141
|
+
|
|
1142
|
+
def remove_invalid_platforms!
|
|
1143
|
+
return if Bundler.frozen_bundle?
|
|
1144
|
+
|
|
1145
|
+
@originally_invalid_platforms = platforms.select do |platform|
|
|
1146
|
+
next if local_platform == platform ||
|
|
1147
|
+
@new_platforms.include?(platform)
|
|
1148
|
+
|
|
1149
|
+
# We should probably avoid removing non-ruby platforms, since that means
|
|
1150
|
+
# lockfile will no longer install on those platforms, so a error to give
|
|
1151
|
+
# heads up to the user may be better. However, we have tests expecting
|
|
1152
|
+
# non ruby platform autoremoval to work, so leaving that in place for
|
|
1153
|
+
# now.
|
|
1154
|
+
next if @dependency_changes && platform != Gem::Platform::RUBY
|
|
1155
|
+
|
|
1156
|
+
spec_set_incomplete_for_platform?(@originally_locked_specs, platform)
|
|
1157
|
+
end
|
|
1158
|
+
|
|
1159
|
+
@platforms -= @originally_invalid_platforms
|
|
1160
|
+
end
|
|
1161
|
+
|
|
1162
|
+
def spec_set_incomplete_for_platform?(spec_set, platform)
|
|
1163
|
+
spec_set.incomplete_for_platform?(current_dependencies, platform)
|
|
1164
|
+
end
|
|
1165
|
+
|
|
1166
|
+
def source_map
|
|
1167
|
+
@source_map ||= SourceMap.new(sources, dependencies, @locked_specs)
|
|
1168
|
+
end
|
|
1169
|
+
end
|
|
1170
|
+
end
|