herb 0.9.7-arm-linux-gnu → 0.10.1-arm-linux-gnu
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.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/config/action_view_helpers/actioncable/action_cable_helper/action_cable_meta_tag.yml +20 -0
- data/config/action_view_helpers/actionpack/content_security_policy/content_security_policy?.yml +16 -0
- data/config/action_view_helpers/actionpack/content_security_policy/content_security_policy_nonce.yml +16 -0
- data/config/action_view_helpers/actionpack/polymorphic_routes/polymorphic_path.yml +27 -0
- data/config/action_view_helpers/actionpack/polymorphic_routes/polymorphic_url.yml +33 -0
- data/config/action_view_helpers/actionpack/request_forgery_protection/form_authenticity_token.yml +19 -0
- data/config/action_view_helpers/actionpack/request_forgery_protection/protect_against_forgery?.yml +16 -0
- data/config/action_view_helpers/actiontext/content_helper/render_action_text_content.yml +21 -0
- data/config/action_view_helpers/actiontext/content_helper/sanitize_action_text_content.yml +21 -0
- data/config/action_view_helpers/actiontext/tag_helper/rich_textarea_tag.yml +46 -0
- data/config/action_view_helpers/actionview/active_model_helper/error_message.yml +16 -0
- data/config/action_view_helpers/actionview/active_model_helper/error_wrapping.yml +16 -0
- data/config/action_view_helpers/actionview/active_model_helper/object.yml +16 -0
- data/config/action_view_helpers/actionview/asset_tag_helper/apply_stylesheet_media_default.yml +16 -0
- data/config/action_view_helpers/actionview/asset_tag_helper/audio_tag.yml +45 -0
- data/config/action_view_helpers/actionview/asset_tag_helper/auto_discovery_link_tag.yml +44 -0
- data/config/action_view_helpers/actionview/asset_tag_helper/auto_include_nonce.yml +16 -0
- data/config/action_view_helpers/actionview/asset_tag_helper/auto_include_nonce_for_scripts.yml +16 -0
- data/config/action_view_helpers/actionview/asset_tag_helper/auto_include_nonce_for_styles.yml +16 -0
- data/config/action_view_helpers/actionview/asset_tag_helper/favicon_link_tag.yml +46 -0
- data/config/action_view_helpers/actionview/asset_tag_helper/image_decoding.yml +16 -0
- data/config/action_view_helpers/actionview/asset_tag_helper/image_loading.yml +16 -0
- data/config/action_view_helpers/actionview/asset_tag_helper/image_tag.yml +68 -0
- data/config/action_view_helpers/actionview/asset_tag_helper/javascript_include_tag.yml +59 -0
- data/config/action_view_helpers/actionview/asset_tag_helper/picture_tag.yml +29 -0
- data/config/action_view_helpers/actionview/asset_tag_helper/preload_link_tag.yml +50 -0
- data/config/action_view_helpers/actionview/asset_tag_helper/preload_links_header.yml +16 -0
- data/config/action_view_helpers/actionview/asset_tag_helper/stylesheet_link_tag.yml +50 -0
- data/config/action_view_helpers/actionview/asset_tag_helper/video_tag.yml +55 -0
- data/config/action_view_helpers/actionview/asset_url_helper/asset_path.yml +23 -0
- data/config/action_view_helpers/actionview/asset_url_helper/asset_url.yml +23 -0
- data/config/action_view_helpers/actionview/asset_url_helper/audio_path.yml +23 -0
- data/config/action_view_helpers/actionview/asset_url_helper/audio_url.yml +23 -0
- data/config/action_view_helpers/actionview/asset_url_helper/compute_asset_extname.yml +16 -0
- data/config/action_view_helpers/actionview/asset_url_helper/compute_asset_host.yml +16 -0
- data/config/action_view_helpers/actionview/asset_url_helper/compute_asset_path.yml +16 -0
- data/config/action_view_helpers/actionview/asset_url_helper/font_path.yml +23 -0
- data/config/action_view_helpers/actionview/asset_url_helper/font_url.yml +23 -0
- data/config/action_view_helpers/actionview/asset_url_helper/image_path.yml +23 -0
- data/config/action_view_helpers/actionview/asset_url_helper/image_url.yml +23 -0
- data/config/action_view_helpers/actionview/asset_url_helper/javascript_path.yml +23 -0
- data/config/action_view_helpers/actionview/asset_url_helper/javascript_url.yml +23 -0
- data/config/action_view_helpers/actionview/asset_url_helper/public_compute_asset_path.yml +16 -0
- data/config/action_view_helpers/actionview/asset_url_helper/stylesheet_path.yml +23 -0
- data/config/action_view_helpers/actionview/asset_url_helper/stylesheet_url.yml +23 -0
- data/config/action_view_helpers/actionview/asset_url_helper/video_path.yml +23 -0
- data/config/action_view_helpers/actionview/asset_url_helper/video_url.yml +23 -0
- data/config/action_view_helpers/actionview/atom_feed_helper/atom_feed.yml +40 -0
- data/config/action_view_helpers/actionview/cache_helper/cache.yml +28 -0
- data/config/action_view_helpers/actionview/cache_helper/cache_fragment_name.yml +16 -0
- data/config/action_view_helpers/actionview/cache_helper/cache_if.yml +27 -0
- data/config/action_view_helpers/actionview/cache_helper/cache_unless.yml +27 -0
- data/config/action_view_helpers/actionview/cache_helper/caching_predicate.yml +16 -0
- data/config/action_view_helpers/actionview/cache_helper/digest_path_from_template.yml +16 -0
- data/config/action_view_helpers/actionview/cache_helper/fragment_for.yml +16 -0
- data/config/action_view_helpers/actionview/cache_helper/fragment_name_with_digest.yml +16 -0
- data/config/action_view_helpers/actionview/cache_helper/read_fragment_for.yml +16 -0
- data/config/action_view_helpers/actionview/cache_helper/uncacheable.yml +16 -0
- data/config/action_view_helpers/actionview/cache_helper/write_fragment_for.yml +16 -0
- data/config/action_view_helpers/actionview/capture_helper/capture.yml +16 -0
- data/config/action_view_helpers/actionview/capture_helper/content_for.yml +24 -0
- data/config/action_view_helpers/actionview/capture_helper/content_for_predicate.yml +21 -0
- data/config/action_view_helpers/actionview/capture_helper/provide.yml +21 -0
- data/config/action_view_helpers/actionview/capture_helper/with_output_buffer.yml +16 -0
- data/config/action_view_helpers/actionview/content_exfiltration_prevention_helper/prepend_content_exfiltration_prevention.yml +16 -0
- data/config/action_view_helpers/actionview/content_exfiltration_prevention_helper/prevent_content_exfiltration.yml +16 -0
- data/config/action_view_helpers/actionview/controller_helper/action_name.yml +16 -0
- data/config/action_view_helpers/actionview/controller_helper/assign_controller.yml +16 -0
- data/config/action_view_helpers/actionview/controller_helper/controller.yml +16 -0
- data/config/action_view_helpers/actionview/controller_helper/controller_name.yml +16 -0
- data/config/action_view_helpers/actionview/controller_helper/controller_path.yml +16 -0
- data/config/action_view_helpers/actionview/controller_helper/cookies.yml +16 -0
- data/config/action_view_helpers/actionview/controller_helper/flash.yml +16 -0
- data/config/action_view_helpers/actionview/controller_helper/headers.yml +16 -0
- data/config/action_view_helpers/actionview/controller_helper/logger.yml +18 -0
- data/config/action_view_helpers/actionview/controller_helper/params.yml +16 -0
- data/config/action_view_helpers/actionview/controller_helper/request.yml +16 -0
- data/config/action_view_helpers/actionview/controller_helper/request_forgery_protection_token.yml +16 -0
- data/config/action_view_helpers/actionview/controller_helper/response.yml +16 -0
- data/config/action_view_helpers/actionview/controller_helper/session.yml +16 -0
- data/config/action_view_helpers/actionview/csp_helper/csp_meta_tag.yml +23 -0
- data/config/action_view_helpers/actionview/csrf_helper/csrf_meta_tags.yml +23 -0
- data/config/action_view_helpers/actionview/date_helper/date_select.yml +71 -0
- data/config/action_view_helpers/actionview/date_helper/datetime_select.yml +59 -0
- data/config/action_view_helpers/actionview/date_helper/distance_of_time_in_words.yml +33 -0
- data/config/action_view_helpers/actionview/date_helper/relative_time_in_words.yml +36 -0
- data/config/action_view_helpers/actionview/date_helper/select_date.yml +49 -0
- data/config/action_view_helpers/actionview/date_helper/select_datetime.yml +58 -0
- data/config/action_view_helpers/actionview/date_helper/select_day.yml +42 -0
- data/config/action_view_helpers/actionview/date_helper/select_hour.yml +48 -0
- data/config/action_view_helpers/actionview/date_helper/select_minute.yml +42 -0
- data/config/action_view_helpers/actionview/date_helper/select_month.yml +54 -0
- data/config/action_view_helpers/actionview/date_helper/select_second.yml +39 -0
- data/config/action_view_helpers/actionview/date_helper/select_time.yml +52 -0
- data/config/action_view_helpers/actionview/date_helper/select_year.yml +45 -0
- data/config/action_view_helpers/actionview/date_helper/time_ago_in_words.yml +26 -0
- data/config/action_view_helpers/actionview/date_helper/time_select.yml +56 -0
- data/config/action_view_helpers/actionview/date_helper/time_tag.yml +37 -0
- data/config/action_view_helpers/actionview/debug_helper/debug.yml +21 -0
- data/config/action_view_helpers/actionview/form_helper/apply_form_for_options.yml +16 -0
- data/config/action_view_helpers/actionview/form_helper/button.yml +38 -0
- data/config/action_view_helpers/actionview/form_helper/checkbox.yml +49 -0
- data/config/action_view_helpers/actionview/form_helper/color_field.yml +32 -0
- data/config/action_view_helpers/actionview/form_helper/date_field.yml +38 -0
- data/config/action_view_helpers/actionview/form_helper/datetime_field.yml +43 -0
- data/config/action_view_helpers/actionview/form_helper/email_field.yml +32 -0
- data/config/action_view_helpers/actionview/form_helper/emitted_hidden_id.yml +16 -0
- data/config/action_view_helpers/actionview/form_helper/fields.yml +31 -0
- data/config/action_view_helpers/actionview/form_helper/fields_for.yml +33 -0
- data/config/action_view_helpers/actionview/form_helper/file_field.yml +44 -0
- data/config/action_view_helpers/actionview/form_helper/form_for.yml +41 -0
- data/config/action_view_helpers/actionview/form_helper/form_with.yml +42 -0
- data/config/action_view_helpers/actionview/form_helper/form_with_generates_ids.yml +16 -0
- data/config/action_view_helpers/actionview/form_helper/form_with_generates_remote_forms.yml +16 -0
- data/config/action_view_helpers/actionview/form_helper/hidden_field.yml +32 -0
- data/config/action_view_helpers/actionview/form_helper/label.yml +47 -0
- data/config/action_view_helpers/actionview/form_helper/month_field.yml +32 -0
- data/config/action_view_helpers/actionview/form_helper/multipart.yml +16 -0
- data/config/action_view_helpers/actionview/form_helper/multiple_file_field_include_hidden.yml +16 -0
- data/config/action_view_helpers/actionview/form_helper/number_field.yml +44 -0
- data/config/action_view_helpers/actionview/form_helper/password_field.yml +32 -0
- data/config/action_view_helpers/actionview/form_helper/radio_button.yml +37 -0
- data/config/action_view_helpers/actionview/form_helper/range_field.yml +44 -0
- data/config/action_view_helpers/actionview/form_helper/search_field.yml +32 -0
- data/config/action_view_helpers/actionview/form_helper/submit.yml +35 -0
- data/config/action_view_helpers/actionview/form_helper/telephone_field.yml +34 -0
- data/config/action_view_helpers/actionview/form_helper/text_field.yml +32 -0
- data/config/action_view_helpers/actionview/form_helper/textarea.yml +37 -0
- data/config/action_view_helpers/actionview/form_helper/time_field.yml +41 -0
- data/config/action_view_helpers/actionview/form_helper/url_field.yml +32 -0
- data/config/action_view_helpers/actionview/form_helper/week_field.yml +32 -0
- data/config/action_view_helpers/actionview/form_options_helper/collection_checkboxes.yml +58 -0
- data/config/action_view_helpers/actionview/form_options_helper/collection_radio_buttons.yml +56 -0
- data/config/action_view_helpers/actionview/form_options_helper/collection_select.yml +65 -0
- data/config/action_view_helpers/actionview/form_options_helper/grouped_collection_select.yml +69 -0
- data/config/action_view_helpers/actionview/form_options_helper/grouped_options_for_select.yml +39 -0
- data/config/action_view_helpers/actionview/form_options_helper/option_groups_from_collection_for_select.yml +47 -0
- data/config/action_view_helpers/actionview/form_options_helper/options_for_select.yml +27 -0
- data/config/action_view_helpers/actionview/form_options_helper/options_from_collection_for_select.yml +37 -0
- data/config/action_view_helpers/actionview/form_options_helper/select.yml +59 -0
- data/config/action_view_helpers/actionview/form_options_helper/time_zone_options_for_select.yml +34 -0
- data/config/action_view_helpers/actionview/form_options_helper/time_zone_select.yml +53 -0
- data/config/action_view_helpers/actionview/form_options_helper/weekday_options_for_select.yml +31 -0
- data/config/action_view_helpers/actionview/form_options_helper/weekday_select.yml +38 -0
- data/config/action_view_helpers/actionview/form_tag_helper/button_tag.yml +39 -0
- data/config/action_view_helpers/actionview/form_tag_helper/checkbox_tag.yml +45 -0
- data/config/action_view_helpers/actionview/form_tag_helper/color_field_tag.yml +38 -0
- data/config/action_view_helpers/actionview/form_tag_helper/date_field_tag.yml +37 -0
- data/config/action_view_helpers/actionview/form_tag_helper/datetime_field_tag.yml +39 -0
- data/config/action_view_helpers/actionview/form_tag_helper/default_enforce_utf8.yml +16 -0
- data/config/action_view_helpers/actionview/form_tag_helper/email_field_tag.yml +37 -0
- data/config/action_view_helpers/actionview/form_tag_helper/embed_authenticity_token_in_remote_forms.yml +16 -0
- data/config/action_view_helpers/actionview/form_tag_helper/field_id.yml +32 -0
- data/config/action_view_helpers/actionview/form_tag_helper/field_name.yml +32 -0
- data/config/action_view_helpers/actionview/form_tag_helper/field_set_tag.yml +34 -0
- data/config/action_view_helpers/actionview/form_tag_helper/file_field_tag.yml +41 -0
- data/config/action_view_helpers/actionview/form_tag_helper/form_tag.yml +42 -0
- data/config/action_view_helpers/actionview/form_tag_helper/hidden_field_tag.yml +37 -0
- data/config/action_view_helpers/actionview/form_tag_helper/image_submit_tag.yml +40 -0
- data/config/action_view_helpers/actionview/form_tag_helper/label_tag.yml +38 -0
- data/config/action_view_helpers/actionview/form_tag_helper/month_field_tag.yml +37 -0
- data/config/action_view_helpers/actionview/form_tag_helper/number_field_tag.yml +49 -0
- data/config/action_view_helpers/actionview/form_tag_helper/password_field_tag.yml +38 -0
- data/config/action_view_helpers/actionview/form_tag_helper/radio_button_tag.yml +42 -0
- data/config/action_view_helpers/actionview/form_tag_helper/range_field_tag.yml +49 -0
- data/config/action_view_helpers/actionview/form_tag_helper/search_field_tag.yml +37 -0
- data/config/action_view_helpers/actionview/form_tag_helper/select_tag.yml +49 -0
- data/config/action_view_helpers/actionview/form_tag_helper/submit_tag.yml +39 -0
- data/config/action_view_helpers/actionview/form_tag_helper/telephone_field_tag.yml +39 -0
- data/config/action_view_helpers/actionview/form_tag_helper/text_field_tag.yml +37 -0
- data/config/action_view_helpers/actionview/form_tag_helper/textarea_tag.yml +43 -0
- data/config/action_view_helpers/actionview/form_tag_helper/time_field_tag.yml +37 -0
- data/config/action_view_helpers/actionview/form_tag_helper/url_field_tag.yml +37 -0
- data/config/action_view_helpers/actionview/form_tag_helper/utf8_enforcer_tag.yml +16 -0
- data/config/action_view_helpers/actionview/form_tag_helper/week_field_tag.yml +37 -0
- data/config/action_view_helpers/actionview/javascript_helper/escape_javascript.yml +23 -0
- data/config/action_view_helpers/actionview/javascript_helper/javascript_cdata_section.yml +16 -0
- data/config/action_view_helpers/actionview/javascript_helper/javascript_tag.yml +45 -0
- data/config/action_view_helpers/actionview/number_helper/number_to_currency.yml +36 -0
- data/config/action_view_helpers/actionview/number_helper/number_to_human.yml +27 -0
- data/config/action_view_helpers/actionview/number_helper/number_to_human_size.yml +24 -0
- data/config/action_view_helpers/actionview/number_helper/number_to_percentage.yml +24 -0
- data/config/action_view_helpers/actionview/number_helper/number_to_phone.yml +34 -0
- data/config/action_view_helpers/actionview/number_helper/number_with_delimiter.yml +29 -0
- data/config/action_view_helpers/actionview/number_helper/number_with_precision.yml +27 -0
- data/config/action_view_helpers/actionview/output_safety_helper/raw.yml +21 -0
- data/config/action_view_helpers/actionview/output_safety_helper/safe_join.yml +26 -0
- data/config/action_view_helpers/actionview/output_safety_helper/to_sentence.yml +33 -0
- data/config/action_view_helpers/actionview/record_identifier/dom_class.yml +27 -0
- data/config/action_view_helpers/actionview/record_identifier/dom_id.yml +27 -0
- data/config/action_view_helpers/actionview/record_identifier/dom_target.yml +22 -0
- data/config/action_view_helpers/actionview/record_identifier/model_name_from_record_or_class.yml +16 -0
- data/config/action_view_helpers/actionview/rendering_helper/render.yml +34 -0
- data/config/action_view_helpers/actionview/sanitize_helper/sanitize.yml +27 -0
- data/config/action_view_helpers/actionview/sanitize_helper/sanitize_css.yml +21 -0
- data/config/action_view_helpers/actionview/sanitize_helper/sanitizer_vendor.yml +16 -0
- data/config/action_view_helpers/actionview/sanitize_helper/strip_links.yml +21 -0
- data/config/action_view_helpers/actionview/sanitize_helper/strip_tags.yml +21 -0
- data/config/action_view_helpers/actionview/tag_helper/cdata_section.yml +21 -0
- data/config/action_view_helpers/actionview/tag_helper/content_tag.yml +64 -0
- data/config/action_view_helpers/actionview/tag_helper/escape_once.yml +21 -0
- data/config/action_view_helpers/actionview/tag_helper/tag.yml +47 -0
- data/config/action_view_helpers/actionview/tag_helper/token_list.yml +24 -0
- data/config/action_view_helpers/actionview/text_helper/concat.yml +21 -0
- data/config/action_view_helpers/actionview/text_helper/current_cycle.yml +22 -0
- data/config/action_view_helpers/actionview/text_helper/cycle.yml +31 -0
- data/config/action_view_helpers/actionview/text_helper/excerpt.yml +39 -0
- data/config/action_view_helpers/actionview/text_helper/highlight.yml +35 -0
- data/config/action_view_helpers/actionview/text_helper/pluralize.yml +32 -0
- data/config/action_view_helpers/actionview/text_helper/reset_cycle.yml +22 -0
- data/config/action_view_helpers/actionview/text_helper/safe_concat.yml +16 -0
- data/config/action_view_helpers/actionview/text_helper/simple_format.yml +40 -0
- data/config/action_view_helpers/actionview/text_helper/truncate.yml +40 -0
- data/config/action_view_helpers/actionview/text_helper/word_wrap.yml +27 -0
- data/config/action_view_helpers/actionview/translation_helper/debug_missing_translation.yml +16 -0
- data/config/action_view_helpers/actionview/translation_helper/localize.yml +29 -0
- data/config/action_view_helpers/actionview/translation_helper/translate.yml +32 -0
- data/config/action_view_helpers/actionview/url_helper/button_to.yml +55 -0
- data/config/action_view_helpers/actionview/url_helper/button_to_generates_button_tag.yml +16 -0
- data/config/action_view_helpers/actionview/url_helper/current_page?.yml +28 -0
- data/config/action_view_helpers/actionview/url_helper/link_to.yml +76 -0
- data/config/action_view_helpers/actionview/url_helper/link_to_if.yml +42 -0
- data/config/action_view_helpers/actionview/url_helper/link_to_unless.yml +42 -0
- data/config/action_view_helpers/actionview/url_helper/link_to_unless_current.yml +37 -0
- data/config/action_view_helpers/actionview/url_helper/mail_to.yml +56 -0
- data/config/action_view_helpers/actionview/url_helper/phone_to.yml +44 -0
- data/config/action_view_helpers/actionview/url_helper/sms_to.yml +47 -0
- data/config/action_view_helpers/actionview/url_helper/url_for.yml +22 -0
- data/config/action_view_helpers/turbo-rails/drive_helper/turbo_exempts_page_from_cache.yml +16 -0
- data/config/action_view_helpers/turbo-rails/drive_helper/turbo_exempts_page_from_cache_tag.yml +20 -0
- data/config/action_view_helpers/turbo-rails/drive_helper/turbo_exempts_page_from_preview.yml +16 -0
- data/config/action_view_helpers/turbo-rails/drive_helper/turbo_exempts_page_from_preview_tag.yml +20 -0
- data/config/action_view_helpers/turbo-rails/drive_helper/turbo_page_requires_reload.yml +16 -0
- data/config/action_view_helpers/turbo-rails/drive_helper/turbo_page_requires_reload_tag.yml +20 -0
- data/config/action_view_helpers/turbo-rails/drive_helper/turbo_refresh_method_tag.yml +26 -0
- data/config/action_view_helpers/turbo-rails/drive_helper/turbo_refresh_scroll_tag.yml +26 -0
- data/config/action_view_helpers/turbo-rails/drive_helper/turbo_refreshes_with.yml +22 -0
- data/config/action_view_helpers/turbo-rails/frames_helper/turbo_frame_tag.yml +50 -0
- data/config/action_view_helpers/turbo-rails/includes_helper/turbo_include_tags.yml +16 -0
- data/config/action_view_helpers/turbo-rails/streams_action_helper/turbo_stream_action_tag.yml +34 -0
- data/config/action_view_helpers/turbo-rails/streams_action_helper/turbo_stream_refresh_tag.yml +23 -0
- data/config/action_view_helpers/turbo-rails/streams_helper/turbo_stream.yml +16 -0
- data/config/action_view_helpers/turbo-rails/streams_helper/turbo_stream_from.yml +33 -0
- data/config/options.yml +14 -0
- data/config/view_context_methods/actionview/base/annotate_rendered_view_with_filenames.yml +8 -0
- data/config/view_context_methods/actionview/base/assign.yml +8 -0
- data/config/view_context_methods/actionview/base/assigns.yml +8 -0
- data/config/view_context_methods/actionview/base/automatically_disable_submit_tag.yml +8 -0
- data/config/view_context_methods/actionview/base/compiled_method_container.yml +8 -0
- data/config/view_context_methods/actionview/base/config.yml +8 -0
- data/config/view_context_methods/actionview/base/default_form_builder.yml +8 -0
- data/config/view_context_methods/actionview/base/default_formats.yml +8 -0
- data/config/view_context_methods/actionview/base/field_error_proc.yml +8 -0
- data/config/view_context_methods/actionview/base/formats.yml +8 -0
- data/config/view_context_methods/actionview/base/in_rendering_context.yml +8 -0
- data/config/view_context_methods/actionview/base/locale.yml +8 -0
- data/config/view_context_methods/actionview/base/lookup_context.yml +8 -0
- data/config/view_context_methods/actionview/base/output_buffer.yml +8 -0
- data/config/view_context_methods/actionview/base/prefix_partial_path_with_controller_namespace.yml +10 -0
- data/config/view_context_methods/actionview/base/remove_hidden_field_autocomplete.yml +8 -0
- data/config/view_context_methods/actionview/base/streaming_completion_on_exception.yml +8 -0
- data/config/view_context_methods/actionview/base/view_flow.yml +8 -0
- data/config/view_context_methods/actionview/base/view_paths.yml +8 -0
- data/config/view_context_methods/actionview/base/view_renderer.yml +8 -0
- data/config/view_context_methods/actionview/template/local_assigns.yml +8 -0
- data/config/view_context_methods/activemodel/conversion/convert_to_model.yml +8 -0
- data/config/view_context_methods/activesupport/benchmarkable/benchmark.yml +8 -0
- data/ext/herb/extconf.rb +1 -0
- data/ext/herb/extension.c +108 -0
- data/herb.gemspec +2 -1
- data/lib/herb/3.2/herb.so +0 -0
- data/lib/herb/3.3/herb.so +0 -0
- data/lib/herb/3.4/herb.so +0 -0
- data/lib/herb/4.0/herb.so +0 -0
- data/lib/herb/action_view/render_analyzer.rb +1057 -0
- data/lib/herb/ast/erb_render_node.rb +155 -0
- data/lib/herb/bootstrap.rb +0 -1
- data/lib/herb/cli.rb +253 -19
- data/lib/herb/colors.rb +18 -0
- data/lib/herb/configuration.rb +49 -13
- data/lib/herb/defaults.yml +3 -0
- data/lib/herb/dev/runner.rb +445 -0
- data/lib/herb/dev/server.rb +207 -0
- data/lib/herb/dev/server_entry.rb +128 -0
- data/lib/herb/diff_operation.rb +34 -0
- data/lib/herb/diff_result.rb +59 -0
- data/lib/herb/engine/compiler.rb +56 -3
- data/lib/herb/engine/validators/render_validator.rb +92 -0
- data/lib/herb/engine.rb +58 -4
- data/lib/herb/html/util.rb +16 -0
- data/lib/herb/project.rb +1 -6
- data/lib/herb/version.rb +1 -1
- data/lib/herb.rb +41 -5
- data/sig/herb/action_view/render_analyzer.rbs +122 -0
- data/sig/herb/ast/erb_render_node.rbs +29 -0
- data/sig/herb/colors.rbs +12 -0
- data/sig/herb/configuration.rbs +20 -1
- data/sig/herb/dev/runner.rbs +59 -0
- data/sig/herb/dev/server.rbs +50 -0
- data/sig/herb/dev/server_entry.rbs +51 -0
- data/sig/herb/diff_operation.rbs +34 -0
- data/sig/herb/diff_result.rbs +34 -0
- data/sig/herb/engine/compiler.rbs +6 -0
- data/sig/herb/engine/validators/render_validator.rbs +21 -0
- data/sig/herb/engine.rbs +15 -0
- data/sig/herb/html/util.rbs +13 -0
- data/sig/herb.rbs +12 -2
- data/sig/herb_c_extension.rbs +1 -1
- data/sig/vendor/did_you_mean.rbs +6 -0
- data/sig/vendor/parallel.rbs +4 -0
- data/src/analyze/action_view/attribute_extraction_helpers.c +3 -2
- data/src/diff/herb_diff.c +137 -0
- data/src/diff/herb_diff_attributes.c +207 -0
- data/src/diff/herb_diff_children.c +518 -0
- data/src/diff/herb_diff_helpers.c +114 -0
- data/src/diff/herb_diff_nodes.c +707 -0
- data/src/diff/herb_hash.c +42 -0
- data/src/diff/herb_hash_index_map.c +47 -0
- data/src/diff/herb_hash_map.c +104 -0
- data/src/diff/herb_hash_tree.c +680 -0
- data/src/include/diff/herb_diff.h +118 -0
- data/src/include/diff/herb_hash.h +25 -0
- data/src/include/diff/herb_hash_index_map.h +32 -0
- data/src/include/diff/herb_hash_map.h +30 -0
- data/src/include/herb.h +1 -0
- data/src/include/version.h +1 -1
- data/templates/javascript/packages/core/src/config.ts.erb +43 -0
- data/templates/rust/src/ast/nodes.rs.erb +1 -1
- data/templates/rust/src/config.rs.erb +50 -0
- data/templates/src/diff/herb_diff_helpers.c.erb +38 -0
- data/templates/src/diff/herb_diff_nodes.c.erb +224 -0
- data/templates/src/diff/herb_hash_tree.c.erb +147 -0
- data/templates/template.rb +4 -4
- metadata +307 -4
- data/lib/herb/3.0/herb.so +0 -0
- data/lib/herb/3.1/herb.so +0 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: excerpt
|
|
3
|
+
source: "ActionView::Helpers::TextHelper#excerpt"
|
|
4
|
+
gem: actionview
|
|
5
|
+
output: text
|
|
6
|
+
visibility: public
|
|
7
|
+
supported: false
|
|
8
|
+
supports_block: false
|
|
9
|
+
description: |-
|
|
10
|
+
Extracts an excerpt from text that matches the first instance of a phrase.
|
|
11
|
+
signature: "excerpt(text, phrase, options = {})"
|
|
12
|
+
documentation_url: "https://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#method-i-excerpt"
|
|
13
|
+
tag: null
|
|
14
|
+
arguments:
|
|
15
|
+
- name: text
|
|
16
|
+
position: 1
|
|
17
|
+
type: string
|
|
18
|
+
optional: false
|
|
19
|
+
description: "The text to excerpt from."
|
|
20
|
+
- name: phrase
|
|
21
|
+
position: 2
|
|
22
|
+
type: string
|
|
23
|
+
optional: false
|
|
24
|
+
description: "The phrase to center the excerpt around."
|
|
25
|
+
- name: options
|
|
26
|
+
position: 3
|
|
27
|
+
type: hash
|
|
28
|
+
optional: true
|
|
29
|
+
default: "{}"
|
|
30
|
+
description: "Options hash."
|
|
31
|
+
options:
|
|
32
|
+
- name: radius
|
|
33
|
+
type: integer
|
|
34
|
+
description: "Number of characters around the phrase. Defaults to 100."
|
|
35
|
+
- name: omission
|
|
36
|
+
type: string
|
|
37
|
+
description: |-
|
|
38
|
+
Omission string. Defaults to `"..."`.
|
|
39
|
+
special_behaviors: []
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: highlight
|
|
3
|
+
source: "ActionView::Helpers::TextHelper#highlight"
|
|
4
|
+
gem: actionview
|
|
5
|
+
output: html
|
|
6
|
+
visibility: public
|
|
7
|
+
supported: false
|
|
8
|
+
supports_block: true
|
|
9
|
+
description: |-
|
|
10
|
+
Highlights occurrences of phrases in text by inserting a highlight tag around them.
|
|
11
|
+
signature: "highlight(text, phrases, options = {}, &block)"
|
|
12
|
+
documentation_url: "https://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#method-i-highlight"
|
|
13
|
+
tag: null
|
|
14
|
+
arguments:
|
|
15
|
+
- name: text
|
|
16
|
+
position: 1
|
|
17
|
+
type: string
|
|
18
|
+
optional: false
|
|
19
|
+
description: "The text to search."
|
|
20
|
+
- name: phrases
|
|
21
|
+
position: 2
|
|
22
|
+
type: [string, array]
|
|
23
|
+
optional: false
|
|
24
|
+
description: "Phrase(s) to highlight."
|
|
25
|
+
- name: options
|
|
26
|
+
position: 3
|
|
27
|
+
type: hash
|
|
28
|
+
optional: true
|
|
29
|
+
default: "{}"
|
|
30
|
+
description: "Options hash."
|
|
31
|
+
options:
|
|
32
|
+
- name: highlighter
|
|
33
|
+
type: string
|
|
34
|
+
description: "HTML tag to wrap highlights in. Defaults to `<mark>`."
|
|
35
|
+
special_behaviors: []
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pluralize
|
|
3
|
+
source: "ActionView::Helpers::TextHelper#pluralize"
|
|
4
|
+
gem: actionview
|
|
5
|
+
output: text
|
|
6
|
+
visibility: public
|
|
7
|
+
supported: false
|
|
8
|
+
supports_block: false
|
|
9
|
+
description: |-
|
|
10
|
+
Attempts to pluralize the singular word unless count is 1. Returns the count followed by the pluralized word.
|
|
11
|
+
signature: "pluralize(count, singular, plural_arg = nil, plural: plural_arg, locale: I18n.locale)"
|
|
12
|
+
documentation_url: "https://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#method-i-pluralize"
|
|
13
|
+
tag: null
|
|
14
|
+
arguments:
|
|
15
|
+
- name: count
|
|
16
|
+
position: 1
|
|
17
|
+
type: integer
|
|
18
|
+
optional: false
|
|
19
|
+
description: "The count to determine pluralization."
|
|
20
|
+
- name: singular
|
|
21
|
+
position: 2
|
|
22
|
+
type: string
|
|
23
|
+
optional: false
|
|
24
|
+
description: "The singular form of the word."
|
|
25
|
+
options:
|
|
26
|
+
- name: plural
|
|
27
|
+
type: string
|
|
28
|
+
description: "Explicit plural form to use."
|
|
29
|
+
- name: locale
|
|
30
|
+
type: symbol
|
|
31
|
+
description: "Locale for pluralization rules."
|
|
32
|
+
special_behaviors: []
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: reset_cycle
|
|
3
|
+
source: "ActionView::Helpers::TextHelper#reset_cycle"
|
|
4
|
+
gem: actionview
|
|
5
|
+
output: void
|
|
6
|
+
visibility: public
|
|
7
|
+
supported: false
|
|
8
|
+
supports_block: false
|
|
9
|
+
description: |-
|
|
10
|
+
Resets a cycle so that it starts from the first element the next time it is called. Pass in `name` to reset a named cycle.
|
|
11
|
+
signature: "reset_cycle(name = \"default\")"
|
|
12
|
+
documentation_url: "https://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#method-i-reset_cycle"
|
|
13
|
+
tag: null
|
|
14
|
+
arguments:
|
|
15
|
+
- name: name
|
|
16
|
+
position: 1
|
|
17
|
+
type: string
|
|
18
|
+
optional: true
|
|
19
|
+
default: "\"default\""
|
|
20
|
+
description: "Name of the cycle to reset."
|
|
21
|
+
options: []
|
|
22
|
+
special_behaviors: []
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: safe_concat
|
|
3
|
+
source: "ActionView::Helpers::TextHelper#safe_concat"
|
|
4
|
+
gem: actionview
|
|
5
|
+
output: void
|
|
6
|
+
visibility: internal
|
|
7
|
+
supported: false
|
|
8
|
+
supports_block: false
|
|
9
|
+
description: |-
|
|
10
|
+
Concatenates a string to the output buffer without HTML escaping. The string must already be `html_safe`.
|
|
11
|
+
signature: "safe_concat(string)"
|
|
12
|
+
documentation_url: "https://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#method-i-safe_concat"
|
|
13
|
+
tag: null
|
|
14
|
+
arguments: []
|
|
15
|
+
options: []
|
|
16
|
+
special_behaviors: []
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: simple_format
|
|
3
|
+
source: "ActionView::Helpers::TextHelper#simple_format"
|
|
4
|
+
gem: actionview
|
|
5
|
+
output: html
|
|
6
|
+
visibility: public
|
|
7
|
+
supported: false
|
|
8
|
+
supports_block: false
|
|
9
|
+
description: |-
|
|
10
|
+
Converts text to HTML using simple formatting rules. Returns text wrapped in paragraph tags with line breaks converted to `<br>` tags.
|
|
11
|
+
signature: "simple_format(text, html_options = {}, options = {})"
|
|
12
|
+
documentation_url: "https://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#method-i-simple_format"
|
|
13
|
+
tag: null
|
|
14
|
+
arguments:
|
|
15
|
+
- name: text
|
|
16
|
+
position: 1
|
|
17
|
+
type: string
|
|
18
|
+
optional: false
|
|
19
|
+
description: "The text to format."
|
|
20
|
+
- name: html_options
|
|
21
|
+
position: 2
|
|
22
|
+
type: hash
|
|
23
|
+
optional: true
|
|
24
|
+
default: "{}"
|
|
25
|
+
description: "HTML attributes for the wrapper paragraph tags."
|
|
26
|
+
- name: options
|
|
27
|
+
position: 3
|
|
28
|
+
type: hash
|
|
29
|
+
optional: true
|
|
30
|
+
default: "{}"
|
|
31
|
+
description: "Options hash. Supports `:sanitize` and `:wrapper_tag`."
|
|
32
|
+
options:
|
|
33
|
+
- name: sanitize
|
|
34
|
+
type: boolean
|
|
35
|
+
description: "Whether to sanitize the text. Defaults to `true`."
|
|
36
|
+
- name: wrapper_tag
|
|
37
|
+
type: string
|
|
38
|
+
description: |-
|
|
39
|
+
HTML tag to wrap paragraphs in. Defaults to `"p"`.
|
|
40
|
+
special_behaviors: []
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: truncate
|
|
3
|
+
source: "ActionView::Helpers::TextHelper#truncate"
|
|
4
|
+
gem: actionview
|
|
5
|
+
output: text
|
|
6
|
+
visibility: public
|
|
7
|
+
supported: false
|
|
8
|
+
supports_block: true
|
|
9
|
+
description: |-
|
|
10
|
+
Truncates text to a specified length and appends an omission string.
|
|
11
|
+
signature: "truncate(text, options = {}, &block)"
|
|
12
|
+
documentation_url: "https://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#method-i-truncate"
|
|
13
|
+
tag: null
|
|
14
|
+
arguments:
|
|
15
|
+
- name: text
|
|
16
|
+
position: 1
|
|
17
|
+
type: string
|
|
18
|
+
optional: false
|
|
19
|
+
description: "The text to truncate."
|
|
20
|
+
- name: options
|
|
21
|
+
position: 2
|
|
22
|
+
type: hash
|
|
23
|
+
optional: true
|
|
24
|
+
default: "{}"
|
|
25
|
+
description: "Options hash."
|
|
26
|
+
options:
|
|
27
|
+
- name: length
|
|
28
|
+
type: integer
|
|
29
|
+
description: "Maximum length. Defaults to 30."
|
|
30
|
+
- name: omission
|
|
31
|
+
type: string
|
|
32
|
+
description: |-
|
|
33
|
+
Omission string. Defaults to `"..."`.
|
|
34
|
+
- name: separator
|
|
35
|
+
type: string
|
|
36
|
+
description: "Truncate at a natural break near the length limit."
|
|
37
|
+
- name: escape
|
|
38
|
+
type: boolean
|
|
39
|
+
description: "Whether to HTML-escape the result. Defaults to `true`."
|
|
40
|
+
special_behaviors: []
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: word_wrap
|
|
3
|
+
source: "ActionView::Helpers::TextHelper#word_wrap"
|
|
4
|
+
gem: actionview
|
|
5
|
+
output: text
|
|
6
|
+
visibility: public
|
|
7
|
+
supported: false
|
|
8
|
+
supports_block: false
|
|
9
|
+
description: |-
|
|
10
|
+
Wraps text into lines no longer than the specified `line_width`.
|
|
11
|
+
signature: "word_wrap(text, line_width: 80, break_sequence: \" \")"
|
|
12
|
+
documentation_url: "https://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#method-i-word_wrap"
|
|
13
|
+
tag: null
|
|
14
|
+
arguments:
|
|
15
|
+
- name: text
|
|
16
|
+
position: 1
|
|
17
|
+
type: string
|
|
18
|
+
optional: false
|
|
19
|
+
description: "The text to wrap."
|
|
20
|
+
options:
|
|
21
|
+
- name: line_width
|
|
22
|
+
type: integer
|
|
23
|
+
description: "Maximum line width. Defaults to 80."
|
|
24
|
+
- name: break_sequence
|
|
25
|
+
type: string
|
|
26
|
+
description: "Line break sequence. Defaults to newline."
|
|
27
|
+
special_behaviors: []
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: debug_missing_translation
|
|
3
|
+
source: "ActionView::Helpers::TranslationHelper#debug_missing_translation"
|
|
4
|
+
gem: actionview
|
|
5
|
+
output: text
|
|
6
|
+
visibility: internal
|
|
7
|
+
supported: false
|
|
8
|
+
supports_block: false
|
|
9
|
+
description: |-
|
|
10
|
+
Returns whether missing translations show debug markup instead of raising.
|
|
11
|
+
signature: "debug_missing_translation"
|
|
12
|
+
documentation_url: "https://api.rubyonrails.org/classes/ActionView/Helpers/TranslationHelper.html"
|
|
13
|
+
tag: null
|
|
14
|
+
arguments: []
|
|
15
|
+
options: []
|
|
16
|
+
special_behaviors: []
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: localize
|
|
3
|
+
source: "ActionView::Helpers::TranslationHelper#localize"
|
|
4
|
+
gem: actionview
|
|
5
|
+
output: text
|
|
6
|
+
visibility: public
|
|
7
|
+
supported: false
|
|
8
|
+
supports_block: false
|
|
9
|
+
description: |-
|
|
10
|
+
Delegates to `I18n.localize` with no additional functionality. Also available as `l()`.
|
|
11
|
+
signature: "localize(object, **options)"
|
|
12
|
+
documentation_url: "https://api.rubyonrails.org/classes/ActionView/Helpers/TranslationHelper.html#method-i-localize"
|
|
13
|
+
tag: null
|
|
14
|
+
arguments:
|
|
15
|
+
- name: object
|
|
16
|
+
position: 1
|
|
17
|
+
type: object
|
|
18
|
+
optional: false
|
|
19
|
+
description: "Date, Time, or Number to localize."
|
|
20
|
+
options:
|
|
21
|
+
- name: format
|
|
22
|
+
type: symbol
|
|
23
|
+
description: "Format for the localized output."
|
|
24
|
+
- name: locale
|
|
25
|
+
type: symbol
|
|
26
|
+
description: "Locale to use."
|
|
27
|
+
special_behaviors: []
|
|
28
|
+
aliases:
|
|
29
|
+
- l
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: translate
|
|
3
|
+
source: "ActionView::Helpers::TranslationHelper#translate"
|
|
4
|
+
gem: actionview
|
|
5
|
+
output: text
|
|
6
|
+
visibility: public
|
|
7
|
+
supported: false
|
|
8
|
+
supports_block: false
|
|
9
|
+
description: |-
|
|
10
|
+
Delegates to `I18n#translate` but also performs key scoping relative to the current view template. Also available as `t()`.
|
|
11
|
+
signature: "translate(key, **options)"
|
|
12
|
+
documentation_url: "https://api.rubyonrails.org/classes/ActionView/Helpers/TranslationHelper.html#method-i-translate"
|
|
13
|
+
tag: null
|
|
14
|
+
arguments:
|
|
15
|
+
- name: key
|
|
16
|
+
position: 1
|
|
17
|
+
type: [string, symbol]
|
|
18
|
+
optional: false
|
|
19
|
+
description: "Translation key."
|
|
20
|
+
options:
|
|
21
|
+
- name: default
|
|
22
|
+
type: [string, array]
|
|
23
|
+
description: "Default value if key is missing."
|
|
24
|
+
- name: scope
|
|
25
|
+
type: [string, array]
|
|
26
|
+
description: "Scope for the translation key."
|
|
27
|
+
- name: count
|
|
28
|
+
type: integer
|
|
29
|
+
description: "Count for pluralization."
|
|
30
|
+
special_behaviors: []
|
|
31
|
+
aliases:
|
|
32
|
+
- t
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: button_to
|
|
3
|
+
source: "ActionView::Helpers::UrlHelper#button_to"
|
|
4
|
+
gem: actionview
|
|
5
|
+
output: html
|
|
6
|
+
visibility: public
|
|
7
|
+
supported: false
|
|
8
|
+
supports_block: true
|
|
9
|
+
description: |-
|
|
10
|
+
Generates a form containing a single button that submits to the URL created by the set of options. This is the safest method to ensure links that cause changes to your data are not triggered by search bots or accelerators.
|
|
11
|
+
signature: "button_to(name = nil, options = nil, html_options = nil, &block)"
|
|
12
|
+
documentation_url: "https://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#method-i-button_to"
|
|
13
|
+
tag:
|
|
14
|
+
name: form
|
|
15
|
+
is_void: false
|
|
16
|
+
preferred: false
|
|
17
|
+
detect_style: call_name
|
|
18
|
+
arguments:
|
|
19
|
+
- name: name
|
|
20
|
+
position: 1
|
|
21
|
+
type: string
|
|
22
|
+
optional: true
|
|
23
|
+
default: "nil"
|
|
24
|
+
description: "Button label text."
|
|
25
|
+
- name: options
|
|
26
|
+
position: 2
|
|
27
|
+
type: [string, hash]
|
|
28
|
+
optional: true
|
|
29
|
+
default: "nil"
|
|
30
|
+
description: "URL string or `url_for` options hash."
|
|
31
|
+
- name: html_options
|
|
32
|
+
position: 3
|
|
33
|
+
type: hash
|
|
34
|
+
optional: true
|
|
35
|
+
default: "nil"
|
|
36
|
+
description: "HTML attributes hash."
|
|
37
|
+
options:
|
|
38
|
+
- name: method
|
|
39
|
+
type: symbol
|
|
40
|
+
description: "HTTP verb. Supported verbs are `:post`, `:get`, `:delete`, `:patch`, and `:put`. Defaults to `:post`."
|
|
41
|
+
- name: disabled
|
|
42
|
+
type: boolean
|
|
43
|
+
description: "If set to `true`, generates a disabled button."
|
|
44
|
+
- name: form_class
|
|
45
|
+
type: string
|
|
46
|
+
description: |-
|
|
47
|
+
CSS class for the form element. Defaults to `"button_to"`.
|
|
48
|
+
- name: params
|
|
49
|
+
type: hash
|
|
50
|
+
description: "Hash of parameters to be rendered as hidden fields within the form."
|
|
51
|
+
- name: data
|
|
52
|
+
type: hash
|
|
53
|
+
maps_to: data-*
|
|
54
|
+
description: "Hash of `data-*` attributes."
|
|
55
|
+
special_behaviors: []
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: button_to_generates_button_tag
|
|
3
|
+
source: "ActionView::Helpers::UrlHelper#button_to_generates_button_tag"
|
|
4
|
+
gem: actionview
|
|
5
|
+
output: boolean
|
|
6
|
+
visibility: internal
|
|
7
|
+
supported: false
|
|
8
|
+
supports_block: false
|
|
9
|
+
description: |-
|
|
10
|
+
Returns whether `button_to` generates a `<button>` element instead of an `<input type="submit">`.
|
|
11
|
+
signature: "button_to_generates_button_tag"
|
|
12
|
+
documentation_url: "https://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html"
|
|
13
|
+
tag: null
|
|
14
|
+
arguments: []
|
|
15
|
+
options: []
|
|
16
|
+
special_behaviors: []
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: current_page?
|
|
3
|
+
source: "ActionView::Helpers::UrlHelper#current_page?"
|
|
4
|
+
gem: actionview
|
|
5
|
+
output: boolean
|
|
6
|
+
visibility: public
|
|
7
|
+
supported: false
|
|
8
|
+
supports_block: false
|
|
9
|
+
description: |-
|
|
10
|
+
Returns `true` if the current request URI matches the given URL. Useful for highlighting active navigation.
|
|
11
|
+
signature: "current_page?(options = nil, check_parameters: false, method: :get)"
|
|
12
|
+
documentation_url: "https://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#method-i-current_page-3F"
|
|
13
|
+
tag: null
|
|
14
|
+
arguments:
|
|
15
|
+
- name: options
|
|
16
|
+
position: 1
|
|
17
|
+
type: [string, hash]
|
|
18
|
+
optional: true
|
|
19
|
+
default: "nil"
|
|
20
|
+
description: "URL string or `url_for` options hash to compare against."
|
|
21
|
+
options:
|
|
22
|
+
- name: check_parameters
|
|
23
|
+
type: boolean
|
|
24
|
+
description: "Whether to include query parameters in the comparison."
|
|
25
|
+
- name: method
|
|
26
|
+
type: symbol
|
|
27
|
+
description: "HTTP method to check. Defaults to `:get`."
|
|
28
|
+
special_behaviors: []
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: link_to
|
|
3
|
+
source: "ActionView::Helpers::UrlHelper#link_to"
|
|
4
|
+
gem: actionview
|
|
5
|
+
output: html
|
|
6
|
+
visibility: public
|
|
7
|
+
supported: true
|
|
8
|
+
supports_block: true
|
|
9
|
+
description: |-
|
|
10
|
+
Creates an anchor element of the given name using a URL created by the set of options. It is also possible to pass a String instead of an options hash, which generates an anchor element that uses the value of the String as the href for the link. If `nil` is passed as the name the value of the link itself will become the name.
|
|
11
|
+
signature: "link_to(name = nil, options = nil, html_options = nil, &block)"
|
|
12
|
+
documentation_url: "https://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#method-i-link_to"
|
|
13
|
+
tag:
|
|
14
|
+
name: a
|
|
15
|
+
is_void: false
|
|
16
|
+
preferred: true
|
|
17
|
+
detect_style: call_name
|
|
18
|
+
implicit_attribute:
|
|
19
|
+
name: href
|
|
20
|
+
source: second_arg
|
|
21
|
+
source_with_block: first_arg
|
|
22
|
+
wrapper: url_for
|
|
23
|
+
skip_wrapping_for:
|
|
24
|
+
- string
|
|
25
|
+
- route_helper
|
|
26
|
+
content:
|
|
27
|
+
source: block_or_arg
|
|
28
|
+
arg_position: 1
|
|
29
|
+
to_s_suffix_when_single: true
|
|
30
|
+
attributes_arg: 3
|
|
31
|
+
attributes_arg_with_block: 2
|
|
32
|
+
transform_style: custom
|
|
33
|
+
custom_transform: link_to
|
|
34
|
+
arguments:
|
|
35
|
+
- name: name
|
|
36
|
+
position: 1
|
|
37
|
+
type: string
|
|
38
|
+
optional: true
|
|
39
|
+
default: "nil"
|
|
40
|
+
description: "Link text. When a block is given, this becomes the URL instead."
|
|
41
|
+
- name: options
|
|
42
|
+
position: 2
|
|
43
|
+
type: [string, hash]
|
|
44
|
+
optional: true
|
|
45
|
+
default: "nil"
|
|
46
|
+
description: "URL string, route helper, or `url_for` options hash."
|
|
47
|
+
- name: html_options
|
|
48
|
+
position: 3
|
|
49
|
+
type: hash
|
|
50
|
+
optional: true
|
|
51
|
+
default: "nil"
|
|
52
|
+
description: "HTML attributes hash."
|
|
53
|
+
options:
|
|
54
|
+
- name: method
|
|
55
|
+
type: symbol
|
|
56
|
+
maps_to: data-method
|
|
57
|
+
description: "HTTP verb for the link (e.g. `:delete`, `:patch`). Rendered as a `data-method` attribute."
|
|
58
|
+
- name: remote
|
|
59
|
+
type: boolean
|
|
60
|
+
maps_to: data-remote
|
|
61
|
+
description: "If `true`, link submits via Ajax. Rendered as a `data-remote` attribute."
|
|
62
|
+
- name: data
|
|
63
|
+
type: hash
|
|
64
|
+
maps_to: data-*
|
|
65
|
+
description: "Hash of `data-*` attributes."
|
|
66
|
+
- name: class
|
|
67
|
+
type: string
|
|
68
|
+
description: "CSS class name(s)."
|
|
69
|
+
- name: id
|
|
70
|
+
type: string
|
|
71
|
+
description: "HTML id attribute."
|
|
72
|
+
special_behaviors:
|
|
73
|
+
- type: implied_attribute
|
|
74
|
+
when_attribute: data-method
|
|
75
|
+
add_attribute: rel
|
|
76
|
+
add_value: nofollow
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: link_to_if
|
|
3
|
+
source: "ActionView::Helpers::UrlHelper#link_to_if"
|
|
4
|
+
gem: actionview
|
|
5
|
+
output: html
|
|
6
|
+
visibility: public
|
|
7
|
+
supported: false
|
|
8
|
+
supports_block: true
|
|
9
|
+
description: |-
|
|
10
|
+
Creates a link tag of the given name using a URL created by the set of options if condition is true, otherwise only the name is returned. To specialize the default behavior, you can pass a block.
|
|
11
|
+
signature: "link_to_if(condition, name, options = {}, html_options = {}, &block)"
|
|
12
|
+
documentation_url: "https://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#method-i-link_to_if"
|
|
13
|
+
tag:
|
|
14
|
+
name: a
|
|
15
|
+
is_void: false
|
|
16
|
+
preferred: false
|
|
17
|
+
detect_style: call_name
|
|
18
|
+
arguments:
|
|
19
|
+
- name: condition
|
|
20
|
+
position: 1
|
|
21
|
+
type: boolean
|
|
22
|
+
optional: false
|
|
23
|
+
description: "Condition to evaluate. Link is rendered only if truthy."
|
|
24
|
+
- name: name
|
|
25
|
+
position: 2
|
|
26
|
+
type: string
|
|
27
|
+
optional: false
|
|
28
|
+
description: "Link text."
|
|
29
|
+
- name: options
|
|
30
|
+
position: 3
|
|
31
|
+
type: [string, hash]
|
|
32
|
+
optional: true
|
|
33
|
+
default: "{}"
|
|
34
|
+
description: "URL string or `url_for` options hash."
|
|
35
|
+
- name: html_options
|
|
36
|
+
position: 4
|
|
37
|
+
type: hash
|
|
38
|
+
optional: true
|
|
39
|
+
default: "{}"
|
|
40
|
+
description: "HTML attributes hash."
|
|
41
|
+
options: []
|
|
42
|
+
special_behaviors: []
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: link_to_unless
|
|
3
|
+
source: "ActionView::Helpers::UrlHelper#link_to_unless"
|
|
4
|
+
gem: actionview
|
|
5
|
+
output: html
|
|
6
|
+
visibility: public
|
|
7
|
+
supported: false
|
|
8
|
+
supports_block: true
|
|
9
|
+
description: |-
|
|
10
|
+
Creates a link tag of the given name using a URL created by the set of options unless condition is true, in which case only the name is returned. To specialize the default behavior, you can pass a block.
|
|
11
|
+
signature: "link_to_unless(condition, name, options = {}, html_options = {}, &block)"
|
|
12
|
+
documentation_url: "https://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#method-i-link_to_unless"
|
|
13
|
+
tag:
|
|
14
|
+
name: a
|
|
15
|
+
is_void: false
|
|
16
|
+
preferred: false
|
|
17
|
+
detect_style: call_name
|
|
18
|
+
arguments:
|
|
19
|
+
- name: condition
|
|
20
|
+
position: 1
|
|
21
|
+
type: boolean
|
|
22
|
+
optional: false
|
|
23
|
+
description: "Condition to evaluate. Link is rendered only if falsy."
|
|
24
|
+
- name: name
|
|
25
|
+
position: 2
|
|
26
|
+
type: string
|
|
27
|
+
optional: false
|
|
28
|
+
description: "Link text."
|
|
29
|
+
- name: options
|
|
30
|
+
position: 3
|
|
31
|
+
type: [string, hash]
|
|
32
|
+
optional: true
|
|
33
|
+
default: "{}"
|
|
34
|
+
description: "URL string or `url_for` options hash."
|
|
35
|
+
- name: html_options
|
|
36
|
+
position: 4
|
|
37
|
+
type: hash
|
|
38
|
+
optional: true
|
|
39
|
+
default: "{}"
|
|
40
|
+
description: "HTML attributes hash."
|
|
41
|
+
options: []
|
|
42
|
+
special_behaviors: []
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: link_to_unless_current
|
|
3
|
+
source: "ActionView::Helpers::UrlHelper#link_to_unless_current"
|
|
4
|
+
gem: actionview
|
|
5
|
+
output: html
|
|
6
|
+
visibility: public
|
|
7
|
+
supported: false
|
|
8
|
+
supports_block: true
|
|
9
|
+
description: |-
|
|
10
|
+
Creates a link tag of the given name using a URL created by the set of options unless the current request URI is the same as the link's, in which case only the name is returned or the given block is yielded.
|
|
11
|
+
signature: "link_to_unless_current(name, options = {}, html_options = {}, &block)"
|
|
12
|
+
documentation_url: "https://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#method-i-link_to_unless_current"
|
|
13
|
+
tag:
|
|
14
|
+
name: a
|
|
15
|
+
is_void: false
|
|
16
|
+
preferred: false
|
|
17
|
+
detect_style: call_name
|
|
18
|
+
arguments:
|
|
19
|
+
- name: name
|
|
20
|
+
position: 1
|
|
21
|
+
type: string
|
|
22
|
+
optional: false
|
|
23
|
+
description: "Link text."
|
|
24
|
+
- name: options
|
|
25
|
+
position: 2
|
|
26
|
+
type: [string, hash]
|
|
27
|
+
optional: true
|
|
28
|
+
default: "{}"
|
|
29
|
+
description: "URL string or `url_for` options hash."
|
|
30
|
+
- name: html_options
|
|
31
|
+
position: 3
|
|
32
|
+
type: hash
|
|
33
|
+
optional: true
|
|
34
|
+
default: "{}"
|
|
35
|
+
description: "HTML attributes hash."
|
|
36
|
+
options: []
|
|
37
|
+
special_behaviors: []
|