ya-tagscript 1.7.1__tar.gz → 2.0.0__tar.gz
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.
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/.github/workflows/black.yml +1 -1
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/.github/workflows/publish.yml +2 -2
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/.github/workflows/test.yml +2 -2
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/CHANGELOG.md +24 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/PKG-INFO +3 -3
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/README.md +2 -2
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/docs/conf.py +1 -1
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/docs/interfaces.rst +1 -1
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/pyproject.toml +1 -1
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/rng/range_block.py +1 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/interfaces/blockabc.py +3 -35
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/interpreter/interpreter.py +5 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/interpreter/ts_parser.py +38 -8
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/actions/test_command_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/actions/test_delete_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/actions/test_override_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/actions/test_react_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/actions/test_redirect_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/actions/test_silence_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/conditional/test_all_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/conditional/test_any_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/conditional/test_if_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/discord/test_cooldown_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/discord/test_embed_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/flow/test_break_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/flow/test_shortcutredirect_block.py +0 -6
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/flow/test_stop_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/limiters/test_blacklist_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/limiters/test_require_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/lists/test_cycle_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/lists/test_list_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/math/test_math_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/math/test_ordinal_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/meta/test_comment_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/meta/test_debug_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/rng/test_fiftyfifty_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/rng/test_random_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/rng/test_range_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/strings/test_case_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/strings/test_join_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/strings/test_python_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/strings/test_replace_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/strings/test_substring_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/strings/test_urldecode_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/strings/test_urlencode_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/time/test_strf_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/time/test_timedelta_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/variables/test_assign_block.py +0 -5
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/variables/test_loose_variable_getter_block.py +0 -6
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/variables/test_strict_variable_getter_block.py +0 -6
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/interpreter/test_ts_parser.py +75 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/.flake8 +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/.github/dependabot.yml +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/.github/workflows/coverage_comment.yml +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/.gitignore +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/.pre-commit-config.yaml +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/.python-version +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/.readthedocs.yaml +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/LICENSE.md +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/docs/Makefile +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/docs/_ext/glossary_backlink_checker.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/docs/_ext/styled_list_directive.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/docs/adapters.rst +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/docs/blocks.rst +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/docs/changelog.rst +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/docs/code_examples/adapters/int_adapter_example.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/docs/code_examples/adapters/member_adapter_example.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/docs/code_examples/nested_blocks_example.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/docs/code_examples/quickstart_example.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/docs/credits.rst +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/docs/exceptions.rst +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/docs/glossary.rst +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/docs/index.rst +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/docs/interpreter.rst +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/docs/intro.rst +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/docs/make.bat +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/docs/numeric_parser.rst +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/docs/quickstart.rst +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/docs/requirements.txt +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/make_release.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/adapters/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/adapters/discord_adapters/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/adapters/discord_adapters/attribute_adapter.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/adapters/discord_adapters/channel_adapter.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/adapters/discord_adapters/guild_adapter.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/adapters/discord_adapters/member_adapter.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/adapters/function_adapter.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/adapters/int_adapter.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/adapters/object_adapter.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/adapters/string_adapter.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/actions/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/actions/command_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/actions/delete_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/actions/override_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/actions/react_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/actions/redirect_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/actions/silence_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/conditional/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/conditional/all_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/conditional/any_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/conditional/if_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/discord/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/discord/cooldown_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/discord/embed_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/flow/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/flow/break_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/flow/shortcutredirect_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/flow/stop_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/limiters/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/limiters/blacklist_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/limiters/require_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/lists/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/lists/cycle_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/lists/list_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/math/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/math/math_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/math/ordinal_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/meta/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/meta/comment_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/meta/debug_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/rng/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/rng/fiftyfifty_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/rng/random_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/strings/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/strings/case_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/strings/join_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/strings/python_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/strings/replace_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/strings/substring_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/strings/urldecode_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/strings/urlencode_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/time/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/time/strf_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/time/timedelta_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/variables/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/variables/assign_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/variables/loose_variable_getter_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/blocks/variables/strict_variable_getter_block.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/exceptions/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/exceptions/exceptions.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/interfaces/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/interfaces/adapterabc.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/interfaces/interpreterabc.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/interfaces/nodeabc.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/interpreter/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/interpreter/context.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/interpreter/node.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/interpreter/parse_state.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/interpreter/response.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/py.typed +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/util/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/util/conditionals.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/util/escaping.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/src/ya_tagscript/util/splitter.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/.coveragerc +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/docs/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/docs/code_examples/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/docs/code_examples/adapters/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/docs/code_examples/adapters/test_int_adapter_example.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/docs/code_examples/adapters/test_member_adapter_example.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/docs/code_examples/test_nested_blocks_example.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/docs/code_examples/test_quickstart_example.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/adapters/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/adapters/discord_adapters/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/adapters/discord_adapters/test_attribute_adapter.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/adapters/discord_adapters/test_channel_adapter.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/adapters/discord_adapters/test_guild_adapter.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/adapters/discord_adapters/test_member_adapter.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/adapters/test_function_adapter.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/adapters/test_int_adapter.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/adapters/test_object_adapter.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/adapters/test_string_adapter.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/actions/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/conditional/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/discord/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/flow/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/limiters/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/lists/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/math/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/meta/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/rng/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/strings/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/time/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/variables/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/interpreter/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/interpreter/test_interpreter.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/interpreter/test_node.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/interpreter/test_parse_state.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/util/__init__.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/util/test_conditionals.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/util/test_escaping.py +0 -0
- {ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/util/test_splitter.py +0 -0
|
@@ -16,7 +16,7 @@ jobs:
|
|
|
16
16
|
- name: Checkout
|
|
17
17
|
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
18
18
|
|
|
19
|
-
- uses: actions/setup-python@
|
|
19
|
+
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
|
|
20
20
|
with:
|
|
21
21
|
python-version-file: ".python-version"
|
|
22
22
|
|
|
@@ -20,7 +20,7 @@ jobs:
|
|
|
20
20
|
persist-credentials: false
|
|
21
21
|
|
|
22
22
|
- name: Set up Python
|
|
23
|
-
uses: actions/setup-python@
|
|
23
|
+
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
|
|
24
24
|
with:
|
|
25
25
|
cache: pip
|
|
26
26
|
python-version-file: ".python-version"
|
|
@@ -61,7 +61,7 @@ jobs:
|
|
|
61
61
|
path: dist/
|
|
62
62
|
|
|
63
63
|
- name: Publish distribution 📦 to PyPI
|
|
64
|
-
uses: pypa/gh-action-pypi-publish@
|
|
64
|
+
uses: pypa/gh-action-pypi-publish@ba38be9e461d3875417946c167d0b5f3d385a247 # v1.14.1
|
|
65
65
|
|
|
66
66
|
github-release:
|
|
67
67
|
name: Create GitHub Release
|
|
@@ -22,7 +22,7 @@ jobs:
|
|
|
22
22
|
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
23
23
|
|
|
24
24
|
- name: Setup Python ${{ matrix.python-version }}
|
|
25
|
-
uses: actions/setup-python@
|
|
25
|
+
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
|
|
26
26
|
with:
|
|
27
27
|
allow-prereleases: true
|
|
28
28
|
cache: pip
|
|
@@ -61,7 +61,7 @@ jobs:
|
|
|
61
61
|
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
62
62
|
|
|
63
63
|
- name: Setup Python
|
|
64
|
-
uses: actions/setup-python@
|
|
64
|
+
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
|
|
65
65
|
with:
|
|
66
66
|
cache: pip
|
|
67
67
|
python-version-file: .python-version
|
|
@@ -2,6 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
*Currently none*
|
|
4
4
|
|
|
5
|
+
# v2.0.0 (2026-07-24)
|
|
6
|
+
|
|
7
|
+
- BREAKING: Remove `_accepted_names` in favour of `_VALID_NAMES`
|
|
8
|
+
- Migrate by declaring the block names current in the `_accepted_names` property to
|
|
9
|
+
a class-level `_VALID_NAMES` declaration:
|
|
10
|
+
|
|
11
|
+
```diff
|
|
12
|
+
class MyBlock(BlockABC):
|
|
13
|
+
+ _VALID_NAMES = {"my-dec", "some-alias"}
|
|
14
|
+
|
|
15
|
+
- @property
|
|
16
|
+
- def _accepted_names(self) -> set[str] | None:
|
|
17
|
+
- return {"my-dec", "some-alias"}
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
- Make sure any custom handling in `will_accept` or `process` takes this change into
|
|
21
|
+
account.
|
|
22
|
+
|
|
23
|
+
# v1.7.2 (2026-07-15)
|
|
24
|
+
|
|
25
|
+
- More parsing loop performance improvements
|
|
26
|
+
- Fix escapement bug causing 0-level escaped blocks to not be properly escaped
|
|
27
|
+
- This change may cause output differences in scripts with escaped blocks.
|
|
28
|
+
|
|
5
29
|
# v1.7.1 (2026-07-03)
|
|
6
30
|
|
|
7
31
|
- Added `ACTIONS_KEY` constants to all blocks which add data to the `Response.actions`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ya_tagscript
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2.0.0
|
|
4
4
|
Summary: Yet Another TagScript fork. An easy drop in user-provided Templating system.
|
|
5
5
|
Project-URL: Changelog, https://ya-tagscript.readthedocs.io/en/latest/changelog.html
|
|
6
6
|
Project-URL: Documentation, https://ya-tagscript.readthedocs.io
|
|
@@ -30,7 +30,7 @@ Description-Content-Type: text/markdown
|
|
|
30
30
|

|
|
31
31
|
[](https://github.com/psf/black)
|
|
32
32
|
|
|
33
|
-
Current stable version:
|
|
33
|
+
Current stable version: v2.0.0
|
|
34
34
|
|
|
35
35
|
## Information
|
|
36
36
|
|
|
@@ -92,7 +92,7 @@ or
|
|
|
92
92
|
<!--VERSIONED TAG SECTION START-->
|
|
93
93
|
|
|
94
94
|
```
|
|
95
|
-
pip install git+https://github.com/MajorTanya/ya_tagscript.git@
|
|
95
|
+
pip install git+https://github.com/MajorTanya/ya_tagscript.git@v2.0.0
|
|
96
96
|
```
|
|
97
97
|
|
|
98
98
|
<!--VERSIONED TAG SECTION END-->
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
[](https://github.com/psf/black)
|
|
7
7
|
|
|
8
|
-
Current stable version:
|
|
8
|
+
Current stable version: v2.0.0
|
|
9
9
|
|
|
10
10
|
## Information
|
|
11
11
|
|
|
@@ -67,7 +67,7 @@ or
|
|
|
67
67
|
<!--VERSIONED TAG SECTION START-->
|
|
68
68
|
|
|
69
69
|
```
|
|
70
|
-
pip install git+https://github.com/MajorTanya/ya_tagscript.git@
|
|
70
|
+
pip install git+https://github.com/MajorTanya/ya_tagscript.git@v2.0.0
|
|
71
71
|
```
|
|
72
72
|
|
|
73
73
|
<!--VERSIONED TAG SECTION END-->
|
|
@@ -20,7 +20,7 @@ For example, the concrete :class:`~ya_tagscript.interpreter.TagScriptInterpreter
|
|
|
20
20
|
|
|
21
21
|
.. autoclass:: BlockABC
|
|
22
22
|
:members:
|
|
23
|
-
:private-members:
|
|
23
|
+
:private-members: _VALID_NAMES
|
|
24
24
|
:no-show-inheritance:
|
|
25
25
|
|
|
26
26
|
.. autoclass:: InterpreterABC
|
|
@@ -51,11 +51,7 @@ class RangeBlock(BlockABC):
|
|
|
51
51
|
|
|
52
52
|
def process(self, ctx: Context) -> str | None:
|
|
53
53
|
declaration = ctx.node.declaration
|
|
54
|
-
|
|
55
|
-
valid_names = (
|
|
56
|
-
self._accepted_names if self._accepted_names is not None else set()
|
|
57
|
-
)
|
|
58
|
-
if declaration is None or declaration not in valid_names:
|
|
54
|
+
if declaration is None or declaration not in self._VALID_NAMES:
|
|
59
55
|
return None
|
|
60
56
|
|
|
61
57
|
payload = ctx.node.payload
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
import warnings
|
|
4
3
|
from abc import ABC, abstractmethod
|
|
5
4
|
from typing import TYPE_CHECKING
|
|
6
5
|
|
|
@@ -66,38 +65,6 @@ class BlockABC(ABC):
|
|
|
66
65
|
Subclasses must override this if they require this restriction.
|
|
67
66
|
"""
|
|
68
67
|
|
|
69
|
-
@property
|
|
70
|
-
def _accepted_names(self) -> set[str] | None:
|
|
71
|
-
"""
|
|
72
|
-
A :class:`set` of all valid block names (all lowercase) or :data:`None` if no
|
|
73
|
-
block names can be defined (e.g. variable getter blocks).
|
|
74
|
-
|
|
75
|
-
.. versionchanged:: 1.7
|
|
76
|
-
|
|
77
|
-
This method is no longer abstract. The default implementation matches the
|
|
78
|
-
previously described behaviour, but it returns :attr:`BlockABC._VALID_NAMES`
|
|
79
|
-
(or :data:`None` for empty sets in :attr:`BlockABC._VALID_NAMES`).
|
|
80
|
-
|
|
81
|
-
.. deprecated:: 1.7
|
|
82
|
-
|
|
83
|
-
Use :attr:`~BlockABC._VALID_NAMES` instead. This will be removed in 2.0.
|
|
84
|
-
|
|
85
|
-
Returns
|
|
86
|
-
-------
|
|
87
|
-
set[str] | None
|
|
88
|
-
A set of lowercase strings representing possible acceptable block
|
|
89
|
-
declarations that can be handled by this block.
|
|
90
|
-
May be :data:`None` if the block does not have predefined names (e.g.
|
|
91
|
-
variable getter blocks).
|
|
92
|
-
"""
|
|
93
|
-
warnings.warn(
|
|
94
|
-
"Deprecated since v1.7. Use _VALID_NAMES instead",
|
|
95
|
-
DeprecationWarning,
|
|
96
|
-
stacklevel=2,
|
|
97
|
-
)
|
|
98
|
-
|
|
99
|
-
return self._VALID_NAMES if len(self._VALID_NAMES) > 0 else None
|
|
100
|
-
|
|
101
68
|
@abstractmethod
|
|
102
69
|
def process(self, ctx: Context) -> str | None:
|
|
103
70
|
"""
|
|
@@ -160,11 +127,12 @@ class BlockABC(ABC):
|
|
|
160
127
|
bool
|
|
161
128
|
Whether the block will accept processing of the Context
|
|
162
129
|
"""
|
|
163
|
-
names = self._accepted_names if self._accepted_names is not None else set()
|
|
164
130
|
node = ctx.node
|
|
165
131
|
declaration = node.declaration
|
|
166
132
|
|
|
167
|
-
name_match = (declaration is not None) and (
|
|
133
|
+
name_match = (declaration is not None) and (
|
|
134
|
+
declaration.lower() in self._VALID_NAMES
|
|
135
|
+
)
|
|
168
136
|
param_match = True
|
|
169
137
|
payload_match = True
|
|
170
138
|
if self.requires_any_parameter:
|
|
@@ -43,16 +43,16 @@ class TagScriptInterpreter(InterpreterABC):
|
|
|
43
43
|
self.blocks: Sequence[BlockABC] = blocks
|
|
44
44
|
self.work_limit: int | None = None
|
|
45
45
|
self.total_work: int = 0
|
|
46
|
-
# fast lookup dict for blocks with non-
|
|
46
|
+
# fast lookup dict for blocks with non-empty _VALID_NAMES
|
|
47
47
|
self._named_blocks: dict[str, BlockABC] = {}
|
|
48
|
-
# fallback list for blocks where
|
|
48
|
+
# fallback list for blocks where _VALID_NAMES is empty
|
|
49
49
|
self._unnamed_blocks: list[BlockABC] = []
|
|
50
50
|
|
|
51
51
|
# register blocks in the appropriate group
|
|
52
52
|
for block in blocks:
|
|
53
|
-
# noinspection PyProtectedMember
|
|
54
|
-
names = block.
|
|
55
|
-
if names
|
|
53
|
+
# noinspection PyProtectedMember
|
|
54
|
+
names = block._VALID_NAMES # pyright: ignore [reportPrivateUsage]
|
|
55
|
+
if len(names) > 0:
|
|
56
56
|
for name in names:
|
|
57
57
|
self._named_blocks[name.lower()] = block
|
|
58
58
|
else:
|
|
@@ -29,6 +29,8 @@ _SPECIAL_TOKENS: set[str] = {
|
|
|
29
29
|
PAREN_CLOSE,
|
|
30
30
|
COLON,
|
|
31
31
|
}
|
|
32
|
+
# COLON isn't special in several places
|
|
33
|
+
_SPECIAL_TOKENS_NO_COLON = _SPECIAL_TOKENS - {COLON}
|
|
32
34
|
|
|
33
35
|
|
|
34
36
|
class TagScriptParser:
|
|
@@ -48,6 +50,7 @@ class TagScriptParser:
|
|
|
48
50
|
i = 0
|
|
49
51
|
input_len = len(input_str)
|
|
50
52
|
special_chars = _SPECIAL_TOKENS
|
|
53
|
+
specials_no_colon = _SPECIAL_TOKENS_NO_COLON
|
|
51
54
|
|
|
52
55
|
# region processing loop
|
|
53
56
|
# this is an extremely hot loop so there are additional local references to
|
|
@@ -68,6 +71,7 @@ class TagScriptParser:
|
|
|
68
71
|
i += 1
|
|
69
72
|
text = input_str[start:i]
|
|
70
73
|
self._text_buffer += text
|
|
74
|
+
char = input_str[i - 1]
|
|
71
75
|
continue
|
|
72
76
|
|
|
73
77
|
# mainly a typing crutch since current_state = block.state (top of loop)
|
|
@@ -124,7 +128,16 @@ class TagScriptParser:
|
|
|
124
128
|
block.declaration = char
|
|
125
129
|
|
|
126
130
|
elif current_state is ParseState.IN_DECLARATION:
|
|
127
|
-
if char
|
|
131
|
+
if char not in special_chars:
|
|
132
|
+
# covers BACKSLASH and any other char
|
|
133
|
+
# fast-path accumulation
|
|
134
|
+
start = i
|
|
135
|
+
while i < input_len and input_str[i] not in special_chars:
|
|
136
|
+
i += 1
|
|
137
|
+
block.declaration = (block.declaration or "") + input_str[start:i]
|
|
138
|
+
char = input_str[i - 1]
|
|
139
|
+
continue
|
|
140
|
+
elif char == BRACE_OPEN:
|
|
128
141
|
if not is_escaped:
|
|
129
142
|
block.block_depth += 1
|
|
130
143
|
block.declaration = (block.declaration or "") + char
|
|
@@ -157,10 +170,19 @@ class TagScriptParser:
|
|
|
157
170
|
else:
|
|
158
171
|
block.declaration = (block.declaration or "") + char
|
|
159
172
|
else:
|
|
160
|
-
|
|
173
|
+
raise ValueError(f"Unknown special char {char!r} in IN_DECLARATION")
|
|
161
174
|
|
|
162
175
|
elif current_state is ParseState.IN_PARAMETER:
|
|
163
|
-
if char
|
|
176
|
+
if char not in specials_no_colon:
|
|
177
|
+
# covers BACKSLASH, COLON, any other char
|
|
178
|
+
# fast-path accumulation
|
|
179
|
+
start = i
|
|
180
|
+
while i < input_len and input_str[i] not in specials_no_colon:
|
|
181
|
+
i += 1
|
|
182
|
+
block.parameter = (block.parameter or "") + input_str[start:i]
|
|
183
|
+
char = input_str[i - 1]
|
|
184
|
+
continue
|
|
185
|
+
elif char == BRACE_OPEN:
|
|
164
186
|
if not is_escaped:
|
|
165
187
|
block.block_depth += 1
|
|
166
188
|
block.parameter = (block.parameter or "") + char
|
|
@@ -187,8 +209,7 @@ class TagScriptParser:
|
|
|
187
209
|
block.parameter = (block.parameter or "") + char
|
|
188
210
|
block.paren_depth -= 1
|
|
189
211
|
else:
|
|
190
|
-
|
|
191
|
-
block.parameter = (block.parameter or "") + char
|
|
212
|
+
raise ValueError(f"Unknown special char {char!r} in IN_PARAMETER")
|
|
192
213
|
|
|
193
214
|
elif current_state is ParseState.POST_PARAMETER:
|
|
194
215
|
if char == BRACE_CLOSE and block.block_depth == 1:
|
|
@@ -207,7 +228,16 @@ class TagScriptParser:
|
|
|
207
228
|
self._state = None
|
|
208
229
|
|
|
209
230
|
elif current_state is ParseState.IN_PAYLOAD:
|
|
210
|
-
if char
|
|
231
|
+
if char not in specials_no_colon:
|
|
232
|
+
# covers BACKSLASH, COLON, any other char
|
|
233
|
+
# fast-path accumulation
|
|
234
|
+
start = i
|
|
235
|
+
while i < input_len and input_str[i] not in specials_no_colon:
|
|
236
|
+
i += 1
|
|
237
|
+
block.payload = (block.payload or "") + input_str[start:i]
|
|
238
|
+
char = input_str[i - 1]
|
|
239
|
+
continue
|
|
240
|
+
elif char == BRACE_OPEN:
|
|
211
241
|
if not is_escaped:
|
|
212
242
|
block.block_depth += 1
|
|
213
243
|
block.payload = (block.payload or "") + char
|
|
@@ -230,8 +260,8 @@ class TagScriptParser:
|
|
|
230
260
|
if block.paren_depth > 0:
|
|
231
261
|
block.paren_depth -= 1
|
|
232
262
|
else:
|
|
233
|
-
|
|
234
|
-
|
|
263
|
+
raise ValueError(f"Unknown special char {char!r} in IN_PAYLOAD")
|
|
264
|
+
|
|
235
265
|
else:
|
|
236
266
|
assert_never(current_state)
|
|
237
267
|
|
{ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/actions/test_command_block.py
RENAMED
|
@@ -15,11 +15,6 @@ def ts_interpreter():
|
|
|
15
15
|
return TagScriptInterpreter(b)
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
def test_accepted_names():
|
|
19
|
-
block = blocks.CommandBlock()
|
|
20
|
-
assert block._accepted_names == {"c", "com", "cmd", "command"}
|
|
21
|
-
|
|
22
|
-
|
|
23
18
|
def test_valid_names():
|
|
24
19
|
block = blocks.CommandBlock()
|
|
25
20
|
assert block._VALID_NAMES == {"c", "com", "cmd", "command"}
|
{ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/actions/test_delete_block.py
RENAMED
|
@@ -14,11 +14,6 @@ def ts_interpreter():
|
|
|
14
14
|
return TagScriptInterpreter(b)
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
def test_accepted_names():
|
|
18
|
-
block = blocks.DeleteBlock()
|
|
19
|
-
assert block._accepted_names == {"del", "delete"}
|
|
20
|
-
|
|
21
|
-
|
|
22
17
|
def test_valid_names():
|
|
23
18
|
block = blocks.DeleteBlock()
|
|
24
19
|
assert block._VALID_NAMES == {"del", "delete"}
|
{ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/actions/test_override_block.py
RENAMED
|
@@ -13,11 +13,6 @@ def ts_interpreter():
|
|
|
13
13
|
return TagScriptInterpreter(b)
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
def test_accepted_names():
|
|
17
|
-
block = blocks.OverrideBlock()
|
|
18
|
-
assert block._accepted_names == {"override"}
|
|
19
|
-
|
|
20
|
-
|
|
21
16
|
def test_valid_names():
|
|
22
17
|
block = blocks.OverrideBlock()
|
|
23
18
|
assert block._VALID_NAMES == {"override"}
|
{ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/actions/test_react_block.py
RENAMED
|
@@ -16,11 +16,6 @@ def ts_interpreter():
|
|
|
16
16
|
return TagScriptInterpreter(b)
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
def test_accepted_names():
|
|
20
|
-
block = blocks.ReactBlock()
|
|
21
|
-
assert block._accepted_names == {"react", "reactu"}
|
|
22
|
-
|
|
23
|
-
|
|
24
19
|
def test_valid_names():
|
|
25
20
|
block = blocks.ReactBlock()
|
|
26
21
|
assert block._VALID_NAMES == {"react", "reactu"}
|
{ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/actions/test_redirect_block.py
RENAMED
|
@@ -15,11 +15,6 @@ def ts_interpreter():
|
|
|
15
15
|
return TagScriptInterpreter(b)
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
def test_accepted_names():
|
|
19
|
-
block = blocks.RedirectBlock()
|
|
20
|
-
assert block._accepted_names == {"redirect"}
|
|
21
|
-
|
|
22
|
-
|
|
23
18
|
def test_valid_names():
|
|
24
19
|
block = blocks.RedirectBlock()
|
|
25
20
|
assert block._VALID_NAMES == {"redirect"}
|
{ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/actions/test_silence_block.py
RENAMED
|
@@ -12,11 +12,6 @@ def ts_interpreter():
|
|
|
12
12
|
return TagScriptInterpreter(b)
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
def test_accepted_names():
|
|
16
|
-
block = blocks.SilenceBlock()
|
|
17
|
-
assert block._accepted_names == {"silence", "silent"}
|
|
18
|
-
|
|
19
|
-
|
|
20
15
|
def test_valid_names():
|
|
21
16
|
block = blocks.SilenceBlock()
|
|
22
17
|
assert block._VALID_NAMES == {"silence", "silent"}
|
{ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/conditional/test_all_block.py
RENAMED
|
@@ -17,11 +17,6 @@ def ts_interpreter():
|
|
|
17
17
|
return TagScriptInterpreter(b)
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
def test_accepted_names():
|
|
21
|
-
block = blocks.AllBlock()
|
|
22
|
-
assert block._accepted_names == {"all", "and"}
|
|
23
|
-
|
|
24
|
-
|
|
25
20
|
def test_valid_names():
|
|
26
21
|
block = blocks.AllBlock()
|
|
27
22
|
assert block._VALID_NAMES == {"all", "and"}
|
{ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/conditional/test_any_block.py
RENAMED
|
@@ -17,11 +17,6 @@ def ts_interpreter():
|
|
|
17
17
|
return TagScriptInterpreter(b)
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
def test_accepted_names():
|
|
21
|
-
block = blocks.AnyBlock()
|
|
22
|
-
assert block._accepted_names == {"any", "or"}
|
|
23
|
-
|
|
24
|
-
|
|
25
20
|
def test_valid_names():
|
|
26
21
|
block = blocks.AnyBlock()
|
|
27
22
|
assert block._VALID_NAMES == {"any", "or"}
|
{ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/conditional/test_if_block.py
RENAMED
|
@@ -17,11 +17,6 @@ def ts_interpreter():
|
|
|
17
17
|
return TagScriptInterpreter(b)
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
def test_accepted_names():
|
|
21
|
-
block = blocks.IfBlock()
|
|
22
|
-
assert block._accepted_names == {"if"}
|
|
23
|
-
|
|
24
|
-
|
|
25
20
|
def test_valid_names():
|
|
26
21
|
block = blocks.IfBlock()
|
|
27
22
|
assert block._VALID_NAMES == {"if"}
|
{ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/discord/test_cooldown_block.py
RENAMED
|
@@ -30,11 +30,6 @@ def mock_cm():
|
|
|
30
30
|
yield mocked_cm
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
def test_accepted_names():
|
|
34
|
-
block = blocks.CooldownBlock()
|
|
35
|
-
assert block._accepted_names == {"cooldown"}
|
|
36
|
-
|
|
37
|
-
|
|
38
33
|
def test_valid_names():
|
|
39
34
|
block = blocks.CooldownBlock()
|
|
40
35
|
assert block._VALID_NAMES == {"cooldown"}
|
{ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/discord/test_embed_block.py
RENAMED
|
@@ -19,11 +19,6 @@ def ts_interpreter():
|
|
|
19
19
|
return TagScriptInterpreter(b)
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
def test_accepted_names():
|
|
23
|
-
block = blocks.EmbedBlock()
|
|
24
|
-
assert block._accepted_names == {"embed"}
|
|
25
|
-
|
|
26
|
-
|
|
27
22
|
def test_valid_names():
|
|
28
23
|
block = blocks.EmbedBlock()
|
|
29
24
|
assert block._VALID_NAMES == {"embed"}
|
{ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/flow/test_break_block.py
RENAMED
|
@@ -15,11 +15,6 @@ def ts_interpreter():
|
|
|
15
15
|
return TagScriptInterpreter(b)
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
def test_accepted_names():
|
|
19
|
-
block = blocks.BreakBlock()
|
|
20
|
-
assert block._accepted_names == {"break", "shortcircuit", "short"}
|
|
21
|
-
|
|
22
|
-
|
|
23
18
|
def test_valid_names():
|
|
24
19
|
block = blocks.BreakBlock()
|
|
25
20
|
assert block._VALID_NAMES == {"break", "shortcircuit", "short"}
|
|
@@ -15,12 +15,6 @@ def ts_interpreter():
|
|
|
15
15
|
return TagScriptInterpreter(b)
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
def test_accepted_names():
|
|
19
|
-
# returns None intentionally
|
|
20
|
-
block = blocks.ShortcutRedirectBlock("test")
|
|
21
|
-
assert block._accepted_names is None
|
|
22
|
-
|
|
23
|
-
|
|
24
18
|
def test_valid_names():
|
|
25
19
|
block = blocks.ShortcutRedirectBlock("test")
|
|
26
20
|
assert block._VALID_NAMES == set()
|
|
@@ -27,11 +27,6 @@ def ts_interpreter_with_all_block():
|
|
|
27
27
|
return TagScriptInterpreter(b)
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
def test_accepted_names():
|
|
31
|
-
block = blocks.StopBlock()
|
|
32
|
-
assert block._accepted_names == {"stop", "halt", "error"}
|
|
33
|
-
|
|
34
|
-
|
|
35
30
|
def test_valid_names():
|
|
36
31
|
block = blocks.StopBlock()
|
|
37
32
|
assert block._VALID_NAMES == {"stop", "halt", "error"}
|
{ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/limiters/test_blacklist_block.py
RENAMED
|
@@ -15,11 +15,6 @@ def ts_interpreter():
|
|
|
15
15
|
return TagScriptInterpreter(b)
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
def test_accepted_names():
|
|
19
|
-
block = blocks.BlacklistBlock()
|
|
20
|
-
assert block._accepted_names == {"blacklist"}
|
|
21
|
-
|
|
22
|
-
|
|
23
18
|
def test_valid_names():
|
|
24
19
|
block = blocks.BlacklistBlock()
|
|
25
20
|
assert block._VALID_NAMES == {"blacklist"}
|
{ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/limiters/test_require_block.py
RENAMED
|
@@ -15,11 +15,6 @@ def ts_interpreter():
|
|
|
15
15
|
return TagScriptInterpreter(b)
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
def test_accepted_names():
|
|
19
|
-
block = blocks.RequireBlock()
|
|
20
|
-
assert block._accepted_names == {"require", "whitelist"}
|
|
21
|
-
|
|
22
|
-
|
|
23
18
|
def test_valid_names():
|
|
24
19
|
block = blocks.RequireBlock()
|
|
25
20
|
assert block._VALID_NAMES == {"require", "whitelist"}
|
{ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/lists/test_cycle_block.py
RENAMED
|
@@ -15,11 +15,6 @@ def ts_interpreter():
|
|
|
15
15
|
return TagScriptInterpreter(b)
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
def test_accepted_names():
|
|
19
|
-
block = blocks.CycleBlock()
|
|
20
|
-
assert block._accepted_names == {"cycle"}
|
|
21
|
-
|
|
22
|
-
|
|
23
18
|
def test_valid_names():
|
|
24
19
|
block = blocks.CycleBlock()
|
|
25
20
|
assert block._VALID_NAMES == {"cycle"}
|
{ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/lists/test_list_block.py
RENAMED
|
@@ -15,11 +15,6 @@ def ts_interpreter():
|
|
|
15
15
|
return TagScriptInterpreter(b)
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
def test_accepted_names():
|
|
19
|
-
block = blocks.ListBlock()
|
|
20
|
-
assert block._accepted_names == {"list"}
|
|
21
|
-
|
|
22
|
-
|
|
23
18
|
def test_valid_names():
|
|
24
19
|
block = blocks.ListBlock()
|
|
25
20
|
assert block._VALID_NAMES == {"list"}
|
|
@@ -15,11 +15,6 @@ def ts_interpreter():
|
|
|
15
15
|
return TagScriptInterpreter(b)
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
def test_accepted_names():
|
|
19
|
-
block = blocks.MathBlock()
|
|
20
|
-
assert block._accepted_names == {"math", "m", "+", "calc"}
|
|
21
|
-
|
|
22
|
-
|
|
23
18
|
def test_valid_names():
|
|
24
19
|
block = blocks.MathBlock()
|
|
25
20
|
assert block._VALID_NAMES == {"math", "m", "+", "calc"}
|
{ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/math/test_ordinal_block.py
RENAMED
|
@@ -78,11 +78,6 @@ def ts_interpreter():
|
|
|
78
78
|
return TagScriptInterpreter(b)
|
|
79
79
|
|
|
80
80
|
|
|
81
|
-
def test_accepted_names():
|
|
82
|
-
block = blocks.OrdinalBlock()
|
|
83
|
-
assert block._accepted_names == {"o", "ord"}
|
|
84
|
-
|
|
85
|
-
|
|
86
81
|
def test_valid_names():
|
|
87
82
|
block = blocks.OrdinalBlock()
|
|
88
83
|
assert block._VALID_NAMES == {"o", "ord"}
|
{ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/meta/test_comment_block.py
RENAMED
|
@@ -23,11 +23,6 @@ def ts_interpreter_with_cmd_block():
|
|
|
23
23
|
return TagScriptInterpreter(b)
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
def test_accepted_names():
|
|
27
|
-
block = blocks.CommentBlock()
|
|
28
|
-
assert block._accepted_names == {"/", "//", "comment"}
|
|
29
|
-
|
|
30
|
-
|
|
31
26
|
def test_valid_names():
|
|
32
27
|
block = blocks.CommentBlock()
|
|
33
28
|
assert block._VALID_NAMES == {"/", "//", "comment"}
|
{ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/meta/test_debug_block.py
RENAMED
|
@@ -15,11 +15,6 @@ def ts_interpreter():
|
|
|
15
15
|
return TagScriptInterpreter(b)
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
def test_accepted_names():
|
|
19
|
-
block = blocks.DebugBlock()
|
|
20
|
-
assert block._accepted_names == {"debug"}
|
|
21
|
-
|
|
22
|
-
|
|
23
18
|
def test_valid_names():
|
|
24
19
|
block = blocks.DebugBlock()
|
|
25
20
|
assert block._VALID_NAMES == {"debug"}
|
{ya_tagscript-1.7.1 → ya_tagscript-2.0.0}/tests/ya_tagscript/blocks/rng/test_fiftyfifty_block.py
RENAMED
|
@@ -16,11 +16,6 @@ def ts_interpreter():
|
|
|
16
16
|
return TagScriptInterpreter(b)
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
def test_accepted_names():
|
|
20
|
-
block = blocks.FiftyFiftyBlock()
|
|
21
|
-
assert block._accepted_names == {"5050", "50", "?"}
|
|
22
|
-
|
|
23
|
-
|
|
24
19
|
def test_valid_names():
|
|
25
20
|
block = blocks.FiftyFiftyBlock()
|
|
26
21
|
assert block._VALID_NAMES == {"5050", "50", "?"}
|