elasticgraph-support 0.19.3.0 → 1.0.0.rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +51 -0
- data/lib/elastic_graph/constants.rb +1 -9
- data/lib/elastic_graph/support/memoizable_data.rb +10 -10
- data/lib/elastic_graph/version.rb +1 -1
- metadata +10 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ab8da799e9095e564a0d49a79fc1eabbdcb4b4643eeb47a980c749a485ac71b
|
4
|
+
data.tar.gz: 2c67ec5719316ec6cf05258a5a363b76704f531f089ea4e8d968adf00b365c91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce87e0d3c3edf4bd66e4892b1be202d54347e084d9dfca8a66030111e9a1d767ee74b871e4cb8f2f0646d416f2af2372ff1a372b06a483ea0876de75dc02a89d
|
7
|
+
data.tar.gz: 513b3fa97e64ee1a5b465a9ecf50417cbf8591102788415daf37cf65703aa740cc647eb6d7fd0f4a550fcf1fae9a27ea8dd73bc6afbc8150b0ca862892e2ef31
|
data/README.md
CHANGED
@@ -5,3 +5,54 @@ such, it is not intended to provide any public APIs for ElasticGraph users.
|
|
5
5
|
|
6
6
|
Importantly, it is intended to have as few dependencies as possible: it currently
|
7
7
|
only depends on `logger` (which originated in the Ruby standard library).
|
8
|
+
|
9
|
+
## Dependency Diagram
|
10
|
+
|
11
|
+
```mermaid
|
12
|
+
graph LR;
|
13
|
+
classDef targetGemStyle fill:#FADBD8,stroke:#EC7063,color:#000,stroke-width:2px;
|
14
|
+
classDef otherEgGemStyle fill:#A9DFBF,stroke:#2ECC71,color:#000;
|
15
|
+
classDef externalGemStyle fill:#E0EFFF,stroke:#70A1D7,color:#2980B9;
|
16
|
+
elasticgraph-support["elasticgraph-support"];
|
17
|
+
class elasticgraph-support targetGemStyle;
|
18
|
+
logger["logger"];
|
19
|
+
elasticgraph-support --> logger;
|
20
|
+
class logger externalGemStyle;
|
21
|
+
elasticgraph["elasticgraph"];
|
22
|
+
elasticgraph --> elasticgraph-support;
|
23
|
+
class elasticgraph otherEgGemStyle;
|
24
|
+
elasticgraph-admin["elasticgraph-admin"];
|
25
|
+
elasticgraph-admin --> elasticgraph-support;
|
26
|
+
class elasticgraph-admin otherEgGemStyle;
|
27
|
+
elasticgraph-apollo["elasticgraph-apollo"];
|
28
|
+
elasticgraph-apollo --> elasticgraph-support;
|
29
|
+
class elasticgraph-apollo otherEgGemStyle;
|
30
|
+
elasticgraph-datastore_core["elasticgraph-datastore_core"];
|
31
|
+
elasticgraph-datastore_core --> elasticgraph-support;
|
32
|
+
class elasticgraph-datastore_core otherEgGemStyle;
|
33
|
+
elasticgraph-elasticsearch["elasticgraph-elasticsearch"];
|
34
|
+
elasticgraph-elasticsearch --> elasticgraph-support;
|
35
|
+
class elasticgraph-elasticsearch otherEgGemStyle;
|
36
|
+
elasticgraph-health_check["elasticgraph-health_check"];
|
37
|
+
elasticgraph-health_check --> elasticgraph-support;
|
38
|
+
class elasticgraph-health_check otherEgGemStyle;
|
39
|
+
elasticgraph-indexer["elasticgraph-indexer"];
|
40
|
+
elasticgraph-indexer --> elasticgraph-support;
|
41
|
+
class elasticgraph-indexer otherEgGemStyle;
|
42
|
+
elasticgraph-json_schema["elasticgraph-json_schema"];
|
43
|
+
elasticgraph-json_schema --> elasticgraph-support;
|
44
|
+
class elasticgraph-json_schema otherEgGemStyle;
|
45
|
+
elasticgraph-opensearch["elasticgraph-opensearch"];
|
46
|
+
elasticgraph-opensearch --> elasticgraph-support;
|
47
|
+
class elasticgraph-opensearch otherEgGemStyle;
|
48
|
+
elasticgraph-query_registry["elasticgraph-query_registry"];
|
49
|
+
elasticgraph-query_registry --> elasticgraph-support;
|
50
|
+
class elasticgraph-query_registry otherEgGemStyle;
|
51
|
+
elasticgraph-schema_artifacts["elasticgraph-schema_artifacts"];
|
52
|
+
elasticgraph-schema_artifacts --> elasticgraph-support;
|
53
|
+
class elasticgraph-schema_artifacts otherEgGemStyle;
|
54
|
+
elasticgraph-schema_definition["elasticgraph-schema_definition"];
|
55
|
+
elasticgraph-schema_definition --> elasticgraph-support;
|
56
|
+
class elasticgraph-schema_definition otherEgGemStyle;
|
57
|
+
click logger href "https://rubygems.org/gems/logger" "Open on RubyGems.org" _blank;
|
58
|
+
```
|
@@ -125,15 +125,7 @@ module ElasticGraph
|
|
125
125
|
#
|
126
126
|
# Note: this constant is automatically kept up-to-date by our `schema_artifacts:dump` rake task.
|
127
127
|
# @private
|
128
|
-
INDEX_DATA_UPDATE_SCRIPT_ID = "
|
129
|
-
|
130
|
-
# The id of the old version of the update data script before ElasticGraph v0.9. For now, we are maintaining
|
131
|
-
# backwards compatibility with how it recorded event versions, and we have test coverage for that which relies
|
132
|
-
# upon this id.
|
133
|
-
#
|
134
|
-
# TODO: Drop this when we no longer need to maintain backwards-compatibility.
|
135
|
-
# @private
|
136
|
-
OLD_INDEX_DATA_UPDATE_SCRIPT_ID = "update_index_data_9b97090d5c97c4adc82dc7f4c2b89bc5"
|
128
|
+
INDEX_DATA_UPDATE_SCRIPT_ID = "update_index_data_1fdfaf1c9261c96019decc89b515bd9a"
|
137
129
|
|
138
130
|
# When an update script has a no-op result we often want to communicate more information about
|
139
131
|
# why it was a no-op back to ElatsicGraph from the script. The only way to do that is to throw
|
@@ -51,7 +51,7 @@ module ElasticGraph
|
|
51
51
|
# It's useful for the caller to be define `initialize` in order to provide field defaults, as
|
52
52
|
# shown in the `Data` docs:
|
53
53
|
#
|
54
|
-
# https://rubyapi.org/3.
|
54
|
+
# https://rubyapi.org/3.4/o/data
|
55
55
|
#
|
56
56
|
# However, to make that work, we need the `initialize` definition to be included in the data class,
|
57
57
|
# rather than in our `DelegateClass` wrapper.
|
@@ -100,15 +100,15 @@ module ElasticGraph
|
|
100
100
|
# Since `DelegateClass` delegates all methods to the wrapped object, `with` will return an instance of the
|
101
101
|
# data class and not our wrapper. To overcome that, we redefine it here so that the new instance is re-wrapped.
|
102
102
|
def with(**updates)
|
103
|
-
|
104
|
-
|
105
|
-
#
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
103
|
+
data_instance = super(**updates)
|
104
|
+
|
105
|
+
# Here we re-implement `new` because (1) we override `new` and (2) `initialize` may be overridden.
|
106
|
+
self.class.allocate.instance_eval do
|
107
|
+
# Match `__setobj__` behavior: https://github.com/ruby/ruby/blob/v3_4_2/lib/delegate.rb#L411
|
108
|
+
@delegate_dc_obj = data_instance
|
109
|
+
after_initialize
|
110
|
+
self
|
111
|
+
end
|
112
112
|
end
|
113
113
|
end
|
114
114
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticgraph-support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Myron Marston
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
- Block Engineering
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: logger
|
@@ -32,33 +32,19 @@ dependencies:
|
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '2.13'
|
35
|
-
type: :development
|
36
|
-
prerelease: false
|
37
|
-
version_requirements: !ruby/object:Gem::Requirement
|
38
|
-
requirements:
|
39
|
-
- - "~>"
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: '2.13'
|
42
|
-
- !ruby/object:Gem::Dependency
|
43
|
-
name: rake
|
44
|
-
requirement: !ruby/object:Gem::Requirement
|
45
|
-
requirements:
|
46
|
-
- - "~>"
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
version: '13.2'
|
49
35
|
- - ">="
|
50
36
|
- !ruby/object:Gem::Version
|
51
|
-
version: 13.2
|
37
|
+
version: 2.13.2
|
52
38
|
type: :development
|
53
39
|
prerelease: false
|
54
40
|
version_requirements: !ruby/object:Gem::Requirement
|
55
41
|
requirements:
|
56
42
|
- - "~>"
|
57
43
|
- !ruby/object:Gem::Version
|
58
|
-
version: '13
|
44
|
+
version: '2.13'
|
59
45
|
- - ">="
|
60
46
|
- !ruby/object:Gem::Version
|
61
|
-
version: 13.2
|
47
|
+
version: 2.13.2
|
62
48
|
email:
|
63
49
|
- myron@squareup.com
|
64
50
|
executables: []
|
@@ -87,10 +73,10 @@ licenses:
|
|
87
73
|
- MIT
|
88
74
|
metadata:
|
89
75
|
bug_tracker_uri: https://github.com/block/elasticgraph/issues
|
90
|
-
changelog_uri: https://github.com/block/elasticgraph/releases/tag/
|
91
|
-
documentation_uri: https://block.github.io/elasticgraph/api-docs/
|
76
|
+
changelog_uri: https://github.com/block/elasticgraph/releases/tag/v1.0.0.rc2
|
77
|
+
documentation_uri: https://block.github.io/elasticgraph/api-docs/v1.0.0.rc2/
|
92
78
|
homepage_uri: https://block.github.io/elasticgraph/
|
93
|
-
source_code_uri: https://github.com/block/elasticgraph/tree/
|
79
|
+
source_code_uri: https://github.com/block/elasticgraph/tree/v1.0.0.rc2/elasticgraph-support
|
94
80
|
gem_category: core
|
95
81
|
rdoc_options: []
|
96
82
|
require_paths:
|
@@ -99,7 +85,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
99
85
|
requirements:
|
100
86
|
- - ">="
|
101
87
|
- !ruby/object:Gem::Version
|
102
|
-
version: '3.
|
88
|
+
version: '3.4'
|
103
89
|
- - "<"
|
104
90
|
- !ruby/object:Gem::Version
|
105
91
|
version: '3.5'
|
@@ -109,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
95
|
- !ruby/object:Gem::Version
|
110
96
|
version: '0'
|
111
97
|
requirements: []
|
112
|
-
rubygems_version: 3.6.
|
98
|
+
rubygems_version: 3.6.7
|
113
99
|
specification_version: 4
|
114
100
|
summary: ElasticGraph gem providing support utilities to the other ElasticGraph gems.
|
115
101
|
test_files: []
|