Skip to content

Commit

Permalink
chore(deps): update dependency ruby to v3.4.2 (generated)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
algolia-bot and renovate[bot] committed Feb 17, 2025
1 parent 14459b4 commit 3e9eabd
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/bundled/insights-snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@
},
"pushEvents": {
"pushEvents": "response = client.push_events(\n Algolia::Insights::InsightsEvents.new(\n events: [\n Algolia::Insights::ClickedObjectIDsAfterSearch.new(\n event_type: \"click\",\n event_name: \"Product Clicked\",\n index: \"products\",\n user_token: \"user-123456\",\n authenticated_user_token: \"user-123456\",\n timestamp: 1641290601962,\n object_ids: [\"9780545139700\", \"9780439784542\"],\n query_id: \"43b15df305339e827f0ac0bdc5ebcaa7\",\n positions: [7, 6]\n )\n ]\n )\n)",
"Many events type": "response = client.push_events(\n Algolia::Insights::InsightsEvents.new(\n events: [\n Algolia::Insights::ConvertedObjectIDsAfterSearch.new(\n event_type: \"conversion\",\n event_name: \"Product Purchased\",\n index: \"products\",\n user_token: \"user-123456\",\n authenticated_user_token: \"user-123456\",\n timestamp: 1739232000000,\n object_ids: [\"9780545139700\", \"9780439784542\"],\n query_id: \"43b15df305339e827f0ac0bdc5ebcaa7\"\n ),\n Algolia::Insights::ViewedObjectIDs.new(\n event_type: \"view\",\n event_name: \"Product Detail Page Viewed\",\n index: \"products\",\n user_token: \"user-123456\",\n authenticated_user_token: \"user-123456\",\n timestamp: 1739232000000,\n object_ids: [\"9780545139700\", \"9780439784542\"]\n )\n ]\n )\n)",
"Many events type": "response = client.push_events(\n Algolia::Insights::InsightsEvents.new(\n events: [\n Algolia::Insights::ConvertedObjectIDsAfterSearch.new(\n event_type: \"conversion\",\n event_name: \"Product Purchased\",\n index: \"products\",\n user_token: \"user-123456\",\n authenticated_user_token: \"user-123456\",\n timestamp: 1739750400000,\n object_ids: [\"9780545139700\", \"9780439784542\"],\n query_id: \"43b15df305339e827f0ac0bdc5ebcaa7\"\n ),\n Algolia::Insights::ViewedObjectIDs.new(\n event_type: \"view\",\n event_name: \"Product Detail Page Viewed\",\n index: \"products\",\n user_token: \"user-123456\",\n authenticated_user_token: \"user-123456\",\n timestamp: 1739750400000,\n object_ids: [\"9780545139700\", \"9780439784542\"]\n )\n ]\n )\n)",
"ConvertedObjectIDsAfterSearch": "response = client.push_events(\n Algolia::Insights::InsightsEvents.new(\n events: [\n Algolia::Insights::ConvertedObjectIDsAfterSearch.new(\n event_type: \"conversion\",\n event_name: \"Product Purchased\",\n index: \"products\",\n user_token: \"user-123456\",\n authenticated_user_token: \"user-123456\",\n timestamp: 1641290601962,\n object_ids: [\"9780545139700\", \"9780439784542\"],\n query_id: \"43b15df305339e827f0ac0bdc5ebcaa7\"\n )\n ]\n )\n)",
"ViewedObjectIDs": "response = client.push_events(\n Algolia::Insights::InsightsEvents.new(\n events: [\n Algolia::Insights::ViewedObjectIDs.new(\n event_type: \"view\",\n event_name: \"Product Detail Page Viewed\",\n index: \"products\",\n user_token: \"user-123456\",\n authenticated_user_token: \"user-123456\",\n timestamp: 1641290601962,\n object_ids: [\"9780545139700\", \"9780439784542\"]\n )\n ]\n )\n)",
"AddedToCartObjectIDs": "response = client.push_events(\n Algolia::Insights::InsightsEvents.new(\n events: [\n Algolia::Insights::AddedToCartObjectIDsAfterSearch.new(\n event_type: \"conversion\",\n event_subtype: \"addToCart\",\n event_name: \"Product Added To Cart\",\n index: \"products\",\n query_id: \"43b15df305339e827f0ac0bdc5ebcaa7\",\n user_token: \"user-123456\",\n authenticated_user_token: \"user-123456\",\n timestamp: 1641290601962,\n object_ids: [\"9780545139700\", \"9780439784542\"],\n object_data: [\n Algolia::Insights::ObjectDataAfterSearch.new(price: 19.99, quantity: 10, discount: 2.5),\n Algolia::Insights::ObjectDataAfterSearch.new(price: \"8$\", quantity: 7, discount: \"30%\")\n ],\n currency: \"USD\"\n )\n ]\n )\n)"
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/ruby/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ GEM
faraday (~> 2.5)
net-http-persistent (>= 4.0.4, < 5)
json (2.10.1)
logger (1.6.5)
logger (1.6.6)
net-http (0.6.0)
uri
net-http-persistent (4.0.5)
Expand Down
4 changes: 2 additions & 2 deletions docs/snippets/ruby/insights.rb
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def snippet_for_push_events1
index: "products",
user_token: "user-123456",
authenticated_user_token: "user-123456",
timestamp: 1739232000000,
timestamp: 1739750400000,
object_ids: ["9780545139700", "9780439784542"],
query_id: "43b15df305339e827f0ac0bdc5ebcaa7"
),
Expand All @@ -497,7 +497,7 @@ def snippet_for_push_events1
index: "products",
user_token: "user-123456",
authenticated_user_token: "user-123456",
timestamp: 1739232000000,
timestamp: 1739750400000,
object_ids: ["9780545139700", "9780439784542"]
)
]
Expand Down
8 changes: 4 additions & 4 deletions tests/output/ruby/test/e2e/insights_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def test_push_events1
index: "products",
user_token: "user-123456",
authenticated_user_token: "user-123456",
timestamp: 1739232000000,
timestamp: 1739750400000,
object_ids: ["9780545139700", "9780439784542"],
query_id: "43b15df305339e827f0ac0bdc5ebcaa7"
),
Expand All @@ -37,7 +37,7 @@ def test_push_events1
index: "products",
user_token: "user-123456",
authenticated_user_token: "user-123456",
timestamp: 1739232000000,
timestamp: 1739750400000,
object_ids: ["9780545139700", "9780439784542"]
)
]
Expand All @@ -54,7 +54,7 @@ def test_push_events1
index: "products",
user_token: "user-123456",
authenticated_user_token: "user-123456",
timestamp: 1739232000000,
timestamp: 1739750400000,
object_ids: ["9780545139700", "9780439784542"],
query_id: "43b15df305339e827f0ac0bdc5ebcaa7"
),
Expand All @@ -64,7 +64,7 @@ def test_push_events1
index: "products",
user_token: "user-123456",
authenticated_user_token: "user-123456",
timestamp: 1739232000000,
timestamp: 1739750400000,
object_ids: ["9780545139700", "9780439784542"]
)
]
Expand Down
6 changes: 3 additions & 3 deletions tests/output/ruby/test/requests/insights_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def test_push_events1
index: "products",
user_token: "user-123456",
authenticated_user_token: "user-123456",
timestamp: 1739232000000,
timestamp: 1739750400000,
object_ids: ["9780545139700", "9780439784542"],
query_id: "43b15df305339e827f0ac0bdc5ebcaa7"
),
Expand All @@ -347,7 +347,7 @@ def test_push_events1
index: "products",
user_token: "user-123456",
authenticated_user_token: "user-123456",
timestamp: 1739232000000,
timestamp: 1739750400000,
object_ids: ["9780545139700", "9780439784542"]
)
]
Expand All @@ -360,7 +360,7 @@ def test_push_events1
assert(({}.to_a - req.headers.to_a).empty?, req.headers.to_s)
assert_equal(
JSON.parse(
"{\"events\":[{\"eventType\":\"conversion\",\"eventName\":\"Product Purchased\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1739232000000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"],\"queryID\":\"43b15df305339e827f0ac0bdc5ebcaa7\"},{\"eventType\":\"view\",\"eventName\":\"Product Detail Page Viewed\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1739232000000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"]}]}"
"{\"events\":[{\"eventType\":\"conversion\",\"eventName\":\"Product Purchased\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1739750400000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"],\"queryID\":\"43b15df305339e827f0ac0bdc5ebcaa7\"},{\"eventType\":\"view\",\"eventName\":\"Product Detail Page Viewed\",\"index\":\"products\",\"userToken\":\"user-123456\",\"authenticatedUserToken\":\"user-123456\",\"timestamp\":1739750400000,\"objectIDs\":[\"9780545139700\",\"9780439784542\"]}]}"
),
JSON.parse(req.body)
)
Expand Down

0 comments on commit 3e9eabd

Please sign in to comment.