Skip to content

Commit ef141ea

Browse files
committed
fix(ruby): prefix models by the module (generated)
Co-authored-by: Pierre Millot <[email protected]>
1 parent 69d6083 commit ef141ea

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+4011
-51774
lines changed

guides/abtesting-snippets.json

Lines changed: 11 additions & 368 deletions
Large diffs are not rendered by default.

guides/analytics-snippets.json

Lines changed: 9 additions & 744 deletions
Large diffs are not rendered by default.

guides/ingestion-snippets.json

Lines changed: 34 additions & 1660 deletions
Large diffs are not rendered by default.

guides/insights-snippets.json

Lines changed: 11 additions & 288 deletions
Large diffs are not rendered by default.

guides/monitoring-snippets.json

Lines changed: 9 additions & 447 deletions
Large diffs are not rendered by default.

guides/personalization-snippets.json

Lines changed: 10 additions & 313 deletions
Large diffs are not rendered by default.

guides/query-suggestions-snippets.json

Lines changed: 11 additions & 395 deletions
Large diffs are not rendered by default.

guides/recommend-snippets.json

Lines changed: 11 additions & 408 deletions
Large diffs are not rendered by default.

guides/search-snippets.json

Lines changed: 107 additions & 2520 deletions
Large diffs are not rendered by default.

specs/bundled/abtesting.doc.yml

Lines changed: 51 additions & 2016 deletions
Large diffs are not rendered by default.

specs/bundled/analytics.doc.yml

Lines changed: 139 additions & 4450 deletions
Large diffs are not rendered by default.

specs/bundled/ingestion.doc.yml

Lines changed: 294 additions & 11700 deletions
Large diffs are not rendered by default.

specs/bundled/insights.doc.yml

Lines changed: 2 additions & 1285 deletions
Large diffs are not rendered by default.

specs/bundled/monitoring.doc.yml

Lines changed: 132 additions & 2442 deletions
Large diffs are not rendered by default.

specs/bundled/personalization.doc.yml

Lines changed: 5 additions & 1556 deletions
Large diffs are not rendered by default.

specs/bundled/query-suggestions.doc.yml

Lines changed: 53 additions & 2365 deletions
Large diffs are not rendered by default.

specs/bundled/recommend.doc.yml

Lines changed: 18 additions & 2104 deletions
Large diffs are not rendered by default.

specs/bundled/search.doc.yml

Lines changed: 2623 additions & 16316 deletions
Large diffs are not rendered by default.

tests/output/ruby/test/benchmark/search_test.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
require "test/unit"
44

55
class BenchmarkClientSearchClient < Test::Unit::TestCase
6-
include Algolia::Search
76
# benchmark the search method
87
def test_benchmark0
98
client = Algolia::SearchClient.create_with_config(
@@ -23,9 +22,9 @@ def test_benchmark0
2322
)
2423
for i in 1..2000
2524
req = client.search(
26-
SearchMethodParams.new(
25+
Algolia::Search::SearchMethodParams.new(
2726
requests: [
28-
SearchForHits.new(
27+
Algolia::Search::SearchForHits.new(
2928
index_name: "cts_e2e_benchmark_search_ruby",
3029
query: "iphone 15 pro max 512gb",
3130
hits_per_page: 50

tests/output/ruby/test/client/abtesting_test.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
require "test/unit"
44

55
class TestClientAbtestingClient < Test::Unit::TestCase
6-
include Algolia::Abtesting
76
# calls api with correct user agent
87
def test_common_api0
98
client = Algolia::AbtestingClient.create(

tests/output/ruby/test/client/analytics_test.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
require "test/unit"
44

55
class TestClientAnalyticsClient < Test::Unit::TestCase
6-
include Algolia::Analytics
76
# calls api with correct user agent
87
def test_common_api0
98
client = Algolia::AnalyticsClient.create(

tests/output/ruby/test/client/ingestion_test.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
require "test/unit"
44

55
class TestClientIngestionClient < Test::Unit::TestCase
6-
include Algolia::Ingestion
76
# calls api with correct user agent
87
def test_common_api0
98
client = Algolia::IngestionClient.create(

tests/output/ruby/test/client/insights_test.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
require "test/unit"
44

55
class TestClientInsightsClient < Test::Unit::TestCase
6-
include Algolia::Insights
76
# calls api with correct user agent
87
def test_common_api0
98
client = Algolia::InsightsClient.create(
@@ -68,9 +67,9 @@ def test_parameters0
6867
{requester: Algolia::Transport::EchoRequester.new}
6968
)
7069
req = client.push_events_with_http_info(
71-
InsightsEvents.new(
70+
Algolia::Insights::InsightsEvents.new(
7271
events: [
73-
ClickedObjectIDsAfterSearch.new(
72+
Algolia::Insights::ClickedObjectIDsAfterSearch.new(
7473
event_type: "click",
7574
event_name: "Product Clicked",
7675
index: "products",

tests/output/ruby/test/client/monitoring_test.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
require "test/unit"
44

55
class TestClientMonitoringClient < Test::Unit::TestCase
6-
include Algolia::Monitoring
76
# calls api with correct user agent
87
def test_common_api0
98
client = Algolia::MonitoringClient.create(

tests/output/ruby/test/client/personalization_test.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
require "test/unit"
44

55
class TestClientPersonalizationClient < Test::Unit::TestCase
6-
include Algolia::Personalization
76
# calls api with correct user agent
87
def test_common_api0
98
client = Algolia::PersonalizationClient.create(

tests/output/ruby/test/client/query_suggestions_test.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
require "test/unit"
44

55
class TestClientQuerySuggestionsClient < Test::Unit::TestCase
6-
include Algolia::QuerySuggestions
76
# calls api with correct user agent
87
def test_common_api0
98
client = Algolia::QuerySuggestionsClient.create(

tests/output/ruby/test/client/recommend_test.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
require "test/unit"
44

55
class TestClientRecommendClient < Test::Unit::TestCase
6-
include Algolia::Recommend
76
# calls api with correct read host
87
def test_api0
98

tests/output/ruby/test/client/search_test.rb

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
require "test/unit"
44

55
class TestClientSearchClient < Test::Unit::TestCase
6-
include Algolia::Search
76
# calls api with correct read host
87
def test_api0
98

@@ -217,7 +216,7 @@ def test_generate_secured_api_key0
217216
)
218217
req = client.generate_secured_api_key(
219218
"2640659426d5107b6e47d75db9cbaef8",
220-
SecuredApiKeyRestrictions.new(valid_until: 2524604400, restrict_indices: ["Movies"])
219+
Algolia::Search::SecuredApiKeyRestrictions.new(valid_until: 2524604400, restrict_indices: ["Movies"])
221220
)
222221
assert_equal(
223222
"NjFhZmE0OGEyMTI3OThiODc0OTlkOGM0YjcxYzljY2M2NmU2NDE5ZWY0NDZjMWJhNjA2NzBkMjAwOTI2YWQyZnJlc3RyaWN0SW5kaWNlcz1Nb3ZpZXMmdmFsaWRVbnRpbD0yNTI0NjA0NDAw",
@@ -235,13 +234,13 @@ def test_generate_secured_api_key1
235234
)
236235
req = client.generate_secured_api_key(
237236
"2640659426d5107b6e47d75db9cbaef8",
238-
SecuredApiKeyRestrictions.new(
237+
Algolia::Search::SecuredApiKeyRestrictions.new(
239238
valid_until: 2524604400,
240239
restrict_indices: ["Movies", "cts_e2e_settings"],
241240
restrict_sources: "192.168.1.0/24",
242241
filters: "category:Book OR category:Ebook AND _tags:published",
243242
user_token: "user123",
244-
search_params: SearchParamsObject.new(
243+
search_params: Algolia::Search::SearchParamsObject.new(
245244
query: "batman",
246245
typo_tolerance: "strict",
247246
around_radius: "all",
@@ -683,7 +682,7 @@ def test_wait_for_api_key1
683682
req = client.wait_for_api_key(
684683
"api-key-update-operation-test-ruby",
685684
"update",
686-
ApiKey.new(
685+
Algolia::Search::ApiKey.new(
687686
description: "my updated api key",
688687
acl: ["search", "addObject", "deleteObject"],
689688
indexes: ["Movies", "Books"],

tests/output/ruby/test/e2e/abtesting_test.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
Dotenv.load("../../.env")
99

1010
class TestAbtestingClientE2E < Test::Unit::TestCase
11-
include Algolia::Abtesting
1211
def setup
1312
@client = Algolia::AbtestingClient.create(
1413
ENV.fetch("ALGOLIA_APPLICATION_ID", nil),

tests/output/ruby/test/e2e/ingestion_test.rb

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
Dotenv.load("../../.env")
99

1010
class TestIngestionClientE2E < Test::Unit::TestCase
11-
include Algolia::Ingestion
1211
def setup
1312
@client = Algolia::IngestionClient.create(
1413
ENV.fetch("ALGOLIA_APPLICATION_ID", nil),
@@ -64,7 +63,7 @@ def test_list_authentications1
6463
# searchTasks
6564
def test_search_tasks
6665
res = @client.search_tasks_with_http_info(
67-
TaskSearch.new(
66+
Algolia::Ingestion::TaskSearch.new(
6867
task_ids: [
6968
"6c02aeb1-775e-418e-870b-1faccd4b2c0f",
7069
"947ac9c4-7e58-4c87-b1e7-14a68e99699a",
@@ -75,7 +74,7 @@ def test_search_tasks
7574

7675
assert_equal(res.status, 200)
7776
res = @client.search_tasks(
78-
TaskSearch.new(
77+
Algolia::Ingestion::TaskSearch.new(
7978
task_ids: [
8079
"6c02aeb1-775e-418e-870b-1faccd4b2c0f",
8180
"947ac9c4-7e58-4c87-b1e7-14a68e99699a",
@@ -92,7 +91,7 @@ def test_search_tasks
9291
# searchTasksV1
9392
def test_search_tasks_v1
9493
res = @client.search_tasks_v1_with_http_info(
95-
TaskSearch.new(
94+
Algolia::Ingestion::TaskSearch.new(
9695
task_ids: [
9796
"6c02aeb1-775e-418e-870b-1faccd4b2c0f",
9897
"947ac9c4-7e58-4c87-b1e7-14a68e99699a",
@@ -103,7 +102,7 @@ def test_search_tasks_v1
103102

104103
assert_equal(res.status, 200)
105104
res = @client.search_tasks_v1(
106-
TaskSearch.new(
105+
Algolia::Ingestion::TaskSearch.new(
107106
task_ids: [
108107
"6c02aeb1-775e-418e-870b-1faccd4b2c0f",
109108
"947ac9c4-7e58-4c87-b1e7-14a68e99699a",

tests/output/ruby/test/e2e/insights_test.rb

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
Dotenv.load("../../.env")
99

1010
class TestInsightsClientE2E < Test::Unit::TestCase
11-
include Algolia::Insights
1211
def setup
1312
@client = Algolia::InsightsClient.create(
1413
ENV.fetch("ALGOLIA_APPLICATION_ID", nil),
@@ -20,9 +19,9 @@ def setup
2019
# Many events type
2120
def test_push_events1
2221
res = @client.push_events_with_http_info(
23-
InsightsEvents.new(
22+
Algolia::Insights::InsightsEvents.new(
2423
events: [
25-
ConvertedObjectIDsAfterSearch.new(
24+
Algolia::Insights::ConvertedObjectIDsAfterSearch.new(
2625
event_type: "conversion",
2726
event_name: "Product Purchased",
2827
index: "products",
@@ -32,7 +31,7 @@ def test_push_events1
3231
object_ids: ["9780545139700", "9780439784542"],
3332
query_id: "43b15df305339e827f0ac0bdc5ebcaa7"
3433
),
35-
ViewedObjectIDs.new(
34+
Algolia::Insights::ViewedObjectIDs.new(
3635
event_type: "view",
3736
event_name: "Product Detail Page Viewed",
3837
index: "products",
@@ -47,9 +46,9 @@ def test_push_events1
4746

4847
assert_equal(res.status, 200)
4948
res = @client.push_events(
50-
InsightsEvents.new(
49+
Algolia::Insights::InsightsEvents.new(
5150
events: [
52-
ConvertedObjectIDsAfterSearch.new(
51+
Algolia::Insights::ConvertedObjectIDsAfterSearch.new(
5352
event_type: "conversion",
5453
event_name: "Product Purchased",
5554
index: "products",
@@ -59,7 +58,7 @@ def test_push_events1
5958
object_ids: ["9780545139700", "9780439784542"],
6059
query_id: "43b15df305339e827f0ac0bdc5ebcaa7"
6160
),
62-
ViewedObjectIDs.new(
61+
Algolia::Insights::ViewedObjectIDs.new(
6362
event_type: "view",
6463
event_name: "Product Detail Page Viewed",
6564
index: "products",

tests/output/ruby/test/e2e/query_suggestions_test.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
Dotenv.load("../../.env")
99

1010
class TestQuerySuggestionsClientE2E < Test::Unit::TestCase
11-
include Algolia::QuerySuggestions
1211
def setup
1312
@client = Algolia::QuerySuggestionsClient.create(
1413
ENV.fetch("ALGOLIA_APPLICATION_ID", nil),

0 commit comments

Comments
 (0)