rack-referral-tracking 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -21,7 +21,7 @@ Or install it yourself as:
21
21
 
22
22
  Set a secure secret in your environment:
23
23
 
24
- $ export SECRET=50mJn9wvwAXtQ28obpwxD7uMcqJRUquFz+GMRGDB4ZU=
24
+ $ export REFERRAL_SECRET=50mJn9wvwAXtQ28obpwxD7uMcqJRUquFz+GMRGDB4ZU=
25
25
 
26
26
  Then in your Rack-based application:
27
27
 
@@ -18,7 +18,7 @@ module Rack
18
18
  cookie_domain = '.' + host
19
19
 
20
20
  if referred_from_outside?(env)
21
- referer = Fernet.generate(ENV['SECRET']) do |generator|
21
+ referer = Fernet.generate(ENV['REFERRAL_SECRET']) do |generator|
22
22
  generator.data = { :referrer => env["HTTP_REFERER"] }
23
23
  end
24
24
  end
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module ReferralTracking
3
- VERSION = "0.0.1"
3
+ VERSION = '0.0.2'
4
4
  end
5
5
  end
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.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -90,7 +90,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
90
90
  version: '0'
91
91
  segments:
92
92
  - 0
93
- hash: 1136483963235757473
93
+ hash: -727349568016725999
94
94
  required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  version: '0'
100
100
  segments:
101
101
  - 0
102
- hash: 1136483963235757473
102
+ hash: -727349568016725999
103
103
  requirements: []
104
104
  rubyforge_project:
105
105
  rubygems_version: 1.8.23