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.
@@ -12,9 +12,7 @@ module ROM
12
12
  # @return [Hash]
13
13
  #
14
14
  # @api public
15
- def [](wrapped)
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
 
@@ -1,5 +1,5 @@
1
1
  module ROM
2
2
  module SQL
3
- VERSION = '3.0.1'.freeze
3
+ VERSION = '3.1.0'.freeze
4
4
  end
5
5
  end
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.1
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-05-05 00:00:00.000000000 Z
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: