repo stringlengths 5 92 | file_url stringlengths 80 287 | file_path stringlengths 5 197 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:37:27 2026-01-04 17:58:21 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb | elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_data_frame_analytics.rb | elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_data_frame_analytics.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar.rb | elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_datafeed.rb | elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_datafeed.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_datafeed.rb | elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_datafeed.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_data_frame_analytics.rb | elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_data_frame_analytics.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeeds.rb | elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeeds.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch-api/lib/elasticsearch/api/actions/xpack/usage.rb | elasticsearch-api/lib/elasticsearch/api/actions/xpack/usage.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch-api/lib/elasticsearch/api/actions/xpack/info.rb | elasticsearch-api/lib/elasticsearch/api/actions/xpack/info.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch-api/lib/elasticsearch/api/actions/streams/logs_disable.rb | elasticsearch-api/lib/elasticsearch/api/actions/streams/logs_disable.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch-api/lib/elasticsearch/api/actions/streams/logs_enable.rb | elasticsearch-api/lib/elasticsearch/api/actions/streams/logs_enable.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch-api/lib/elasticsearch/api/actions/streams/status.rb | elasticsearch-api/lib/elasticsearch/api/actions/streams/status.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch-api/lib/elasticsearch/api/actions/sql/delete_async.rb | elasticsearch-api/lib/elasticsearch/api/actions/sql/delete_async.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch-api/lib/elasticsearch/api/actions/sql/translate.rb | elasticsearch-api/lib/elasticsearch/api/actions/sql/translate.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch-api/lib/elasticsearch/api/actions/sql/clear_cursor.rb | elasticsearch-api/lib/elasticsearch/api/actions/sql/clear_cursor.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch-api/lib/elasticsearch/api/actions/sql/query.rb | elasticsearch-api/lib/elasticsearch/api/actions/sql/query.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async_status.rb | elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async_status.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async.rb | elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch-api/api-spec-testing/custom_cleanup.rb | elasticsearch-api/api-spec-testing/custom_cleanup.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch-api/api-spec-testing/logging.rb | elasticsearch-api/api-spec-testing/logging.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch-api/api-spec-testing/test_file.rb | elasticsearch-api/api-spec-testing/test_file.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch-api/api-spec-testing/wipe_cluster.rb | elasticsearch-api/api-spec-testing/wipe_cluster.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch-api/api-spec-testing/rspec_matchers.rb | elasticsearch-api/api-spec-testing/rspec_matchers.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch-api/api-spec-testing/test_file/test.rb | elasticsearch-api/api-spec-testing/test_file/test.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch-api/api-spec-testing/test_file/task_group.rb | elasticsearch-api/api-spec-testing/test_file/task_group.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch-api/api-spec-testing/test_file/action.rb | elasticsearch-api/api-spec-testing/test_file/action.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch/spec/spec_helper.rb | elasticsearch/spec/spec_helper.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch/spec/integration/opentelemetry_spec.rb | elasticsearch/spec/integration/opentelemetry_spec.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch/spec/integration/client_integration_spec.rb | elasticsearch/spec/integration/client_integration_spec.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch/spec/integration/characters_escaping_spec.rb | elasticsearch/spec/integration/characters_escaping_spec.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch/spec/integration/helpers/scroll_helper_spec.rb | elasticsearch/spec/integration/helpers/scroll_helper_spec.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch/spec/integration/helpers/bulk_helper_spec.rb | elasticsearch/spec/integration/helpers/bulk_helper_spec.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch/spec/integration/helpers/esql_helper_spec.rb | elasticsearch/spec/integration/helpers/esql_helper_spec.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch/spec/unit/user_agent_spec.rb | elasticsearch/spec/unit/user_agent_spec.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch/spec/unit/cloud_credentials_spec.rb | elasticsearch/spec/unit/cloud_credentials_spec.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch/spec/unit/opaque_id_spec.rb | elasticsearch/spec/unit/opaque_id_spec.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch/spec/unit/wrapper_gem_spec.rb | elasticsearch/spec/unit/wrapper_gem_spec.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch/spec/unit/custom_transport_implementation_spec.rb | elasticsearch/spec/unit/custom_transport_implementation_spec.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch/spec/unit/headers_spec.rb | elasticsearch/spec/unit/headers_spec.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch/spec/unit/api_key_spec.rb | elasticsearch/spec/unit/api_key_spec.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch/spec/unit/elasticsearch_product_validation_spec.rb | elasticsearch/spec/unit/elasticsearch_product_validation_spec.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch/lib/elasticsearch-ruby.rb | elasticsearch/lib/elasticsearch-ruby.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch/lib/elasticsearch.rb | elasticsearch/lib/elasticsearch.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch/lib/elasticsearch/version.rb | elasticsearch/lib/elasticsearch/version.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch/lib/elasticsearch/helpers/scroll_helper.rb | elasticsearch/lib/elasticsearch/helpers/scroll_helper.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch/lib/elasticsearch/helpers/bulk_helper.rb | elasticsearch/lib/elasticsearch/helpers/bulk_helper.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/elasticsearch/lib/elasticsearch/helpers/esql_helper.rb | elasticsearch/lib/elasticsearch/helpers/esql_helper.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/docs/examples/rabbitmq/consumer-publisher.rb | docs/examples/rabbitmq/consumer-publisher.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/docs/examples/watcher/error_500.rb | docs/examples/watcher/error_500.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/docs/examples/apm/elastic_sinatra_app.rb | docs/examples/apm/elastic_sinatra_app.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/docs/examples/apm/games_data.rb | docs/examples/apm/games_data.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | true |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/docs/examples/apm/pinger.rb | docs/examples/apm/pinger.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
elastic/elasticsearch-ruby | https://github.com/elastic/elasticsearch-ruby/blob/aa89fab9a190cc353808a06759df35be6b6dc5d1/docs/examples/percolator/percolator_alerts.rb | docs/examples/percolator/percolator_alerts.rb | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | ruby | Apache-2.0 | aa89fab9a190cc353808a06759df35be6b6dc5d1 | 2026-01-04T15:59:14.906788Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/deeply_nested_associated_record_test.rb | test/deeply_nested_associated_record_test.rb | # frozen_string_literal: true
require "test_helper"
class DeeplyNestedAssociatedRecordHasOneTest < IdentityCache::TestCase
def test_deeply_nested_models_can_cache_has_one_associations
assert_nothing_raised do
PolymorphicRecord.include(IdentityCache::WithoutPrimaryIndex)
Deeply::Nested::AssociatedRec... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/serialization_format_change_test.rb | test/serialization_format_change_test.rb | # frozen_string_literal: true
require "test_helper"
require "helpers/serialization_format"
class SerializationFormatChangeTest < IdentityCache::TestCase
include SerializationFormat
MESSAGE = <<~MSG.squish
serialization format changed => increment
IdentityCache.CACHE_VERSION and run rake update_serializat... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/lazy_load_associated_classes_test.rb | test/lazy_load_associated_classes_test.rb | # frozen_string_literal: true
require "test_helper"
class LazyLoadAssociatedClassesTest < IdentityCache::TestCase
def test_cache_has_many_does_not_load_associated_class
Item.has_many(:missing_model)
Item.cache_has_many(:missing_model)
end
def test_cache_has_many_embed_does_not_load_associated_class
... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/readonly_test.rb | test/readonly_test.rb | # frozen_string_literal: true
require "test_helper"
class ReadonlyTest < IdentityCache::TestCase
def setup
super
@key = "foo"
@value = "bar"
@record = Item.new
@record.id = 1
@record.title = "bob"
@bob = Item.create!(title: "bob")
@joe = Item.create!(title: "joe")
@fred = Item.cr... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/fetch_test.rb | test/fetch_test.rb | # frozen_string_literal: true
require "test_helper"
class FetchTest < IdentityCache::TestCase
NAMESPACE = IdentityCache::CacheKeyGeneration::DEFAULT_NAMESPACE
def setup
super
Item.cache_index(:title, unique: true)
Item.cache_index(:id, :title, unique: true)
@record = Item.new
@record.id = 1
... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/polymorphic_has_many_test.rb | test/polymorphic_has_many_test.rb | # frozen_string_literal: true
require "test_helper"
class PolymorphicHasManyTest < IdentityCache::TestCase
def setup
super
PolymorphicRecord.include(IdentityCache)
Item.cache_has_many(:polymorphic_records)
ItemTwo.cache_has_many(:polymorphic_records)
end
def test_polymorphic_has_many_filters_b... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/cache_hash_test.rb | test/cache_hash_test.rb | # frozen_string_literal: true
require "test_helper"
class CacheHashTest < IdentityCache::TestCase
def test_memcache_hash
3.times do
random_str = Array.new(200) { rand(36).to_s(36) }.join
hash_val = IdentityCache.memcache_hash(random_str)
assert(hash_val)
assert_kind_of(Numeric, hash_val)... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/fetch_multi_by_test.rb | test/fetch_multi_by_test.rb | # frozen_string_literal: true
require "test_helper"
class FetchMultiByTest < IdentityCache::TestCase
NAMESPACE = IdentityCache::CacheKeyGeneration::DEFAULT_NAMESPACE
def setup
super
@bob = Item.new
@bob.id = 1
@bob.item_id = 100
@bob.title = "bob"
@bertha = Item.new
@bertha.id = 2
... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/attribute_cache_test.rb | test/attribute_cache_test.rb | # frozen_string_literal: true
require "test_helper"
class AttributeCacheTest < IdentityCache::TestCase
NAMESPACE = IdentityCache::CacheKeyGeneration::DEFAULT_NAMESPACE
def setup
super
AssociatedRecord.cache_attribute(:name)
@parent = Item.create!(title: "bob")
@record = @parent.associated_record... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/cache_invalidation_test.rb | test/cache_invalidation_test.rb | # frozen_string_literal: true
require "test_helper"
class CacheInvalidationTest < IdentityCache::TestCase
def setup
super
@record = Item.new(title: "foo")
@record.associated_records << AssociatedRecord.new(name: "bar")
@record.associated_records << AssociatedRecord.new(name: "baz")
@record.save... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/denormalized_has_one_test.rb | test/denormalized_has_one_test.rb | # frozen_string_literal: true
require "test_helper"
class DenormalizedHasOneTest < IdentityCache::TestCase
def setup
super
PolymorphicRecord.include(IdentityCache::WithoutPrimaryIndex)
Item.cache_has_one(:associated, embed: true)
Item.cache_index(:title, unique: true)
@cached_attribute = Item.ca... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/normalized_has_one_test.rb | test/normalized_has_one_test.rb | # frozen_string_literal: true
require "test_helper"
class NormalizedHasOneTest < IdentityCache::TestCase
def setup
super
Item.cache_has_one(:associated, embed: :id)
@record = Item.new(title: "foo")
@record.build_associated(name: "bar")
@record.save!
@record.reload
@baz = @record.associa... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/parent_model_expiration_test.rb | test/parent_model_expiration_test.rb | # frozen_string_literal: true
require "test_helper"
class ParentModelExpirationTest < IdentityCache::TestCase
def test_recursively_expire_parent_caches
define_cache_indexes = lambda do
AssociatedRecord.cache_has_many(:deeply_associated_records, embed: true)
Item.cache_has_many(:associated_records, e... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/test_helper.rb | test/test_helper.rb | # frozen_string_literal: true
require "logger"
require "minitest/autorun"
require "mocha/minitest"
require "active_record"
require "helpers/database_connection"
require "helpers/cache_connection"
require "helpers/active_record_objects"
require "helpers/mocked_cache_backend"
require "spy/integration"
require File.dirn... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/custom_primary_keys_test.rb | test/custom_primary_keys_test.rb | # frozen_string_literal: true
require "test_helper"
class CustomPrimaryKeysTest < IdentityCache::TestCase
def setup
super
CustomParentRecord.cache_has_many(:custom_child_records)
CustomChildRecord.cache_belongs_to(:custom_parent_record)
@parent_record = CustomParentRecord.create!(parent_primary_key:... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/memoized_cache_proxy_test.rb | test/memoized_cache_proxy_test.rb | # frozen_string_literal: true
require "test_helper"
class MemoizedCacheProxyTest < IdentityCache::TestCase
def test_changing_default_cache
IdentityCache.cache_backend = ActiveSupport::Cache::MemoryStore.new
IdentityCache.cache.write("foo", "bar")
assert_equal("bar", IdentityCache.cache.fetch("foo"))
e... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/normalized_has_many_test.rb | test/normalized_has_many_test.rb | # frozen_string_literal: true
require "test_helper"
class NormalizedHasManyTest < IdentityCache::TestCase
def setup
super
Item.cache_has_many(:associated_records, embed: :ids)
@record = Item.new(title: "foo", created_at: 1.second.ago)
@record.not_cached_records << NotCachedRecord.new(name: "NoCache... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/fetch_multi_test.rb | test/fetch_multi_test.rb | # frozen_string_literal: true
require "test_helper"
class FetchMultiTest < IdentityCache::TestCase
NAMESPACE = IdentityCache.cache_namespace
def setup
super
@bob = Item.create!(title: "bob")
@joe = Item.create!(title: "joe")
@fred = Item.create!(title: "fred")
attr_string = "created_at:dateti... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/cache_fetch_includes_test.rb | test/cache_fetch_includes_test.rb | # frozen_string_literal: true
require "test_helper"
class CacheFetchIncludesTest < IdentityCache::TestCase
def setup
super
end
def test_cached_embedded_has_manys_are_included_in_includes
Item.send(:cache_has_many, :associated_records, embed: true)
assert_equal([:associated_records], Item.send(:cach... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/prefetch_associations_test.rb | test/prefetch_associations_test.rb | # frozen_string_literal: true
require "test_helper"
module IdentityCache
class PrefetchAssociationsTest < IdentityCache::TestCase
NAMESPACE = IdentityCache.cache_namespace
def setup
super
@bob = Item.create!(title: "bob")
@joe = Item.create!(title: "joe")
@fred = Item.create!(title:... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/cache_key_generation_test.rb | test/cache_key_generation_test.rb | # frozen_string_literal: true
require "test_helper"
module IdentityCache
class CacheKeyGenerationTest < IdentityCache::TestCase
NORMALIZED_SCHEMA_STRING = "created_at:datetime,id:integer,item_id:integer,item_two_id:integer," \
"name:string,updated_at:datetime"
def test_schema_string
assert_equa... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/cache_fetcher_test.rb | test/cache_fetcher_test.rb | # frozen_string_literal: true
require "test_helper"
require "socket"
class CacheFetcherTest < IdentityCache::TestCase
attr_reader :key, :cache_fetcher
def setup
super
@cache_fetcher = IdentityCache::CacheFetcher.new(backend)
@key = "key"
end
def test_fetch_without_lock_miss
assert_memcache_o... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/recursive_denormalized_has_many_test.rb | test/recursive_denormalized_has_many_test.rb | # frozen_string_literal: true
require "test_helper"
class RecursiveDenormalizedHasManyTest < IdentityCache::TestCase
def setup
super
AssociatedRecord.cache_has_many(:deeply_associated_records, embed: true)
Item.cache_has_many(:associated_records, embed: true)
Item.cache_has_one(:associated, embed: t... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/normalized_belongs_to_test.rb | test/normalized_belongs_to_test.rb | # frozen_string_literal: true
require "test_helper"
class NormalizedBelongsToTest < IdentityCache::TestCase
def setup
super
AssociatedRecord.cache_belongs_to(:item)
@parent_record = Item.new(title: "foo")
@parent_record.associated_records << AssociatedRecord.new(name: "bar")
@parent_record.save... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/identity_cache_test.rb | test/identity_cache_test.rb | # frozen_string_literal: true
require "test_helper"
class IdentityCacheTest < IdentityCache::TestCase
class BadModelBase < ActiveRecord::Base
include IdentityCache
end
class BadModel < BadModelBase
end
def test_identity_cache_raises_if_loaded_twice
assert_raises(IdentityCache::AlreadyIncludedError... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/index_cache_test.rb | test/index_cache_test.rb | # frozen_string_literal: true
require "test_helper"
class IndexCacheTest < IdentityCache::TestCase
NAMESPACE = IdentityCache::CacheKeyGeneration::DEFAULT_NAMESPACE
class WithoutSetup < IdentityCache::TestCase
def test_no_queries_on_definition
# should not do schema queries eagerly
assert_no_queri... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/expiry_hook_test.rb | test/expiry_hook_test.rb | # frozen_string_literal: true
require "test_helper"
module IdentityCache
class ExpiryHookTest < IdentityCache::TestCase
def test_install_on_reference_association
hook = ExpiryHook.new(reference_cached_association)
hook.install
assert_equal(
DeeplyAssociatedRecord.parent_expiration_en... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/schema_change_test.rb | test/schema_change_test.rb | # frozen_string_literal: true
require "test_helper"
class SchemaChangeTest < IdentityCache::TestCase
Migration = ActiveRecord::Migration[5.2]
class AddColumnToChild < Migration
def up
add_column(:associated_records, :shiny, :string)
end
end
class AddColumnToDeepChild < Migration
def up
... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/memoized_attributes_test.rb | test/memoized_attributes_test.rb | # frozen_string_literal: true
require "test_helper"
class MemoizedAttributesTest < IdentityCache::TestCase
def setup
super
IdentityCache.fetch_read_only_records = false
end
def teardown
IdentityCache.fetch_read_only_records = true
super
end
def test_memoization_should_not_break_dirty_track... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/association_error_test.rb | test/association_error_test.rb | # frozen_string_literal: true
require "test_helper"
class AssociationErrorTest < IdentityCache::TestCase
def test_cache_belongs_to
error = assert_raises(IdentityCache::AssociationError) do
Item.send(:cache_belongs_to, :foo)
end
assert_equal("Association named 'foo' was not found on Item", error.me... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/save_test.rb | test/save_test.rb | # frozen_string_literal: true
require "test_helper"
class SaveTest < IdentityCache::TestCase
NAMESPACE = IdentityCache::CacheKeyGeneration::DEFAULT_NAMESPACE
ATTR_STRING = "created_at:datetime,id:integer,item_id:integer,title:string,updated_at:datetime"
def setup
super
Item.cache_index(:title, unique... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/denormalized_has_many_test.rb | test/denormalized_has_many_test.rb | # frozen_string_literal: true
require "test_helper"
class DenormalizedHasManyTest < IdentityCache::TestCase
def setup
super
PolymorphicRecord.include(IdentityCache::WithoutPrimaryIndex)
Item.cache_has_many(:associated_records, embed: true)
@record = Item.new(title: "foo")
@record.associated_rec... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/load_strategy/lazy_test.rb | test/load_strategy/lazy_test.rb | # frozen_string_literal: true
require "test_helper"
module IdentityCache
module LoadStrategy
class LazyTest < IdentityCache::TestCase
def setup
super
@lazy = Lazy.new
end
attr_reader :lazy
def test_load
record = AssociatedRecord.create!
lazy.load(Associa... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/load_strategy/load_request_test.rb | test/load_strategy/load_request_test.rb | # frozen_string_literal: true
require "test_helper"
module IdentityCache
module LoadStrategy
class LoadRequestTest < IdentityCache::TestCase
def test_db_keys
db_keys = [1, 2, 3]
load_request = LoadRequest.new(db_keys, proc {})
assert_equal(db_keys, load_request.db_keys)
end
... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/load_strategy/multi_load_request_test.rb | test/load_strategy/multi_load_request_test.rb | # frozen_string_literal: true
require "test_helper"
module IdentityCache
module LoadStrategy
class MultiLoadRequestTest < IdentityCache::TestCase
def test_db_keys
multi_load_request = MultiLoadRequest.new([
LoadRequest.new([1], proc {}),
LoadRequest.new([2], proc {}),
... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/load_strategy/eager_test.rb | test/load_strategy/eager_test.rb | # frozen_string_literal: true
require "test_helper"
module IdentityCache
module LoadStrategy
class EagerTest < IdentityCache::TestCase
def test_load
record = AssociatedRecord.create!
Eager.load(AssociatedRecord.cached_primary_index, record.id) do |loaded_record|
assert_equal(reco... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/helpers/active_record_objects.rb | test/helpers/active_record_objects.rb | # frozen_string_literal: true
module SwitchNamespace
module ClassMethods
def rails_cache_key_namespace
"#{namespace}:#{super}"
end
end
class << self
def included(base)
base.extend(ClassMethods)
base.class_eval do
class_attribute(:namespace)
self.namespace = "ns"
... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/helpers/models.rb | test/helpers/models.rb | # frozen_string_literal: true
class DeeplyAssociatedRecord < ActiveRecord::Base
include IdentityCache
belongs_to :item
belongs_to :associated_record
default_scope { order("name DESC") }
end
class AssociatedRecord < ActiveRecord::Base
belongs_to :item, inverse_of: :associated_records
belongs_to :item_two, ... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/helpers/database_connection.rb | test/helpers/database_connection.rb | # frozen_string_literal: true
module DatabaseConnection
class << self
def db_name
ENV.fetch("DB", "mysql2")
end
def setup
db_config = DEFAULT_CONFIG.fetch(db_name)
begin
ActiveRecord::Base.establish_connection(db_config)
ActiveRecord::Base.connection
rescue
... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/helpers/serialization_format.rb | test/helpers/serialization_format.rb | # frozen_string_literal: true
module SerializationFormat
def serialized_record
AssociatedRecord.cache_has_many(:deeply_associated_records, embed: true)
AssociatedRecord.cache_belongs_to(:item)
Item.cache_has_many(:associated_records, embed: true)
Item.cache_has_one(:associated, embed: true)
time ... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/helpers/mocked_cache_backend.rb | test/helpers/mocked_cache_backend.rb | # frozen_string_literal: true
# Allows to easily simulate a single broken call to backend
# with a passthrough for everything else.
class MockedCacheBackend < SimpleDelegator
class CacheCall
def initialize(key_or_pattern, value)
@pattern = Regexp.new(key_or_pattern)
@value = value
end
def ma... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/helpers/update_serialization_format.rb | test/helpers/update_serialization_format.rb | # frozen_string_literal: true
$LOAD_PATH.unshift(File.expand_path("../../../lib", __FILE__))
require "logger"
require "active_record"
require "memcached_store"
require "active_support/cache/memcached_store"
require_relative "serialization_format"
require_relative "database_connection"
require_relative "cache_connecti... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/helpers/cache_connection.rb | test/helpers/cache_connection.rb | # frozen_string_literal: true
module CacheConnection
extend self
# This patches AR::MemcacheStore to notify AS::Notifications upon read_multis like the rest of rails does
module MemcachedStoreInstrumentation
def read_multi(*args, &block)
instrument("read_multi", "MULTI", keys: args) do
super(*... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/cached/association_test.rb | test/cached/association_test.rb | # frozen_string_literal: true
require "test_helper"
module IdentityCache
module Cached
class AssociationTest < IdentityCache::TestCase
def setup
super
@reflection = reflect(AssociatedRecord, :item)
@association = Association.new(:item, reflection: @reflection)
end
attr... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/cached/belongs_to_test.rb | test/cached/belongs_to_test.rb | # frozen_string_literal: true
require "test_helper"
module IdentityCache
module Cached
class BelongsToTest < IdentityCache::TestCase
def setup
super
@reflection = reflect(AssociatedRecord, :item)
@belongs_to = BelongsTo.new(:item, reflection: @reflection)
end
attr_read... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/cached/recursive/has_many_test.rb | test/cached/recursive/has_many_test.rb | # frozen_string_literal: true
require "test_helper"
module IdentityCache
module Cached
module Recursive
class HasManyTest < IdentityCache::TestCase
def setup
super
@reflection = reflect(AssociatedRecord, :deeply_associated_records)
@has_many = HasMany.new(:deeply_asso... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Shopify/identity_cache | https://github.com/Shopify/identity_cache/blob/460c68c333b3605273b1e1355f657a07e570ec8f/test/cached/recursive/has_one_test.rb | test/cached/recursive/has_one_test.rb | # frozen_string_literal: true
require "test_helper"
module IdentityCache
module Cached
module Recursive
class HasOneTest < IdentityCache::TestCase
def setup
super
@reflection = reflect(AssociatedRecord, :deeply_associated)
@has_one = HasMany.new(:deeply_associated, re... | ruby | MIT | 460c68c333b3605273b1e1355f657a07e570ec8f | 2026-01-04T15:59:24.839029Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.