entity_schema 0.1.4 → 0.1.5
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/.rubocop.yml +3 -20
- data/Gemfile.lock +1 -1
- data/entity_schema.gemspec +1 -0
- data/lib/entity_schema/{fields/builders → builders}/belongs_to.rb +3 -3
- data/lib/entity_schema/{fields/contracts → contracts}/belongs_to.rb +0 -0
- data/lib/entity_schema/{fields/contracts → contracts}/collection.rb +0 -0
- data/lib/entity_schema/{fields/contracts → contracts}/common.rb +0 -0
- data/lib/entity_schema/{fields/contracts → contracts}/contract.rb +0 -0
- data/lib/entity_schema/{fields/contracts → contracts}/fk_belongs_to.rb +0 -0
- data/lib/entity_schema/{fields/contracts → contracts}/object.rb +0 -0
- data/lib/entity_schema/{fields/contracts → contracts}/object_belongs_to.rb +0 -0
- data/lib/entity_schema/{fields/contracts → contracts}/property.rb +0 -0
- data/lib/entity_schema/dsl.rb +9 -9
- data/lib/entity_schema/{fields/specifications → specifications}/abstract.rb +0 -0
- data/lib/entity_schema/{fields/specifications → specifications}/belongs_to.rb +0 -0
- data/lib/entity_schema/{fields/specifications → specifications}/collection.rb +0 -1
- data/lib/entity_schema/{fields/specifications → specifications}/common.rb +0 -0
- data/lib/entity_schema/{fields/specifications → specifications}/fk_belongs_to.rb +0 -0
- data/lib/entity_schema/{fields/specifications → specifications}/object.rb +0 -1
- data/lib/entity_schema/{fields/specifications → specifications}/object_belongs_to.rb +0 -1
- data/lib/entity_schema/{fields/specifications → specifications}/property.rb +0 -0
- data/lib/entity_schema/version.rb +1 -1
- metadata +19 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f50c3e3066bc3902e03a7962e8357b1874807a036b396f51e8ca1557f11ead1f
|
4
|
+
data.tar.gz: bd598fe95948de6c1e50a96a8522f4a7a4fb07a8812292b6d1a7749c381f37d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a3acb18381e54bf08cff8007c3f26516e6232e5dbadce8cb22b1e168c0f6447f5ae561c6a8ee211f2e64b60a8b4906ad85b63f41b20678b0026bfeea7ce0527
|
7
|
+
data.tar.gz: 8fdca854597841e095bdd448e89dbc4cf5897591b11f97c5cc60b6bdeff6c78b96e8bbb932df130b69e3de23a933ea1fc84199507825e80a16a67721bddc3f3d
|
data/.rubocop.yml
CHANGED
@@ -23,24 +23,7 @@ Metrics/AbcSize:
|
|
23
23
|
|
24
24
|
Style/Documentation:
|
25
25
|
Exclude:
|
26
|
+
- 'spec/**/*'
|
27
|
+
- 'test/**/*'
|
26
28
|
- 'lib/entity_schema.rb'
|
27
|
-
- 'lib/entity_schema/
|
28
|
-
- 'lib/entity_schema/setup_field.rb'
|
29
|
-
- 'lib/entity_schema/fields/abstract.rb'
|
30
|
-
- 'lib/entity_schema/fields/builders/abstract.rb'
|
31
|
-
- 'lib/entity_schema/fields/builders/base.rb'
|
32
|
-
- 'lib/entity_schema/fields/builders/belongs_to.rb'
|
33
|
-
- 'lib/entity_schema/fields/builders/collection.rb'
|
34
|
-
- 'lib/entity_schema/fields/builders/fk_belongs_to.rb'
|
35
|
-
- 'lib/entity_schema/fields/builders/object.rb'
|
36
|
-
- 'lib/entity_schema/fields/builders/object_belongs_to.rb'
|
37
|
-
- 'lib/entity_schema/fields/builders/property.rb'
|
38
|
-
- 'lib/entity_schema/fields/collection.rb'
|
39
|
-
- 'lib/entity_schema/fields/object.rb'
|
40
|
-
- 'lib/entity_schema/fields/property.rb'
|
41
|
-
- 'lib/entity_schema/instance_methods.rb'
|
42
|
-
- 'lib/entity_schema/fields/specifications/belongs_to.rb'
|
43
|
-
- 'lib/entity_schema/fields/specifications/common.rb'
|
44
|
-
- 'lib/entity_schema/fields/specifications/fk_belongs_to.rb'
|
45
|
-
- 'lib/entity_schema/fields/specifications/object.rb'
|
46
|
-
- 'lib/entity_schema/fields/specifications/property.rb'
|
29
|
+
- 'lib/entity_schema/specifications/*'
|
data/Gemfile.lock
CHANGED
data/entity_schema.gemspec
CHANGED
@@ -31,6 +31,7 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
32
32
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
33
33
|
end
|
34
|
+
spec.required_ruby_version = '>= 2.5.0' # TODO: find minimal valid version
|
34
35
|
spec.bindir = 'exe'
|
35
36
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
36
37
|
spec.require_paths = ['lib']
|
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
require 'singleton'
|
4
4
|
|
5
|
-
require_relative '../fk_belongs_to'
|
6
|
-
require_relative '../object_belongs_to'
|
7
|
-
require_relative '../observer_belongs_to'
|
5
|
+
require_relative '../fields/fk_belongs_to'
|
6
|
+
require_relative '../fields/object_belongs_to'
|
7
|
+
require_relative '../fields/observer_belongs_to'
|
8
8
|
|
9
9
|
module EntitySchema
|
10
10
|
module Fields
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/entity_schema/dsl.rb
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative '
|
4
|
-
require_relative '
|
5
|
-
require_relative '
|
6
|
-
require_relative '
|
3
|
+
require_relative 'specifications/property'
|
4
|
+
require_relative 'specifications/object'
|
5
|
+
require_relative 'specifications/collection'
|
6
|
+
require_relative 'specifications/belongs_to'
|
7
7
|
|
8
|
-
require_relative '
|
9
|
-
require_relative '
|
10
|
-
require_relative '
|
11
|
-
require_relative '
|
8
|
+
require_relative 'contracts/property'
|
9
|
+
require_relative 'contracts/object'
|
10
|
+
require_relative 'contracts/collection'
|
11
|
+
require_relative 'contracts/belongs_to'
|
12
12
|
|
13
13
|
require_relative 'fields/property'
|
14
14
|
require_relative 'fields/object'
|
15
15
|
require_relative 'fields/collection'
|
16
|
-
require_relative '
|
16
|
+
require_relative 'builders/belongs_to'
|
17
17
|
|
18
18
|
require_relative 'setup_field'
|
19
19
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: entity_schema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Captain Philipp
|
@@ -205,35 +205,35 @@ files:
|
|
205
205
|
- bin/setup
|
206
206
|
- entity_schema.gemspec
|
207
207
|
- lib/entity_schema.rb
|
208
|
+
- lib/entity_schema/builders/belongs_to.rb
|
208
209
|
- lib/entity_schema/class_methods.rb
|
210
|
+
- lib/entity_schema/contracts/belongs_to.rb
|
211
|
+
- lib/entity_schema/contracts/collection.rb
|
212
|
+
- lib/entity_schema/contracts/common.rb
|
213
|
+
- lib/entity_schema/contracts/contract.rb
|
214
|
+
- lib/entity_schema/contracts/fk_belongs_to.rb
|
215
|
+
- lib/entity_schema/contracts/object.rb
|
216
|
+
- lib/entity_schema/contracts/object_belongs_to.rb
|
217
|
+
- lib/entity_schema/contracts/property.rb
|
209
218
|
- lib/entity_schema/dsl.rb
|
210
219
|
- lib/entity_schema/fields/abstract.rb
|
211
|
-
- lib/entity_schema/fields/builders/belongs_to.rb
|
212
220
|
- lib/entity_schema/fields/collection.rb
|
213
|
-
- lib/entity_schema/fields/contracts/belongs_to.rb
|
214
|
-
- lib/entity_schema/fields/contracts/collection.rb
|
215
|
-
- lib/entity_schema/fields/contracts/common.rb
|
216
|
-
- lib/entity_schema/fields/contracts/contract.rb
|
217
|
-
- lib/entity_schema/fields/contracts/fk_belongs_to.rb
|
218
|
-
- lib/entity_schema/fields/contracts/object.rb
|
219
|
-
- lib/entity_schema/fields/contracts/object_belongs_to.rb
|
220
|
-
- lib/entity_schema/fields/contracts/property.rb
|
221
221
|
- lib/entity_schema/fields/fk_belongs_to.rb
|
222
222
|
- lib/entity_schema/fields/object.rb
|
223
223
|
- lib/entity_schema/fields/object_belongs_to.rb
|
224
224
|
- lib/entity_schema/fields/observer_belongs_to.rb
|
225
225
|
- lib/entity_schema/fields/property.rb
|
226
|
-
- lib/entity_schema/fields/specifications/abstract.rb
|
227
|
-
- lib/entity_schema/fields/specifications/belongs_to.rb
|
228
|
-
- lib/entity_schema/fields/specifications/collection.rb
|
229
|
-
- lib/entity_schema/fields/specifications/common.rb
|
230
|
-
- lib/entity_schema/fields/specifications/fk_belongs_to.rb
|
231
|
-
- lib/entity_schema/fields/specifications/object.rb
|
232
|
-
- lib/entity_schema/fields/specifications/object_belongs_to.rb
|
233
|
-
- lib/entity_schema/fields/specifications/property.rb
|
234
226
|
- lib/entity_schema/instance_methods.rb
|
235
227
|
- lib/entity_schema/schema.rb
|
236
228
|
- lib/entity_schema/setup_field.rb
|
229
|
+
- lib/entity_schema/specifications/abstract.rb
|
230
|
+
- lib/entity_schema/specifications/belongs_to.rb
|
231
|
+
- lib/entity_schema/specifications/collection.rb
|
232
|
+
- lib/entity_schema/specifications/common.rb
|
233
|
+
- lib/entity_schema/specifications/fk_belongs_to.rb
|
234
|
+
- lib/entity_schema/specifications/object.rb
|
235
|
+
- lib/entity_schema/specifications/object_belongs_to.rb
|
236
|
+
- lib/entity_schema/specifications/property.rb
|
237
237
|
- lib/entity_schema/version.rb
|
238
238
|
homepage: https://github.com/CaptainPhilipp/entity_schema
|
239
239
|
licenses:
|
@@ -248,7 +248,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
248
248
|
requirements:
|
249
249
|
- - ">="
|
250
250
|
- !ruby/object:Gem::Version
|
251
|
-
version:
|
251
|
+
version: 2.5.0
|
252
252
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
253
253
|
requirements:
|
254
254
|
- - ">="
|