hanami-model 1.3.0.beta1 → 1.3.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 +3 -0
- data/hanami-model.gemspec +1 -1
- data/lib/hanami/entity.rb +1 -0
- data/lib/hanami/entity/schema.rb +1 -0
- data/lib/hanami/model.rb +1 -0
- data/lib/hanami/model/configuration.rb +2 -0
- data/lib/hanami/model/plugins/timestamps.rb +1 -0
- data/lib/hanami/model/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66e131f81b427ef058c0c7e487f7807c7e1f5623c3ba45a51cfa3c9914c622ba
|
4
|
+
data.tar.gz: 45c80ccdafaa47c93523f85661e5f05890c7a6c42922c7a64e0bdb55a04fe295
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54f2d6be0c05f58cad0cf956a9c046c7ce98e913864b954986e266e333bf378334b5d0ee8cf5201d020f665ba0994d8fbecbd79560d12088baa5c41421b4b25b
|
7
|
+
data.tar.gz: 0e17665af522a897160097cc42ba0a65ecdeffffbd0e433ac3d6a01b1e74a9a8e236b94f42d853b04955b355c79f8dfcbf85ceea2480d0568b76535c2a231110
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
# Hanami::Model
|
2
2
|
A persistence layer for Hanami
|
3
3
|
|
4
|
+
## v1.3.0 - 2018-10-24
|
5
|
+
|
4
6
|
## v1.3.0.beta1 - 2018-08-08
|
5
7
|
### Fixed
|
6
8
|
- [Luca Guidi] Print meaningful error message when connection URL is misconfigured (eg. `Unknown database adapter for URL: "". Please check your database configuration (hint: ENV['DATABASE_URL']).`)
|
9
|
+
- [Ian Ker-Seymer] Reliably parse query params from connection string
|
7
10
|
|
8
11
|
## v1.2.0 - 2018-04-11
|
9
12
|
|
data/hanami-model.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.require_paths = ['lib']
|
19
19
|
spec.required_ruby_version = '>= 2.3.0'
|
20
20
|
|
21
|
-
spec.add_runtime_dependency 'hanami-utils', '~> 1.3
|
21
|
+
spec.add_runtime_dependency 'hanami-utils', '~> 1.3'
|
22
22
|
spec.add_runtime_dependency 'rom', '~> 3.3', '>= 3.3.3'
|
23
23
|
spec.add_runtime_dependency 'rom-sql', '~> 1.3', '>= 1.3.5'
|
24
24
|
spec.add_runtime_dependency 'rom-repository', '~> 1.4'
|
data/lib/hanami/entity.rb
CHANGED
data/lib/hanami/entity/schema.rb
CHANGED
data/lib/hanami/model.rb
CHANGED
@@ -125,6 +125,7 @@ module Hanami
|
|
125
125
|
# @api private
|
126
126
|
def logger=(value)
|
127
127
|
return if value.nil?
|
128
|
+
|
128
129
|
gateway.use_logger(@logger = value)
|
129
130
|
end
|
130
131
|
|
@@ -137,6 +138,7 @@ module Hanami
|
|
137
138
|
@rom ||= ROM::Configuration.new(@backend, @url, infer_relations: false)
|
138
139
|
rescue => e
|
139
140
|
raise UnknownDatabaseAdapterError.new(@url) if e.message =~ /adapters/
|
141
|
+
|
140
142
|
raise e
|
141
143
|
end
|
142
144
|
|
data/lib/hanami/model/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hanami-model
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.0
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Guidi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hanami-utils
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.3
|
19
|
+
version: '1.3'
|
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: 1.3
|
26
|
+
version: '1.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rom
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -215,9 +215,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
215
215
|
version: 2.3.0
|
216
216
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
217
217
|
requirements:
|
218
|
-
- - "
|
218
|
+
- - ">="
|
219
219
|
- !ruby/object:Gem::Version
|
220
|
-
version:
|
220
|
+
version: '0'
|
221
221
|
requirements: []
|
222
222
|
rubyforge_project:
|
223
223
|
rubygems_version: 2.7.7
|