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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 519ae98ba5a6e331ed7bf16fe018c5c860a07693afe1d7654887d99b5b715a14
4
- data.tar.gz: c305d077057133bd74f61576cce147397fb8420e875c52bd34c66525e4ef6dad
3
+ metadata.gz: 66e131f81b427ef058c0c7e487f7807c7e1f5623c3ba45a51cfa3c9914c622ba
4
+ data.tar.gz: 45c80ccdafaa47c93523f85661e5f05890c7a6c42922c7a64e0bdb55a04fe295
5
5
  SHA512:
6
- metadata.gz: d7b17ce6a99b8ad25bd8fdf322f07a5765e25c2ee16d5c67f268b76ec44b9e464e5f3346ef4056ce6f44261a4b851933a2926fb8c7a0dcdc9598fa91e083aa20
7
- data.tar.gz: 88e58eb2a11db0c97cddb873711ddc2210afbeb106ae3b07acd097ea6d0aedb76e679eaf20eef63b5efd8a76674c2d38cf02a359c69cc501c6b471f29cb4e885
6
+ metadata.gz: 54f2d6be0c05f58cad0cf956a9c046c7ce98e913864b954986e266e333bf378334b5d0ee8cf5201d020f665ba0994d8fbecbd79560d12088baa5c41421b4b25b
7
+ data.tar.gz: 0e17665af522a897160097cc42ba0a65ecdeffffbd0e433ac3d6a01b1e74a9a8e236b94f42d853b04955b355c79f8dfcbf85ceea2480d0568b76535c2a231110
@@ -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
 
@@ -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.beta'
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'
@@ -94,6 +94,7 @@ module Hanami
94
94
  # @api private
95
95
  def schema=(value)
96
96
  return if defined?(@attributes)
97
+
97
98
  @schema = value
98
99
  end
99
100
 
@@ -165,6 +165,7 @@ module Hanami
165
165
  # @api private
166
166
  def initialize(type = nil, &blk)
167
167
  raise LocalJumpError unless block_given?
168
+
168
169
  @attributes, @schema = Dsl.build(type, &blk)
169
170
  @attributes = Hash[@attributes.map { |k, _| [k, true] }]
170
171
  freeze
@@ -71,6 +71,7 @@ module Hanami
71
71
  # @api private
72
72
  def self.container
73
73
  raise 'Not loaded' unless loaded?
74
+
74
75
  @container
75
76
  end
76
77
 
@@ -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
 
@@ -32,6 +32,7 @@ module Hanami
32
32
  # @api private
33
33
  def [](value)
34
34
  return @input[value] unless timestamps?
35
+
35
36
  _touch(@input[value], Time.now)
36
37
  end
37
38
 
@@ -3,6 +3,6 @@ module Hanami
3
3
  # Defines the version
4
4
  #
5
5
  # @since 0.1.0
6
- VERSION = '1.3.0.beta1'.freeze
6
+ VERSION = '1.3.0'.freeze
7
7
  end
8
8
  end
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.beta1
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-08-08 00:00:00.000000000 Z
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.beta
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.beta
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: 1.3.1
220
+ version: '0'
221
221
  requirements: []
222
222
  rubyforge_project:
223
223
  rubygems_version: 2.7.7