moderate_parameters 0.2.2 → 0.2.3

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: d3c83897c1341a4514987933e1db7e029cfb55705146765d7e676f21ac01463d
4
- data.tar.gz: 61a327e83595a3c4cd27d96157f1289a2aa3b1b6872bd119287a44ede1a804b6
3
+ metadata.gz: 212641e2b030265bdf66f0b3f5cf495efe4a1c0a91a809ba90c344e9cc8b0446
4
+ data.tar.gz: ee9de7cdc1f13d1c99126a709d7eac1b7b02a70db48ed0bd1c384d09706d8e5a
5
5
  SHA512:
6
- metadata.gz: 70f2b9290e974967825f4cb3a4dae3f1dcda817f8e79afe3961e24a086c938b2abbce047e24ac85c09a44f7da5cfdaa47aec5019e894d5d9e1245b1912c13166
7
- data.tar.gz: 502c734fda35865096a0b2e3ef038b841e905204ad3696068fe7f6e4c303399c0cece1e25cf338a7fe0082b6a5f8add0088c505a08d39eb256a1730b07bf2af8
6
+ metadata.gz: ce1f3e8fb71bb3726e18a86a87eef4a95aff1bb2b5b2c5990afca78d4c8dc0cfdeeffea9767d6f96219a48246d86655fc0ee6dd25ca3affe1f0e3659c7b693cc
7
+ data.tar.gz: 7ccee91beb1087f115a1400e5cf361be5e67482d04e91305de065b8389c52a0af3d4a9f5f5479b07406412d9ef1b37dc400c6465f2211b1552f01a13f518d899
data/README.md CHANGED
@@ -1,4 +1,7 @@
1
- ![Moderate Parameters](https://user-images.githubusercontent.com/4054771/56985278-db1f9280-6b3c-11e9-8719-f48e2ab4885d.png)
1
+ <p align="center">
2
+ <img src="https://user-images.githubusercontent.com/4054771/56985278-db1f9280-6b3c-11e9-8719-f48e2ab4885d.png" alt="Moderate Parameters" background>
3
+ </p>
4
+
2
5
 
3
6
  By [Hint.io](https://hint.io)
4
7
 
@@ -11,6 +11,9 @@ module ModerateParameters
11
11
  mattr_accessor :breadcrumbs_enabled
12
12
  @@breadcrumbs_enabled = false
13
13
 
14
+ mattr_accessor :logger
15
+ @@logger = ActiveSupport::Logger.new('log/moderate_parameters.log')
16
+
14
17
  def self.configure
15
18
  yield self
16
19
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- $moderate_parameters_logger = ActiveSupport::Logger.new('log/moderate_parameters.log')
3
+ $moderate_parameters_logger = ModerateParameters.logger
4
4
 
5
5
  ActiveSupport::Notifications.subscribe('moderate_parameters') do |_, _, _, _, payload|
6
6
  $moderate_parameters_logger.info "#{payload[:controller]}##{payload[:action]} #{payload[:message]}"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ModerateParameters
4
- VERSION = '0.2.2'
4
+ VERSION = '0.2.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moderate_parameters
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Boe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-29 00:00:00.000000000 Z
11
+ date: 2019-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack