has_helpers 5.0.2
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 +7 -0
- data/.gitignore +38 -0
- data/.rspec +3 -0
- data/.rubocop.yml +10 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.tekton/Chart.yaml +14 -0
- data/.tekton/templates/pipelinerun.yaml +44 -0
- data/.tekton/values-main.yaml +53 -0
- data/.tekton/values-pr.yaml +40 -0
- data/.tekton/values.yaml +17 -0
- data/.tool-versions +1 -0
- data/CHANGELOG.md +204 -0
- data/Gemfile +25 -0
- data/README.md +76 -0
- data/Rakefile +46 -0
- data/app/api/has_helpers/rack_api.rb +116 -0
- data/app/api/has_helpers/search_api.rb +173 -0
- data/app/assets/stylesheets/has_helpers/base.scss +5 -0
- data/app/assets/stylesheets/has_helpers/color_palette.scss +33 -0
- data/app/assets/stylesheets/has_helpers/color_palettes/default.scss +11 -0
- data/app/assets/stylesheets/has_helpers/components/dataset.scss +43 -0
- data/app/assets/stylesheets/has_helpers/mixins.scss +149 -0
- data/app/commands/has_helpers/cards/available_cards_command.rb +98 -0
- data/app/commands/has_helpers/cards/card_data_command.rb +1062 -0
- data/app/commands/reports/base_options.rb +79 -0
- data/app/commands/reports/belongs_to_options.rb +178 -0
- data/app/commands/reports/constant_options.rb +66 -0
- data/app/commands/reports/external_graphql_client.rb +116 -0
- data/app/commands/reports/fill_dates.rb +65 -0
- data/app/commands/reports/filter_option_generator.rb +186 -0
- data/app/commands/reports/generator.rb +310 -0
- data/app/commands/reports/has_many_options.rb +105 -0
- data/app/commands/reports/importer.rb +132 -0
- data/app/commands/reports/nested_attribute_options.rb +134 -0
- data/app/constants/color.rb +9 -0
- data/app/constants/file_format.rb +12 -0
- data/app/constants/has_helpers/cards/card_custom_field.rb +12 -0
- data/app/constants/has_helpers/cards/card_data_type.rb +11 -0
- data/app/constants/has_helpers/cards/card_identifier.rb +10 -0
- data/app/constants/has_helpers/cards/card_layout_type.rb +11 -0
- data/app/constants/has_helpers/cards/card_variant_type.rb +12 -0
- data/app/constants/has_helpers/link_type.rb +10 -0
- data/app/constants/has_helpers/notification_alert_status.rb +14 -0
- data/app/constants/has_helpers/notification_alert_type.rb +10 -0
- data/app/constants/has_helpers/operation.rb +11 -0
- data/app/constants/has_helpers/resource_type.rb +25 -0
- data/app/constants/icon.rb +22 -0
- data/app/constants/logical_operator.rb +7 -0
- data/app/constants/option.rb +10 -0
- data/app/constants/time_zone.rb +12 -0
- data/app/constructors/has_helpers/base_constructor.rb +62 -0
- data/app/controllers/concerns/has_helpers/service_trust/authenticated_as_service.rb +51 -0
- data/app/controllers/concerns/has_helpers/service_trust/graphql_authentication.rb +57 -0
- data/app/controllers/has_helpers/controller.rb +63 -0
- data/app/controllers/has_helpers/factory_controller.rb +261 -0
- data/app/controllers/has_helpers/graphql_extensions.rb +83 -0
- data/app/controllers/has_helpers/health_check_controller.rb +46 -0
- data/app/controllers/has_helpers/search_extensions.rb +92 -0
- data/app/controllers/has_helpers/service_trust/jwks_controller.rb +20 -0
- data/app/controllers/has_helpers/xlsx_export.rb +115 -0
- data/app/controllers/search_extensions.rb +5 -0
- data/app/graphql/has_helpers/base_type.rb +13 -0
- data/app/graphql/has_helpers/base_union.rb +9 -0
- data/app/graphql/has_helpers/enums/resource_enum.rb +24 -0
- data/app/graphql/has_helpers/middleware/application_access.rb +26 -0
- data/app/graphql/has_helpers/mutations/base.rb +27 -0
- data/app/graphql/has_helpers/mutations/external_data_sync.rb +72 -0
- data/app/graphql/has_helpers/mutations/mark_individual_alert_read.rb +31 -0
- data/app/graphql/has_helpers/mutations/mark_notifications_read.rb +50 -0
- data/app/graphql/has_helpers/mutations/toggle_favorite.rb +39 -0
- data/app/graphql/has_helpers/resolvers/app_nav.rb +107 -0
- data/app/graphql/has_helpers/resolvers/base.rb +27 -0
- data/app/graphql/has_helpers/resolvers/cards/available_cards.rb +31 -0
- data/app/graphql/has_helpers/resolvers/cards/card_data.rb +74 -0
- data/app/graphql/has_helpers/resolvers/cards/hover_card_data.rb +153 -0
- data/app/graphql/has_helpers/resolvers/favorite.rb +62 -0
- data/app/graphql/has_helpers/resolvers/internal/roles.rb +54 -0
- data/app/graphql/has_helpers/resolvers/is_favorite.rb +24 -0
- data/app/graphql/has_helpers/resolvers/list_notification_alerts.rb +47 -0
- data/app/graphql/has_helpers/resolvers/lookup.rb +36 -0
- data/app/graphql/has_helpers/resolvers/recently_viewed.rb +54 -0
- data/app/graphql/has_helpers/resolvers/resource_tab.rb +22 -0
- data/app/graphql/has_helpers/resolvers/search.rb +18 -0
- data/app/graphql/has_helpers/resolvers/search_query.rb +38 -0
- data/app/graphql/has_helpers/resolvers/user_application_order.rb +35 -0
- data/app/graphql/has_helpers/resources/organization_option_resource.rb +28 -0
- data/app/graphql/has_helpers/resources/organization_resource_resource.rb +18 -0
- data/app/graphql/has_helpers/resources/resource_group_resource.rb +10 -0
- data/app/graphql/has_helpers/resources/resource_resource.rb +21 -0
- data/app/graphql/has_helpers/resources/user_role_resource.rb +9 -0
- data/app/graphql/has_helpers/types/application_order_type.rb +18 -0
- data/app/graphql/has_helpers/types/cards/available_card_type.rb +20 -0
- data/app/graphql/has_helpers/types/cards/card_badge_type.rb +12 -0
- data/app/graphql/has_helpers/types/cards/card_config_type.rb +18 -0
- data/app/graphql/has_helpers/types/cards/card_data_type.rb +13 -0
- data/app/graphql/has_helpers/types/cards/card_entry_field_type.rb +21 -0
- data/app/graphql/has_helpers/types/cards/card_entry_type.rb +12 -0
- data/app/graphql/has_helpers/types/cards/card_field_config_type.rb +17 -0
- data/app/graphql/has_helpers/types/layouts/app_nav/link_section_type.rb +17 -0
- data/app/graphql/has_helpers/types/layouts/app_nav/link_type.rb +20 -0
- data/app/graphql/has_helpers/types/layouts/app_nav/sub_link_type.rb +17 -0
- data/app/graphql/has_helpers/types/layouts/app_nav/type.rb +16 -0
- data/app/graphql/has_helpers/types/lookup.rb +16 -0
- data/app/graphql/has_helpers/types/resource_tab/type.rb +15 -0
- data/app/graphql/has_helpers/types/role_type.rb +13 -0
- data/app/graphql/has_helpers/types/search/detail_badge_type.rb +15 -0
- data/app/graphql/has_helpers/types/search/detail_item_type.rb +14 -0
- data/app/graphql/has_helpers/types/search/detail_type.rb +16 -0
- data/app/graphql/has_helpers/types/search/filter_operation_enum.rb +19 -0
- data/app/graphql/has_helpers/types/search/input_type.rb +16 -0
- data/app/graphql/has_helpers/types/search/result_type.rb +72 -0
- data/app/graphql/has_helpers/types/search/search_filter_input_type.rb +17 -0
- data/app/graphql/has_helpers/types/search/type.rb +17 -0
- data/app/importers/has_helpers/cards/importer.rb +1223 -0
- data/app/lib/has_helpers/application_helper.rb +21 -0
- data/app/lib/has_helpers/dn/processor.rb +55 -0
- data/app/lib/has_helpers/dn/refresh.rb +13 -0
- data/app/lib/has_helpers/dn/utils/backfill_utils.rb +80 -0
- data/app/lib/has_helpers/dn/utils/query_utils.rb +216 -0
- data/app/lib/has_helpers/feature.rb +88 -0
- data/app/lib/has_helpers/hq_exception.rb +18 -0
- data/app/lib/has_helpers/index.rb +890 -0
- data/app/lib/has_helpers/organization_merge.rb +128 -0
- data/app/lib/has_helpers/query/elasticsearch.rb +20 -0
- data/app/lib/has_helpers/query/provider.rb +105 -0
- data/app/lib/has_helpers/query/sql.rb +133 -0
- data/app/lib/has_helpers/query.rb +14 -0
- data/app/lib/has_helpers/search/elasticsearch.rb +41 -0
- data/app/lib/has_helpers/search/elasticsearch_shared.rb +70 -0
- data/app/lib/has_helpers/search/provider.rb +149 -0
- data/app/lib/has_helpers/search/search_utils.rb +74 -0
- data/app/lib/has_helpers/search/sql_search.rb +219 -0
- data/app/lib/has_helpers/search.rb +46 -0
- data/app/models/ability.rb +233 -0
- data/app/models/has_helpers/application.rb +47 -0
- data/app/models/has_helpers/application_record.rb +7 -0
- data/app/models/has_helpers/cards/card_builder/base.rb +74 -0
- data/app/models/has_helpers/cards/card_builder/card_definition_builder.rb +486 -0
- data/app/models/has_helpers/cards/card_builder/definition_context.rb +82 -0
- data/app/models/has_helpers/cards/card_builder/field_builder.rb +142 -0
- data/app/models/has_helpers/cards/card_builder/resource_builder.rb +34 -0
- data/app/models/has_helpers/cards/card_definition.rb +41 -0
- data/app/models/has_helpers/cards/card_definition_resource.rb +19 -0
- data/app/models/has_helpers/cards/card_field.rb +39 -0
- data/app/models/has_helpers/cards/registry.rb +115 -0
- data/app/models/has_helpers/cards/role_card_field.rb +28 -0
- data/app/models/has_helpers/cards/role_resource_card.rb +41 -0
- data/app/models/has_helpers/dn_utils.rb +61 -0
- data/app/models/has_helpers/favorite.rb +20 -0
- data/app/models/has_helpers/master_record.rb +18 -0
- data/app/models/has_helpers/notification_alert.rb +52 -0
- data/app/models/has_helpers/organization.rb +16 -0
- data/app/models/has_helpers/organization_link.rb +92 -0
- data/app/models/has_helpers/organization_methods.rb +62 -0
- data/app/models/has_helpers/organization_option.rb +31 -0
- data/app/models/has_helpers/organization_resource.rb +45 -0
- data/app/models/has_helpers/pending_db_operation.rb +31 -0
- data/app/models/has_helpers/recently_viewed.rb +34 -0
- data/app/models/has_helpers/reindex_queue.rb +43 -0
- data/app/models/has_helpers/resource.rb +38 -0
- data/app/models/has_helpers/resource_group.rb +15 -0
- data/app/models/has_helpers/restriction.rb +15 -0
- data/app/models/has_helpers/restriction_operation.rb +13 -0
- data/app/models/has_helpers/role.rb +20 -0
- data/app/models/has_helpers/service_trust/audit_log.rb +20 -0
- data/app/models/has_helpers/service_trust/key.rb +56 -0
- data/app/models/has_helpers/stat.rb +13 -0
- data/app/models/has_helpers/user.rb +18 -0
- data/app/models/has_helpers/user_methods.rb +184 -0
- data/app/models/has_helpers/user_organization.rb +33 -0
- data/app/models/has_helpers/user_role.rb +27 -0
- data/app/models/has_helpers/user_session.rb +19 -0
- data/app/presenters/has_helpers/barcode_base_presenter.rb +113 -0
- data/app/presenters/has_helpers/base_presenter.rb +100 -0
- data/app/presenters/has_helpers/cacheable_item.rb +28 -0
- data/app/presenters/has_helpers/item_presenter.rb +52 -0
- data/app/presenters/has_helpers/items_presenter.rb +33 -0
- data/app/presenters/has_helpers/resource/action_presenter.rb +8 -0
- data/app/presenters/has_helpers/resource/cell_presenter.rb +52 -0
- data/app/presenters/has_helpers/resource/email_presenter.rb +34 -0
- data/app/presenters/has_helpers/resource/form_presenter.rb +76 -0
- data/app/presenters/has_helpers/resource/info_collection_presenter.rb +33 -0
- data/app/presenters/has_helpers/resource/info_presenter.rb +34 -0
- data/app/presenters/has_helpers/resource/list_presenter.rb +120 -0
- data/app/presenters/has_helpers/resource/note_presenter.rb +14 -0
- data/app/presenters/has_helpers/resource/row_presenter.rb +25 -0
- data/app/presenters/has_helpers/resource/tag_presenter.rb +31 -0
- data/app/presenters/has_helpers/search_presenter.rb +230 -0
- data/app/triggers/has_helpers/erase_denormalized_belongs_to_column_trigger.rb +85 -0
- data/app/triggers/has_helpers/limit_favorites.rb +97 -0
- data/app/utils/has_helpers/redis_configurable.rb +79 -0
- data/app/utils/has_helpers/sync_utils.rb +234 -0
- data/app/views/has_helpers/actions/_action.html.erb +31 -0
- data/app/views/has_helpers/alerts/_alert.html.erb +3 -0
- data/app/views/has_helpers/barcodes.html.erb +36 -0
- data/app/views/has_helpers/containers/_container.html.erb +3 -0
- data/app/views/has_helpers/email_notifier/system.html.erb +8 -0
- data/app/views/has_helpers/email_notifier/system.text.erb +7 -0
- data/app/views/has_helpers/enumerables/_enumerable.html.erb +1 -0
- data/app/views/has_helpers/icons/_icon.html.erb +1 -0
- data/app/views/has_helpers/render_objects/_render_object.html.erb +1 -0
- data/app/views/has_helpers/services/_service.html.erb +1 -0
- data/app/views/has_helpers/text_nodes/_text_node.html.erb +4 -0
- data/app/views/has_helpers/ui_attributes/_html_attrs.html.erb +1 -0
- data/app/workers/elasticsearch_process_queue.rb +11 -0
- data/app/workers/elasticsearch_reindex.rb +11 -0
- data/app/workers/elasticsearch_reindex_scheduler.rb +35 -0
- data/app/workers/good_job/configurable_backfill.rb +64 -0
- data/app/workers/good_job/cron_denormalization_stats_manager.rb +39 -0
- data/app/workers/good_job/denormalization_stats_worker.rb +57 -0
- data/app/workers/good_job/dn_update_worker.rb +30 -0
- data/app/workers/good_job/dn_worker.rb +47 -0
- data/app/workers/good_job/elasticsearch_old_index_cleaner_worker.rb +113 -0
- data/app/workers/good_job/elasticsearch_on_finish_reindex.rb +26 -0
- data/app/workers/good_job/elasticsearch_process_batch.rb +78 -0
- data/app/workers/good_job/elasticsearch_process_change_logs_master_worker.rb +27 -0
- data/app/workers/good_job/elasticsearch_process_change_logs_worker.rb +155 -0
- data/app/workers/good_job/elasticsearch_process_queue.rb +50 -0
- data/app/workers/good_job/elasticsearch_reindex.rb +31 -0
- data/app/workers/has_helpers/cards/orphan_card_sweeper.rb +28 -0
- data/app/workers/has_helpers/db_operations/clean_stats_worker.rb +42 -0
- data/app/workers/has_helpers/db_operations/helper_worker.rb +131 -0
- data/app/workers/has_helpers/db_operations/main_worker.rb +164 -0
- data/app/workers/has_helpers/db_operations/operations.rb +134 -0
- data/app/workers/has_helpers/db_operations/update_operations_stats_resume_worker.rb +35 -0
- data/app/workers/has_helpers/default_worker.rb +17 -0
- data/app/workers/has_helpers/good_job/notification_alert_cleanup_worker.rb +43 -0
- data/app/workers/has_helpers/service_trust/audit_log_cleanup_worker.rb +19 -0
- data/app/workers/sidekiq/elasticsearch_old_index_cleaner_worker.rb +112 -0
- data/app/workers/sidekiq/elasticsearch_process_batch.rb +87 -0
- data/app/workers/sidekiq/elasticsearch_process_queue.rb +40 -0
- data/app/workers/sidekiq/elasticsearch_reindex.rb +53 -0
- data/config/initializers/action_view.rb +7 -0
- data/config/initializers/inflections.rb +24 -0
- data/config/initializers/marginalia.rb +8 -0
- data/config/initializers/mime_types.rb +6 -0
- data/config/initializers/opentelemetry.rb +12 -0
- data/config/initializers/redis_conf.rb +40 -0
- data/config/initializers/searchkick.rb +9 -0
- data/config/initializers/will_paginate.rb +39 -0
- data/config/redis.yml +12 -0
- data/config/routes.rb +27 -0
- data/config/service_trust_routes.rb +5 -0
- data/config.ru +9 -0
- data/db/migrate/20230127194725_create_organization_table.rb +25 -0
- data/db/migrate/20230127194726_validate_organization_foreign_keys.rb +7 -0
- data/db/migrate/20230206141413_create_security_models.rb +42 -0
- data/db/migrate/20230206141513_create_restriction_model.rb +20 -0
- data/db/migrate/20230206142613_add_security_indexes.rb +14 -0
- data/db/migrate/20230206143513_security_model_constants_seed.rb +8 -0
- data/db/migrate/20230206161513_add_organization_to_security_models.rb +13 -0
- data/db/migrate/20230209121019_create_search_group_models.rb +36 -0
- data/db/migrate/20230209122919_add_search_group_indexes.rb +21 -0
- data/db/migrate/20230209181832_add_search_group_resources_type_constraint_trigger.rb +61 -0
- data/db/migrate/20230313220337_create_table_user_sessions.rb +31 -0
- data/db/migrate/20230517141106_update_resource_types.rb +12 -0
- data/db/migrate/20230518194611_add_resources_contraints.rb +17 -0
- data/db/migrate/20230518194642_create_nested_resource_model.rb +21 -0
- data/db/migrate/20230518194645_validate_security_models_constraints.rb +23 -0
- data/db/migrate/20230608125037_add_inactive_field_to_user_sessions.rb +7 -0
- data/db/migrate/20230919191525_add_parent_id_to_resources.rb +8 -0
- data/db/migrate/20230919191535_validate_parent_id_fk_resources.rb +7 -0
- data/db/migrate/20230919210456_drop_nested_resources.rb +7 -0
- data/db/migrate/20231222135620_add_user_role.rb +19 -0
- data/db/migrate/20240108172021_create_favorites_table.rb +20 -0
- data/db/migrate/20240108190209_create_organization_link_table_if_doesnt_exists.rb +31 -0
- data/db/migrate/20240109211445_validate_fks_org_links.rb +9 -0
- data/db/migrate/20240110135440_create_recently_vieweds.rb +20 -0
- data/db/migrate/20240112185312_link_type_options_seed.rb +7 -0
- data/db/migrate/20240116173201_organization_link_resource_tab_constraints.rb +19 -0
- data/db/migrate/20240131160949_add_user_organizations_table.rb +32 -0
- data/db/migrate/20240212132519_add_organization_in_user_sessions.rb +13 -0
- data/db/migrate/20240227135052_add_user_organization_composite_fks.rb +32 -0
- data/db/migrate/20240312193501_update_organization_links.rb +11 -0
- data/db/migrate/20240426185902_add_user_organizations_current_organization_column.rb +12 -0
- data/db/migrate/20240429214601_add_primary_trigger.rb +10 -0
- data/db/migrate/20241112131819_add_json_file_format_seed.rb +7 -0
- data/db/migrate/20250520133417_create_restriction_operations.rb +18 -0
- data/db/migrate/20250520133420_validate_create_restriction_operations.rb +8 -0
- data/db/migrate/20250520140642_add_indexes_to_restrictions.rb +9 -0
- data/db/migrate/20250529130741_create_notification_alerts_table.rb +28 -0
- data/db/migrate/20250530223332_create_data_migrations_table.rb +19 -0
- data/db/migrate/20250605121622_seed_notification_alert_status.rb +7 -0
- data/db/migrate/20250605131439_seed_notification_alert_types.rb +7 -0
- data/db/migrate/20250606173128_update_notification_alert_length_constraint.rb +18 -0
- data/db/migrate/20250606174043_validate_notification_alert_length_constraints.rb +8 -0
- data/db/migrate/20250624183000_add_data_import_alert_type.rb +11 -0
- data/db/migrate/20250722183935_create_organization_options_table.rb +38 -0
- data/db/migrate/20250722192724_validate_organization_options_fks_and_constraints.rb +32 -0
- data/db/migrate/20250722192936_add_indexes_to_organization_options_table.rb +15 -0
- data/db/migrate/20250915132448_add_column_restrictions_hash.rb +7 -0
- data/db/migrate/20250917143211_add_column_permissions_hash.rb +7 -0
- data/db/migrate/20251001145950_add_trust_this_device.rb +7 -0
- data/db/migrate/20251021130835_add_backend_urls_to_applications_table.rb +13 -0
- data/db/migrate/20251021172715_validate_backend_urls_constraints_in_applications.rb +9 -0
- data/db/migrate/20251030200020_create_card_definitions.rb +23 -0
- data/db/migrate/20251030201012_create_card_definition_resources.rb +24 -0
- data/db/migrate/20251030201236_create_card_fields.rb +34 -0
- data/db/migrate/20251103194317_create_role_resource_cards.rb +37 -0
- data/db/migrate/20251103194426_create_role_card_fields.rb +34 -0
- data/db/migrate/20251107173218_validate_columns_from_cards.rb +17 -0
- data/db/migrate/20251111173212_add_column_application_array.rb +7 -0
- data/db/migrate/20251112203326_add_card_types.rb +10 -0
- data/db/migrate/20251115120000_add_virtual_cards_support.rb +28 -0
- data/db/migrate/20251202231256_add_org_scoped_fk_role_resource_cards_to_roles.rb +14 -0
- data/db/migrate/20260105134504_add_accessor_field_resource_type.rb +7 -0
- data/db/migrate/20260115123000_add_default_visibility_to_card_definitions.rb +9 -0
- data/db/migrate/20260120175037_is_new_admin.rb +9 -0
- data/db/migrate/20260122392008_add_stats_table.rb +17 -0
- data/db/migrate/20260414204718_add_index_to_stats_table.rb +10 -0
- data/db/migrate/20260509120000_create_service_trust_keys.rb +25 -0
- data/db/migrate/20260509120001_create_service_trust_audit_logs.rb +26 -0
- data/db/migrate/20260511120000_add_direction_to_service_trust_audit_logs.rb +17 -0
- data/db/migrate/20260511121000_remove_role_fk_from_role_resource_cards.rb +19 -0
- data/db/migrate/20260511121001_add_disabled_at_to_role_resource_cards.rb +10 -0
- data/db/migrate/20260605120100_seed_hover_card_options.rb +8 -0
- data/db/migrate/20260608120000_seed_badge_list_card_data_type.rb +7 -0
- data/db/migrate/20260727000000_add_two_factor_trust_id_to_user_sessions.rb +11 -0
- data/db/seeds.rb +14 -0
- data/docs/Elasticsearch.md +23 -0
- data/docs/Search_API.md +126 -0
- data/docs/cards_role_proxy.md +107 -0
- data/docs/factory_api.md +135 -0
- data/has-helpers-pr-289-pipeline.yaml +16 -0
- data/has-helpers-pr-298-pipeline.yaml +15 -0
- data/has_helpers.gemspec +68 -0
- data/lib/active_record/migration/active_migration_patch.rb +123 -0
- data/lib/generators/has_helpers/install/USAGE +8 -0
- data/lib/generators/has_helpers/install/install_generator.rb +22 -0
- data/lib/generators/has_helpers/install/templates/migrate/has_helpers_initial_setup.rb +26 -0
- data/lib/has_helpers/active_record/base.rb +50 -0
- data/lib/has_helpers/active_record/date_range.rb +228 -0
- data/lib/has_helpers/active_record/nested_resource.rb +58 -0
- data/lib/has_helpers/active_record/validation.rb +63 -0
- data/lib/has_helpers/active_record.rb +520 -0
- data/lib/has_helpers/app/command.rb +107 -0
- data/lib/has_helpers/app.rb +10 -0
- data/lib/has_helpers/assets_precompile_helper.rb +20 -0
- data/lib/has_helpers/attributes.rb +196 -0
- data/lib/has_helpers/aws.rb +67 -0
- data/lib/has_helpers/cards/cache.rb +49 -0
- data/lib/has_helpers/cards/config.rb +42 -0
- data/lib/has_helpers/cards/remote_role.rb +27 -0
- data/lib/has_helpers/cards/remote_roles.rb +75 -0
- data/lib/has_helpers/cards/roles.rb +55 -0
- data/lib/has_helpers/cards.rb +34 -0
- data/lib/has_helpers/concerns/hydrate_concern.rb +76 -0
- data/lib/has_helpers/concerns/importable_accessors.rb +25 -0
- data/lib/has_helpers/concerns/restrictions_parseable.rb +51 -0
- data/lib/has_helpers/config.rb +11 -0
- data/lib/has_helpers/constant.rb +578 -0
- data/lib/has_helpers/constraints.rb +10 -0
- data/lib/has_helpers/core_ext/array.rb +28 -0
- data/lib/has_helpers/core_ext/date/infinity.rb +25 -0
- data/lib/has_helpers/core_ext/date.rb +39 -0
- data/lib/has_helpers/core_ext/enumerable.rb +20 -0
- data/lib/has_helpers/core_ext/false_class.rb +14 -0
- data/lib/has_helpers/core_ext/float.rb +18 -0
- data/lib/has_helpers/core_ext/hash.rb +71 -0
- data/lib/has_helpers/core_ext/integer.rb +18 -0
- data/lib/has_helpers/core_ext/nil_class.rb +30 -0
- data/lib/has_helpers/core_ext/object.rb +60 -0
- data/lib/has_helpers/core_ext/proc.rb +16 -0
- data/lib/has_helpers/core_ext/string.rb +81 -0
- data/lib/has_helpers/core_ext/symbol.rb +17 -0
- data/lib/has_helpers/core_ext/true_class.rb +14 -0
- data/lib/has_helpers/cursor.rb +46 -0
- data/lib/has_helpers/data_migration/base.rb +293 -0
- data/lib/has_helpers/data_migration/large_worker.rb +20 -0
- data/lib/has_helpers/data_migration/master_worker.rb +33 -0
- data/lib/has_helpers/data_migration/migrator.rb +83 -0
- data/lib/has_helpers/data_migration/model.rb +18 -0
- data/lib/has_helpers/data_migration/small_worker.rb +20 -0
- data/lib/has_helpers/data_migration.rb +8 -0
- data/lib/has_helpers/engine.rb +47 -0
- data/lib/has_helpers/extensions.rb +17 -0
- data/lib/has_helpers/factory_api.rb +47 -0
- data/lib/has_helpers/factory_scenario/definition.rb +33 -0
- data/lib/has_helpers/factory_scenario/dsl.rb +80 -0
- data/lib/has_helpers/factory_scenario/factory_bot_override.rb +53 -0
- data/lib/has_helpers/factory_scenario/registry.rb +31 -0
- data/lib/has_helpers/factory_scenario/runner.rb +285 -0
- data/lib/has_helpers/factory_scenario.rb +27 -0
- data/lib/has_helpers/fixed_expiration_time_cache_session_store.rb +20 -0
- data/lib/has_helpers/flattener/association.rb +140 -0
- data/lib/has_helpers/flattener/attribute.rb +42 -0
- data/lib/has_helpers/flattener/base.rb +428 -0
- data/lib/has_helpers/flattener/column/types.rb +71 -0
- data/lib/has_helpers/flattener/column.rb +97 -0
- data/lib/has_helpers/flattener/pivot.rb +49 -0
- data/lib/has_helpers/flattener/reset.rb +33 -0
- data/lib/has_helpers/flattener/resource.rb +114 -0
- data/lib/has_helpers/flattener/resource_generator.rb +21 -0
- data/lib/has_helpers/flattener/utils.rb +14 -0
- data/lib/has_helpers/flattener.rb +53 -0
- data/lib/has_helpers/hash_accessors.rb +62 -0
- data/lib/has_helpers/helpers/application.rb +291 -0
- data/lib/has_helpers/index/config.rb +15 -0
- data/lib/has_helpers/lazy_config.rb +61 -0
- data/lib/has_helpers/resource_importer.rb +260 -0
- data/lib/has_helpers/resources.rb +127 -0
- data/lib/has_helpers/rspec/constants.rb +61 -0
- data/lib/has_helpers/rspec/factories.rb +11 -0
- data/lib/has_helpers/rspec.rb +22 -0
- data/lib/has_helpers/sentry/graphql_trace.rb +37 -0
- data/lib/has_helpers/serializer.rb +41 -0
- data/lib/has_helpers/service_trust/audit.rb +45 -0
- data/lib/has_helpers/service_trust/authorization.rb +34 -0
- data/lib/has_helpers/service_trust/bearer_token.rb +23 -0
- data/lib/has_helpers/service_trust/capability.rb +32 -0
- data/lib/has_helpers/service_trust/client/response.rb +13 -0
- data/lib/has_helpers/service_trust/client/retry.rb +35 -0
- data/lib/has_helpers/service_trust/client.rb +128 -0
- data/lib/has_helpers/service_trust/configuration.rb +76 -0
- data/lib/has_helpers/service_trust/engine.rb +10 -0
- data/lib/has_helpers/service_trust/errors.rb +32 -0
- data/lib/has_helpers/service_trust/graphql/authorizable.rb +72 -0
- data/lib/has_helpers/service_trust/graphql_client.rb +54 -0
- data/lib/has_helpers/service_trust/jwks_client.rb +133 -0
- data/lib/has_helpers/service_trust/jwt_codec.rb +45 -0
- data/lib/has_helpers/service_trust/key_manager.rb +160 -0
- data/lib/has_helpers/service_trust/rate_limiter.rb +27 -0
- data/lib/has_helpers/service_trust/replay_cache.rb +26 -0
- data/lib/has_helpers/service_trust/signer.rb +47 -0
- data/lib/has_helpers/service_trust/test.rb +60 -0
- data/lib/has_helpers/service_trust/verifier.rb +85 -0
- data/lib/has_helpers/service_trust/verify_middleware.rb +55 -0
- data/lib/has_helpers/service_trust.rb +51 -0
- data/lib/has_helpers/test_helpers/factory_data/unit_addresses.rb +42 -0
- data/lib/has_helpers/test_helpers/factory_data/unit_advisors.rb +272 -0
- data/lib/has_helpers/test_helpers/factory_data/unit_emails.rb +37 -0
- data/lib/has_helpers/test_helpers/factory_data/unit_organizations.rb +48 -0
- data/lib/has_helpers/test_helpers/factory_data/unit_people.rb +34 -0
- data/lib/has_helpers/test_helpers/factory_data/unit_phones.rb +41 -0
- data/lib/has_helpers/test_helpers/factory_data/unit_states.rb +26 -0
- data/lib/has_helpers/test_helpers/factory_data/unit_webs.rb +31 -0
- data/lib/has_helpers/test_helpers/shoulda_helpers.rb +249 -0
- data/lib/has_helpers/ui_attributes.rb +39 -0
- data/lib/has_helpers/utils/action.rb +87 -0
- data/lib/has_helpers/utils/active_record_utils.rb +40 -0
- data/lib/has_helpers/utils/alert.rb +42 -0
- data/lib/has_helpers/utils/container.rb +46 -0
- data/lib/has_helpers/utils/dataset.rb +34 -0
- data/lib/has_helpers/utils/email_notifier.rb +15 -0
- data/lib/has_helpers/utils/icon.rb +66 -0
- data/lib/has_helpers/utils/input.rb +45 -0
- data/lib/has_helpers/utils/log_notifier.rb +79 -0
- data/lib/has_helpers/utils/render_object.rb +32 -0
- data/lib/has_helpers/utils/s3_utils.rb +37 -0
- data/lib/has_helpers/utils/service.rb +87 -0
- data/lib/has_helpers/utils/slack_conf.rb +31 -0
- data/lib/has_helpers/utils/slack_notifier.rb +42 -0
- data/lib/has_helpers/utils/text_node.rb +34 -0
- data/lib/has_helpers/utils/user_restrictions.rb +266 -0
- data/lib/has_helpers/utils.rb +19 -0
- data/lib/has_helpers/version.rb +6 -0
- data/lib/has_helpers/web_socket_publisher.rb +20 -0
- data/lib/has_helpers/webhook.rb +17 -0
- data/lib/has_helpers.rb +63 -0
- data/lib/hq/resource.rb +55 -0
- data/lib/hq/structure/inserts.rb +176 -0
- data/lib/hq/structure.rb +115 -0
- data/lib/tasks/has_helpers/service_trust.rake +39 -0
- data/script/rails +10 -0
- data/sorbet/config +5 -0
- data/sorbet/rbi/gems/actionpack.rbi +1361 -0
- data/sorbet/rbi/gems/activemodel.rbi +755 -0
- data/sorbet/rbi/gems/activerecord.rbi +4713 -0
- data/sorbet/rbi/gems/activesupport.rbi +1970 -0
- data/sorbet/rbi/gems/barby.rbi +129 -0
- data/sorbet/rbi/gems/better_errors.rbi +155 -0
- data/sorbet/rbi/gems/binding_of_caller.rbi +22 -0
- data/sorbet/rbi/gems/byebug.rbi +19 -0
- data/sorbet/rbi/gems/chronic.rbi +480 -0
- data/sorbet/rbi/gems/chunky_png.rbi +510 -0
- data/sorbet/rbi/gems/climate_control.rbi +45 -0
- data/sorbet/rbi/gems/coderay.rbi +91 -0
- data/sorbet/rbi/gems/concurrent-ruby.rbi +1587 -0
- data/sorbet/rbi/gems/debug_inspector.rbi +18 -0
- data/sorbet/rbi/gems/erubi.rbi +26 -0
- data/sorbet/rbi/gems/holidays.rbi +362 -0
- data/sorbet/rbi/gems/i18n.rbi +132 -0
- data/sorbet/rbi/gems/method_source.rbi +63 -0
- data/sorbet/rbi/gems/mime-types-data.rbi +16 -0
- data/sorbet/rbi/gems/mime-types.rbi +217 -0
- data/sorbet/rbi/gems/mimemagic.rbi +36 -0
- data/sorbet/rbi/gems/minitest.rbi +282 -0
- data/sorbet/rbi/gems/mustache.rbi +151 -0
- data/sorbet/rbi/gems/paperclip.rbi +644 -0
- data/sorbet/rbi/gems/parallel.rbi +81 -0
- data/sorbet/rbi/gems/parallel_tests.rbi +27 -0
- data/sorbet/rbi/gems/pry-rails.rbi +71 -0
- data/sorbet/rbi/gems/pry.rbi +1964 -0
- data/sorbet/rbi/gems/rack.rbi +228 -0
- data/sorbet/rbi/gems/railties.rbi +364 -0
- data/sorbet/rbi/gems/rspec-core.rbi +1704 -0
- data/sorbet/rbi/gems/rspec-expectations.rbi +389 -0
- data/sorbet/rbi/gems/rspec-support.rbi +206 -0
- data/sorbet/rbi/gems/rspec.rbi +14 -0
- data/sorbet/rbi/gems/spreadsheet_architect.rbi +10 -0
- data/sorbet/rbi/gems/sprockets.rbi +659 -0
- data/sorbet/rbi/gems/terrapin.rbi +115 -0
- data/sorbet/rbi/gems/testhq.rbi +14 -0
- data/sorbet/rbi/gems/thor.rbi +482 -0
- data/sorbet/rbi/gems/thread_safe.rbi +81 -0
- data/sorbet/rbi/gems/tzinfo.rbi +407 -0
- data/sorbet/rbi/gems/zeitwerk.rbi +131 -0
- data/sorbet/rbi/hidden-definitions/errors.txt +35111 -0
- data/sorbet/rbi/hidden-definitions/hidden.rbi +59974 -0
- data/sorbet/rbi/sorbet-typed/lib/actionmailer/all/actionmailer.rbi +13 -0
- data/sorbet/rbi/sorbet-typed/lib/actionpack/all/actionpack.rbi +855 -0
- data/sorbet/rbi/sorbet-typed/lib/actionview/all/actionview.rbi +314 -0
- data/sorbet/rbi/sorbet-typed/lib/activemodel/all/activemodel.rbi +423 -0
- data/sorbet/rbi/sorbet-typed/lib/activerecord/>=5.2/activerecord.rbi +17 -0
- data/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi +1415 -0
- data/sorbet/rbi/sorbet-typed/lib/activerecord/~>6.0.0/activerecord.rbi +475 -0
- data/sorbet/rbi/sorbet-typed/lib/activestorage/>=6.0.0/activestorage.rbi +19 -0
- data/sorbet/rbi/sorbet-typed/lib/activestorage/all/activestorage.rbi +173 -0
- data/sorbet/rbi/sorbet-typed/lib/activesupport/>=6.0.0.rc1/activesupport.rbi +23 -0
- data/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +625 -0
- data/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +8684 -0
- data/sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi +99 -0
- data/sorbet/rbi/sorbet-typed/lib/railties/all/railties.rbi +25 -0
- data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +254 -0
- data/sorbet/rbi/sorbet-typed/lib/ruby/all/gem.rbi +4222 -0
- data/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +111 -0
- data/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +543 -0
- data/sorbet/rbi/todo.rbi +244 -0
- data/spec/commands/cards/available_cards_command_spec.rb +90 -0
- data/spec/commands/cards/card_data_command_spec.rb +1048 -0
- data/spec/constructors/has_helpers/base_constructor_spec.rb +49 -0
- data/spec/controllers/has_helpers/controller_spec.rb +71 -0
- data/spec/controllers/has_helpers/xlsx_export_spec.rb +96 -0
- data/spec/factories/advisors.rb +20 -0
- data/spec/factories/anonymous_cowards.rb +5 -0
- data/spec/factories/applications.rb +5 -0
- data/spec/factories/appointments.rb +6 -0
- data/spec/factories/attachment.rb +15 -0
- data/spec/factories/audits.rb +5 -0
- data/spec/factories/basic_schedules.rb +12 -0
- data/spec/factories/cards/card_definition_resources.rb +7 -0
- data/spec/factories/cards/card_definitions.rb +11 -0
- data/spec/factories/cards/card_fields.rb +22 -0
- data/spec/factories/cards/role_card_fields.rb +17 -0
- data/spec/factories/cards/role_resource_cards.rb +12 -0
- data/spec/factories/constant_definition.rb +7 -0
- data/spec/factories/contracts.rb +10 -0
- data/spec/factories/data_migration_models.rb +9 -0
- data/spec/factories/demographics.rb +22 -0
- data/spec/factories/events.rb +21 -0
- data/spec/factories/firms.rb +21 -0
- data/spec/factories/imports.rb +9 -0
- data/spec/factories/meetups.rb +13 -0
- data/spec/factories/organizations.rb +13 -0
- data/spec/factories/policies.rb +7 -0
- data/spec/factories/policy_notes.rb +9 -0
- data/spec/factories/read_only_values.rb +7 -0
- data/spec/factories/resources.rb +7 -0
- data/spec/factories/roles.rb +11 -0
- data/spec/factories/schedules.rb +13 -0
- data/spec/factories/shared/flattener/attributes.rb +10 -0
- data/spec/factories/shared/flattener/columns.rb +6 -0
- data/spec/factories/shared/flattener/resources.rb +5 -0
- data/spec/factories/templates.rb +12 -0
- data/spec/factories/user_organizations.rb +23 -0
- data/spec/factories/user_session.rb +11 -0
- data/spec/factories/users.rb +55 -0
- data/spec/fixtures/sample_config.yml +3 -0
- data/spec/graphql/has_helpers/mutations/external_data_sync_spec.rb +101 -0
- data/spec/graphql/has_helpers/resolvers/cards/available_cards_spec.rb +36 -0
- data/spec/graphql/has_helpers/resolvers/cards/card_data_spec.rb +42 -0
- data/spec/graphql/has_helpers/resolvers/cards/hover_card_data_spec.rb +59 -0
- data/spec/has_helpers/cards/cache_spec.rb +58 -0
- data/spec/has_helpers/cards/config_spec.rb +68 -0
- data/spec/has_helpers/cards/orphan_card_sweeper_spec.rb +97 -0
- data/spec/has_helpers/cards/remote_role_spec.rb +17 -0
- data/spec/has_helpers/cards/remote_roles_spec.rb +97 -0
- data/spec/has_helpers/cards/roles_spec.rb +52 -0
- data/spec/has_helpers/cards/smoke_spec.rb +168 -0
- data/spec/has_helpers/cards/support.rb +52 -0
- data/spec/has_helpers/resolvers/internal/roles_spec.rb +73 -0
- data/spec/has_helpers/service_trust/audit_log_cleanup_worker_spec.rb +33 -0
- data/spec/has_helpers/service_trust/audit_spec.rb +70 -0
- data/spec/has_helpers/service_trust/authenticated_as_service_spec.rb +65 -0
- data/spec/has_helpers/service_trust/authorization_spec.rb +37 -0
- data/spec/has_helpers/service_trust/capability_spec.rb +35 -0
- data/spec/has_helpers/service_trust/client_spec.rb +129 -0
- data/spec/has_helpers/service_trust/configuration_spec.rb +35 -0
- data/spec/has_helpers/service_trust/engine_spec.rb +13 -0
- data/spec/has_helpers/service_trust/errors_spec.rb +23 -0
- data/spec/has_helpers/service_trust/graphql_authentication_spec.rb +59 -0
- data/spec/has_helpers/service_trust/graphql_authorizable_spec.rb +91 -0
- data/spec/has_helpers/service_trust/graphql_client_spec.rb +47 -0
- data/spec/has_helpers/service_trust/jwks_client_spec.rb +85 -0
- data/spec/has_helpers/service_trust/jwks_controller_spec.rb +47 -0
- data/spec/has_helpers/service_trust/jwt_codec_spec.rb +30 -0
- data/spec/has_helpers/service_trust/key_manager_spec.rb +80 -0
- data/spec/has_helpers/service_trust/key_spec.rb +52 -0
- data/spec/has_helpers/service_trust/rake_tasks_spec.rb +58 -0
- data/spec/has_helpers/service_trust/rate_limiter_spec.rb +31 -0
- data/spec/has_helpers/service_trust/replay_cache_spec.rb +29 -0
- data/spec/has_helpers/service_trust/signer_verifier_spec.rb +159 -0
- data/spec/has_helpers/service_trust/smoke_spec.rb +216 -0
- data/spec/has_helpers/service_trust/support.rb +121 -0
- data/spec/has_helpers/service_trust/test_module_spec.rb +39 -0
- data/spec/has_helpers/service_trust/verify_middleware_spec.rb +82 -0
- data/spec/helpers/application_spec.rb +155 -0
- data/spec/importers/cards/importer_spec.rb +861 -0
- data/spec/internal/app/assets/config/manifest.js +0 -0
- data/spec/internal/app/constants/cat_egory.rb +33 -0
- data/spec/internal/app/constants/color.rb +19 -0
- data/spec/internal/app/constants/exclude_group_nil_constant.rb +5 -0
- data/spec/internal/app/constants/foo.rb +6 -0
- data/spec/internal/app/constants/fruit.rb +3 -0
- data/spec/internal/app/constants/generic_group_example.rb +12 -0
- data/spec/internal/app/constants/my_constant.rb +4 -0
- data/spec/internal/app/constants/product.rb +3 -0
- data/spec/internal/app/constants/shirt_size.rb +18 -0
- data/spec/internal/app/constants/simple_option.rb +14 -0
- data/spec/internal/app/constants/status.rb +5 -0
- data/spec/internal/app/constructors/organization_constructor.rb +4 -0
- data/spec/internal/app/controllers/application_controller.rb +27 -0
- data/spec/internal/app/controllers/search_extensions.rb +3 -0
- data/spec/internal/app/indices/advisor_index.rb +35 -0
- data/spec/internal/app/indices/contract_index.rb +52 -0
- data/spec/internal/app/indices/firm_index.rb +16 -0
- data/spec/internal/app/indices/policy_index.rb +20 -0
- data/spec/internal/app/models/advisor.rb +24 -0
- data/spec/internal/app/models/agency.rb +3 -0
- data/spec/internal/app/models/anonymous_coward.rb +5 -0
- data/spec/internal/app/models/another_event.rb +2 -0
- data/spec/internal/app/models/appointment.rb +3 -0
- data/spec/internal/app/models/attachment.rb +10 -0
- data/spec/internal/app/models/basic_schedule.rb +6 -0
- data/spec/internal/app/models/beneficiary.rb +6 -0
- data/spec/internal/app/models/client.rb +5 -0
- data/spec/internal/app/models/contract.rb +9 -0
- data/spec/internal/app/models/demographic.rb +4 -0
- data/spec/internal/app/models/division.rb +3 -0
- data/spec/internal/app/models/event.rb +10 -0
- data/spec/internal/app/models/event_template.rb +1 -0
- data/spec/internal/app/models/firm.rb +18 -0
- data/spec/internal/app/models/has_audits/audit.rb +15 -0
- data/spec/internal/app/models/import.rb +7 -0
- data/spec/internal/app/models/meetup.rb +8 -0
- data/spec/internal/app/models/organization.rb +17 -0
- data/spec/internal/app/models/organization_event.rb +5 -0
- data/spec/internal/app/models/policy.rb +16 -0
- data/spec/internal/app/models/policy_holder.rb +7 -0
- data/spec/internal/app/models/policy_note.rb +8 -0
- data/spec/internal/app/models/project.rb +3 -0
- data/spec/internal/app/models/read_only_value.rb +8 -0
- data/spec/internal/app/models/schedule.rb +12 -0
- data/spec/internal/app/models/template.rb +9 -0
- data/spec/internal/app/models/user.rb +31 -0
- data/spec/internal/app/models/user_organization.rb +17 -0
- data/spec/internal/app/views/has_lists/lists/_table.html.erb +1 -0
- data/spec/internal/config/database-standard.yml +24 -0
- data/spec/internal/config/initializers/resources.rb +19 -0
- data/spec/internal/config/routes.rb +19 -0
- data/spec/internal/config/storage.yml +3 -0
- data/spec/internal/db/good_job_schema.rb +141 -0
- data/spec/internal/db/schema.rb +334 -0
- data/spec/internal/log/.gitignore +1 -0
- data/spec/internal/public/favicon.ico +0 -0
- data/spec/lib/flattener/base_spec.rb +93 -0
- data/spec/lib/flattener/column/types_spec.rb +65 -0
- data/spec/lib/has_helpers/active_record/base_spec.rb +53 -0
- data/spec/lib/has_helpers/active_record/date_range_spec.rb +498 -0
- data/spec/lib/has_helpers/active_record/lookup_model_spec.rb +408 -0
- data/spec/lib/has_helpers/active_record/nested_resource_spec.rb +43 -0
- data/spec/lib/has_helpers/app/command/reports/generator_specs.rb +887 -0
- data/spec/lib/has_helpers/app/command_spec.rb +117 -0
- data/spec/lib/has_helpers/app/support/mocks/graphql_reports_helpers.rb +96 -0
- data/spec/lib/has_helpers/app/support/mocks/reports_api_mock.rb +47 -0
- data/spec/lib/has_helpers/attributes_spec.rb +220 -0
- data/spec/lib/has_helpers/aws_spec.rb +126 -0
- data/spec/lib/has_helpers/concerns/hydrate_concern_spec.rb +473 -0
- data/spec/lib/has_helpers/constant/definition_spec.rb +128 -0
- data/spec/lib/has_helpers/constant_spec.rb +432 -0
- data/spec/lib/has_helpers/core_ext/array_spec.rb +22 -0
- data/spec/lib/has_helpers/core_ext/date/infinity_spec.rb +67 -0
- data/spec/lib/has_helpers/core_ext/date_spec.rb +27 -0
- data/spec/lib/has_helpers/core_ext/false_class_spec.rb +7 -0
- data/spec/lib/has_helpers/core_ext/float_spec.rb +9 -0
- data/spec/lib/has_helpers/core_ext/hash_spec.rb +48 -0
- data/spec/lib/has_helpers/core_ext/integer_spec.rb +9 -0
- data/spec/lib/has_helpers/core_ext/nil_class_spec.rb +17 -0
- data/spec/lib/has_helpers/core_ext/object_spec.rb +54 -0
- data/spec/lib/has_helpers/core_ext/proc_spec.rb +24 -0
- data/spec/lib/has_helpers/core_ext/string_spec.rb +154 -0
- data/spec/lib/has_helpers/core_ext/true_class_spec.rb +7 -0
- data/spec/lib/has_helpers/data_migration/base_spec.rb +470 -0
- data/spec/lib/has_helpers/data_migration/large_worker_spec.rb +34 -0
- data/spec/lib/has_helpers/data_migration/master_worker_spec.rb +51 -0
- data/spec/lib/has_helpers/data_migration/migrator_spec.rb +113 -0
- data/spec/lib/has_helpers/data_migration/model_spec.rb +52 -0
- data/spec/lib/has_helpers/data_migration/small_worker_spec.rb +34 -0
- data/spec/lib/has_helpers/good_job/notification_alert_cleanup_worker_spec.rb +89 -0
- data/spec/lib/has_helpers/hash_accessors_spec.rb +66 -0
- data/spec/lib/has_helpers/index_spec.rb +442 -0
- data/spec/lib/has_helpers/lazy_config_spec.rb +31 -0
- data/spec/lib/has_helpers/organization_merge_spec.rb +88 -0
- data/spec/lib/has_helpers/resource_importer_spec.rb +119 -0
- data/spec/lib/has_helpers/rspec_spec.rb +16 -0
- data/spec/lib/has_helpers/search/provider_spec.rb +26 -0
- data/spec/lib/has_helpers/search/search_utils_spec.rb +134 -0
- data/spec/lib/has_helpers/sentry/graphql_trace_spec.rb +140 -0
- data/spec/lib/has_helpers/ui_attributes_spec.rb +42 -0
- data/spec/lib/has_helpers/utils/action_spec.rb +49 -0
- data/spec/lib/has_helpers/utils/alert_spec.rb +33 -0
- data/spec/lib/has_helpers/utils/dataset_spec.rb +10 -0
- data/spec/lib/has_helpers/utils/icon_spec.rb +23 -0
- data/spec/lib/has_helpers/utils/input_spec.rb +40 -0
- data/spec/lib/has_helpers/utils/log_notifier_spec.rb +25 -0
- data/spec/lib/has_helpers/utils/render_object_spec.rb +17 -0
- data/spec/lib/has_helpers/utils/s3_utils_spec.rb +78 -0
- data/spec/lib/has_helpers/utils/service_spec.rb +79 -0
- data/spec/lib/has_helpers/utils/slack_notifier_spec.rb +70 -0
- data/spec/lib/has_helpers/utils/user_restrictions_spec.rb +343 -0
- data/spec/lib/hq/structure/inserts_spec.rb +152 -0
- data/spec/lib/hq/structure_spec.rb +12 -0
- data/spec/models/cards/base_spec.rb +149 -0
- data/spec/models/cards/card_definition_resource_spec.rb +103 -0
- data/spec/models/cards/card_definition_spec.rb +50 -0
- data/spec/models/cards/card_field_spec.rb +46 -0
- data/spec/models/cards/field_builder_spec.rb +318 -0
- data/spec/models/cards/registry_spec.rb +147 -0
- data/spec/models/cards/role_card_field_spec.rb +111 -0
- data/spec/models/cards/role_resource_card_spec.rb +112 -0
- data/spec/models/has_helpers/master_record_spec.rb +20 -0
- data/spec/models/has_helpers/user_organization_spec.rb +28 -0
- data/spec/models/has_helpers/user_session_spec.rb +16 -0
- data/spec/presenters/base_presenter_spec.rb +166 -0
- data/spec/rails_helper.rb +119 -0
- data/spec/requests/has_helpers/factory_controller_spec.rb +159 -0
- data/spec/requests/has_helpers/health_check_controller_spec.rb +37 -0
- data/spec/scenarios/empty_setup.rb +6 -0
- data/spec/spec_helper.rb +22 -0
- data/spec/support/has_helpers/database_helpers.rb +12 -0
- data/spec/utils/sync_utils_spec.rb +233 -0
- data/spec/workers/goodjob/elasticsearch_process_batch_spec.rb +94 -0
- data/spec/workers/goodjob/elasticsearch_process_change_logs_master_worker_spec.rb +40 -0
- data/spec/workers/goodjob/elasticsearch_process_change_logs_worker_spec.rb +82 -0
- data/spec/workers/goodjob/elasticsearch_process_queue_spec.rb +89 -0
- data/spec/workers/goodjob/elasticsearch_reindex_spec.rb +49 -0
- metadata +1593 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
|
2
|
+
# srb rbi gems
|
|
3
|
+
|
|
4
|
+
# typed: strong
|
|
5
|
+
#
|
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
|
7
|
+
#
|
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/terrapin/all/terrapin.rbi
|
|
9
|
+
#
|
|
10
|
+
# terrapin-0.6.0
|
|
11
|
+
module Terrapin
|
|
12
|
+
end
|
|
13
|
+
class Terrapin::OSDetector
|
|
14
|
+
def arch; end
|
|
15
|
+
def java?; end
|
|
16
|
+
def path_separator; end
|
|
17
|
+
def unix?; end
|
|
18
|
+
def windows?; end
|
|
19
|
+
end
|
|
20
|
+
class Terrapin::CommandLine
|
|
21
|
+
def bit_bucket; end
|
|
22
|
+
def colored(text, ansi_color = nil); end
|
|
23
|
+
def command(interpolations = nil); end
|
|
24
|
+
def command_error_output; end
|
|
25
|
+
def command_output; end
|
|
26
|
+
def environment; end
|
|
27
|
+
def execute(command); end
|
|
28
|
+
def exit_status; end
|
|
29
|
+
def initialize(binary, params = nil, options = nil); end
|
|
30
|
+
def interpolate(pattern, interpolations); end
|
|
31
|
+
def log(text); end
|
|
32
|
+
def os_path_prefix; end
|
|
33
|
+
def output; end
|
|
34
|
+
def path_prefix; end
|
|
35
|
+
def run(interpolations = nil); end
|
|
36
|
+
def runner; end
|
|
37
|
+
def runner_options; end
|
|
38
|
+
def self.best_runner; end
|
|
39
|
+
def self.environment; end
|
|
40
|
+
def self.fake!; end
|
|
41
|
+
def self.logger; end
|
|
42
|
+
def self.logger=(arg0); end
|
|
43
|
+
def self.path; end
|
|
44
|
+
def self.path=(supplemental_path); end
|
|
45
|
+
def self.runner; end
|
|
46
|
+
def self.runner=(arg0); end
|
|
47
|
+
def self.runner_options; end
|
|
48
|
+
def self.unfake!; end
|
|
49
|
+
def shell_quote(string); end
|
|
50
|
+
def shell_quote_all_values(values); end
|
|
51
|
+
def stringify_keys(hash); end
|
|
52
|
+
def unix_path_prefix; end
|
|
53
|
+
def windows_path_prefix; end
|
|
54
|
+
end
|
|
55
|
+
class Terrapin::CommandLine::Output
|
|
56
|
+
def error_output; end
|
|
57
|
+
def initialize(output = nil, error_output = nil); end
|
|
58
|
+
def output; end
|
|
59
|
+
def to_s; end
|
|
60
|
+
end
|
|
61
|
+
class Terrapin::CommandLine::MultiPipe
|
|
62
|
+
def close_read; end
|
|
63
|
+
def close_write; end
|
|
64
|
+
def initialize; end
|
|
65
|
+
def output; end
|
|
66
|
+
def pipe_options; end
|
|
67
|
+
def read; end
|
|
68
|
+
def read_and_then(&block); end
|
|
69
|
+
def read_stream(io); end
|
|
70
|
+
end
|
|
71
|
+
class Terrapin::CommandLine::BackticksRunner
|
|
72
|
+
def call(command, env = nil, options = nil); end
|
|
73
|
+
def self.supported?; end
|
|
74
|
+
def supported?; end
|
|
75
|
+
def with_modified_environment(env, &block); end
|
|
76
|
+
end
|
|
77
|
+
class Terrapin::CommandLine::ProcessRunner
|
|
78
|
+
def call(command, env = nil, options = nil); end
|
|
79
|
+
def self.available?; end
|
|
80
|
+
def self.supported?; end
|
|
81
|
+
def spawn(*args); end
|
|
82
|
+
def supported?; end
|
|
83
|
+
def waitpid(pid); end
|
|
84
|
+
end
|
|
85
|
+
class Terrapin::CommandLine::PosixRunner
|
|
86
|
+
def call(command, env = nil, options = nil); end
|
|
87
|
+
def self.available?; end
|
|
88
|
+
def self.posix_spawn_gem_available?; end
|
|
89
|
+
def self.supported?; end
|
|
90
|
+
def spawn(*args); end
|
|
91
|
+
def supported?; end
|
|
92
|
+
def waitpid(pid); end
|
|
93
|
+
end
|
|
94
|
+
class Terrapin::CommandLine::PopenRunner
|
|
95
|
+
def call(command, env = nil, options = nil); end
|
|
96
|
+
def self.supported?; end
|
|
97
|
+
def supported?; end
|
|
98
|
+
def with_modified_environment(env, &block); end
|
|
99
|
+
end
|
|
100
|
+
class Terrapin::CommandLine::FakeRunner
|
|
101
|
+
def call(command, env = nil, options = nil); end
|
|
102
|
+
def commands; end
|
|
103
|
+
def initialize; end
|
|
104
|
+
def ran?(predicate_command); end
|
|
105
|
+
def self.supported?; end
|
|
106
|
+
def supported?; end
|
|
107
|
+
end
|
|
108
|
+
class Terrapin::CommandLineError < StandardError
|
|
109
|
+
end
|
|
110
|
+
class Terrapin::CommandNotFoundError < Terrapin::CommandLineError
|
|
111
|
+
end
|
|
112
|
+
class Terrapin::ExitStatusError < Terrapin::CommandLineError
|
|
113
|
+
end
|
|
114
|
+
class Terrapin::InterpolationError < Terrapin::CommandLineError
|
|
115
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
|
2
|
+
# srb rbi gems
|
|
3
|
+
|
|
4
|
+
# typed: strong
|
|
5
|
+
#
|
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
|
7
|
+
#
|
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/testhq/all/testhq.rbi
|
|
9
|
+
#
|
|
10
|
+
# testhq-2.0.2
|
|
11
|
+
module Testhq
|
|
12
|
+
end
|
|
13
|
+
class Testhq::Engine < Rails::Engine
|
|
14
|
+
end
|
|
@@ -0,0 +1,482 @@
|
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
|
2
|
+
# srb rbi gems
|
|
3
|
+
|
|
4
|
+
# typed: true
|
|
5
|
+
#
|
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
|
7
|
+
#
|
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/thor/all/thor.rbi
|
|
9
|
+
#
|
|
10
|
+
# thor-0.20.3
|
|
11
|
+
class Thor
|
|
12
|
+
end
|
|
13
|
+
class Anonymous_Struct_12 < Struct
|
|
14
|
+
def ancestor_name; end
|
|
15
|
+
def ancestor_name=(_); end
|
|
16
|
+
def description; end
|
|
17
|
+
def description=(_); end
|
|
18
|
+
def long_description; end
|
|
19
|
+
def long_description=(_); end
|
|
20
|
+
def name; end
|
|
21
|
+
def name=(_); end
|
|
22
|
+
def options; end
|
|
23
|
+
def options=(_); end
|
|
24
|
+
def self.[](*arg0); end
|
|
25
|
+
def self.inspect; end
|
|
26
|
+
def self.members; end
|
|
27
|
+
def self.new(*arg0); end
|
|
28
|
+
def usage; end
|
|
29
|
+
def usage=(_); end
|
|
30
|
+
end
|
|
31
|
+
class Thor::Command < Anonymous_Struct_12
|
|
32
|
+
def formatted_usage(klass, namespace = nil, subcommand = nil); end
|
|
33
|
+
def handle_argument_error?(instance, error, caller); end
|
|
34
|
+
def handle_no_method_error?(instance, error, caller); end
|
|
35
|
+
def hidden?; end
|
|
36
|
+
def initialize(name, description, long_description, usage, options = nil); end
|
|
37
|
+
def initialize_copy(other); end
|
|
38
|
+
def local_method?(instance, name); end
|
|
39
|
+
def not_debugging?(instance); end
|
|
40
|
+
def private_method?(instance); end
|
|
41
|
+
def public_method?(instance); end
|
|
42
|
+
def required_options; end
|
|
43
|
+
def run(instance, args = nil); end
|
|
44
|
+
def sans_backtrace(backtrace, caller); end
|
|
45
|
+
end
|
|
46
|
+
class Thor::HiddenCommand < Thor::Command
|
|
47
|
+
def hidden?; end
|
|
48
|
+
end
|
|
49
|
+
class Thor::DynamicCommand < Thor::Command
|
|
50
|
+
def initialize(name, options = nil); end
|
|
51
|
+
def run(instance, args = nil); end
|
|
52
|
+
end
|
|
53
|
+
module Thor::CoreExt
|
|
54
|
+
end
|
|
55
|
+
class Thor::CoreExt::HashWithIndifferentAccess < Hash
|
|
56
|
+
def [](key); end
|
|
57
|
+
def []=(key, value); end
|
|
58
|
+
def convert_key(key); end
|
|
59
|
+
def delete(key); end
|
|
60
|
+
def fetch(key, *args); end
|
|
61
|
+
def initialize(hash = nil); end
|
|
62
|
+
def key?(key); end
|
|
63
|
+
def merge!(other); end
|
|
64
|
+
def merge(other); end
|
|
65
|
+
def method_missing(method, *args); end
|
|
66
|
+
def replace(other_hash); end
|
|
67
|
+
def reverse_merge!(other_hash); end
|
|
68
|
+
def reverse_merge(other); end
|
|
69
|
+
def to_hash; end
|
|
70
|
+
def values_at(*indices); end
|
|
71
|
+
end
|
|
72
|
+
class Thor::CoreExt::OrderedHash < Hash
|
|
73
|
+
end
|
|
74
|
+
class Thor::Error < StandardError
|
|
75
|
+
end
|
|
76
|
+
class Thor::UndefinedCommandError < Thor::Error
|
|
77
|
+
def all_commands; end
|
|
78
|
+
def command; end
|
|
79
|
+
def initialize(command, all_commands, namespace); end
|
|
80
|
+
end
|
|
81
|
+
class Thor::UndefinedCommandError::SpellChecker
|
|
82
|
+
def corrections; end
|
|
83
|
+
def error; end
|
|
84
|
+
def initialize(error); end
|
|
85
|
+
def spell_checker; end
|
|
86
|
+
end
|
|
87
|
+
class Thor::AmbiguousCommandError < Thor::Error
|
|
88
|
+
end
|
|
89
|
+
class Thor::InvocationError < Thor::Error
|
|
90
|
+
end
|
|
91
|
+
class Thor::UnknownArgumentError < Thor::Error
|
|
92
|
+
def initialize(switches, unknown); end
|
|
93
|
+
def switches; end
|
|
94
|
+
def unknown; end
|
|
95
|
+
end
|
|
96
|
+
class Thor::UnknownArgumentError::SpellChecker
|
|
97
|
+
def corrections; end
|
|
98
|
+
def error; end
|
|
99
|
+
def initialize(error); end
|
|
100
|
+
def spell_checker; end
|
|
101
|
+
end
|
|
102
|
+
class Thor::RequiredArgumentMissingError < Thor::InvocationError
|
|
103
|
+
end
|
|
104
|
+
class Thor::MalformattedArgumentError < Thor::InvocationError
|
|
105
|
+
end
|
|
106
|
+
module Thor::Invocation
|
|
107
|
+
def _parse_initialization_options(args, opts, config); end
|
|
108
|
+
def _retrieve_class_and_command(name, sent_command = nil); end
|
|
109
|
+
def _retrieve_class_and_task(name, sent_command = nil); end
|
|
110
|
+
def _shared_configuration; end
|
|
111
|
+
def current_command_chain; end
|
|
112
|
+
def initialize(args = nil, options = nil, config = nil, &block); end
|
|
113
|
+
def invoke(name = nil, *args); end
|
|
114
|
+
def invoke_all; end
|
|
115
|
+
def invoke_command(command, *args); end
|
|
116
|
+
def invoke_task(command, *args); end
|
|
117
|
+
def invoke_with_padding(*args); end
|
|
118
|
+
def self.included(base); end
|
|
119
|
+
end
|
|
120
|
+
module Thor::Invocation::ClassMethods
|
|
121
|
+
def prepare_for_invocation(key, name); end
|
|
122
|
+
end
|
|
123
|
+
class Thor::Argument
|
|
124
|
+
def banner; end
|
|
125
|
+
def default; end
|
|
126
|
+
def default_banner; end
|
|
127
|
+
def description; end
|
|
128
|
+
def enum; end
|
|
129
|
+
def human_name; end
|
|
130
|
+
def initialize(name, options = nil); end
|
|
131
|
+
def name; end
|
|
132
|
+
def required; end
|
|
133
|
+
def required?; end
|
|
134
|
+
def show_default?; end
|
|
135
|
+
def type; end
|
|
136
|
+
def usage; end
|
|
137
|
+
def valid_type?(type); end
|
|
138
|
+
def validate!; end
|
|
139
|
+
end
|
|
140
|
+
class Thor::Arguments
|
|
141
|
+
def check_requirement!; end
|
|
142
|
+
def current_is_value?; end
|
|
143
|
+
def initialize(arguments = nil); end
|
|
144
|
+
def last?; end
|
|
145
|
+
def no_or_skip?(arg); end
|
|
146
|
+
def parse(args); end
|
|
147
|
+
def parse_array(name); end
|
|
148
|
+
def parse_hash(name); end
|
|
149
|
+
def parse_numeric(name); end
|
|
150
|
+
def parse_string(name); end
|
|
151
|
+
def peek; end
|
|
152
|
+
def remaining; end
|
|
153
|
+
def self.parse(*args); end
|
|
154
|
+
def self.split(args); end
|
|
155
|
+
def shift; end
|
|
156
|
+
def unshift(arg); end
|
|
157
|
+
end
|
|
158
|
+
class Thor::Option < Thor::Argument
|
|
159
|
+
def aliases; end
|
|
160
|
+
def array?; end
|
|
161
|
+
def boolean?; end
|
|
162
|
+
def dasherize(str); end
|
|
163
|
+
def dasherized?; end
|
|
164
|
+
def group; end
|
|
165
|
+
def hash?; end
|
|
166
|
+
def hide; end
|
|
167
|
+
def human_name; end
|
|
168
|
+
def initialize(name, options = nil); end
|
|
169
|
+
def lazy_default; end
|
|
170
|
+
def numeric?; end
|
|
171
|
+
def self.parse(key, value); end
|
|
172
|
+
def string?; end
|
|
173
|
+
def switch_name; end
|
|
174
|
+
def undasherize(str); end
|
|
175
|
+
def usage(padding = nil); end
|
|
176
|
+
def validate!; end
|
|
177
|
+
def validate_default_type!; end
|
|
178
|
+
end
|
|
179
|
+
class Thor::Options < Thor::Arguments
|
|
180
|
+
def check_unknown!; end
|
|
181
|
+
def current_is_switch?; end
|
|
182
|
+
def current_is_switch_formatted?; end
|
|
183
|
+
def current_is_value?; end
|
|
184
|
+
def initialize(hash_options = nil, defaults = nil, stop_on_unknown = nil, disable_required_check = nil); end
|
|
185
|
+
def normalize_switch(arg); end
|
|
186
|
+
def parse(args); end
|
|
187
|
+
def parse_boolean(switch); end
|
|
188
|
+
def parse_peek(switch, option); end
|
|
189
|
+
def parsing_options?; end
|
|
190
|
+
def peek; end
|
|
191
|
+
def remaining; end
|
|
192
|
+
def self.to_switches(options); end
|
|
193
|
+
def switch?(arg); end
|
|
194
|
+
def switch_option(arg); end
|
|
195
|
+
end
|
|
196
|
+
module Thor::Base
|
|
197
|
+
def args; end
|
|
198
|
+
def args=(arg0); end
|
|
199
|
+
def initialize(args = nil, local_options = nil, config = nil); end
|
|
200
|
+
def options; end
|
|
201
|
+
def options=(arg0); end
|
|
202
|
+
def parent_options; end
|
|
203
|
+
def parent_options=(arg0); end
|
|
204
|
+
def self.included(base); end
|
|
205
|
+
def self.register_klass_file(klass); end
|
|
206
|
+
def self.shell; end
|
|
207
|
+
def self.shell=(arg0); end
|
|
208
|
+
def self.subclass_files; end
|
|
209
|
+
def self.subclasses; end
|
|
210
|
+
end
|
|
211
|
+
module Thor::Shell
|
|
212
|
+
def _shared_configuration; end
|
|
213
|
+
def ask(*args, &block); end
|
|
214
|
+
def error(*args, &block); end
|
|
215
|
+
def file_collision(*args, &block); end
|
|
216
|
+
def initialize(args = nil, options = nil, config = nil); end
|
|
217
|
+
def no?(*args, &block); end
|
|
218
|
+
def print_in_columns(*args, &block); end
|
|
219
|
+
def print_table(*args, &block); end
|
|
220
|
+
def print_wrapped(*args, &block); end
|
|
221
|
+
def say(*args, &block); end
|
|
222
|
+
def say_status(*args, &block); end
|
|
223
|
+
def set_color(*args, &block); end
|
|
224
|
+
def shell; end
|
|
225
|
+
def shell=(arg0); end
|
|
226
|
+
def terminal_width(*args, &block); end
|
|
227
|
+
def with_padding; end
|
|
228
|
+
def yes?(*args, &block); end
|
|
229
|
+
end
|
|
230
|
+
module Thor::LineEditor
|
|
231
|
+
def self.best_available; end
|
|
232
|
+
def self.readline(prompt, options = nil); end
|
|
233
|
+
end
|
|
234
|
+
class Thor::LineEditor::Basic
|
|
235
|
+
def echo?; end
|
|
236
|
+
def get_input; end
|
|
237
|
+
def initialize(prompt, options); end
|
|
238
|
+
def options; end
|
|
239
|
+
def prompt; end
|
|
240
|
+
def readline; end
|
|
241
|
+
def self.available?; end
|
|
242
|
+
end
|
|
243
|
+
class Thor::LineEditor::Readline < Thor::LineEditor::Basic
|
|
244
|
+
def add_to_history?; end
|
|
245
|
+
def completion_options; end
|
|
246
|
+
def completion_proc; end
|
|
247
|
+
def readline; end
|
|
248
|
+
def self.available?; end
|
|
249
|
+
def use_path_completion?; end
|
|
250
|
+
end
|
|
251
|
+
class Thor::LineEditor::Readline::PathCompletion
|
|
252
|
+
def absolute_matches; end
|
|
253
|
+
def base_path; end
|
|
254
|
+
def glob_pattern; end
|
|
255
|
+
def initialize(text); end
|
|
256
|
+
def matches; end
|
|
257
|
+
def relative_matches; end
|
|
258
|
+
def text; end
|
|
259
|
+
end
|
|
260
|
+
module Thor::Sandbox
|
|
261
|
+
end
|
|
262
|
+
module Thor::Util
|
|
263
|
+
def self.camel_case(str); end
|
|
264
|
+
def self.escape_globs(path); end
|
|
265
|
+
def self.find_by_namespace(namespace); end
|
|
266
|
+
def self.find_class_and_command_by_namespace(namespace, fallback = nil); end
|
|
267
|
+
def self.find_class_and_task_by_namespace(namespace, fallback = nil); end
|
|
268
|
+
def self.globs_for(path); end
|
|
269
|
+
def self.load_thorfile(path, content = nil, debug = nil); end
|
|
270
|
+
def self.namespace_from_thor_class(constant); end
|
|
271
|
+
def self.namespaces_in_content(contents, file = nil); end
|
|
272
|
+
def self.ruby_command; end
|
|
273
|
+
def self.snake_case(str); end
|
|
274
|
+
def self.thor_classes_in(klass); end
|
|
275
|
+
def self.thor_root; end
|
|
276
|
+
def self.thor_root_glob; end
|
|
277
|
+
def self.user_home; end
|
|
278
|
+
end
|
|
279
|
+
module Thor::Base::ClassMethods
|
|
280
|
+
def all_commands; end
|
|
281
|
+
def all_tasks; end
|
|
282
|
+
def argument(name, options = nil); end
|
|
283
|
+
def arguments; end
|
|
284
|
+
def attr_accessor(*arg0); end
|
|
285
|
+
def attr_reader(*arg0); end
|
|
286
|
+
def attr_writer(*arg0); end
|
|
287
|
+
def baseclass; end
|
|
288
|
+
def basename; end
|
|
289
|
+
def build_option(name, options, scope); end
|
|
290
|
+
def build_options(options, scope); end
|
|
291
|
+
def check_default_type!; end
|
|
292
|
+
def check_default_type; end
|
|
293
|
+
def check_default_type?; end
|
|
294
|
+
def check_unknown_options!; end
|
|
295
|
+
def check_unknown_options; end
|
|
296
|
+
def check_unknown_options?(config); end
|
|
297
|
+
def class_option(name, options = nil); end
|
|
298
|
+
def class_options(options = nil); end
|
|
299
|
+
def class_options_help(shell, groups = nil); end
|
|
300
|
+
def commands; end
|
|
301
|
+
def create_command(meth); end
|
|
302
|
+
def create_task(meth); end
|
|
303
|
+
def disable_required_check?(command_name); end
|
|
304
|
+
def dispatch(command, given_args, given_opts, config); end
|
|
305
|
+
def exit_on_failure?; end
|
|
306
|
+
def find_and_refresh_command(name); end
|
|
307
|
+
def find_and_refresh_task(name); end
|
|
308
|
+
def from_superclass(method, default = nil); end
|
|
309
|
+
def group(name = nil); end
|
|
310
|
+
def handle_argument_error(command, error, args, arity); end
|
|
311
|
+
def handle_no_command_error(command, has_namespace = nil); end
|
|
312
|
+
def handle_no_task_error(command, has_namespace = nil); end
|
|
313
|
+
def inherited(klass); end
|
|
314
|
+
def initialize_added; end
|
|
315
|
+
def is_thor_reserved_word?(word, type); end
|
|
316
|
+
def method_added(meth); end
|
|
317
|
+
def namespace(name = nil); end
|
|
318
|
+
def no_commands; end
|
|
319
|
+
def no_tasks; end
|
|
320
|
+
def print_options(shell, options, group_name = nil); end
|
|
321
|
+
def public_command(*names); end
|
|
322
|
+
def public_task(*names); end
|
|
323
|
+
def remove_argument(*names); end
|
|
324
|
+
def remove_class_option(*names); end
|
|
325
|
+
def remove_command(*names); end
|
|
326
|
+
def remove_task(*names); end
|
|
327
|
+
def start(given_args = nil, config = nil); end
|
|
328
|
+
def stop_on_unknown_option?(command_name); end
|
|
329
|
+
def strict_args_position!; end
|
|
330
|
+
def strict_args_position; end
|
|
331
|
+
def strict_args_position?(config); end
|
|
332
|
+
def tasks; end
|
|
333
|
+
end
|
|
334
|
+
class Thor::Group
|
|
335
|
+
def self.banner; end
|
|
336
|
+
def self.baseclass; end
|
|
337
|
+
def self.class_options_help(shell, groups = nil); end
|
|
338
|
+
def self.create_command(meth); end
|
|
339
|
+
def self.create_task(meth); end
|
|
340
|
+
def self.desc(description = nil); end
|
|
341
|
+
def self.dispatch(command, given_args, given_opts, config); end
|
|
342
|
+
def self.get_options_from_invocations(group_options, base_options); end
|
|
343
|
+
def self.handle_argument_error(command, error, _args, arity); end
|
|
344
|
+
def self.help(shell); end
|
|
345
|
+
def self.invocation_blocks; end
|
|
346
|
+
def self.invocations; end
|
|
347
|
+
def self.invoke(*names, &block); end
|
|
348
|
+
def self.invoke_from_option(*names, &block); end
|
|
349
|
+
def self.printable_commands(*arg0); end
|
|
350
|
+
def self.printable_tasks(*arg0); end
|
|
351
|
+
def self.remove_invocation(*names); end
|
|
352
|
+
def self.self_command; end
|
|
353
|
+
def self.self_task; end
|
|
354
|
+
extend Thor::Base::ClassMethods
|
|
355
|
+
extend Thor::Invocation::ClassMethods
|
|
356
|
+
include Thor::Base
|
|
357
|
+
include Thor::Invocation
|
|
358
|
+
include Thor::Shell
|
|
359
|
+
end
|
|
360
|
+
class IO
|
|
361
|
+
end
|
|
362
|
+
module Thor::Actions
|
|
363
|
+
def _cleanup_options_and_set(options, key); end
|
|
364
|
+
def _shared_configuration; end
|
|
365
|
+
def action(instance); end
|
|
366
|
+
def add_file(destination, *args, &block); end
|
|
367
|
+
def add_link(destination, *args); end
|
|
368
|
+
def append_file(path, *args, &block); end
|
|
369
|
+
def append_to_file(path, *args, &block); end
|
|
370
|
+
def apply(path, config = nil); end
|
|
371
|
+
def behavior; end
|
|
372
|
+
def behavior=(arg0); end
|
|
373
|
+
def capture(*args); end
|
|
374
|
+
def chmod(path, mode, config = nil); end
|
|
375
|
+
def comment_lines(path, flag, *args); end
|
|
376
|
+
def concat(string); end
|
|
377
|
+
def copy_file(source, *args, &block); end
|
|
378
|
+
def create_file(destination, *args, &block); end
|
|
379
|
+
def create_link(destination, *args); end
|
|
380
|
+
def destination_root; end
|
|
381
|
+
def destination_root=(root); end
|
|
382
|
+
def directory(source, *args, &block); end
|
|
383
|
+
def empty_directory(destination, config = nil); end
|
|
384
|
+
def find_in_source_paths(file); end
|
|
385
|
+
def get(source, *args, &block); end
|
|
386
|
+
def gsub_file(path, flag, *args, &block); end
|
|
387
|
+
def in_root; end
|
|
388
|
+
def initialize(args = nil, options = nil, config = nil); end
|
|
389
|
+
def inject_into_class(path, klass, *args, &block); end
|
|
390
|
+
def inject_into_file(destination, *args, &block); end
|
|
391
|
+
def inject_into_module(path, module_name, *args, &block); end
|
|
392
|
+
def insert_into_file(destination, *args, &block); end
|
|
393
|
+
def inside(dir = nil, config = nil, &block); end
|
|
394
|
+
def link_file(source, *args); end
|
|
395
|
+
def output_buffer; end
|
|
396
|
+
def output_buffer=(arg0); end
|
|
397
|
+
def prepend_file(path, *args, &block); end
|
|
398
|
+
def prepend_to_file(path, *args, &block); end
|
|
399
|
+
def relative_to_original_destination_root(path, remove_dot = nil); end
|
|
400
|
+
def remove_dir(path, config = nil); end
|
|
401
|
+
def remove_file(path, config = nil); end
|
|
402
|
+
def run(command, config = nil); end
|
|
403
|
+
def run_ruby_script(command, config = nil); end
|
|
404
|
+
def self.included(base); end
|
|
405
|
+
def source_paths; end
|
|
406
|
+
def template(source, *args, &block); end
|
|
407
|
+
def thor(command, *args); end
|
|
408
|
+
def uncomment_lines(path, flag, *args); end
|
|
409
|
+
def with_output_buffer(buf = nil); end
|
|
410
|
+
end
|
|
411
|
+
class Thor::Actions::EmptyDirectory
|
|
412
|
+
def base; end
|
|
413
|
+
def config; end
|
|
414
|
+
def convert_encoded_instructions(filename); end
|
|
415
|
+
def destination; end
|
|
416
|
+
def destination=(destination); end
|
|
417
|
+
def exists?; end
|
|
418
|
+
def given_destination; end
|
|
419
|
+
def initialize(base, destination, config = nil); end
|
|
420
|
+
def invoke!; end
|
|
421
|
+
def invoke_with_conflict_check(&block); end
|
|
422
|
+
def on_conflict_behavior; end
|
|
423
|
+
def on_file_clash_behavior; end
|
|
424
|
+
def pretend?; end
|
|
425
|
+
def relative_destination; end
|
|
426
|
+
def revoke!; end
|
|
427
|
+
def say_status(status, color); end
|
|
428
|
+
end
|
|
429
|
+
class Thor::Actions::CreateFile < Thor::Actions::EmptyDirectory
|
|
430
|
+
def data; end
|
|
431
|
+
def force_on_collision?; end
|
|
432
|
+
def force_or_skip_or_conflict(force, skip, &block); end
|
|
433
|
+
def identical?; end
|
|
434
|
+
def initialize(base, destination, data, config = nil); end
|
|
435
|
+
def invoke!; end
|
|
436
|
+
def on_conflict_behavior(&block); end
|
|
437
|
+
def render; end
|
|
438
|
+
end
|
|
439
|
+
class Thor::Actions::CreateLink < Thor::Actions::CreateFile
|
|
440
|
+
def data; end
|
|
441
|
+
def exists?; end
|
|
442
|
+
def identical?; end
|
|
443
|
+
def invoke!; end
|
|
444
|
+
end
|
|
445
|
+
class Thor::Actions::Directory < Thor::Actions::EmptyDirectory
|
|
446
|
+
def execute!; end
|
|
447
|
+
def file_level_lookup(previous_lookup); end
|
|
448
|
+
def files(lookup); end
|
|
449
|
+
def initialize(base, source, destination = nil, config = nil, &block); end
|
|
450
|
+
def invoke!; end
|
|
451
|
+
def revoke!; end
|
|
452
|
+
def source; end
|
|
453
|
+
end
|
|
454
|
+
class Thor::Actions::CapturableERB < ERB
|
|
455
|
+
def set_eoutvar(compiler, eoutvar = nil); end
|
|
456
|
+
end
|
|
457
|
+
class Thor::Actions::InjectIntoFile < Thor::Actions::EmptyDirectory
|
|
458
|
+
def behavior; end
|
|
459
|
+
def flag; end
|
|
460
|
+
def initialize(base, destination, data, config); end
|
|
461
|
+
def invoke!; end
|
|
462
|
+
def replace!(regexp, string, force); end
|
|
463
|
+
def replacement; end
|
|
464
|
+
def revoke!; end
|
|
465
|
+
def say_status(behavior); end
|
|
466
|
+
end
|
|
467
|
+
module Thor::Actions::ClassMethods
|
|
468
|
+
def add_runtime_options!; end
|
|
469
|
+
def source_paths; end
|
|
470
|
+
def source_paths_for_search; end
|
|
471
|
+
def source_root(path = nil); end
|
|
472
|
+
end
|
|
473
|
+
module Rails
|
|
474
|
+
end
|
|
475
|
+
module Rails::Generators
|
|
476
|
+
end
|
|
477
|
+
class Rails::Generators::Error < Thor::Error
|
|
478
|
+
end
|
|
479
|
+
class Rails::Generators::Base < Thor::Group
|
|
480
|
+
extend Thor::Actions::ClassMethods
|
|
481
|
+
include Thor::Actions
|
|
482
|
+
end
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
|
2
|
+
# srb rbi gems
|
|
3
|
+
|
|
4
|
+
# typed: strong
|
|
5
|
+
#
|
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
|
7
|
+
#
|
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/thread_safe/all/thread_safe.rbi
|
|
9
|
+
#
|
|
10
|
+
# thread_safe-0.3.6
|
|
11
|
+
module ThreadSafe
|
|
12
|
+
end
|
|
13
|
+
module Threadsafe
|
|
14
|
+
def self.const_missing(name); end
|
|
15
|
+
end
|
|
16
|
+
class SynchronizedDelegator < SimpleDelegator
|
|
17
|
+
def initialize(obj); end
|
|
18
|
+
def method_missing(method, *args, &block); end
|
|
19
|
+
def setup; end
|
|
20
|
+
def teardown; end
|
|
21
|
+
end
|
|
22
|
+
class ThreadSafe::NonConcurrentCacheBackend
|
|
23
|
+
def [](key); end
|
|
24
|
+
def []=(key, value); end
|
|
25
|
+
def _get(key); end
|
|
26
|
+
def _set(key, value); end
|
|
27
|
+
def clear; end
|
|
28
|
+
def compute(key); end
|
|
29
|
+
def compute_if_absent(key); end
|
|
30
|
+
def compute_if_present(key); end
|
|
31
|
+
def delete(key); end
|
|
32
|
+
def delete_pair(key, value); end
|
|
33
|
+
def dupped_backend; end
|
|
34
|
+
def each_pair; end
|
|
35
|
+
def get_and_set(key, value); end
|
|
36
|
+
def get_or_default(key, default_value); end
|
|
37
|
+
def initialize(options = nil); end
|
|
38
|
+
def initialize_copy(other); end
|
|
39
|
+
def key?(key); end
|
|
40
|
+
def merge_pair(key, value); end
|
|
41
|
+
def pair?(key, expected_value); end
|
|
42
|
+
def replace_if_exists(key, new_value); end
|
|
43
|
+
def replace_pair(key, old_value, new_value); end
|
|
44
|
+
def size; end
|
|
45
|
+
def store_computed_value(key, new_value); end
|
|
46
|
+
def value?(value); end
|
|
47
|
+
end
|
|
48
|
+
class ThreadSafe::MriCacheBackend < ThreadSafe::NonConcurrentCacheBackend
|
|
49
|
+
def []=(key, value); end
|
|
50
|
+
def clear; end
|
|
51
|
+
def compute(key); end
|
|
52
|
+
def compute_if_absent(key); end
|
|
53
|
+
def compute_if_present(key); end
|
|
54
|
+
def delete(key); end
|
|
55
|
+
def delete_pair(key, value); end
|
|
56
|
+
def get_and_set(key, value); end
|
|
57
|
+
def merge_pair(key, value); end
|
|
58
|
+
def replace_if_exists(key, new_value); end
|
|
59
|
+
def replace_pair(key, old_value, new_value); end
|
|
60
|
+
end
|
|
61
|
+
class ThreadSafe::Cache < ThreadSafe::MriCacheBackend
|
|
62
|
+
def [](key); end
|
|
63
|
+
def each_key; end
|
|
64
|
+
def each_value; end
|
|
65
|
+
def empty?; end
|
|
66
|
+
def fetch(key, default_value = nil); end
|
|
67
|
+
def fetch_or_store(key, default_value = nil); end
|
|
68
|
+
def get(key); end
|
|
69
|
+
def initialize(options = nil, &block); end
|
|
70
|
+
def initialize_copy(other); end
|
|
71
|
+
def key(value); end
|
|
72
|
+
def keys; end
|
|
73
|
+
def marshal_dump; end
|
|
74
|
+
def marshal_load(hash); end
|
|
75
|
+
def populate_from(hash); end
|
|
76
|
+
def put(key, value); end
|
|
77
|
+
def put_if_absent(key, value); end
|
|
78
|
+
def raise_fetch_no_key; end
|
|
79
|
+
def validate_options_hash!(options); end
|
|
80
|
+
def values; end
|
|
81
|
+
end
|