fail_to_ban 0.2.0 → 0.2.1

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
  SHA1:
3
- metadata.gz: 0575a309314e5e2189935d7956a42ad8660ca6f4
4
- data.tar.gz: a4f6c169909201a40637696bd763e60c78a6fe59
3
+ metadata.gz: c576d5633d9d57a8080d5cc8064fbd7aa6743a39
4
+ data.tar.gz: cbc47e04713ea71bd5b050fcee3d249e8134f33e
5
5
  SHA512:
6
- metadata.gz: a702476daa56e5a1924fe54bbffe1996742d0773d8fbe0d960170422084686f8ad382e2850ad11e725df72a1235c9d943f996b5429abba7be92079354c07702b
7
- data.tar.gz: 8fefbd49ddfc1a0d68c3d50d8491ffe12df362ae81eee2fda05194e0f301266a97ee603638ea19bada6a0ae0f2cbb70b2ec8d6cfc657ae578c8ec12a7bbe372b
6
+ metadata.gz: 8af45ac8c15336d486cb7c1e0288d0d3c48272f8c1b8fdd3a673b29b64b9a4f8113bb724425e66b705a47b68bff1b8e1997a2b778dc6c48bc503386d1ae4f938
7
+ data.tar.gz: a5e6e12e0c1a4627aeb987176382ec5fa16cd29a4be9b34e76f3df1f34f6fabbb822d706c16df455fc990f799e2a54d89cb6885c7299f7f58c3cbcb4b245fffc
@@ -0,0 +1,7 @@
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ ### [0.2.1] - 2018-07-10
5
+
6
+ #### Changed
7
+ - Fix error with integer in `unlock_in` method
data/README.md CHANGED
@@ -11,7 +11,7 @@ Handle brute force on key backed by Redis.
11
11
  Add this line to your application's Gemfile:
12
12
 
13
13
  ```ruby
14
- gem 'fail_to_ban', git: 'https://github.com/jobteaser/fail_to_ban.git', tag: 'v0.1.1'
14
+ gem 'fail_to_ban', git: 'https://github.com/jobteaser/fail_to_ban.git', tag: 'v0.2.1'
15
15
  ```
16
16
 
17
17
  And then execute:
@@ -14,6 +14,6 @@ class FailToBan
14
14
  def_delegators :@strategy, :attempt, :blocked?, :reset, :unlock_at
15
15
 
16
16
  def unlock_in
17
- (unlock_at - Time.now.utc).to_i
17
+ (unlock_at - Time.now.utc.to_i)
18
18
  end
19
19
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class FailToBan
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fail_to_ban
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gearnode
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-03 00:00:00.000000000 Z
11
+ date: 2018-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -62,6 +62,7 @@ files:
62
62
  - ".gitignore"
63
63
  - ".rspec"
64
64
  - ".travis.yml"
65
+ - CHANGELOG.md
65
66
  - CODE_OF_CONDUCT.md
66
67
  - Gemfile
67
68
  - LICENSE