vorpal 1.0.1 → 1.2.1

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.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +72 -56
  3. data/lib/vorpal/aggregate_mapper.rb +11 -0
  4. data/lib/vorpal/config/class_config.rb +71 -0
  5. data/lib/vorpal/configs.rb +9 -66
  6. data/lib/vorpal/driver/postgresql.rb +39 -3
  7. data/lib/vorpal/dsl/config_builder.rb +12 -50
  8. data/lib/vorpal/dsl/configuration.rb +131 -42
  9. data/lib/vorpal/dsl/defaults_generator.rb +14 -4
  10. data/lib/vorpal/engine.rb +18 -5
  11. data/lib/vorpal/identity_map.rb +15 -14
  12. data/lib/vorpal/version.rb +1 -1
  13. data/vorpal.gemspec +9 -9
  14. metadata +36 -88
  15. data/.editorconfig +0 -13
  16. data/.envrc +0 -4
  17. data/.gitignore +0 -16
  18. data/.rspec +0 -1
  19. data/.yardopts +0 -1
  20. data/Appraisals +0 -34
  21. data/Gemfile +0 -4
  22. data/Rakefile +0 -10
  23. data/bin/appraisal +0 -29
  24. data/bin/rake +0 -29
  25. data/bin/rspec +0 -29
  26. data/gemfiles/rails_4_1.gemfile +0 -11
  27. data/gemfiles/rails_4_1.gemfile.lock +0 -92
  28. data/gemfiles/rails_4_2.gemfile +0 -11
  29. data/gemfiles/rails_4_2.gemfile.lock +0 -90
  30. data/gemfiles/rails_5_0.gemfile +0 -11
  31. data/gemfiles/rails_5_0.gemfile.lock +0 -88
  32. data/gemfiles/rails_5_1.gemfile +0 -11
  33. data/gemfiles/rails_5_1.gemfile.lock +0 -88
  34. data/gemfiles/rails_5_2.gemfile +0 -11
  35. data/gemfiles/rails_5_2.gemfile.lock +0 -88
  36. data/spec/helpers/db_helpers.rb +0 -66
  37. data/spec/helpers/profile_helpers.rb +0 -26
  38. data/spec/integration_spec_helper.rb +0 -36
  39. data/spec/unit_spec_helper.rb +0 -0
  40. data/spec/vorpal/acceptance/aggregate_mapper_spec.rb +0 -911
  41. data/spec/vorpal/integration/driver/postgresql_spec.rb +0 -42
  42. data/spec/vorpal/performance/performance_spec.rb +0 -235
  43. data/spec/vorpal/unit/configs_spec.rb +0 -117
  44. data/spec/vorpal/unit/db_loader_spec.rb +0 -103
  45. data/spec/vorpal/unit/dsl/config_builder_spec.rb +0 -18
  46. data/spec/vorpal/unit/dsl/defaults_generator_spec.rb +0 -75
  47. data/spec/vorpal/unit/identity_map_spec.rb +0 -62
  48. data/spec/vorpal/unit/loaded_objects_spec.rb +0 -22
  49. data/spec/vorpal/unit/util/string_utils_spec.rb +0 -25
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vorpal
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Kirby
8
- autorequire:
9
- bindir: bin
8
+ autorequire:
9
+ bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-05 00:00:00.000000000 Z
11
+ date: 2020-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simple_serializer
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '10.0'
61
+ version: '13'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '10.0'
68
+ version: '13'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -81,114 +81,91 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '3.0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: virtus
84
+ name: appraisal
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '1.0'
89
+ version: '2.2'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '1.0'
96
+ version: '2.2'
97
97
  - !ruby/object:Gem::Dependency
98
- name: appraisal
98
+ name: activerecord
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: '2.2'
103
+ version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
- version: '2.2'
110
+ version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
- name: activerecord
112
+ name: pg
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - "~>"
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: 4.1.0
117
+ version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - "~>"
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
- version: 4.1.0
124
+ version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
- name: pg
126
+ name: activerecord-import
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - "~>"
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
- version: 0.17.0
131
+ version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - "~>"
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
- version: 0.17.0
138
+ version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
- name: activerecord-import
140
+ name: codecov
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - "~>"
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: 0.10.0
145
+ version: '0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - "~>"
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
- version: 0.10.0
152
+ version: '0'
153
153
  description: An ORM framelet that fits on top of ActiveRecord to give you 'Data Mapper'
154
154
  semantics.
155
155
  email:
156
156
  - seank@nulogy.com
157
- executables:
158
- - appraisal
159
- - rake
160
- - rspec
157
+ executables: []
161
158
  extensions: []
162
159
  extra_rdoc_files: []
163
160
  files:
164
- - ".editorconfig"
165
- - ".envrc"
166
- - ".gitignore"
167
- - ".rspec"
168
- - ".yardopts"
169
- - Appraisals
170
161
  - CHANGELOG.md
171
- - Gemfile
172
162
  - LICENSE.txt
173
163
  - README.md
174
- - Rakefile
175
- - bin/appraisal
176
- - bin/rake
177
- - bin/rspec
178
- - gemfiles/rails_4_1.gemfile
179
- - gemfiles/rails_4_1.gemfile.lock
180
- - gemfiles/rails_4_2.gemfile
181
- - gemfiles/rails_4_2.gemfile.lock
182
- - gemfiles/rails_5_0.gemfile
183
- - gemfiles/rails_5_0.gemfile.lock
184
- - gemfiles/rails_5_1.gemfile
185
- - gemfiles/rails_5_1.gemfile.lock
186
- - gemfiles/rails_5_2.gemfile
187
- - gemfiles/rails_5_2.gemfile.lock
188
164
  - lib/vorpal.rb
189
165
  - lib/vorpal/aggregate_mapper.rb
190
166
  - lib/vorpal/aggregate_traversal.rb
191
167
  - lib/vorpal/aggregate_utils.rb
168
+ - lib/vorpal/config/class_config.rb
192
169
  - lib/vorpal/configs.rb
193
170
  - lib/vorpal/db_loader.rb
194
171
  - lib/vorpal/driver/postgresql.rb
@@ -203,26 +180,12 @@ files:
203
180
  - lib/vorpal/util/hash_initialization.rb
204
181
  - lib/vorpal/util/string_utils.rb
205
182
  - lib/vorpal/version.rb
206
- - spec/helpers/db_helpers.rb
207
- - spec/helpers/profile_helpers.rb
208
- - spec/integration_spec_helper.rb
209
- - spec/unit_spec_helper.rb
210
- - spec/vorpal/acceptance/aggregate_mapper_spec.rb
211
- - spec/vorpal/integration/driver/postgresql_spec.rb
212
- - spec/vorpal/performance/performance_spec.rb
213
- - spec/vorpal/unit/configs_spec.rb
214
- - spec/vorpal/unit/db_loader_spec.rb
215
- - spec/vorpal/unit/dsl/config_builder_spec.rb
216
- - spec/vorpal/unit/dsl/defaults_generator_spec.rb
217
- - spec/vorpal/unit/identity_map_spec.rb
218
- - spec/vorpal/unit/loaded_objects_spec.rb
219
- - spec/vorpal/unit/util/string_utils_spec.rb
220
183
  - vorpal.gemspec
221
184
  homepage: https://github.com/nulogy/vorpal
222
185
  licenses:
223
186
  - MIT
224
187
  metadata: {}
225
- post_install_message:
188
+ post_install_message:
226
189
  rdoc_options: []
227
190
  require_paths:
228
191
  - lib
@@ -230,30 +193,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
230
193
  requirements:
231
194
  - - ">="
232
195
  - !ruby/object:Gem::Version
233
- version: 2.1.6
196
+ version: 2.5.7
234
197
  required_rubygems_version: !ruby/object:Gem::Requirement
235
198
  requirements:
236
199
  - - ">="
237
200
  - !ruby/object:Gem::Version
238
201
  version: '0'
239
202
  requirements: []
240
- rubyforge_project:
241
- rubygems_version: 2.7.3
242
- signing_key:
203
+ rubygems_version: 3.1.2
204
+ signing_key:
243
205
  specification_version: 4
244
206
  summary: Separate your domain model from your persistence mechanism.
245
- test_files:
246
- - spec/helpers/db_helpers.rb
247
- - spec/helpers/profile_helpers.rb
248
- - spec/integration_spec_helper.rb
249
- - spec/unit_spec_helper.rb
250
- - spec/vorpal/acceptance/aggregate_mapper_spec.rb
251
- - spec/vorpal/integration/driver/postgresql_spec.rb
252
- - spec/vorpal/performance/performance_spec.rb
253
- - spec/vorpal/unit/configs_spec.rb
254
- - spec/vorpal/unit/db_loader_spec.rb
255
- - spec/vorpal/unit/dsl/config_builder_spec.rb
256
- - spec/vorpal/unit/dsl/defaults_generator_spec.rb
257
- - spec/vorpal/unit/identity_map_spec.rb
258
- - spec/vorpal/unit/loaded_objects_spec.rb
259
- - spec/vorpal/unit/util/string_utils_spec.rb
207
+ test_files: []
@@ -1,13 +0,0 @@
1
- root = true
2
-
3
- [*]
4
-
5
- indent_style = space
6
- indent_size = 2
7
- end_of_line = lf
8
- charset = utf-8
9
- trim_trailing_whitespace = true
10
- insert_final_newline = true
11
-
12
- [*.md]
13
- trim_trailing_whitespace = false
data/.envrc DELETED
@@ -1,4 +0,0 @@
1
- #@IgnoreInspection BashAddShebang
2
- # Configuration for direnv (see https://github.com/direnv/direnv)
3
-
4
- PATH_add bin
data/.gitignore DELETED
@@ -1,16 +0,0 @@
1
- /.bundle/
2
- /.idea/
3
- /.yardoc
4
- /Gemfile.lock
5
- /_yardoc/
6
- /coverage/
7
- /doc/
8
- /pkg/
9
- /spec/reports/
10
- /tmp/
11
- *.bundle
12
- *.so
13
- *.o
14
- *.a
15
- mkmf.log
16
- /projectFilesBackup
data/.rspec DELETED
@@ -1 +0,0 @@
1
- --colour
data/.yardopts DELETED
@@ -1 +0,0 @@
1
- --no-private -m markdown lib/**/*.*
data/Appraisals DELETED
@@ -1,34 +0,0 @@
1
- appraise "rails-4-1" do
2
- ruby ">= 2.1.6"
3
- gem "activerecord", "~> 4.1.0"
4
- gem "pg", "~> 0.17.0"
5
- gem "activerecord-import", "~> 0.10.0"
6
- end
7
-
8
- appraise "rails-4-2" do
9
- ruby ">= 2.1.6"
10
- gem "activerecord", "~> 4.2.0"
11
- gem "pg", "~> 0.17.0"
12
- gem "activerecord-import", "~> 0.10.0"
13
- end
14
-
15
- appraise "rails-5-0" do
16
- ruby ">= 2.2.2"
17
- gem "activerecord", "~> 5.0.0"
18
- gem "pg", "~> 0.18.0"
19
- gem "activerecord-import", "= 0.13.0"
20
- end
21
-
22
- appraise "rails-5-1" do
23
- ruby ">= 2.2.2"
24
- gem "activerecord", "~> 5.1.0"
25
- gem "pg", "~> 0.18.0"
26
- gem "activerecord-import", "= 0.13.0"
27
- end
28
-
29
- appraise "rails-5-2" do
30
- ruby ">= 2.2.2"
31
- gem "activerecord", "~> 5.2.0"
32
- gem "pg", "~> 0.18.0"
33
- gem "activerecord-import", "= 0.13.0"
34
- end
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in vorpal.gemspec
4
- gemspec
data/Rakefile DELETED
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env rake
2
- begin
3
- require "bundler/gem_tasks"
4
- rescue LoadError
5
- puts 'You must `gem install bundler` and `bundle install` to run rake tasks associated with creating new versions of the gem.'
6
- end
7
-
8
- require 'rspec/core/rake_task'
9
- RSpec::Core::RakeTask.new(:spec)
10
- task :default => :spec
@@ -1,29 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- #
5
- # This file was generated by Bundler.
6
- #
7
- # The application 'appraisal' is installed as part of a gem, and
8
- # this file is here to facilitate running it.
9
- #
10
-
11
- require "pathname"
12
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
- Pathname.new(__FILE__).realpath)
14
-
15
- bundle_binstub = File.expand_path("../bundle", __FILE__)
16
-
17
- if File.file?(bundle_binstub)
18
- if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
- load(bundle_binstub)
20
- else
21
- abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
- Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
- end
24
- end
25
-
26
- require "rubygems"
27
- require "bundler/setup"
28
-
29
- load Gem.bin_path("appraisal", "appraisal")
data/bin/rake DELETED
@@ -1,29 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- #
5
- # This file was generated by Bundler.
6
- #
7
- # The application 'rake' is installed as part of a gem, and
8
- # this file is here to facilitate running it.
9
- #
10
-
11
- require "pathname"
12
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
- Pathname.new(__FILE__).realpath)
14
-
15
- bundle_binstub = File.expand_path("../bundle", __FILE__)
16
-
17
- if File.file?(bundle_binstub)
18
- if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
- load(bundle_binstub)
20
- else
21
- abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
- Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
- end
24
- end
25
-
26
- require "rubygems"
27
- require "bundler/setup"
28
-
29
- load Gem.bin_path("rake", "rake")
data/bin/rspec DELETED
@@ -1,29 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- #
5
- # This file was generated by Bundler.
6
- #
7
- # The application 'rspec' is installed as part of a gem, and
8
- # this file is here to facilitate running it.
9
- #
10
-
11
- require "pathname"
12
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
- Pathname.new(__FILE__).realpath)
14
-
15
- bundle_binstub = File.expand_path("../bundle", __FILE__)
16
-
17
- if File.file?(bundle_binstub)
18
- if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
- load(bundle_binstub)
20
- else
21
- abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
- Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
- end
24
- end
25
-
26
- require "rubygems"
27
- require "bundler/setup"
28
-
29
- load Gem.bin_path("rspec-core", "rspec")
@@ -1,11 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- ruby ">= 2.1.6"
6
-
7
- gem "activerecord", "~> 4.1.0"
8
- gem "pg", "~> 0.17.0"
9
- gem "activerecord-import", "~> 0.10.0"
10
-
11
- gemspec path: "../"
@@ -1,92 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- vorpal (1.0.0)
5
- activesupport
6
- equalizer
7
- simple_serializer (~> 1.0)
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- activemodel (4.1.16)
13
- activesupport (= 4.1.16)
14
- builder (~> 3.1)
15
- activerecord (4.1.16)
16
- activemodel (= 4.1.16)
17
- activesupport (= 4.1.16)
18
- arel (~> 5.0.0)
19
- activerecord-import (0.10.0)
20
- activerecord (>= 3.0)
21
- activesupport (4.1.16)
22
- i18n (~> 0.6, >= 0.6.9)
23
- json (~> 1.7, >= 1.7.7)
24
- minitest (~> 5.1)
25
- thread_safe (~> 0.1)
26
- tzinfo (~> 1.1)
27
- appraisal (2.2.0)
28
- bundler
29
- rake
30
- thor (>= 0.14.0)
31
- arel (5.0.1.20140414130214)
32
- axiom-types (0.1.1)
33
- descendants_tracker (~> 0.0.4)
34
- ice_nine (~> 0.11.0)
35
- thread_safe (~> 0.3, >= 0.3.1)
36
- builder (3.2.3)
37
- coercible (1.0.0)
38
- descendants_tracker (~> 0.0.1)
39
- concurrent-ruby (1.0.5)
40
- descendants_tracker (0.0.4)
41
- thread_safe (~> 0.3, >= 0.3.1)
42
- diff-lcs (1.3)
43
- equalizer (0.0.11)
44
- i18n (0.9.5)
45
- concurrent-ruby (~> 1.0)
46
- ice_nine (0.11.2)
47
- json (1.8.6)
48
- minitest (5.11.3)
49
- pg (0.17.1)
50
- rake (10.5.0)
51
- rspec (3.8.0)
52
- rspec-core (~> 3.8.0)
53
- rspec-expectations (~> 3.8.0)
54
- rspec-mocks (~> 3.8.0)
55
- rspec-core (3.8.0)
56
- rspec-support (~> 3.8.0)
57
- rspec-expectations (3.8.1)
58
- diff-lcs (>= 1.2.0, < 2.0)
59
- rspec-support (~> 3.8.0)
60
- rspec-mocks (3.8.0)
61
- diff-lcs (>= 1.2.0, < 2.0)
62
- rspec-support (~> 3.8.0)
63
- rspec-support (3.8.0)
64
- simple_serializer (1.0.2)
65
- thor (0.20.0)
66
- thread_safe (0.3.6)
67
- tzinfo (1.2.5)
68
- thread_safe (~> 0.1)
69
- virtus (1.0.5)
70
- axiom-types (~> 0.1)
71
- coercible (~> 1.0)
72
- descendants_tracker (~> 0.0, >= 0.0.3)
73
- equalizer (~> 0.0, >= 0.0.9)
74
-
75
- PLATFORMS
76
- ruby
77
-
78
- DEPENDENCIES
79
- activerecord (~> 4.1.0)
80
- activerecord-import (~> 0.10.0)
81
- appraisal (~> 2.2)
82
- pg (~> 0.17.0)
83
- rake (~> 10.0)
84
- rspec (~> 3.0)
85
- virtus (~> 1.0)
86
- vorpal!
87
-
88
- RUBY VERSION
89
- ruby 2.3.3p222
90
-
91
- BUNDLED WITH
92
- 1.16.2