rom-sql 3.0.1 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +252 -224
- data/LICENSE +20 -0
- data/README.md +3 -3
- data/lib/rom/sql/associations/core.rb +8 -0
- data/lib/rom/sql/attribute.rb +5 -15
- data/lib/rom/sql/attribute_aliasing.rb +60 -0
- data/lib/rom/sql/attribute_wrapping.rb +30 -0
- data/lib/rom/sql/extensions/postgres/types/array.rb +1 -2
- data/lib/rom/sql/extensions/postgres/types/json.rb +63 -8
- data/lib/rom/sql/function.rb +16 -0
- data/lib/rom/sql/gateway.rb +3 -0
- data/lib/rom/sql/mapper_compiler.rb +10 -1
- data/lib/rom/sql/plugin/nullify.rb +35 -0
- data/lib/rom/sql/plugins.rb +2 -0
- data/lib/rom/sql/relation/reading.rb +26 -2
- data/lib/rom/sql/type_extensions.rb +1 -3
- data/lib/rom/sql/version.rb +1 -1
- metadata +25 -3
@@ -12,9 +12,7 @@ module ROM
|
|
12
12
|
# @return [Hash]
|
13
13
|
#
|
14
14
|
# @api public
|
15
|
-
def [](
|
16
|
-
type = wrapped.default? ? wrapped.type : wrapped
|
17
|
-
type = type.optional? ? type.right : type
|
15
|
+
def [](type)
|
18
16
|
@types[type.meta[:database]][type.meta[:db_type]] || EMPTY_HASH
|
19
17
|
end
|
20
18
|
|
data/lib/rom/sql/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rom-sql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0
|
4
|
+
version: 3.1.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: 2019-
|
11
|
+
date: 2019-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sequel
|
@@ -86,6 +86,20 @@ dependencies:
|
|
86
86
|
- - ">="
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: 5.0.1
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: appraisal
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
89
103
|
- !ruby/object:Gem::Dependency
|
90
104
|
name: bundler
|
91
105
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,6 +150,7 @@ extensions: []
|
|
136
150
|
extra_rdoc_files: []
|
137
151
|
files:
|
138
152
|
- CHANGELOG.md
|
153
|
+
- LICENSE
|
139
154
|
- README.md
|
140
155
|
- lib/rom-sql.rb
|
141
156
|
- lib/rom/plugins/relation/sql/auto_restrictions.rb
|
@@ -151,6 +166,8 @@ files:
|
|
151
166
|
- lib/rom/sql/associations/one_to_one_through.rb
|
152
167
|
- lib/rom/sql/associations/self_ref.rb
|
153
168
|
- lib/rom/sql/attribute.rb
|
169
|
+
- lib/rom/sql/attribute_aliasing.rb
|
170
|
+
- lib/rom/sql/attribute_wrapping.rb
|
154
171
|
- lib/rom/sql/commands.rb
|
155
172
|
- lib/rom/sql/commands/create.rb
|
156
173
|
- lib/rom/sql/commands/delete.rb
|
@@ -196,6 +213,7 @@ files:
|
|
196
213
|
- lib/rom/sql/migration/writer.rb
|
197
214
|
- lib/rom/sql/order_dsl.rb
|
198
215
|
- lib/rom/sql/plugin/associates.rb
|
216
|
+
- lib/rom/sql/plugin/nullify.rb
|
199
217
|
- lib/rom/sql/plugin/pagination.rb
|
200
218
|
- lib/rom/sql/plugins.rb
|
201
219
|
- lib/rom/sql/projection_dsl.rb
|
@@ -223,7 +241,11 @@ files:
|
|
223
241
|
homepage: http://rom-rb.org
|
224
242
|
licenses:
|
225
243
|
- MIT
|
226
|
-
metadata:
|
244
|
+
metadata:
|
245
|
+
source_code_uri: https://github.com/rom-rb/rom-sql
|
246
|
+
documentation_uri: https://api.rom-rb.org/rom-sql/
|
247
|
+
mailing_list_uri: https://discourse.rom-rb.org/
|
248
|
+
bug_tracker_uri: https://github.com/rom-rb/rom-sql/issues
|
227
249
|
post_install_message:
|
228
250
|
rdoc_options: []
|
229
251
|
require_paths:
|