jay_api 27.1.0

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.
Files changed (74) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +786 -0
  3. data/README.md +61 -0
  4. data/jay_api.gemspec +38 -0
  5. data/lib/jay_api/abstract/connection.rb +50 -0
  6. data/lib/jay_api/abstract/constant_wait.rb +17 -0
  7. data/lib/jay_api/abstract/geometric_wait.rb +35 -0
  8. data/lib/jay_api/abstract/wait_strategy.rb +43 -0
  9. data/lib/jay_api/configuration.rb +115 -0
  10. data/lib/jay_api/elasticsearch/async.rb +72 -0
  11. data/lib/jay_api/elasticsearch/batch_counter.rb +76 -0
  12. data/lib/jay_api/elasticsearch/client.rb +96 -0
  13. data/lib/jay_api/elasticsearch/client_factory.rb +100 -0
  14. data/lib/jay_api/elasticsearch/errors/elasticsearch_error.rb +13 -0
  15. data/lib/jay_api/elasticsearch/errors/end_of_query_results_error.rb +22 -0
  16. data/lib/jay_api/elasticsearch/errors/query_execution_error.rb +15 -0
  17. data/lib/jay_api/elasticsearch/errors/query_execution_failure.rb +17 -0
  18. data/lib/jay_api/elasticsearch/errors/query_execution_timeout.rb +13 -0
  19. data/lib/jay_api/elasticsearch/errors/search_after_error.rb +13 -0
  20. data/lib/jay_api/elasticsearch/index.rb +223 -0
  21. data/lib/jay_api/elasticsearch/query_builder/aggregations/aggregation.rb +66 -0
  22. data/lib/jay_api/elasticsearch/query_builder/aggregations/avg.rb +56 -0
  23. data/lib/jay_api/elasticsearch/query_builder/aggregations/errors/aggregations_error.rb +17 -0
  24. data/lib/jay_api/elasticsearch/query_builder/aggregations/errors.rb +14 -0
  25. data/lib/jay_api/elasticsearch/query_builder/aggregations/filter.rb +67 -0
  26. data/lib/jay_api/elasticsearch/query_builder/aggregations/max.rb +51 -0
  27. data/lib/jay_api/elasticsearch/query_builder/aggregations/scripted_metric.rb +72 -0
  28. data/lib/jay_api/elasticsearch/query_builder/aggregations/sum.rb +57 -0
  29. data/lib/jay_api/elasticsearch/query_builder/aggregations/terms.rb +73 -0
  30. data/lib/jay_api/elasticsearch/query_builder/aggregations/top_hits.rb +49 -0
  31. data/lib/jay_api/elasticsearch/query_builder/aggregations/value_count.rb +50 -0
  32. data/lib/jay_api/elasticsearch/query_builder/aggregations.rb +168 -0
  33. data/lib/jay_api/elasticsearch/query_builder/errors/query_builder_error.rb +16 -0
  34. data/lib/jay_api/elasticsearch/query_builder/query_clauses/bool.rb +179 -0
  35. data/lib/jay_api/elasticsearch/query_builder/query_clauses/exists.rb +33 -0
  36. data/lib/jay_api/elasticsearch/query_builder/query_clauses/match_all.rb +22 -0
  37. data/lib/jay_api/elasticsearch/query_builder/query_clauses/match_clauses.rb +140 -0
  38. data/lib/jay_api/elasticsearch/query_builder/query_clauses/match_none.rb +22 -0
  39. data/lib/jay_api/elasticsearch/query_builder/query_clauses/match_phrase.rb +35 -0
  40. data/lib/jay_api/elasticsearch/query_builder/query_clauses/negator.rb +42 -0
  41. data/lib/jay_api/elasticsearch/query_builder/query_clauses/query_clause.rb +17 -0
  42. data/lib/jay_api/elasticsearch/query_builder/query_clauses/query_string.rb +50 -0
  43. data/lib/jay_api/elasticsearch/query_builder/query_clauses/range.rb +49 -0
  44. data/lib/jay_api/elasticsearch/query_builder/query_clauses/regexp.rb +39 -0
  45. data/lib/jay_api/elasticsearch/query_builder/query_clauses/term.rb +37 -0
  46. data/lib/jay_api/elasticsearch/query_builder/query_clauses/terms.rb +37 -0
  47. data/lib/jay_api/elasticsearch/query_builder/query_clauses/wildcard.rb +37 -0
  48. data/lib/jay_api/elasticsearch/query_builder/query_clauses.rb +163 -0
  49. data/lib/jay_api/elasticsearch/query_builder/script.rb +36 -0
  50. data/lib/jay_api/elasticsearch/query_builder.rb +196 -0
  51. data/lib/jay_api/elasticsearch/query_results.rb +111 -0
  52. data/lib/jay_api/elasticsearch/response.rb +43 -0
  53. data/lib/jay_api/elasticsearch/search_after_results.rb +58 -0
  54. data/lib/jay_api/elasticsearch/tasks.rb +36 -0
  55. data/lib/jay_api/elasticsearch/time.rb +18 -0
  56. data/lib/jay_api/errors/configuration_error.rb +22 -0
  57. data/lib/jay_api/errors/error.rb +8 -0
  58. data/lib/jay_api/git/errors/invalid_repository_error.rb +11 -0
  59. data/lib/jay_api/git/errors/missing_url_error.rb +13 -0
  60. data/lib/jay_api/git/gerrit/gitiles_helper.rb +58 -0
  61. data/lib/jay_api/git/repository.rb +356 -0
  62. data/lib/jay_api/id_builder.rb +52 -0
  63. data/lib/jay_api/mergeables/merge_selector/configuration.rb +29 -0
  64. data/lib/jay_api/mergeables/merge_selector/merger.rb +58 -0
  65. data/lib/jay_api/mergeables/merge_selector.rb +15 -0
  66. data/lib/jay_api/prior_version_fetcher_base.rb +66 -0
  67. data/lib/jay_api/properties_fetcher.rb +196 -0
  68. data/lib/jay_api/rspec/configuration.rb +46 -0
  69. data/lib/jay_api/rspec/git.rb +60 -0
  70. data/lib/jay_api/rspec/test_data_collector.rb +189 -0
  71. data/lib/jay_api/rspec.rb +9 -0
  72. data/lib/jay_api/version.rb +6 -0
  73. data/lib/jay_api.rb +9 -0
  74. metadata +215 -0
metadata ADDED
@@ -0,0 +1,215 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jay_api
3
+ version: !ruby/object:Gem::Version
4
+ version: 27.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Accenture-Industry X
8
+ - ESR Labs
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2025-02-19 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: activesupport
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '7'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '7'
28
+ - !ruby/object:Gem::Dependency
29
+ name: concurrent-ruby
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '1'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '1'
42
+ - !ruby/object:Gem::Dependency
43
+ name: elasticsearch
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '7'
49
+ - - "<="
50
+ - !ruby/object:Gem::Version
51
+ version: 7.9.0
52
+ type: :runtime
53
+ prerelease: false
54
+ version_requirements: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - "~>"
57
+ - !ruby/object:Gem::Version
58
+ version: '7'
59
+ - - "<="
60
+ - !ruby/object:Gem::Version
61
+ version: 7.9.0
62
+ - !ruby/object:Gem::Dependency
63
+ name: git
64
+ requirement: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1'
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: 1.8.0.pre.1
72
+ type: :runtime
73
+ prerelease: false
74
+ version_requirements: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - "~>"
77
+ - !ruby/object:Gem::Version
78
+ version: '1'
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: 1.8.0.pre.1
82
+ - !ruby/object:Gem::Dependency
83
+ name: logging
84
+ requirement: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '2'
89
+ type: :runtime
90
+ prerelease: false
91
+ version_requirements: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '2'
96
+ - !ruby/object:Gem::Dependency
97
+ name: rspec
98
+ requirement: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '3.0'
103
+ type: :runtime
104
+ prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '3.0'
110
+ description: A collection of classes and modules to access JAY's functionality
111
+ email:
112
+ executables: []
113
+ extensions: []
114
+ extra_rdoc_files: []
115
+ files:
116
+ - CHANGELOG.md
117
+ - README.md
118
+ - jay_api.gemspec
119
+ - lib/jay_api.rb
120
+ - lib/jay_api/abstract/connection.rb
121
+ - lib/jay_api/abstract/constant_wait.rb
122
+ - lib/jay_api/abstract/geometric_wait.rb
123
+ - lib/jay_api/abstract/wait_strategy.rb
124
+ - lib/jay_api/configuration.rb
125
+ - lib/jay_api/elasticsearch/async.rb
126
+ - lib/jay_api/elasticsearch/batch_counter.rb
127
+ - lib/jay_api/elasticsearch/client.rb
128
+ - lib/jay_api/elasticsearch/client_factory.rb
129
+ - lib/jay_api/elasticsearch/errors/elasticsearch_error.rb
130
+ - lib/jay_api/elasticsearch/errors/end_of_query_results_error.rb
131
+ - lib/jay_api/elasticsearch/errors/query_execution_error.rb
132
+ - lib/jay_api/elasticsearch/errors/query_execution_failure.rb
133
+ - lib/jay_api/elasticsearch/errors/query_execution_timeout.rb
134
+ - lib/jay_api/elasticsearch/errors/search_after_error.rb
135
+ - lib/jay_api/elasticsearch/index.rb
136
+ - lib/jay_api/elasticsearch/query_builder.rb
137
+ - lib/jay_api/elasticsearch/query_builder/aggregations.rb
138
+ - lib/jay_api/elasticsearch/query_builder/aggregations/aggregation.rb
139
+ - lib/jay_api/elasticsearch/query_builder/aggregations/avg.rb
140
+ - lib/jay_api/elasticsearch/query_builder/aggregations/errors.rb
141
+ - lib/jay_api/elasticsearch/query_builder/aggregations/errors/aggregations_error.rb
142
+ - lib/jay_api/elasticsearch/query_builder/aggregations/filter.rb
143
+ - lib/jay_api/elasticsearch/query_builder/aggregations/max.rb
144
+ - lib/jay_api/elasticsearch/query_builder/aggregations/scripted_metric.rb
145
+ - lib/jay_api/elasticsearch/query_builder/aggregations/sum.rb
146
+ - lib/jay_api/elasticsearch/query_builder/aggregations/terms.rb
147
+ - lib/jay_api/elasticsearch/query_builder/aggregations/top_hits.rb
148
+ - lib/jay_api/elasticsearch/query_builder/aggregations/value_count.rb
149
+ - lib/jay_api/elasticsearch/query_builder/errors/query_builder_error.rb
150
+ - lib/jay_api/elasticsearch/query_builder/query_clauses.rb
151
+ - lib/jay_api/elasticsearch/query_builder/query_clauses/bool.rb
152
+ - lib/jay_api/elasticsearch/query_builder/query_clauses/exists.rb
153
+ - lib/jay_api/elasticsearch/query_builder/query_clauses/match_all.rb
154
+ - lib/jay_api/elasticsearch/query_builder/query_clauses/match_clauses.rb
155
+ - lib/jay_api/elasticsearch/query_builder/query_clauses/match_none.rb
156
+ - lib/jay_api/elasticsearch/query_builder/query_clauses/match_phrase.rb
157
+ - lib/jay_api/elasticsearch/query_builder/query_clauses/negator.rb
158
+ - lib/jay_api/elasticsearch/query_builder/query_clauses/query_clause.rb
159
+ - lib/jay_api/elasticsearch/query_builder/query_clauses/query_string.rb
160
+ - lib/jay_api/elasticsearch/query_builder/query_clauses/range.rb
161
+ - lib/jay_api/elasticsearch/query_builder/query_clauses/regexp.rb
162
+ - lib/jay_api/elasticsearch/query_builder/query_clauses/term.rb
163
+ - lib/jay_api/elasticsearch/query_builder/query_clauses/terms.rb
164
+ - lib/jay_api/elasticsearch/query_builder/query_clauses/wildcard.rb
165
+ - lib/jay_api/elasticsearch/query_builder/script.rb
166
+ - lib/jay_api/elasticsearch/query_results.rb
167
+ - lib/jay_api/elasticsearch/response.rb
168
+ - lib/jay_api/elasticsearch/search_after_results.rb
169
+ - lib/jay_api/elasticsearch/tasks.rb
170
+ - lib/jay_api/elasticsearch/time.rb
171
+ - lib/jay_api/errors/configuration_error.rb
172
+ - lib/jay_api/errors/error.rb
173
+ - lib/jay_api/git/errors/invalid_repository_error.rb
174
+ - lib/jay_api/git/errors/missing_url_error.rb
175
+ - lib/jay_api/git/gerrit/gitiles_helper.rb
176
+ - lib/jay_api/git/repository.rb
177
+ - lib/jay_api/id_builder.rb
178
+ - lib/jay_api/mergeables/merge_selector.rb
179
+ - lib/jay_api/mergeables/merge_selector/configuration.rb
180
+ - lib/jay_api/mergeables/merge_selector/merger.rb
181
+ - lib/jay_api/prior_version_fetcher_base.rb
182
+ - lib/jay_api/properties_fetcher.rb
183
+ - lib/jay_api/rspec.rb
184
+ - lib/jay_api/rspec/configuration.rb
185
+ - lib/jay_api/rspec/git.rb
186
+ - lib/jay_api/rspec/test_data_collector.rb
187
+ - lib/jay_api/version.rb
188
+ homepage: https://github.com/esrlabs/jay_api
189
+ licenses:
190
+ - Apache-2.0
191
+ metadata:
192
+ allowed_push_host: https://rubygems.org
193
+ homepage_uri: https://github.com/esrlabs/jay_api
194
+ source_code_uri: https://github.com/esrlabs/jay_api
195
+ changelog_uri: https://github.com/esrlabs/jay_api/blob/master/CHANGELOG.md
196
+ post_install_message:
197
+ rdoc_options: []
198
+ require_paths:
199
+ - lib
200
+ required_ruby_version: !ruby/object:Gem::Requirement
201
+ requirements:
202
+ - - ">="
203
+ - !ruby/object:Gem::Version
204
+ version: 2.7.0
205
+ required_rubygems_version: !ruby/object:Gem::Requirement
206
+ requirements:
207
+ - - ">="
208
+ - !ruby/object:Gem::Version
209
+ version: '0'
210
+ requirements: []
211
+ rubygems_version: 3.1.6
212
+ signing_key:
213
+ specification_version: 4
214
+ summary: A collection of classes and modules to access JAY's functionality
215
+ test_files: []