login_attack_report 0.0.4 → 0.0.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: 457b2c14d9c2070be1ddef5824e97a903b619acf
4
- data.tar.gz: 86607062e97953562f55c0ae3c66f4b2d63f6191
3
+ metadata.gz: 71b9bbd646148d52bae9b00900a7dbab4042081d
4
+ data.tar.gz: a0c17916185c00e8c9d2b32440d078619b6f4c0d
5
5
  SHA512:
6
- metadata.gz: a421adffbb2f3b50390df3f57841bd1b48c5305a658617dbaca265887e32c8251d6c90d8b7dd3e634d7141908f68ddd8f34f3a94f7c15041e6663b290a9162ee
7
- data.tar.gz: d263b7a9f9210ee87561db8d681bccd96dfe2f517ba1b5a0624f9e0f9d5b2aa9f2d2c86dc0f6fd3c7c684c75475ed81c8f7993781159ca04205b0a13dab78fcf
6
+ metadata.gz: 5e900723cd69d034cfff23c70d278067efffbd1c1cb6363dfe63dab74806ba100e2fc38ea1d677adaca375ca0f4f23b639fb83d37569c0e31f729e83ba2a15de
7
+ data.tar.gz: ba911c5a871a1b048fdd4703a797fbaff9dc7de7a5e099171f9e3700e74402efa5af07062daa9eb7193bb31d8a43209ed3b2243e35689ac179a60b07bebc376e
@@ -13,7 +13,7 @@ module LoginAttackReport
13
13
  'object_changes like \'%sign_in_count:%\'',
14
14
  Time.now.prev_month.beginning_of_month,
15
15
  Time.now.prev_month.end_of_month
16
- ).group(:item_id).having("count(item_id) > #{@@login_ok_limit}")
16
+ ).group(:item_id).having("count(item_id) > #{LoginAttackReport.login_ok_limit}")
17
17
  end
18
18
 
19
19
  def login_ng_limit_over(model)
@@ -24,7 +24,7 @@ module LoginAttackReport
24
24
  'object_changes like \'%sign_in_count:%\'',
25
25
  Time.now.prev_month.beginning_of_month,
26
26
  Time.now.prev_month.end_of_month
27
- ).group(:item_id).having("count(item_id) > #{@@login_ng_limit}")
27
+ ).group(:item_id).having("count(item_id) > #{LoginAttackReport.login_ng_limit}")
28
28
  end
29
29
 
30
30
  def ip_limit_over(model)
@@ -1,3 +1,3 @@
1
1
  module LoginAttackReport
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: login_attack_report
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - taru m