simple_master 1.0.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.
- checksums.yaml +7 -0
- data/lib/simple_master/active_record/belongs_to_master_polymorphic_reflection.rb +11 -0
- data/lib/simple_master/active_record/belongs_to_polymorphic_association.rb +17 -0
- data/lib/simple_master/active_record/belongs_to_polymorphic_builder.rb +21 -0
- data/lib/simple_master/active_record/extension.rb +183 -0
- data/lib/simple_master/active_record/preloader_association_extension.rb +11 -0
- data/lib/simple_master/active_record.rb +12 -0
- data/lib/simple_master/loader/dataset_loader.rb +20 -0
- data/lib/simple_master/loader/marshal_loader.rb +15 -0
- data/lib/simple_master/loader/query_loader.rb +63 -0
- data/lib/simple_master/loader.rb +55 -0
- data/lib/simple_master/master/association/belongs_to_association.rb +79 -0
- data/lib/simple_master/master/association/belongs_to_polymorphic_association.rb +79 -0
- data/lib/simple_master/master/association/has_many_association.rb +53 -0
- data/lib/simple_master/master/association/has_many_through_association.rb +64 -0
- data/lib/simple_master/master/association/has_one_association.rb +57 -0
- data/lib/simple_master/master/association.rb +50 -0
- data/lib/simple_master/master/column/bitmask_column.rb +74 -0
- data/lib/simple_master/master/column/boolean_column.rb +51 -0
- data/lib/simple_master/master/column/enum_column.rb +96 -0
- data/lib/simple_master/master/column/float_column.rb +21 -0
- data/lib/simple_master/master/column/id_column.rb +31 -0
- data/lib/simple_master/master/column/integer_column.rb +21 -0
- data/lib/simple_master/master/column/json_column.rb +27 -0
- data/lib/simple_master/master/column/polymorphic_type_column.rb +44 -0
- data/lib/simple_master/master/column/sti_type_column.rb +21 -0
- data/lib/simple_master/master/column/string_column.rb +17 -0
- data/lib/simple_master/master/column/symbol_column.rb +23 -0
- data/lib/simple_master/master/column/time_column.rb +38 -0
- data/lib/simple_master/master/column.rb +138 -0
- data/lib/simple_master/master/dsl.rb +239 -0
- data/lib/simple_master/master/editable.rb +155 -0
- data/lib/simple_master/master/filterable.rb +47 -0
- data/lib/simple_master/master/queryable.rb +75 -0
- data/lib/simple_master/master/storable.rb +20 -0
- data/lib/simple_master/master/validatable.rb +216 -0
- data/lib/simple_master/master.rb +417 -0
- data/lib/simple_master/schema.rb +49 -0
- data/lib/simple_master/storage/dataset.rb +172 -0
- data/lib/simple_master/storage/ondemand_table.rb +68 -0
- data/lib/simple_master/storage/table.rb +197 -0
- data/lib/simple_master/storage/test_table.rb +69 -0
- data/lib/simple_master/storage.rb +11 -0
- data/lib/simple_master/version.rb +5 -0
- data/lib/simple_master.rb +62 -0
- metadata +128 -0
metadata
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: simple_master
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Jingyuan Zhao
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: activerecord
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - ">="
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '7.0'
|
|
19
|
+
type: :runtime
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - ">="
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '7.0'
|
|
26
|
+
- !ruby/object:Gem::Dependency
|
|
27
|
+
name: activesupport
|
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - ">="
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '7.0'
|
|
33
|
+
type: :runtime
|
|
34
|
+
prerelease: false
|
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - ">="
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '7.0'
|
|
40
|
+
- !ruby/object:Gem::Dependency
|
|
41
|
+
name: request_store
|
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - ">="
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '1.0'
|
|
47
|
+
type: :runtime
|
|
48
|
+
prerelease: false
|
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - ">="
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '1.0'
|
|
54
|
+
description: SimpleMaster loads master tables into memory, builds associations, and
|
|
55
|
+
offers a small DSL for master data models.
|
|
56
|
+
email:
|
|
57
|
+
- jingyuan.zhao@aktsk.jp
|
|
58
|
+
executables: []
|
|
59
|
+
extensions: []
|
|
60
|
+
extra_rdoc_files: []
|
|
61
|
+
files:
|
|
62
|
+
- lib/simple_master.rb
|
|
63
|
+
- lib/simple_master/active_record.rb
|
|
64
|
+
- lib/simple_master/active_record/belongs_to_master_polymorphic_reflection.rb
|
|
65
|
+
- lib/simple_master/active_record/belongs_to_polymorphic_association.rb
|
|
66
|
+
- lib/simple_master/active_record/belongs_to_polymorphic_builder.rb
|
|
67
|
+
- lib/simple_master/active_record/extension.rb
|
|
68
|
+
- lib/simple_master/active_record/preloader_association_extension.rb
|
|
69
|
+
- lib/simple_master/loader.rb
|
|
70
|
+
- lib/simple_master/loader/dataset_loader.rb
|
|
71
|
+
- lib/simple_master/loader/marshal_loader.rb
|
|
72
|
+
- lib/simple_master/loader/query_loader.rb
|
|
73
|
+
- lib/simple_master/master.rb
|
|
74
|
+
- lib/simple_master/master/association.rb
|
|
75
|
+
- lib/simple_master/master/association/belongs_to_association.rb
|
|
76
|
+
- lib/simple_master/master/association/belongs_to_polymorphic_association.rb
|
|
77
|
+
- lib/simple_master/master/association/has_many_association.rb
|
|
78
|
+
- lib/simple_master/master/association/has_many_through_association.rb
|
|
79
|
+
- lib/simple_master/master/association/has_one_association.rb
|
|
80
|
+
- lib/simple_master/master/column.rb
|
|
81
|
+
- lib/simple_master/master/column/bitmask_column.rb
|
|
82
|
+
- lib/simple_master/master/column/boolean_column.rb
|
|
83
|
+
- lib/simple_master/master/column/enum_column.rb
|
|
84
|
+
- lib/simple_master/master/column/float_column.rb
|
|
85
|
+
- lib/simple_master/master/column/id_column.rb
|
|
86
|
+
- lib/simple_master/master/column/integer_column.rb
|
|
87
|
+
- lib/simple_master/master/column/json_column.rb
|
|
88
|
+
- lib/simple_master/master/column/polymorphic_type_column.rb
|
|
89
|
+
- lib/simple_master/master/column/sti_type_column.rb
|
|
90
|
+
- lib/simple_master/master/column/string_column.rb
|
|
91
|
+
- lib/simple_master/master/column/symbol_column.rb
|
|
92
|
+
- lib/simple_master/master/column/time_column.rb
|
|
93
|
+
- lib/simple_master/master/dsl.rb
|
|
94
|
+
- lib/simple_master/master/editable.rb
|
|
95
|
+
- lib/simple_master/master/filterable.rb
|
|
96
|
+
- lib/simple_master/master/queryable.rb
|
|
97
|
+
- lib/simple_master/master/storable.rb
|
|
98
|
+
- lib/simple_master/master/validatable.rb
|
|
99
|
+
- lib/simple_master/schema.rb
|
|
100
|
+
- lib/simple_master/storage.rb
|
|
101
|
+
- lib/simple_master/storage/dataset.rb
|
|
102
|
+
- lib/simple_master/storage/ondemand_table.rb
|
|
103
|
+
- lib/simple_master/storage/table.rb
|
|
104
|
+
- lib/simple_master/storage/test_table.rb
|
|
105
|
+
- lib/simple_master/version.rb
|
|
106
|
+
homepage: https://github.com/aktsk/simple_master
|
|
107
|
+
licenses:
|
|
108
|
+
- MIT
|
|
109
|
+
metadata:
|
|
110
|
+
rubygems_mfa_required: 'true'
|
|
111
|
+
rdoc_options: []
|
|
112
|
+
require_paths:
|
|
113
|
+
- lib
|
|
114
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
115
|
+
requirements:
|
|
116
|
+
- - ">="
|
|
117
|
+
- !ruby/object:Gem::Version
|
|
118
|
+
version: '3.2'
|
|
119
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
|
+
requirements:
|
|
121
|
+
- - ">="
|
|
122
|
+
- !ruby/object:Gem::Version
|
|
123
|
+
version: '0'
|
|
124
|
+
requirements: []
|
|
125
|
+
rubygems_version: 3.6.9
|
|
126
|
+
specification_version: 4
|
|
127
|
+
summary: In-memory master data cache with an ActiveRecord-like API
|
|
128
|
+
test_files: []
|