rom-core 5.2.6 → 5.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bafb062dd70c60068b1833425097b30aafc14f928272c352f5f4ba835f874f68
4
- data.tar.gz: 70048675b39e98a2b8871df48c79d5b7dfc2d91d644fe4d73063aeaf79225b5d
3
+ metadata.gz: 2c200c97137f8cb018022b3bcbe99f6c62fd6d887f413909da14e30240e78ec4
4
+ data.tar.gz: 5f7222a11da2727d80f93c8faab0ea5e7dfe9bc80c038c45081726b1bd42b1b4
5
5
  SHA512:
6
- metadata.gz: a8f85677084bcf45fc78d3a3983c797f45255455e0f35fc50c892b85426f219572c2f564761e57c32f755d7bd04b9aebcf92bb29ace6042b384879c7be52eaaa
7
- data.tar.gz: 4ac7f60759b67bc6d51dfbf805550a890eda4285375063fe4b38f7f18716c588c0f3953e2e076d70f22495d332ea2aa710948d3bf7958480f9d3db6aee847eb2
6
+ metadata.gz: 0bd48ff4558ae085531c716d39a4834834f583f9f2ea2ca6cf7d1eec56604c37139f0697f8c5a416695b323721be23d49cc997fbb26835dc15669315040b7172
7
+ data.tar.gz: 7df7d77c12c7f349c3d3095a6df27c05e5c44a63a497b38e01af072557c40a6c17b6ac407f434c40699bee8312d48c1134d74afa34767f9b86e1baf3b0152e4d
@@ -1,9 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dry/core/constants'
4
- require 'dry/core/class_attributes'
5
-
6
- require 'rom/types'
7
3
  require 'rom/initializer'
8
4
  require 'rom/support/memoizable'
9
5
 
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dry/core/class_attributes'
4
-
5
3
  require 'rom/constants'
6
4
  require 'rom/types'
7
5
  require 'rom/initializer'
data/lib/rom/attribute.rb CHANGED
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dry/equalizer'
4
-
5
3
  require 'rom/initializer'
6
4
  require 'rom/support/memoizable'
7
5
  require 'rom/types'
data/lib/rom/command.rb CHANGED
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dry/core/class_attributes'
4
-
5
3
  require 'rom/types'
6
4
  require 'rom/initializer'
7
5
  require 'rom/pipeline'
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dry/core/class_builder'
4
3
  require 'rom/support/inflector'
5
4
 
6
5
  module ROM
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'rom/support/inflector'
4
- require 'dry/core/class_builder'
5
4
 
6
5
  module ROM
7
6
  module ConfigurationDSL
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dry/core/class_builder'
4
3
  require 'rom/support/inflector'
5
4
 
6
5
  module ROM
data/lib/rom/constants.rb CHANGED
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dry/core/constants'
4
-
5
3
  # Constants and errors common in the whole library
6
4
  module ROM
7
5
  include Dry::Core::Constants
data/lib/rom/container.rb CHANGED
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dry/container'
4
-
5
3
  require 'rom/cache'
6
4
 
7
5
  module ROM
@@ -99,7 +97,7 @@ module ROM
99
97
  #
100
98
  # @api public
101
99
  class Container
102
- include Dry::Container::Mixin
100
+ include Dry::Core::Container::Mixin
103
101
  include Dry::Equalizer(:gateways, :relations, :mappers, :commands)
104
102
 
105
103
  # @api private
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ROM
4
4
  module Core
5
- VERSION = '5.2.6'
5
+ VERSION = '5.3.0'
6
6
  end
7
7
  end
data/lib/rom/core.rb CHANGED
@@ -1,7 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dry/equalizer'
4
- require 'dry/core/constants'
3
+ require 'dry/core'
4
+ require 'dry/types'
5
+ require 'dry/struct'
6
+ require 'dry/inflector'
5
7
 
6
8
  require 'rom/constants'
7
9
 
data/lib/rom/gateway.rb CHANGED
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dry/core/class_attributes'
4
-
5
3
  require 'rom/transaction'
6
4
  require 'rom/support/notifications'
7
5
 
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dry/equalizer'
4
-
5
3
  module ROM
6
4
  class Header
7
5
  # An attribute provides information about a specific attribute in a tuple
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dry/core/class_builder'
4
-
5
3
  module ROM
6
4
  class Mapper
7
5
  # Setup DSL-specific mapper extensions
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dry/core/class_attributes'
4
3
  require 'rom/mapper/attribute_dsl'
5
4
 
6
5
  module ROM
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dry/core/class_attributes'
4
-
5
3
  require 'rom/constants'
6
4
  require 'rom/initializer'
7
5
  require 'rom/mapper'
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dry/core/class_attributes'
4
-
5
3
  module ROM
6
4
  module Plugins
7
5
  module Relation
data/lib/rom/plugins.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dry/container'
4
3
  require 'rom/plugin'
5
4
 
6
5
  module ROM
@@ -8,7 +7,7 @@ module ROM
8
7
  #
9
8
  # @api private
10
9
  module Plugins
11
- extend ::Dry::Container::Mixin
10
+ extend ::Dry::Core::Container::Mixin
12
11
 
13
12
  class << self
14
13
  # @api private
@@ -24,6 +24,7 @@ module ROM
24
24
  import ::Transproc::HashTransformations
25
25
  import ::Transproc::ClassTransformations
26
26
  import ::Transproc::ProcTransformations
27
+ import ::Transproc::Conditional
27
28
 
28
29
  INVALID_INJECT_UNION_VALUE = '%s attribute: block is required for :from with union value.'
29
30
 
data/lib/rom/registry.rb CHANGED
@@ -1,9 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dry/equalizer'
4
- require 'dry/core/cache'
5
- require 'dry/core/class_builder'
6
-
7
3
  require 'rom/initializer'
8
4
  require 'rom/cache'
9
5
  require 'rom/constants'
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dry/equalizer'
4
-
5
3
  require 'rom/types'
6
4
  require 'rom/initializer'
7
5
  require 'rom/pipeline'
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dry/equalizer'
4
-
5
3
  require 'rom/initializer'
6
4
 
7
5
  require 'rom/relation/loaded'
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dry/equalizer'
4
-
5
3
  module ROM
6
4
  class Relation
7
5
  # Materializes a relation and exposes interface to access the data.
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dry/equalizer'
4
3
  require 'concurrent/map'
5
4
 
6
5
  module ROM
data/lib/rom/relation.rb CHANGED
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dry/core/class_attributes'
4
-
5
3
  require 'rom/struct'
6
4
  require 'rom/constants'
7
5
  require 'rom/initializer'
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dry/equalizer'
4
-
5
3
  require 'rom/types'
6
4
  require 'rom/attribute'
7
5
  require 'rom/schema/associations_dsl'
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dry/core/class_attributes'
4
-
5
3
  module ROM
6
4
  class Schema
7
5
  # @api private
data/lib/rom/schema.rb CHANGED
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dry/equalizer'
4
-
5
3
  require 'rom/constants'
6
4
  require 'rom/attribute'
7
5
  require 'rom/schema/dsl'
data/lib/rom/struct.rb CHANGED
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dry/struct'
4
-
5
3
  module ROM
6
4
  # Simple data-struct class
7
5
  #
@@ -1,8 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'rom/support/inflector'
4
- require 'dry/core/class_builder'
5
- require 'dry/types/compiler'
6
4
 
7
5
  require 'rom/initializer'
8
6
  require 'rom/types'
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dry/inflector'
4
-
5
3
  module ROM
6
4
  Inflector = Dry::Inflector.new do |i|
7
5
  i.plural(/people\z/i, 'people')
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dry/equalizer'
4
-
5
3
  require 'rom/constants'
6
4
 
7
5
  module ROM
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dry/core/class_attributes'
4
3
  require 'transproc/transformer'
5
4
 
6
5
  require 'rom/processor/transproc'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rom-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.6
4
+ version: 5.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-11 00:00:00.000000000 Z
11
+ date: 2022-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -30,70 +30,56 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.4'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '0.4'
41
- - !ruby/object:Gem::Dependency
42
- name: dry-inflector
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '0.1'
33
+ version: '1.0'
48
34
  type: :runtime
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
38
  - - "~>"
53
39
  - !ruby/object:Gem::Version
54
- version: '0.1'
40
+ version: '1.0'
55
41
  - !ruby/object:Gem::Dependency
56
- name: dry-container
42
+ name: dry-configurable
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
45
  - - "~>"
60
46
  - !ruby/object:Gem::Version
61
- version: '0.7'
47
+ version: '1.0'
62
48
  type: :runtime
63
49
  prerelease: false
64
50
  version_requirements: !ruby/object:Gem::Requirement
65
51
  requirements:
66
52
  - - "~>"
67
53
  - !ruby/object:Gem::Version
68
- version: '0.7'
54
+ version: '1.0'
69
55
  - !ruby/object:Gem::Dependency
70
- name: dry-equalizer
56
+ name: dry-inflector
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
59
  - - "~>"
74
60
  - !ruby/object:Gem::Version
75
- version: '0.2'
61
+ version: '1.0'
76
62
  type: :runtime
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
66
  - - "~>"
81
67
  - !ruby/object:Gem::Version
82
- version: '0.2'
68
+ version: '1.0'
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: dry-types
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
73
  - - "~>"
88
74
  - !ruby/object:Gem::Version
89
- version: '1.0'
75
+ version: '1.6'
90
76
  type: :runtime
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
80
  - - "~>"
95
81
  - !ruby/object:Gem::Version
96
- version: '1.0'
82
+ version: '1.6'
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: dry-struct
99
85
  requirement: !ruby/object:Gem::Requirement
@@ -335,14 +321,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
335
321
  requirements:
336
322
  - - ">="
337
323
  - !ruby/object:Gem::Version
338
- version: 2.4.0
324
+ version: 2.7.0
339
325
  required_rubygems_version: !ruby/object:Gem::Requirement
340
326
  requirements:
341
327
  - - ">="
342
328
  - !ruby/object:Gem::Version
343
329
  version: '0'
344
330
  requirements: []
345
- rubygems_version: 3.2.3
331
+ rubygems_version: 3.3.7
346
332
  signing_key:
347
333
  specification_version: 4
348
334
  summary: Ruby Object Mapper