tram-policy 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/tram/policy/errors.rb +1 -1
- data/tram-policy.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62e24e677712a455503a6cdfb1a06105bfc715b6c10791f56297144e30e0cc47
|
4
|
+
data.tar.gz: 213699c6edddeb75e92b27c6d5b71fa854aa07028e89ccaa40a4e3d75ff53d8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7dab0ecbd390dd168fc73f06fc62a694f7f624aa2902d96993a5085ad8bb9700388c01aee4def9c44b01676923525a4472bbcf59d985f0c378a888c16c7de29f
|
7
|
+
data.tar.gz: 7c67890830b6836b47ef93f242984b3bf18af94f276823793998f78ec29443dfafc0bd5c46dd5fa97e6692876cc123307379cd4a497f802ee909ae7160ed9c7a
|
data/CHANGELOG.md
CHANGED
@@ -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
|
data/lib/tram/policy/errors.rb
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 =
|
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
|
data/tram-policy.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |gem|
|
2
2
|
gem.name = "tram-policy"
|
3
|
-
gem.version = "2.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.
|
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-
|
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.
|
182
|
+
rubygems_version: 3.0.6
|
183
183
|
signing_key:
|
184
184
|
specification_version: 4
|
185
185
|
summary: Policy Object Pattern
|