rack-referral-tracking 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -28,11 +28,12 @@ module Rack
|
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
|
-
Rack::Utils.set_cookie_header!(headers, "utm_campaign", :value => params['utm_campaign'], :domain => cookie_domain, :path => '/', :httponly =>
|
32
|
-
Rack::Utils.set_cookie_header!(headers, "utm_source", :value => params['utm_source'], :domain => cookie_domain, :path => '/', :httponly =>
|
33
|
-
Rack::Utils.set_cookie_header!(headers, "utm_medium", :value => params['utm_medium'], :domain => cookie_domain, :path => '/', :httponly =>
|
34
|
-
Rack::Utils.set_cookie_header!(headers, "ref", :value => referer, :domain => cookie_domain, :path => '/', :httponly =>
|
31
|
+
Rack::Utils.set_cookie_header!(headers, "utm_campaign", :value => params['utm_campaign'], :domain => cookie_domain, :path => '/', :httponly => 'True', :secure => 'True') if params.has_key? 'utm_campaign'
|
32
|
+
Rack::Utils.set_cookie_header!(headers, "utm_source", :value => params['utm_source'], :domain => cookie_domain, :path => '/', :httponly => 'True', :secure => 'True') if params.has_key? 'utm_source'
|
33
|
+
Rack::Utils.set_cookie_header!(headers, "utm_medium", :value => params['utm_medium'], :domain => cookie_domain, :path => '/', :httponly => 'True', :secure => 'True') if params.has_key? 'utm_medium'
|
34
|
+
Rack::Utils.set_cookie_header!(headers, "ref", :value => referer, :domain => cookie_domain, :path => '/', :httponly => 'True', :secure => 'True') if referer
|
35
35
|
|
36
|
+
body.close if body.respond_to?(:close)
|
36
37
|
[status, headers, body]
|
37
38
|
end
|
38
39
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-referral-tracking
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-01-
|
13
|
+
date: 2014-01-17 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: domainatrix
|