tram-policy 0.2.4 → 0.2.5

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
  SHA1:
3
- metadata.gz: 165ccec9b65cb71c73b55cd3f4ec68fe806eaf93
4
- data.tar.gz: f0b95281258862f368a2a7f8f9f4c800c6e71231
3
+ metadata.gz: 3913b597392415b305007f399b5317685104cccb
4
+ data.tar.gz: 743ffbff684480d4f679babae66553747b12824f
5
5
  SHA512:
6
- metadata.gz: c5b1080576012e698a2664f0d30c61d356993f58895b67c92309567076e87c7d26a6c0eac230d994dcf17ce67b111d73690745ac7910c4ac76dd46e3494bb5a9
7
- data.tar.gz: 936c1c08771c15b2f8ab3d48d5e1b3bc7b1e3645fadcec02450c8655ee65333bd3589bae2be28f0690044882f9aeae329ef08576a57d4e7ecf1dfb3f38e5f487
6
+ metadata.gz: 12e2a5195230cf121e840bc72912818a5368602aa0380a3899dc516ccf1524780b45633cc319dbc8d14f3ca1cccd77b7a45a9aa79d1939b39d6a19e9b761d4b8
7
+ data.tar.gz: 71fba806cb08df6b02d51d690169e7b53bb3b097e456e4b21d25cee6d8a7570aec1ca64fb3b66ee329e19bde902076fd065c85236f2efd2df9e523243bc11e18
data/.rubocop.yml CHANGED
@@ -8,13 +8,13 @@ AllCops:
8
8
  Lint/AmbiguousBlockAssociation:
9
9
  Enabled: false
10
10
 
11
- Style/ClassAndModuleChildren:
12
- Enabled: false
13
-
14
- Style/FileName:
11
+ Naming/FileName:
15
12
  Exclude:
16
13
  - lib/tram-policy.rb
17
14
 
15
+ Style/ClassAndModuleChildren:
16
+ Enabled: false
17
+
18
18
  Style/PerlBackrefs:
19
19
  Enabled: false
20
20
 
data/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@ 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
+ ## [0.2.5] - [2018-01-05]
8
+
9
+ ### Added
10
+ - Allow `Tram::Policy.scope` to be made private (nepalez)
11
+
7
12
  ## [0.2.4] - [2017-12-03]
8
13
 
9
14
  Some private methods has been refactored
data/lib/tram/policy.rb CHANGED
@@ -23,7 +23,7 @@ module Tram
23
23
  #
24
24
  def t(message, **options)
25
25
  return message.to_s unless message.is_a? Symbol
26
- I18n.t message, scope: self.class.scope, **options
26
+ I18n.t message, scope: self.class.send(:scope), **options
27
27
  end
28
28
 
29
29
  # Collection of validation errors
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 = "0.2.4"
3
+ gem.version = "0.2.5"
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: 0.2.4
4
+ version: 0.2.5
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: 2017-12-03 00:00:00.000000000 Z
12
+ date: 2018-01-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dry-initializer