f2bread 0.1.0 → 0.1.1

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/f2bread.gemspec +2 -2
  4. data/lib/f2bread.rb +1 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9bb9f59a45e3ea5581b0ab1f28f6479122ec0f19
4
- data.tar.gz: c5fc0b1fb0639dfeae1d495bcf84d95c65a4f943
3
+ metadata.gz: 1487b3fc5e67f717f7603dce1bb37d79e121a36c
4
+ data.tar.gz: ce39d4c88618b8d23791c1a4abb0c2a33116665f
5
5
  SHA512:
6
- metadata.gz: fa307940a6eb087e9b8f6f461351259466a09d6b2176262531c56bb8ec60c68da3b4a30772004c6e22b20198e084670d3a4764be7c5d192cc830b6c8fa5daec0
7
- data.tar.gz: c27ee17d48532c25a29c284ef2838d3ed032ff20acdde9737ed796636cb87822837edeaf5e69fbda0a6e537d66335f8fe5cc2f66f6c0f6a37ec223a81e61bb20
6
+ metadata.gz: 8814e2de45392c143ae4bb9b738c1408c4c9332dad8169e94d7f0af51040dc821109f6bd496a375356a787f21444fd0b77653d0c10d4b278b1a2a7984c899df6
7
+ data.tar.gz: d0ac6010af0ed6c722537c5ca1b7d3b3fc085a314759539ff33a9bf56888c35f8c57af4e179b45bdfc0c876d009d038d6255a53703147d7cc421b30062c1a12b
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "f2bread"
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Atmatzidis Panagiotis"]
12
- s.date = "2013-06-27"
12
+ s.date = "2013-07-01"
13
13
  s.description = "A simple gem that reads 'fail2ban.log' and displays statistics"
14
14
  s.email = "atma@convalesco.org"
15
15
  s.executables = ["f2bread"]
@@ -318,7 +318,7 @@ class F2bread
318
318
  # @data_table.each { |line| c = line.split(' ')[2]; upl << c if upl.include?(c) == false} # create the upl list
319
319
  # upl.size > 1 ? upl_print = upl.size.join(', ') : upl_print = upl[0]
320
320
  bavg = entries.to_f/((tdiff[:year] * 365) + (tdiff[:month] * 30) + (tdiff[:week] * 7) + tdiff[:day]).to_f
321
- bavg == 'Inf'? ban_avg = "Wait for 24 hours to pass" : ban_avg = b_avg
321
+ bavg == 'Inf'? ban_avg = "Wait for 24 hours to pass" : ban_avg = bavg
322
322
  sbanner = "Log file: '#{f2blog}'"
323
323
  puts "=" * sbanner.length
324
324
  puts sbanner
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: f2bread
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Atmatzidis Panagiotis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-27 00:00:00.000000000 Z
11
+ date: 2013-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: geoip