honeypot 0.0.2 → 0.0.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 (4) hide show
  1. data/VERSION +1 -1
  2. data/honeypot.gemspec +1 -1
  3. data/lib/honeypot.rb +2 -1
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
data/honeypot.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{honeypot}
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Seamus Abshere"]
data/lib/honeypot.rb CHANGED
@@ -2,6 +2,7 @@ require 'ipaddr'
2
2
  require 'set'
3
3
  require 'active_support'
4
4
  require 'active_record'
5
+ require 'fast_timestamp'
5
6
  require 'honeypot/ipaddr_ext'
6
7
  require 'honeypot/remote_request'
7
8
  require 'honeypot/remote_host'
@@ -22,7 +23,7 @@ module Honeypot
22
23
  remote_host = RemoteHost.find_or_create_by_ip_address effective_ip_address
23
24
  remote_request = remote_requests.find_or_create_by_remote_host_id remote_host.id
24
25
  remote_request.last_http_referer = request.referer if request.referer.present?
25
- remote_request.last_request_uri = request.request_uri if request.request_uri.present?
26
+ remote_request.last_request_uri = request.fullpath if request.fullpath.present?
26
27
  remote_request.increment :hits
27
28
  remote_request.save!
28
29
  true
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Seamus Abshere