tram-policy 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d2d94489718b8070f78e8a4792e67902336e87d03da02d216fe49069767684fb
4
- data.tar.gz: 4c9e417c8a39f18e0faf75c2b7bae22f7d3aa0e53c2c9486e068910f59837f2f
3
+ metadata.gz: 62e24e677712a455503a6cdfb1a06105bfc715b6c10791f56297144e30e0cc47
4
+ data.tar.gz: 213699c6edddeb75e92b27c6d5b71fa854aa07028e89ccaa40a4e3d75ff53d8d
5
5
  SHA512:
6
- metadata.gz: 71862e68041ee87d414f60bcf79c5f84f4996db5bc1ddc143628598dc29f0ca4a9816c7669b63a1c10e9e737e371800ff9ad1b214ed814753ce4c393c3877165
7
- data.tar.gz: 6278ffc6803fdb5ab6f96bc4c4d2a38ad7758e2eb723fca763234aa647e2ba6b1854220059d2ce0cc182215042b2926080ad39f39eb815614610850d12e2d72c
6
+ metadata.gz: 7dab0ecbd390dd168fc73f06fc62a694f7f624aa2902d96993a5085ad8bb9700388c01aee4def9c44b01676923525a4472bbcf59d985f0c378a888c16c7de29f
7
+ data.tar.gz: 7c67890830b6836b47ef93f242984b3bf18af94f276823793998f78ec29443dfafc0bd5c46dd5fa97e6692876cc123307379cd4a497f802ee909ae7160ed9c7a
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
+ ## [2.0.1] - [2019-11-14]
8
+
9
+ ### Fixed
10
+ - Allow translation :scope to be customized in the #merge operation (sclinede)
11
+ Before the fix, the customized value was always replaced by the default value.
12
+
7
13
  ## [2.0.0] - [2019-07-04]
8
14
 
9
15
  ### Changed
@@ -24,7 +24,7 @@ class Tram::Policy
24
24
  raise ArgumentError.new("Error message should be defined") unless message
25
25
 
26
26
  tap do
27
- tags = tags.merge(scope: scope) if message.is_a?(Symbol)
27
+ tags = { scope: scope }.merge(tags) if message.is_a?(Symbol)
28
28
  @set << Tram::Policy::Error.new(message, **tags)
29
29
  end
30
30
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = "tram-policy"
3
- gem.version = "2.0.0"
3
+ gem.version = "2.0.1"
4
4
  gem.author = ["Viktor Sokolov (gzigzigzeo)", "Andrew Kozin (nepalez)"]
5
5
  gem.email = "andrew.kozin@gmail.com"
6
6
  gem.homepage = "https://github.com/tram/tram-policy"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tram-policy
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Viktor Sokolov (gzigzigzeo)
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-07-04 00:00:00.000000000 Z
12
+ date: 2019-11-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dry-initializer
@@ -179,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
181
  requirements: []
182
- rubygems_version: 3.0.3
182
+ rubygems_version: 3.0.6
183
183
  signing_key:
184
184
  specification_version: 4
185
185
  summary: Policy Object Pattern