admob 1.1.1 → 1.1.2

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 (2) hide show
  1. data/lib/admob.rb +4 -3
  2. metadata +2 -2
@@ -8,10 +8,10 @@ $:.unshift(File.dirname(__FILE__)) unless $:.include?(File.dirname(__FILE__)) ||
8
8
  # This module encapsulates functionality (ad requests, analytics requests) provided by AdMob. See README.txt for usage.
9
9
  module AdMob
10
10
 
11
- GEM_VERSION = '1.1.1'
11
+ GEM_VERSION = '1.1.2'
12
12
 
13
13
  ENDPOINT = URI.parse('http://r.admob.com/ad_source.php')
14
- PUBCODE_VERSION = '20090106-RUBY-8708a7ab5f2b70b6'
14
+ PUBCODE_VERSION = '20090714-RUBY-8708a7ab5f2b70b6'
15
15
  DEFAULT_TIMEOUT = 1.0
16
16
 
17
17
  # Make an AdMob ad/analytics request. The first param is the request variable from Rails; the second is a unique session
@@ -115,7 +115,8 @@ module AdMob
115
115
  return if request.env['admobuu'] or cookies[:admobuu]
116
116
 
117
117
  # make a new cookie
118
- value = MD5.hexdigest(rand().to_s + request.user_agent + request.remote_ip + Time.now.to_f.to_s)
118
+ ua = request.user_agent || ''
119
+ value = MD5.hexdigest(rand().to_s + ua + request.remote_ip + Time.now.to_f.to_s)
119
120
  new_cookie = { :value => value,
120
121
  :expires => Time.at(0x7fffffff), # end of 32 bit time
121
122
  :path => params[:cookie_path] || AdMob::Defaults.cookie_path || "/" }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: admob
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - AdMobAdMob
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-06 00:00:00 -08:00
12
+ date: 2009-09-30 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency