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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -599
- data/lib/rom/version.rb +1 -1
- data/lib/rom.rb +3 -44
- metadata +19 -295
- data/.gitignore +0 -24
- data/.rspec +0 -3
- data/.rubocop.yml +0 -87
- data/.rubocop_todo.yml +0 -46
- data/.travis.yml +0 -24
- data/.yardopts +0 -2
- data/CODE_OF_CONDUCT.md +0 -13
- data/CONTRIBUTING.md +0 -1
- data/Gemfile +0 -54
- data/Guardfile +0 -24
- data/Rakefile +0 -28
- data/lib/rom/array_dataset.rb +0 -44
- data/lib/rom/association_set.rb +0 -49
- data/lib/rom/auto_curry.rb +0 -55
- data/lib/rom/command.rb +0 -494
- data/lib/rom/command_registry.rb +0 -148
- data/lib/rom/commands/class_interface.rb +0 -270
- data/lib/rom/commands/composite.rb +0 -53
- data/lib/rom/commands/create.rb +0 -13
- data/lib/rom/commands/delete.rb +0 -14
- data/lib/rom/commands/graph/builder.rb +0 -176
- data/lib/rom/commands/graph/class_interface.rb +0 -62
- data/lib/rom/commands/graph/input_evaluator.rb +0 -62
- data/lib/rom/commands/graph.rb +0 -95
- data/lib/rom/commands/lazy/create.rb +0 -23
- data/lib/rom/commands/lazy/delete.rb +0 -27
- data/lib/rom/commands/lazy/update.rb +0 -34
- data/lib/rom/commands/lazy.rb +0 -99
- data/lib/rom/commands/result.rb +0 -96
- data/lib/rom/commands/update.rb +0 -14
- data/lib/rom/commands.rb +0 -3
- data/lib/rom/configuration.rb +0 -90
- data/lib/rom/configuration_dsl/command.rb +0 -41
- data/lib/rom/configuration_dsl/command_dsl.rb +0 -35
- data/lib/rom/configuration_dsl/mapper.rb +0 -36
- data/lib/rom/configuration_dsl/mapper_dsl.rb +0 -43
- data/lib/rom/configuration_dsl/relation.rb +0 -26
- data/lib/rom/configuration_dsl.rb +0 -107
- data/lib/rom/configuration_plugin.rb +0 -17
- data/lib/rom/constants.rb +0 -36
- data/lib/rom/container.rb +0 -233
- data/lib/rom/create_container.rb +0 -60
- data/lib/rom/data_proxy.rb +0 -94
- data/lib/rom/enumerable_dataset.rb +0 -68
- data/lib/rom/environment.rb +0 -70
- data/lib/rom/gateway.rb +0 -196
- data/lib/rom/global/plugin_dsl.rb +0 -47
- data/lib/rom/global.rb +0 -58
- data/lib/rom/initializer.rb +0 -26
- data/lib/rom/lint/enumerable_dataset.rb +0 -54
- data/lib/rom/lint/gateway.rb +0 -120
- data/lib/rom/lint/linter.rb +0 -78
- data/lib/rom/lint/spec.rb +0 -20
- data/lib/rom/lint/test.rb +0 -98
- data/lib/rom/mapper_registry.rb +0 -35
- data/lib/rom/memory/commands.rb +0 -56
- data/lib/rom/memory/dataset.rb +0 -97
- data/lib/rom/memory/gateway.rb +0 -64
- data/lib/rom/memory/relation.rb +0 -62
- data/lib/rom/memory/schema.rb +0 -13
- data/lib/rom/memory/storage.rb +0 -59
- data/lib/rom/memory/types.rb +0 -9
- data/lib/rom/memory.rb +0 -4
- data/lib/rom/pipeline.rb +0 -122
- data/lib/rom/plugin.rb +0 -20
- data/lib/rom/plugin_base.rb +0 -40
- data/lib/rom/plugin_registry.rb +0 -173
- data/lib/rom/plugins/command/schema.rb +0 -37
- data/lib/rom/plugins/configuration/configuration_dsl.rb +0 -21
- data/lib/rom/plugins/relation/instrumentation.rb +0 -51
- data/lib/rom/plugins/relation/key_inference.rb +0 -48
- data/lib/rom/plugins/relation/registry_reader.rb +0 -33
- data/lib/rom/registry.rb +0 -50
- data/lib/rom/relation/class_interface.rb +0 -356
- data/lib/rom/relation/composite.rb +0 -46
- data/lib/rom/relation/curried.rb +0 -109
- data/lib/rom/relation/graph.rb +0 -125
- data/lib/rom/relation/loaded.rb +0 -127
- data/lib/rom/relation/materializable.rb +0 -66
- data/lib/rom/relation/name.rb +0 -102
- data/lib/rom/relation/view_dsl.rb +0 -64
- data/lib/rom/relation.rb +0 -250
- data/lib/rom/relation_registry.rb +0 -9
- data/lib/rom/schema/attribute.rb +0 -390
- data/lib/rom/schema/dsl.rb +0 -67
- data/lib/rom/schema.rb +0 -407
- data/lib/rom/setup/auto_registration.rb +0 -74
- data/lib/rom/setup/auto_registration_strategies/base.rb +0 -16
- data/lib/rom/setup/auto_registration_strategies/custom_namespace.rb +0 -63
- data/lib/rom/setup/auto_registration_strategies/no_namespace.rb +0 -20
- data/lib/rom/setup/auto_registration_strategies/with_namespace.rb +0 -18
- data/lib/rom/setup/finalize/finalize_commands.rb +0 -47
- data/lib/rom/setup/finalize/finalize_mappers.rb +0 -36
- data/lib/rom/setup/finalize/finalize_relations.rb +0 -83
- data/lib/rom/setup/finalize.rb +0 -152
- data/lib/rom/setup.rb +0 -65
- data/lib/rom/support/configurable.rb +0 -85
- data/lib/rom/transaction.rb +0 -24
- data/lib/rom/types.rb +0 -49
- data/log/.gitkeep +0 -0
- data/rakelib/benchmark.rake +0 -15
- data/rakelib/mutant.rake +0 -19
- data/rakelib/rubocop.rake +0 -18
- data/rom.gemspec +0 -25
- data/spec/fixtures/app/commands/create_user.rb +0 -2
- data/spec/fixtures/app/mappers/user_list.rb +0 -2
- data/spec/fixtures/app/my_commands/create_user.rb +0 -2
- data/spec/fixtures/app/my_mappers/user_list.rb +0 -2
- data/spec/fixtures/app/my_relations/users.rb +0 -2
- data/spec/fixtures/app/relations/users.rb +0 -2
- data/spec/fixtures/custom/commands/create_user.rb +0 -6
- data/spec/fixtures/custom/mappers/user_list.rb +0 -6
- data/spec/fixtures/custom/relations/users.rb +0 -6
- data/spec/fixtures/custom_namespace/commands/create_customer.rb +0 -8
- data/spec/fixtures/custom_namespace/mappers/customer_list.rb +0 -8
- data/spec/fixtures/custom_namespace/relations/customers.rb +0 -8
- data/spec/fixtures/lib/persistence/commands/create_user.rb +0 -6
- data/spec/fixtures/lib/persistence/mappers/user_list.rb +0 -6
- data/spec/fixtures/lib/persistence/my_commands/create_user.rb +0 -6
- data/spec/fixtures/lib/persistence/my_mappers/user_list.rb +0 -6
- data/spec/fixtures/lib/persistence/my_relations/users.rb +0 -6
- data/spec/fixtures/lib/persistence/relations/users.rb +0 -6
- data/spec/fixtures/wrong/commands/create_customer.rb +0 -8
- data/spec/fixtures/wrong/mappers/customer_list.rb +0 -8
- data/spec/fixtures/wrong/relations/customers.rb +0 -8
- data/spec/integration/command_registry_spec.rb +0 -47
- data/spec/integration/commands/create_spec.rb +0 -157
- data/spec/integration/commands/delete_spec.rb +0 -67
- data/spec/integration/commands/error_handling_spec.rb +0 -25
- data/spec/integration/commands/graph_builder_spec.rb +0 -213
- data/spec/integration/commands/graph_spec.rb +0 -294
- data/spec/integration/commands/update_spec.rb +0 -86
- data/spec/integration/commands_spec.rb +0 -67
- data/spec/integration/gateways/extending_relations_spec.rb +0 -58
- data/spec/integration/gateways/setting_logger_spec.rb +0 -34
- data/spec/integration/mappers/combine_spec.rb +0 -117
- data/spec/integration/mappers/deep_embedded_spec.rb +0 -44
- data/spec/integration/mappers/definition_dsl_spec.rb +0 -206
- data/spec/integration/mappers/embedded_spec.rb +0 -62
- data/spec/integration/mappers/exclude_spec.rb +0 -27
- data/spec/integration/mappers/fold_spec.rb +0 -71
- data/spec/integration/mappers/group_spec.rb +0 -163
- data/spec/integration/mappers/overwrite_attributes_value_spec.rb +0 -51
- data/spec/integration/mappers/prefix_separator_spec.rb +0 -52
- data/spec/integration/mappers/prefix_spec.rb +0 -48
- data/spec/integration/mappers/prefixing_attributes_spec.rb +0 -37
- data/spec/integration/mappers/registering_custom_mappers_spec.rb +0 -28
- data/spec/integration/mappers/renaming_attributes_spec.rb +0 -125
- data/spec/integration/mappers/reusing_mappers_spec.rb +0 -43
- data/spec/integration/mappers/step_spec.rb +0 -119
- data/spec/integration/mappers/symbolizing_attributes_spec.rb +0 -77
- data/spec/integration/mappers/unfold_spec.rb +0 -92
- data/spec/integration/mappers/ungroup_spec.rb +0 -126
- data/spec/integration/mappers/unwrap_spec.rb +0 -93
- data/spec/integration/mappers/wrap_spec.rb +0 -155
- data/spec/integration/memory/commands/create_spec.rb +0 -23
- data/spec/integration/memory/commands/delete_spec.rb +0 -23
- data/spec/integration/memory/commands/update_spec.rb +0 -23
- data/spec/integration/multi_env_spec.rb +0 -69
- data/spec/integration/multi_repo_spec.rb +0 -46
- data/spec/integration/relations/default_dataset_spec.rb +0 -38
- data/spec/integration/relations/inheritance_spec.rb +0 -37
- data/spec/integration/relations/reading_spec.rb +0 -169
- data/spec/integration/relations/registry_dsl_spec.rb +0 -45
- data/spec/integration/setup_spec.rb +0 -193
- data/spec/shared/command_behavior.rb +0 -28
- data/spec/shared/command_graph.rb +0 -54
- data/spec/shared/container.rb +0 -9
- data/spec/shared/enumerable_dataset.rb +0 -52
- data/spec/shared/gateway_only.rb +0 -6
- data/spec/shared/materializable.rb +0 -36
- data/spec/shared/no_container.rb +0 -16
- data/spec/shared/one_behavior.rb +0 -26
- data/spec/shared/proxy.rb +0 -0
- data/spec/shared/users_and_tasks.rb +0 -10
- data/spec/spec_helper.rb +0 -59
- data/spec/support/constant_leak_finder.rb +0 -14
- data/spec/support/mutant.rb +0 -10
- data/spec/support/schema.rb +0 -14
- data/spec/support/types.rb +0 -5
- data/spec/test/memory_repository_lint_test.rb +0 -27
- data/spec/unit/rom/array_dataset_spec.rb +0 -59
- data/spec/unit/rom/association_set_spec.rb +0 -48
- data/spec/unit/rom/auto_curry_spec.rb +0 -71
- data/spec/unit/rom/commands/graph_spec.rb +0 -192
- data/spec/unit/rom/commands/lazy_spec.rb +0 -310
- data/spec/unit/rom/commands/pre_and_post_processors_spec.rb +0 -343
- data/spec/unit/rom/commands/result_spec.rb +0 -70
- data/spec/unit/rom/commands_spec.rb +0 -188
- data/spec/unit/rom/configurable_spec.rb +0 -49
- data/spec/unit/rom/configuration_spec.rb +0 -61
- data/spec/unit/rom/container_spec.rb +0 -109
- data/spec/unit/rom/create_container_spec.rb +0 -151
- data/spec/unit/rom/enumerable_dataset_spec.rb +0 -15
- data/spec/unit/rom/environment_spec.rb +0 -123
- data/spec/unit/rom/gateway_spec.rb +0 -146
- data/spec/unit/rom/mapper_registry_spec.rb +0 -25
- data/spec/unit/rom/memory/commands_spec.rb +0 -43
- data/spec/unit/rom/memory/dataset_spec.rb +0 -31
- data/spec/unit/rom/memory/gateway_spec.rb +0 -12
- data/spec/unit/rom/memory/inheritance_spec.rb +0 -32
- data/spec/unit/rom/memory/relation_spec.rb +0 -121
- data/spec/unit/rom/memory/storage_spec.rb +0 -45
- data/spec/unit/rom/plugin_spec.rb +0 -150
- data/spec/unit/rom/plugins/command/schema_spec.rb +0 -66
- data/spec/unit/rom/plugins/relation/instrumentation_spec.rb +0 -44
- data/spec/unit/rom/plugins/relation/key_inference_spec.rb +0 -85
- data/spec/unit/rom/registry_spec.rb +0 -86
- data/spec/unit/rom/relation/attribute_reader_spec.rb +0 -17
- data/spec/unit/rom/relation/call_spec.rb +0 -51
- data/spec/unit/rom/relation/composite_spec.rb +0 -106
- data/spec/unit/rom/relation/curried_spec.rb +0 -67
- data/spec/unit/rom/relation/graph_spec.rb +0 -106
- data/spec/unit/rom/relation/lazy/combine_spec.rb +0 -165
- data/spec/unit/rom/relation/lazy/graph_spec.rb +0 -165
- data/spec/unit/rom/relation/lazy_spec.rb +0 -214
- data/spec/unit/rom/relation/loaded_spec.rb +0 -53
- data/spec/unit/rom/relation/name_spec.rb +0 -58
- data/spec/unit/rom/relation/output_schema_spec.rb +0 -28
- data/spec/unit/rom/relation/schema_spec.rb +0 -259
- data/spec/unit/rom/relation/view_spec.rb +0 -158
- data/spec/unit/rom/relation_spec.rb +0 -252
- data/spec/unit/rom/schema/accessing_attributes_spec.rb +0 -52
- data/spec/unit/rom/schema/append_spec.rb +0 -17
- data/spec/unit/rom/schema/exclude_spec.rb +0 -15
- data/spec/unit/rom/schema/finalize_spec.rb +0 -59
- data/spec/unit/rom/schema/key_predicate_spec.rb +0 -15
- data/spec/unit/rom/schema/merge_spec.rb +0 -17
- data/spec/unit/rom/schema/prefix_spec.rb +0 -16
- data/spec/unit/rom/schema/project_spec.rb +0 -15
- data/spec/unit/rom/schema/rename_spec.rb +0 -22
- data/spec/unit/rom/schema/type_spec.rb +0 -49
- data/spec/unit/rom/schema/uniq_spec.rb +0 -21
- data/spec/unit/rom/schema/wrap_spec.rb +0 -18
- data/spec/unit/rom/schema_spec.rb +0 -10
- 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:
|
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-
|
11
|
+
date: 2017-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: rom-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
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:
|
26
|
+
version: 4.0.0.beta
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
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:
|
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:
|
40
|
+
version: 1.0.0.beta
|
75
41
|
- !ruby/object:Gem::Dependency
|
76
|
-
name:
|
42
|
+
name: rom-repository
|
77
43
|
requirement: !ruby/object:Gem::Requirement
|
78
44
|
requirements:
|
79
45
|
- - "~>"
|
80
46
|
- !ruby/object:Gem::Version
|
81
|
-
version:
|
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:
|
54
|
+
version: 2.0.0.beta
|
89
55
|
- !ruby/object:Gem::Dependency
|
90
|
-
name: rom-
|
56
|
+
name: rom-changeset
|
91
57
|
requirement: !ruby/object:Gem::Requirement
|
92
58
|
requirements:
|
93
59
|
- - "~>"
|
94
60
|
- !ruby/object:Gem::Version
|
95
|
-
version:
|
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:
|
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:
|
125
|
+
version: 1.3.1
|
402
126
|
requirements: []
|
403
127
|
rubyforge_project:
|
404
|
-
rubygems_version: 2.6.
|
128
|
+
rubygems_version: 2.6.12
|
405
129
|
signing_key:
|
406
130
|
specification_version: 4
|
407
|
-
summary:
|
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
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
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
|