motally 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README +1 -1
  2. data/lib/motally.rb +3 -3
  3. metadata +2 -2
data/README CHANGED
@@ -4,7 +4,7 @@ Setting up Motally tracker on Ruby on Rails
4
4
 
5
5
  sudo gem install motally
6
6
 
7
- 2. Add the following code snippet to app/config/environment.rb
7
+ 2. Add the following code snippet to config/environment.rb
8
8
 
9
9
  require 'motally'
10
10
  Motally::config do |m|
data/lib/motally.rb CHANGED
@@ -4,7 +4,7 @@ require 'md5'
4
4
  # This RoR module is provide by Motally. Please see README.txt file for instructions.
5
5
  module Motally
6
6
 
7
- GEM_VERSION = '1.0.1'
7
+ GEM_VERSION = '1.0.2'
8
8
 
9
9
  # Motally track url, package version and timeout length
10
10
  MOTALLY_URL = URI.parse('http://track.motally.com/m/t')
@@ -59,10 +59,10 @@ module Motally
59
59
  'u' => "",
60
60
  'a' => request.env['HTTP_USER_AGENT'],
61
61
  'p' => request.env['REQUEST_URI'],
62
- 'r' => request.env['HTTP_REFERER'], #.empty? ? '' : request.env['HTTP_REFERER'],
62
+ 'r' => !request.env['HTTP_REFERER'].blank? ? request.env['HTTP_REFERER'] : '',
63
63
  'q' => request.env['QUERY_STRING'],
64
64
  'i' => request.env['remote_ADDR'],
65
- 'si'=> Digest::MD5.hexdigest(session_id), #.empty? ? '' : session[:session_id]),
65
+ 'si'=> !session_id.blank? ? Digest::MD5.hexdigest(session_id) : '',
66
66
  'c' => motally_headers
67
67
  }
68
68
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motally
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Motally
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-23 00:00:00 -07:00
12
+ date: 2010-01-26 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15