hanami-model 1.2.0.rc1 → 1.2.0.rc2

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: 686f2bdfbd1a3d690fe52263f7bcde2966761bfab7309c99543c91429206c1d5
4
- data.tar.gz: 1769c202b73a2131705ee7e4f52b3296f7a5769f6311fef139880b66733f90d2
3
+ metadata.gz: 936097cb70cdd6b638331d4197475ba5b902dfe5a1878f7e32b94123b03b0567
4
+ data.tar.gz: 8c4f07fd39025c5647250c20d951eb80783dc1cf1d4e07381ff78222354f0e87
5
5
  SHA512:
6
- metadata.gz: 9a35334766fe5e0c6aee8e49657e7559aef608b17a496605a7363e839fa3e7c99626616bdb9d963a89f310b8bdf03c59c92400d98987b0b65ea877620c7b36d2
7
- data.tar.gz: 103f13b9e25a9ad7325da52a0ddb1ef0d1c041aa2f94aa9f229fa3f4971c8d6a3a4643a93906485bec1bd0dc32d8461c8ea5b759d4691271ef5a6870cbdacd9d
6
+ metadata.gz: 8f49d9fd7051dc11e70f186d3af0bf90656855de8686db7e22ec928c2217e94ab3d37cc3ff1ce76de3b43cbe6ab33d19dc81a7a6b2808baf98b3b2f6646b1c40
7
+ data.tar.gz: 12f050e4fd4b0f611201a96480606b2e50def70496d82a7b6941b9ff3e312785ef58c8821e0b57f719cb237efd3150f5e5d4398450100ff636656474a79e8e32
data/CHANGELOG.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Hanami::Model
2
2
  A persistence layer for Hanami
3
3
 
4
+ ## v1.2.0.rc2 - 2018-04-06
5
+
4
6
  ## v1.2.0.rc1 - 2018-03-30
5
7
  ### Fixed
6
8
  - [Marcello Rocha & Luca Guidi] Ensure repository relations to access database attributes via `#[]` (eg. `projects[:name].ilike("Hanami")`)
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.2.0.rc1'
21
+ spec.add_runtime_dependency 'hanami-utils', '1.2.0.rc2'
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
@@ -140,9 +140,9 @@ module Hanami
140
140
  # value, otherwise it raises a <tt>NoMethodError</tt>
141
141
  #
142
142
  # @since 0.7.0
143
- def method_missing(m, *)
144
- attribute?(m) or super
145
- attributes.fetch(m, nil)
143
+ def method_missing(method_name, *)
144
+ attribute?(method_name) or super
145
+ attributes.fetch(method_name, nil)
146
146
  end
147
147
 
148
148
  # Implement generic equality for entities
@@ -125,7 +125,7 @@ module Hanami
125
125
  # @since 0.5.0
126
126
  # @api private
127
127
  def parsed_uri
128
- @uri ||= URI.parse(uri.sub('jdbc:', ''))
128
+ @parsed_uri ||= URI.parse(uri.sub('jdbc:', ''))
129
129
  end
130
130
 
131
131
  # @api private
@@ -71,7 +71,7 @@ module Hanami
71
71
  when ::BigDecimal
72
72
  arg
73
73
  when ::Integer, ::Float, ::String, ::Hanami::Utils::String
74
- ::BigDecimal.new(arg, ::Float::DIG)
74
+ ::Kernel.BigDecimal(arg, ::Float::DIG)
75
75
  when ->(a) { a.respond_to?(:to_d) }
76
76
  arg.to_d
77
77
  else
@@ -3,6 +3,6 @@ module Hanami
3
3
  # Defines the version
4
4
  #
5
5
  # @since 0.1.0
6
- VERSION = '1.2.0.rc1'.freeze
6
+ VERSION = '1.2.0.rc2'.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.2.0.rc1
4
+ version: 1.2.0.rc2
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-03-30 00:00:00.000000000 Z
11
+ date: 2018-04-06 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.2.0.rc1
19
+ version: 1.2.0.rc2
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.2.0.rc1
26
+ version: 1.2.0.rc2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rom
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -220,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
220
220
  version: 1.3.1
221
221
  requirements: []
222
222
  rubyforge_project:
223
- rubygems_version: 2.7.5
223
+ rubygems_version: 2.7.6
224
224
  signing_key:
225
225
  specification_version: 4
226
226
  summary: A persistence layer for Hanami