ipcad2squid 1.2 → 1.3

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 (3) hide show
  1. data/ipcad2squid.gemspec +1 -1
  2. data/lib/ipcad2squid.rb +1 -1
  3. metadata +1 -1
data/ipcad2squid.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'ipcad2squid'
3
- s.version = '1.2'
3
+ s.version = '1.3'
4
4
  s.date = '2013-01-03'
5
5
  s.summary = "Convert ipcad logs to squid logs"
6
6
  s.description = "Simple gem for converting and appending output from ipcad to squid logs formats"
data/lib/ipcad2squid.rb CHANGED
@@ -24,7 +24,7 @@ class Ipcad2squid
24
24
  data = raw_data.split
25
25
  next unless data[1] =~ /#{@net}/
26
26
  "#{@ttime}.000 1 #{data[1]} TCP_MISS/200 #{data[3]} CONNECT #{data[0]}:#{data[4]} - DIRECT/#{data[1]} -"
27
- end.join("\n")
27
+ end.join("\n").gsub(/^$\n/, '')
28
28
  end
29
29
 
30
30
  def clear_accounting
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ipcad2squid
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.2'
4
+ version: '1.3'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: