rom 3.3.3 → 4.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (241) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +2 -599
  3. data/lib/rom/version.rb +1 -1
  4. data/lib/rom.rb +3 -44
  5. metadata +19 -295
  6. data/.gitignore +0 -24
  7. data/.rspec +0 -3
  8. data/.rubocop.yml +0 -87
  9. data/.rubocop_todo.yml +0 -46
  10. data/.travis.yml +0 -24
  11. data/.yardopts +0 -2
  12. data/CODE_OF_CONDUCT.md +0 -13
  13. data/CONTRIBUTING.md +0 -1
  14. data/Gemfile +0 -54
  15. data/Guardfile +0 -24
  16. data/Rakefile +0 -28
  17. data/lib/rom/array_dataset.rb +0 -44
  18. data/lib/rom/association_set.rb +0 -49
  19. data/lib/rom/auto_curry.rb +0 -55
  20. data/lib/rom/command.rb +0 -494
  21. data/lib/rom/command_registry.rb +0 -148
  22. data/lib/rom/commands/class_interface.rb +0 -270
  23. data/lib/rom/commands/composite.rb +0 -53
  24. data/lib/rom/commands/create.rb +0 -13
  25. data/lib/rom/commands/delete.rb +0 -14
  26. data/lib/rom/commands/graph/builder.rb +0 -176
  27. data/lib/rom/commands/graph/class_interface.rb +0 -62
  28. data/lib/rom/commands/graph/input_evaluator.rb +0 -62
  29. data/lib/rom/commands/graph.rb +0 -95
  30. data/lib/rom/commands/lazy/create.rb +0 -23
  31. data/lib/rom/commands/lazy/delete.rb +0 -27
  32. data/lib/rom/commands/lazy/update.rb +0 -34
  33. data/lib/rom/commands/lazy.rb +0 -99
  34. data/lib/rom/commands/result.rb +0 -96
  35. data/lib/rom/commands/update.rb +0 -14
  36. data/lib/rom/commands.rb +0 -3
  37. data/lib/rom/configuration.rb +0 -90
  38. data/lib/rom/configuration_dsl/command.rb +0 -41
  39. data/lib/rom/configuration_dsl/command_dsl.rb +0 -35
  40. data/lib/rom/configuration_dsl/mapper.rb +0 -36
  41. data/lib/rom/configuration_dsl/mapper_dsl.rb +0 -43
  42. data/lib/rom/configuration_dsl/relation.rb +0 -26
  43. data/lib/rom/configuration_dsl.rb +0 -107
  44. data/lib/rom/configuration_plugin.rb +0 -17
  45. data/lib/rom/constants.rb +0 -36
  46. data/lib/rom/container.rb +0 -233
  47. data/lib/rom/create_container.rb +0 -60
  48. data/lib/rom/data_proxy.rb +0 -94
  49. data/lib/rom/enumerable_dataset.rb +0 -68
  50. data/lib/rom/environment.rb +0 -70
  51. data/lib/rom/gateway.rb +0 -196
  52. data/lib/rom/global/plugin_dsl.rb +0 -47
  53. data/lib/rom/global.rb +0 -58
  54. data/lib/rom/initializer.rb +0 -26
  55. data/lib/rom/lint/enumerable_dataset.rb +0 -54
  56. data/lib/rom/lint/gateway.rb +0 -120
  57. data/lib/rom/lint/linter.rb +0 -78
  58. data/lib/rom/lint/spec.rb +0 -20
  59. data/lib/rom/lint/test.rb +0 -98
  60. data/lib/rom/mapper_registry.rb +0 -35
  61. data/lib/rom/memory/commands.rb +0 -56
  62. data/lib/rom/memory/dataset.rb +0 -97
  63. data/lib/rom/memory/gateway.rb +0 -64
  64. data/lib/rom/memory/relation.rb +0 -62
  65. data/lib/rom/memory/schema.rb +0 -13
  66. data/lib/rom/memory/storage.rb +0 -59
  67. data/lib/rom/memory/types.rb +0 -9
  68. data/lib/rom/memory.rb +0 -4
  69. data/lib/rom/pipeline.rb +0 -122
  70. data/lib/rom/plugin.rb +0 -20
  71. data/lib/rom/plugin_base.rb +0 -40
  72. data/lib/rom/plugin_registry.rb +0 -173
  73. data/lib/rom/plugins/command/schema.rb +0 -37
  74. data/lib/rom/plugins/configuration/configuration_dsl.rb +0 -21
  75. data/lib/rom/plugins/relation/instrumentation.rb +0 -51
  76. data/lib/rom/plugins/relation/key_inference.rb +0 -48
  77. data/lib/rom/plugins/relation/registry_reader.rb +0 -33
  78. data/lib/rom/registry.rb +0 -50
  79. data/lib/rom/relation/class_interface.rb +0 -356
  80. data/lib/rom/relation/composite.rb +0 -46
  81. data/lib/rom/relation/curried.rb +0 -109
  82. data/lib/rom/relation/graph.rb +0 -125
  83. data/lib/rom/relation/loaded.rb +0 -127
  84. data/lib/rom/relation/materializable.rb +0 -66
  85. data/lib/rom/relation/name.rb +0 -102
  86. data/lib/rom/relation/view_dsl.rb +0 -64
  87. data/lib/rom/relation.rb +0 -250
  88. data/lib/rom/relation_registry.rb +0 -9
  89. data/lib/rom/schema/attribute.rb +0 -390
  90. data/lib/rom/schema/dsl.rb +0 -67
  91. data/lib/rom/schema.rb +0 -407
  92. data/lib/rom/setup/auto_registration.rb +0 -74
  93. data/lib/rom/setup/auto_registration_strategies/base.rb +0 -16
  94. data/lib/rom/setup/auto_registration_strategies/custom_namespace.rb +0 -63
  95. data/lib/rom/setup/auto_registration_strategies/no_namespace.rb +0 -20
  96. data/lib/rom/setup/auto_registration_strategies/with_namespace.rb +0 -18
  97. data/lib/rom/setup/finalize/finalize_commands.rb +0 -47
  98. data/lib/rom/setup/finalize/finalize_mappers.rb +0 -36
  99. data/lib/rom/setup/finalize/finalize_relations.rb +0 -83
  100. data/lib/rom/setup/finalize.rb +0 -152
  101. data/lib/rom/setup.rb +0 -65
  102. data/lib/rom/support/configurable.rb +0 -85
  103. data/lib/rom/transaction.rb +0 -24
  104. data/lib/rom/types.rb +0 -49
  105. data/log/.gitkeep +0 -0
  106. data/rakelib/benchmark.rake +0 -15
  107. data/rakelib/mutant.rake +0 -19
  108. data/rakelib/rubocop.rake +0 -18
  109. data/rom.gemspec +0 -25
  110. data/spec/fixtures/app/commands/create_user.rb +0 -2
  111. data/spec/fixtures/app/mappers/user_list.rb +0 -2
  112. data/spec/fixtures/app/my_commands/create_user.rb +0 -2
  113. data/spec/fixtures/app/my_mappers/user_list.rb +0 -2
  114. data/spec/fixtures/app/my_relations/users.rb +0 -2
  115. data/spec/fixtures/app/relations/users.rb +0 -2
  116. data/spec/fixtures/custom/commands/create_user.rb +0 -6
  117. data/spec/fixtures/custom/mappers/user_list.rb +0 -6
  118. data/spec/fixtures/custom/relations/users.rb +0 -6
  119. data/spec/fixtures/custom_namespace/commands/create_customer.rb +0 -8
  120. data/spec/fixtures/custom_namespace/mappers/customer_list.rb +0 -8
  121. data/spec/fixtures/custom_namespace/relations/customers.rb +0 -8
  122. data/spec/fixtures/lib/persistence/commands/create_user.rb +0 -6
  123. data/spec/fixtures/lib/persistence/mappers/user_list.rb +0 -6
  124. data/spec/fixtures/lib/persistence/my_commands/create_user.rb +0 -6
  125. data/spec/fixtures/lib/persistence/my_mappers/user_list.rb +0 -6
  126. data/spec/fixtures/lib/persistence/my_relations/users.rb +0 -6
  127. data/spec/fixtures/lib/persistence/relations/users.rb +0 -6
  128. data/spec/fixtures/wrong/commands/create_customer.rb +0 -8
  129. data/spec/fixtures/wrong/mappers/customer_list.rb +0 -8
  130. data/spec/fixtures/wrong/relations/customers.rb +0 -8
  131. data/spec/integration/command_registry_spec.rb +0 -47
  132. data/spec/integration/commands/create_spec.rb +0 -157
  133. data/spec/integration/commands/delete_spec.rb +0 -67
  134. data/spec/integration/commands/error_handling_spec.rb +0 -25
  135. data/spec/integration/commands/graph_builder_spec.rb +0 -213
  136. data/spec/integration/commands/graph_spec.rb +0 -294
  137. data/spec/integration/commands/update_spec.rb +0 -86
  138. data/spec/integration/commands_spec.rb +0 -67
  139. data/spec/integration/gateways/extending_relations_spec.rb +0 -58
  140. data/spec/integration/gateways/setting_logger_spec.rb +0 -34
  141. data/spec/integration/mappers/combine_spec.rb +0 -117
  142. data/spec/integration/mappers/deep_embedded_spec.rb +0 -44
  143. data/spec/integration/mappers/definition_dsl_spec.rb +0 -206
  144. data/spec/integration/mappers/embedded_spec.rb +0 -62
  145. data/spec/integration/mappers/exclude_spec.rb +0 -27
  146. data/spec/integration/mappers/fold_spec.rb +0 -71
  147. data/spec/integration/mappers/group_spec.rb +0 -163
  148. data/spec/integration/mappers/overwrite_attributes_value_spec.rb +0 -51
  149. data/spec/integration/mappers/prefix_separator_spec.rb +0 -52
  150. data/spec/integration/mappers/prefix_spec.rb +0 -48
  151. data/spec/integration/mappers/prefixing_attributes_spec.rb +0 -37
  152. data/spec/integration/mappers/registering_custom_mappers_spec.rb +0 -28
  153. data/spec/integration/mappers/renaming_attributes_spec.rb +0 -125
  154. data/spec/integration/mappers/reusing_mappers_spec.rb +0 -43
  155. data/spec/integration/mappers/step_spec.rb +0 -119
  156. data/spec/integration/mappers/symbolizing_attributes_spec.rb +0 -77
  157. data/spec/integration/mappers/unfold_spec.rb +0 -92
  158. data/spec/integration/mappers/ungroup_spec.rb +0 -126
  159. data/spec/integration/mappers/unwrap_spec.rb +0 -93
  160. data/spec/integration/mappers/wrap_spec.rb +0 -155
  161. data/spec/integration/memory/commands/create_spec.rb +0 -23
  162. data/spec/integration/memory/commands/delete_spec.rb +0 -23
  163. data/spec/integration/memory/commands/update_spec.rb +0 -23
  164. data/spec/integration/multi_env_spec.rb +0 -69
  165. data/spec/integration/multi_repo_spec.rb +0 -46
  166. data/spec/integration/relations/default_dataset_spec.rb +0 -38
  167. data/spec/integration/relations/inheritance_spec.rb +0 -37
  168. data/spec/integration/relations/reading_spec.rb +0 -169
  169. data/spec/integration/relations/registry_dsl_spec.rb +0 -45
  170. data/spec/integration/setup_spec.rb +0 -193
  171. data/spec/shared/command_behavior.rb +0 -28
  172. data/spec/shared/command_graph.rb +0 -54
  173. data/spec/shared/container.rb +0 -9
  174. data/spec/shared/enumerable_dataset.rb +0 -52
  175. data/spec/shared/gateway_only.rb +0 -6
  176. data/spec/shared/materializable.rb +0 -36
  177. data/spec/shared/no_container.rb +0 -16
  178. data/spec/shared/one_behavior.rb +0 -26
  179. data/spec/shared/proxy.rb +0 -0
  180. data/spec/shared/users_and_tasks.rb +0 -10
  181. data/spec/spec_helper.rb +0 -59
  182. data/spec/support/constant_leak_finder.rb +0 -14
  183. data/spec/support/mutant.rb +0 -10
  184. data/spec/support/schema.rb +0 -14
  185. data/spec/support/types.rb +0 -5
  186. data/spec/test/memory_repository_lint_test.rb +0 -27
  187. data/spec/unit/rom/array_dataset_spec.rb +0 -59
  188. data/spec/unit/rom/association_set_spec.rb +0 -48
  189. data/spec/unit/rom/auto_curry_spec.rb +0 -71
  190. data/spec/unit/rom/commands/graph_spec.rb +0 -192
  191. data/spec/unit/rom/commands/lazy_spec.rb +0 -310
  192. data/spec/unit/rom/commands/pre_and_post_processors_spec.rb +0 -343
  193. data/spec/unit/rom/commands/result_spec.rb +0 -70
  194. data/spec/unit/rom/commands_spec.rb +0 -188
  195. data/spec/unit/rom/configurable_spec.rb +0 -49
  196. data/spec/unit/rom/configuration_spec.rb +0 -61
  197. data/spec/unit/rom/container_spec.rb +0 -109
  198. data/spec/unit/rom/create_container_spec.rb +0 -151
  199. data/spec/unit/rom/enumerable_dataset_spec.rb +0 -15
  200. data/spec/unit/rom/environment_spec.rb +0 -123
  201. data/spec/unit/rom/gateway_spec.rb +0 -146
  202. data/spec/unit/rom/mapper_registry_spec.rb +0 -25
  203. data/spec/unit/rom/memory/commands_spec.rb +0 -43
  204. data/spec/unit/rom/memory/dataset_spec.rb +0 -31
  205. data/spec/unit/rom/memory/gateway_spec.rb +0 -12
  206. data/spec/unit/rom/memory/inheritance_spec.rb +0 -32
  207. data/spec/unit/rom/memory/relation_spec.rb +0 -121
  208. data/spec/unit/rom/memory/storage_spec.rb +0 -45
  209. data/spec/unit/rom/plugin_spec.rb +0 -150
  210. data/spec/unit/rom/plugins/command/schema_spec.rb +0 -66
  211. data/spec/unit/rom/plugins/relation/instrumentation_spec.rb +0 -44
  212. data/spec/unit/rom/plugins/relation/key_inference_spec.rb +0 -85
  213. data/spec/unit/rom/registry_spec.rb +0 -86
  214. data/spec/unit/rom/relation/attribute_reader_spec.rb +0 -17
  215. data/spec/unit/rom/relation/call_spec.rb +0 -51
  216. data/spec/unit/rom/relation/composite_spec.rb +0 -106
  217. data/spec/unit/rom/relation/curried_spec.rb +0 -67
  218. data/spec/unit/rom/relation/graph_spec.rb +0 -106
  219. data/spec/unit/rom/relation/lazy/combine_spec.rb +0 -165
  220. data/spec/unit/rom/relation/lazy/graph_spec.rb +0 -165
  221. data/spec/unit/rom/relation/lazy_spec.rb +0 -214
  222. data/spec/unit/rom/relation/loaded_spec.rb +0 -53
  223. data/spec/unit/rom/relation/name_spec.rb +0 -58
  224. data/spec/unit/rom/relation/output_schema_spec.rb +0 -28
  225. data/spec/unit/rom/relation/schema_spec.rb +0 -259
  226. data/spec/unit/rom/relation/view_spec.rb +0 -158
  227. data/spec/unit/rom/relation_spec.rb +0 -252
  228. data/spec/unit/rom/schema/accessing_attributes_spec.rb +0 -52
  229. data/spec/unit/rom/schema/append_spec.rb +0 -17
  230. data/spec/unit/rom/schema/exclude_spec.rb +0 -15
  231. data/spec/unit/rom/schema/finalize_spec.rb +0 -59
  232. data/spec/unit/rom/schema/key_predicate_spec.rb +0 -15
  233. data/spec/unit/rom/schema/merge_spec.rb +0 -17
  234. data/spec/unit/rom/schema/prefix_spec.rb +0 -16
  235. data/spec/unit/rom/schema/project_spec.rb +0 -15
  236. data/spec/unit/rom/schema/rename_spec.rb +0 -22
  237. data/spec/unit/rom/schema/type_spec.rb +0 -49
  238. data/spec/unit/rom/schema/uniq_spec.rb +0 -21
  239. data/spec/unit/rom/schema/wrap_spec.rb +0 -18
  240. data/spec/unit/rom/schema_spec.rb +0 -10
  241. data/spec/unit/rom/setup/auto_registration_spec.rb +0 -214
metadata CHANGED
@@ -1,111 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rom
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.3
4
+ version: 4.0.0.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-19 00:00:00.000000000 Z
11
+ date: 2017-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: concurrent-ruby
14
+ name: rom-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.0'
19
+ version: 4.0.0.beta
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.0'
26
+ version: 4.0.0.beta
27
27
  - !ruby/object:Gem::Dependency
28
- name: dry-equalizer
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '0.2'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '0.2'
41
- - !ruby/object:Gem::Dependency
42
- name: dry-types
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '0.9'
48
- - - ">="
49
- - !ruby/object:Gem::Version
50
- version: 0.9.4
51
- type: :runtime
52
- prerelease: false
53
- version_requirements: !ruby/object:Gem::Requirement
54
- requirements:
55
- - - "~>"
56
- - !ruby/object:Gem::Version
57
- version: '0.9'
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- version: 0.9.4
61
- - !ruby/object:Gem::Dependency
62
- name: dry-core
28
+ name: rom-mapper
63
29
  requirement: !ruby/object:Gem::Requirement
64
30
  requirements:
65
31
  - - "~>"
66
32
  - !ruby/object:Gem::Version
67
- version: '0.3'
33
+ version: 1.0.0.beta
68
34
  type: :runtime
69
35
  prerelease: false
70
36
  version_requirements: !ruby/object:Gem::Requirement
71
37
  requirements:
72
38
  - - "~>"
73
39
  - !ruby/object:Gem::Version
74
- version: '0.3'
40
+ version: 1.0.0.beta
75
41
  - !ruby/object:Gem::Dependency
76
- name: dry-initializer
42
+ name: rom-repository
77
43
  requirement: !ruby/object:Gem::Requirement
78
44
  requirements:
79
45
  - - "~>"
80
46
  - !ruby/object:Gem::Version
81
- version: '1.3'
47
+ version: 2.0.0.beta
82
48
  type: :runtime
83
49
  prerelease: false
84
50
  version_requirements: !ruby/object:Gem::Requirement
85
51
  requirements:
86
52
  - - "~>"
87
53
  - !ruby/object:Gem::Version
88
- version: '1.3'
54
+ version: 2.0.0.beta
89
55
  - !ruby/object:Gem::Dependency
90
- name: rom-mapper
56
+ name: rom-changeset
91
57
  requirement: !ruby/object:Gem::Requirement
92
58
  requirements:
93
59
  - - "~>"
94
60
  - !ruby/object:Gem::Version
95
- version: '0.5'
96
- - - ">="
97
- - !ruby/object:Gem::Version
98
- version: 0.5.1
61
+ version: 1.0.0.beta
99
62
  type: :runtime
100
63
  prerelease: false
101
64
  version_requirements: !ruby/object:Gem::Requirement
102
65
  requirements:
103
66
  - - "~>"
104
67
  - !ruby/object:Gem::Version
105
- version: '0.5'
106
- - - ">="
107
- - !ruby/object:Gem::Version
108
- version: 0.5.1
68
+ version: 1.0.0.beta
109
69
  - !ruby/object:Gem::Dependency
110
70
  name: rake
111
71
  requirement: !ruby/object:Gem::Requirement
@@ -135,252 +95,16 @@ dependencies:
135
95
  - !ruby/object:Gem::Version
136
96
  version: '3.5'
137
97
  description: Persistence and mapping toolkit for Ruby
138
- email: piotr.solnica@gmail.com
98
+ email: piotr.solnica+oss@gmail.com
139
99
  executables: []
140
100
  extensions: []
141
101
  extra_rdoc_files: []
142
102
  files:
143
- - ".gitignore"
144
- - ".rspec"
145
- - ".rubocop.yml"
146
- - ".rubocop_todo.yml"
147
- - ".travis.yml"
148
- - ".yardopts"
149
103
  - CHANGELOG.md
150
- - CODE_OF_CONDUCT.md
151
- - CONTRIBUTING.md
152
- - Gemfile
153
- - Guardfile
154
104
  - LICENSE
155
105
  - README.md
156
- - Rakefile
157
106
  - lib/rom.rb
158
- - lib/rom/array_dataset.rb
159
- - lib/rom/association_set.rb
160
- - lib/rom/auto_curry.rb
161
- - lib/rom/command.rb
162
- - lib/rom/command_registry.rb
163
- - lib/rom/commands.rb
164
- - lib/rom/commands/class_interface.rb
165
- - lib/rom/commands/composite.rb
166
- - lib/rom/commands/create.rb
167
- - lib/rom/commands/delete.rb
168
- - lib/rom/commands/graph.rb
169
- - lib/rom/commands/graph/builder.rb
170
- - lib/rom/commands/graph/class_interface.rb
171
- - lib/rom/commands/graph/input_evaluator.rb
172
- - lib/rom/commands/lazy.rb
173
- - lib/rom/commands/lazy/create.rb
174
- - lib/rom/commands/lazy/delete.rb
175
- - lib/rom/commands/lazy/update.rb
176
- - lib/rom/commands/result.rb
177
- - lib/rom/commands/update.rb
178
- - lib/rom/configuration.rb
179
- - lib/rom/configuration_dsl.rb
180
- - lib/rom/configuration_dsl/command.rb
181
- - lib/rom/configuration_dsl/command_dsl.rb
182
- - lib/rom/configuration_dsl/mapper.rb
183
- - lib/rom/configuration_dsl/mapper_dsl.rb
184
- - lib/rom/configuration_dsl/relation.rb
185
- - lib/rom/configuration_plugin.rb
186
- - lib/rom/constants.rb
187
- - lib/rom/container.rb
188
- - lib/rom/create_container.rb
189
- - lib/rom/data_proxy.rb
190
- - lib/rom/enumerable_dataset.rb
191
- - lib/rom/environment.rb
192
- - lib/rom/gateway.rb
193
- - lib/rom/global.rb
194
- - lib/rom/global/plugin_dsl.rb
195
- - lib/rom/initializer.rb
196
- - lib/rom/lint/enumerable_dataset.rb
197
- - lib/rom/lint/gateway.rb
198
- - lib/rom/lint/linter.rb
199
- - lib/rom/lint/spec.rb
200
- - lib/rom/lint/test.rb
201
- - lib/rom/mapper_registry.rb
202
- - lib/rom/memory.rb
203
- - lib/rom/memory/commands.rb
204
- - lib/rom/memory/dataset.rb
205
- - lib/rom/memory/gateway.rb
206
- - lib/rom/memory/relation.rb
207
- - lib/rom/memory/schema.rb
208
- - lib/rom/memory/storage.rb
209
- - lib/rom/memory/types.rb
210
- - lib/rom/pipeline.rb
211
- - lib/rom/plugin.rb
212
- - lib/rom/plugin_base.rb
213
- - lib/rom/plugin_registry.rb
214
- - lib/rom/plugins/command/schema.rb
215
- - lib/rom/plugins/configuration/configuration_dsl.rb
216
- - lib/rom/plugins/relation/instrumentation.rb
217
- - lib/rom/plugins/relation/key_inference.rb
218
- - lib/rom/plugins/relation/registry_reader.rb
219
- - lib/rom/registry.rb
220
- - lib/rom/relation.rb
221
- - lib/rom/relation/class_interface.rb
222
- - lib/rom/relation/composite.rb
223
- - lib/rom/relation/curried.rb
224
- - lib/rom/relation/graph.rb
225
- - lib/rom/relation/loaded.rb
226
- - lib/rom/relation/materializable.rb
227
- - lib/rom/relation/name.rb
228
- - lib/rom/relation/view_dsl.rb
229
- - lib/rom/relation_registry.rb
230
- - lib/rom/schema.rb
231
- - lib/rom/schema/attribute.rb
232
- - lib/rom/schema/dsl.rb
233
- - lib/rom/setup.rb
234
- - lib/rom/setup/auto_registration.rb
235
- - lib/rom/setup/auto_registration_strategies/base.rb
236
- - lib/rom/setup/auto_registration_strategies/custom_namespace.rb
237
- - lib/rom/setup/auto_registration_strategies/no_namespace.rb
238
- - lib/rom/setup/auto_registration_strategies/with_namespace.rb
239
- - lib/rom/setup/finalize.rb
240
- - lib/rom/setup/finalize/finalize_commands.rb
241
- - lib/rom/setup/finalize/finalize_mappers.rb
242
- - lib/rom/setup/finalize/finalize_relations.rb
243
- - lib/rom/support/configurable.rb
244
- - lib/rom/transaction.rb
245
- - lib/rom/types.rb
246
107
  - lib/rom/version.rb
247
- - log/.gitkeep
248
- - rakelib/benchmark.rake
249
- - rakelib/mutant.rake
250
- - rakelib/rubocop.rake
251
- - rom.gemspec
252
- - spec/fixtures/app/commands/create_user.rb
253
- - spec/fixtures/app/mappers/user_list.rb
254
- - spec/fixtures/app/my_commands/create_user.rb
255
- - spec/fixtures/app/my_mappers/user_list.rb
256
- - spec/fixtures/app/my_relations/users.rb
257
- - spec/fixtures/app/relations/users.rb
258
- - spec/fixtures/custom/commands/create_user.rb
259
- - spec/fixtures/custom/mappers/user_list.rb
260
- - spec/fixtures/custom/relations/users.rb
261
- - spec/fixtures/custom_namespace/commands/create_customer.rb
262
- - spec/fixtures/custom_namespace/mappers/customer_list.rb
263
- - spec/fixtures/custom_namespace/relations/customers.rb
264
- - spec/fixtures/lib/persistence/commands/create_user.rb
265
- - spec/fixtures/lib/persistence/mappers/user_list.rb
266
- - spec/fixtures/lib/persistence/my_commands/create_user.rb
267
- - spec/fixtures/lib/persistence/my_mappers/user_list.rb
268
- - spec/fixtures/lib/persistence/my_relations/users.rb
269
- - spec/fixtures/lib/persistence/relations/users.rb
270
- - spec/fixtures/wrong/commands/create_customer.rb
271
- - spec/fixtures/wrong/mappers/customer_list.rb
272
- - spec/fixtures/wrong/relations/customers.rb
273
- - spec/integration/command_registry_spec.rb
274
- - spec/integration/commands/create_spec.rb
275
- - spec/integration/commands/delete_spec.rb
276
- - spec/integration/commands/error_handling_spec.rb
277
- - spec/integration/commands/graph_builder_spec.rb
278
- - spec/integration/commands/graph_spec.rb
279
- - spec/integration/commands/update_spec.rb
280
- - spec/integration/commands_spec.rb
281
- - spec/integration/gateways/extending_relations_spec.rb
282
- - spec/integration/gateways/setting_logger_spec.rb
283
- - spec/integration/mappers/combine_spec.rb
284
- - spec/integration/mappers/deep_embedded_spec.rb
285
- - spec/integration/mappers/definition_dsl_spec.rb
286
- - spec/integration/mappers/embedded_spec.rb
287
- - spec/integration/mappers/exclude_spec.rb
288
- - spec/integration/mappers/fold_spec.rb
289
- - spec/integration/mappers/group_spec.rb
290
- - spec/integration/mappers/overwrite_attributes_value_spec.rb
291
- - spec/integration/mappers/prefix_separator_spec.rb
292
- - spec/integration/mappers/prefix_spec.rb
293
- - spec/integration/mappers/prefixing_attributes_spec.rb
294
- - spec/integration/mappers/registering_custom_mappers_spec.rb
295
- - spec/integration/mappers/renaming_attributes_spec.rb
296
- - spec/integration/mappers/reusing_mappers_spec.rb
297
- - spec/integration/mappers/step_spec.rb
298
- - spec/integration/mappers/symbolizing_attributes_spec.rb
299
- - spec/integration/mappers/unfold_spec.rb
300
- - spec/integration/mappers/ungroup_spec.rb
301
- - spec/integration/mappers/unwrap_spec.rb
302
- - spec/integration/mappers/wrap_spec.rb
303
- - spec/integration/memory/commands/create_spec.rb
304
- - spec/integration/memory/commands/delete_spec.rb
305
- - spec/integration/memory/commands/update_spec.rb
306
- - spec/integration/multi_env_spec.rb
307
- - spec/integration/multi_repo_spec.rb
308
- - spec/integration/relations/default_dataset_spec.rb
309
- - spec/integration/relations/inheritance_spec.rb
310
- - spec/integration/relations/reading_spec.rb
311
- - spec/integration/relations/registry_dsl_spec.rb
312
- - spec/integration/setup_spec.rb
313
- - spec/shared/command_behavior.rb
314
- - spec/shared/command_graph.rb
315
- - spec/shared/container.rb
316
- - spec/shared/enumerable_dataset.rb
317
- - spec/shared/gateway_only.rb
318
- - spec/shared/materializable.rb
319
- - spec/shared/no_container.rb
320
- - spec/shared/one_behavior.rb
321
- - spec/shared/proxy.rb
322
- - spec/shared/users_and_tasks.rb
323
- - spec/spec_helper.rb
324
- - spec/support/constant_leak_finder.rb
325
- - spec/support/mutant.rb
326
- - spec/support/schema.rb
327
- - spec/support/types.rb
328
- - spec/test/memory_repository_lint_test.rb
329
- - spec/unit/rom/array_dataset_spec.rb
330
- - spec/unit/rom/association_set_spec.rb
331
- - spec/unit/rom/auto_curry_spec.rb
332
- - spec/unit/rom/commands/graph_spec.rb
333
- - spec/unit/rom/commands/lazy_spec.rb
334
- - spec/unit/rom/commands/pre_and_post_processors_spec.rb
335
- - spec/unit/rom/commands/result_spec.rb
336
- - spec/unit/rom/commands_spec.rb
337
- - spec/unit/rom/configurable_spec.rb
338
- - spec/unit/rom/configuration_spec.rb
339
- - spec/unit/rom/container_spec.rb
340
- - spec/unit/rom/create_container_spec.rb
341
- - spec/unit/rom/enumerable_dataset_spec.rb
342
- - spec/unit/rom/environment_spec.rb
343
- - spec/unit/rom/gateway_spec.rb
344
- - spec/unit/rom/mapper_registry_spec.rb
345
- - spec/unit/rom/memory/commands_spec.rb
346
- - spec/unit/rom/memory/dataset_spec.rb
347
- - spec/unit/rom/memory/gateway_spec.rb
348
- - spec/unit/rom/memory/inheritance_spec.rb
349
- - spec/unit/rom/memory/relation_spec.rb
350
- - spec/unit/rom/memory/storage_spec.rb
351
- - spec/unit/rom/plugin_spec.rb
352
- - spec/unit/rom/plugins/command/schema_spec.rb
353
- - spec/unit/rom/plugins/relation/instrumentation_spec.rb
354
- - spec/unit/rom/plugins/relation/key_inference_spec.rb
355
- - spec/unit/rom/registry_spec.rb
356
- - spec/unit/rom/relation/attribute_reader_spec.rb
357
- - spec/unit/rom/relation/call_spec.rb
358
- - spec/unit/rom/relation/composite_spec.rb
359
- - spec/unit/rom/relation/curried_spec.rb
360
- - spec/unit/rom/relation/graph_spec.rb
361
- - spec/unit/rom/relation/lazy/combine_spec.rb
362
- - spec/unit/rom/relation/lazy/graph_spec.rb
363
- - spec/unit/rom/relation/lazy_spec.rb
364
- - spec/unit/rom/relation/loaded_spec.rb
365
- - spec/unit/rom/relation/name_spec.rb
366
- - spec/unit/rom/relation/output_schema_spec.rb
367
- - spec/unit/rom/relation/schema_spec.rb
368
- - spec/unit/rom/relation/view_spec.rb
369
- - spec/unit/rom/relation_spec.rb
370
- - spec/unit/rom/schema/accessing_attributes_spec.rb
371
- - spec/unit/rom/schema/append_spec.rb
372
- - spec/unit/rom/schema/exclude_spec.rb
373
- - spec/unit/rom/schema/finalize_spec.rb
374
- - spec/unit/rom/schema/key_predicate_spec.rb
375
- - spec/unit/rom/schema/merge_spec.rb
376
- - spec/unit/rom/schema/prefix_spec.rb
377
- - spec/unit/rom/schema/project_spec.rb
378
- - spec/unit/rom/schema/rename_spec.rb
379
- - spec/unit/rom/schema/type_spec.rb
380
- - spec/unit/rom/schema/uniq_spec.rb
381
- - spec/unit/rom/schema/wrap_spec.rb
382
- - spec/unit/rom/schema_spec.rb
383
- - spec/unit/rom/setup/auto_registration_spec.rb
384
108
  homepage: http://rom-rb.org
385
109
  licenses:
386
110
  - MIT
@@ -396,13 +120,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
396
120
  version: '0'
397
121
  required_rubygems_version: !ruby/object:Gem::Requirement
398
122
  requirements:
399
- - - ">="
123
+ - - ">"
400
124
  - !ruby/object:Gem::Version
401
- version: '0'
125
+ version: 1.3.1
402
126
  requirements: []
403
127
  rubyforge_project:
404
- rubygems_version: 2.6.13
128
+ rubygems_version: 2.6.12
405
129
  signing_key:
406
130
  specification_version: 4
407
- summary: Ruby Object Mapper
131
+ summary: Persistence and mapping toolkit for Ruby
408
132
  test_files: []
data/.gitignore DELETED
@@ -1,24 +0,0 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- coverage
6
- InstalledFiles
7
- lib/bundler/man
8
- pkg
9
- rdoc
10
- spec/reports
11
- test/tmp
12
- test/version_tmp
13
- tmp
14
- Gemfile.lock
15
- vendor/
16
- log/
17
-
18
- .idea/
19
-
20
- # YARD artifacts
21
- .yardoc
22
- _yardoc
23
- doc/
24
- .ruby-version
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --color
2
- --order random
3
- --require ./spec/spec_helper.rb
data/.rubocop.yml DELETED
@@ -1,87 +0,0 @@
1
- # Generated by `rubocop --auto-gen-config`
2
- inherit_from: .rubocop_todo.yml
3
-
4
- # Exclude temporary files
5
- AllCops:
6
- Exclude:
7
- - tmp/**/*
8
- - vendor/**/*
9
-
10
- Style/BlockDelimiters:
11
- EnforcedStyle: semantic
12
- FunctionalMethods:
13
- - let
14
- - let!
15
- - subject
16
- - watch
17
- - before
18
-
19
- # No need to handle LoadError in Rakefile
20
- Lint/HandleExceptions:
21
- Exclude:
22
- - rakelib/*.rake
23
- - spec/spec_helper.rb
24
- - benchmarks/setup.rb
25
-
26
- # gemspec is a special snowflake
27
- Metrics/LineLength:
28
- Exclude:
29
- - rom.gemspec
30
-
31
- # The enforced style doesn’t match Vim’s defaults
32
- Style/AlignParameters:
33
- Enabled: false
34
-
35
- # UTF-8 is perfectly fine in comments
36
- Style/AsciiComments:
37
- Enabled: false
38
-
39
- # Documentation checked by Inch CI
40
- Style/Documentation:
41
- Enabled: false
42
-
43
- # Early returns have their vices
44
- Style/GuardClause:
45
- Enabled: false
46
-
47
- # Need to be skipped for >-> usage
48
- Style/Lambda:
49
- Enabled: false
50
-
51
- # Multiline block chains are ok
52
- Style/MultilineBlockChain:
53
- Enabled: false
54
-
55
- # Multiline operation chains are indented
56
- Style/MultilineOperationIndentation:
57
- EnforcedStyle: indented
58
-
59
- # Result::Success and Result::Failure use > for callbacks
60
- Style/OpMethod:
61
- Exclude:
62
- - lib/rom/command_registry.rb
63
-
64
- # Don’t introduce semantic fail/raise distinction
65
- Style/SignalException:
66
- EnforcedStyle: only_raise
67
-
68
- # Need to be skipped for >-> usage
69
- Style/SpaceAroundOperators:
70
- Enabled: false
71
-
72
- # Accept both single and double quotes
73
- Style/StringLiterals:
74
- Enabled: false
75
-
76
- # Allow def self.foo; @foo; end
77
- Style/TrivialAccessors:
78
- Enabled: false
79
-
80
- # Allow compact style for specs
81
- Style/ClassAndModuleChildren:
82
- Exclude:
83
- - spec/**/*_spec.rb
84
-
85
- # Allow logical `or`/`and` in conditionals
86
- Style/AndOr:
87
- EnforcedStyle: conditionals
data/.rubocop_todo.yml DELETED
@@ -1,46 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2015-09-26 16:17:55 +0200 using RuboCop version 0.34.2.
4
- # The point is for the user to remove these configuration records
5
- # one by one as the offenses are removed from the code base.
6
- # Note that changes in the inspected code, or installation of new
7
- # versions of RuboCop, may require this file to be generated again.
8
-
9
- # Offense count: 3
10
- Lint/NestedMethodDefinition:
11
- Exclude:
12
- - 'lib/rom/relation/class_interface.rb'
13
- - 'spec/unit/rom/commands_spec.rb'
14
-
15
- # Offense count: 13
16
- Metrics/AbcSize:
17
- Max: 38
18
-
19
- # Offense count: 3
20
- Metrics/CyclomaticComplexity:
21
- Max: 9
22
-
23
- # Offense count: 65
24
- # Configuration parameters: AllowURI, URISchemes.
25
- Metrics/LineLength:
26
- Max: 113
27
-
28
- # Offense count: 20
29
- # Configuration parameters: CountComments.
30
- Metrics/MethodLength:
31
- Max: 42
32
-
33
- # Offense count: 3
34
- Metrics/PerceivedComplexity:
35
- Max: 11
36
-
37
- # Offense count: 1
38
- # Configuration parameters: EnforcedStyle, SupportedStyles.
39
- Style/MethodName:
40
- Enabled: false
41
-
42
- # Offense count: 1
43
- # Configuration parameters: Methods.
44
- Style/SingleLineBlockParams:
45
- Exclude:
46
- - 'lib/rom/commands/graph/class_interface.rb'
data/.travis.yml DELETED
@@ -1,24 +0,0 @@
1
- language: ruby
2
- dist: trusty
3
- sudo: required
4
- cache: bundler
5
- bundler_args: --without sql benchmarks console tools
6
- script: "bundle exec rake ci"
7
- after_success:
8
- - '[ -d coverage ] && bundle exec codeclimate-test-reporter'
9
- rvm:
10
- - 2.2.7
11
- - 2.3.4
12
- - 2.4.1
13
- - jruby
14
- env:
15
- global:
16
- - JRUBY_OPTS='--dev -J-Xmx1024M'
17
- - COVERAGE='true'
18
- notifications:
19
- webhooks:
20
- urls:
21
- - https://webhooks.gitter.im/e/39e1225f489f38b0bd09
22
- on_success: change
23
- on_failure: always
24
- on_start: false
data/.yardopts DELETED
@@ -1,2 +0,0 @@
1
- --query '@api.text != "private"'
2
- --embed-mixins
data/CODE_OF_CONDUCT.md DELETED
@@ -1,13 +0,0 @@
1
- # Contributor Code of Conduct
2
-
3
- As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
-
5
- We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
6
-
7
- Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
-
9
- Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
-
11
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
-
13
- This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/CONTRIBUTING.md DELETED
@@ -1 +0,0 @@
1
- For information about contributing please refer to [Contribute](http://rom-rb.org/contribute) section on ROM website.
data/Gemfile DELETED
@@ -1,54 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec
4
-
5
- group :console do
6
- gem 'pry'
7
- gem 'pg', platforms: [:mri]
8
- end
9
-
10
- group :test do
11
- gem 'dry-equalizer'
12
- gem 'dry-struct'
13
- gem 'minitest'
14
- gem 'inflecto', '~> 0.0', '>= 0.0.2'
15
-
16
- platforms :mri do
17
- gem 'codeclimate-test-reporter', require: false
18
- gem 'simplecov', require: false
19
- end
20
-
21
- platforms :rbx do
22
- gem 'rubysl-bigdecimal'
23
- end
24
- end
25
-
26
- group :sql do
27
- gem 'rom-sql', git: 'https://github.com/rom-rb/rom-sql.git', branch: 'release-1.0'
28
- gem 'sequel'
29
- gem 'jdbc-sqlite3', platforms: :jruby
30
- gem 'jdbc-postgres', platforms: :jruby
31
- gem 'sqlite3', platforms: [:mri, :rbx]
32
-
33
- git_source(:github) { |repo_name| "https://github.com/#{repo_name}.git" }
34
-
35
- platform :jruby do
36
- github 'jruby/activerecord-jdbc-adapter', branch: 'rails-5' do
37
- gem 'activerecord-jdbc-adapter'
38
- gem 'activerecord-jdbcpostgresql-adapter'
39
- end
40
- end
41
- end
42
-
43
- group :benchmarks do
44
- gem 'activerecord', '~> 5.0'
45
- gem 'benchmark-ips', '~> 2.2.0'
46
- gem 'rom-repository', git: 'https://github.com/rom-rb/rom-repository.git', branch: 'master'
47
- gem 'hotch', platform: :mri
48
- end
49
-
50
- group :tools do
51
- gem 'byebug', platform: :mri
52
- gem 'mutant'
53
- gem 'mutant-rspec'
54
- end
data/Guardfile DELETED
@@ -1,24 +0,0 @@
1
- group :red_green_refactor, halt_on_fail: true do
2
- guard :rspec, cmd: "rspec", all_on_start: true do
3
- # run all specs if Gemfile.lock is modified
4
- watch('Gemfile.lock') { 'spec' }
5
-
6
- # run all specs if any library code is modified
7
- watch(%r{\Alib/.+\.rb\z}) { 'spec' }
8
-
9
- # run all specs if supporting files are modified
10
- watch('spec/spec_helper.rb') { 'spec' }
11
- watch(%r{\Aspec/(?:lib|support|shared)/.+\.rb\z}) { 'spec' }
12
-
13
- # run a spec if it is modified
14
- watch(%r{\Aspec/(?:unit|integration)/.+_spec\.rb\z})
15
-
16
- notification :tmux, display_message: true if ENV.key?('TMUX')
17
- end
18
-
19
- guard :rubocop do
20
- # run rubocop on modified file
21
- watch(%r{\Alib/.+\.rb\z})
22
- watch(%r{\Aspec/.+\.rb\z})
23
- end
24
- end