domain_viewer_tracker 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2f2668a8ea6d57f21d2037ef4222da2cd9ffcf3c
4
- data.tar.gz: 9f590c6a954f88e09f731008dfc0a3a452df41ed
3
+ metadata.gz: ee6910189ed48252e18939ebbe767748a96cdc1f
4
+ data.tar.gz: a2b6cddb62c955e76d065e7226ab64750c2b3fca
5
5
  SHA512:
6
- metadata.gz: e991e20b8ddcafe8e941da3436a4f7c98d4e4ae85b2bfae4f91caa0f004d30e750988bf898ca3f74ec6c4729bc1fa2cfeaa150a8ab2c225c83bd79ae53b5a980
7
- data.tar.gz: 18b5f1418dbe30f875053ad84124eff4e59b5f2cb92677f7729ed40ee176b6cb04c851137bed661c7058a9dbbd1112324e754a911f5b8b32effb35cc81dc0b3d
6
+ metadata.gz: 70a30b9a605bbd131238b6ed01eecb8c3f20987b81a94890921480a5b14b4ee208a9d9f38664e436ba6947a1b904baa7f31fe27d09311b72b6030c8ffda034e9
7
+ data.tar.gz: ecd714a32404633aeb43e6f0bfaf66730565abeb719a9a3ed24df78d4e7eb0c03a3ac4d96fbc2dc3b1f353086b9e5c52dbfc91b822eb7ac6e85573a00d36d052
@@ -6,6 +6,9 @@ require "domain_viewer_tracker/viewer"
6
6
  module DomainViewerTracker
7
7
 
8
8
  private
9
+ def viewer_id
10
+ cookies[key]
11
+ end
9
12
 
10
13
  def set_viewer_id
11
14
  cookies.permanent[key] ||= { value: SecureRandom.uuid, domain: domain }
@@ -1,3 +1,3 @@
1
1
  module DomainViewerTracker
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -2,5 +2,5 @@
2
2
  # Like ".example.com"
3
3
  DomainViewerTracker.configure do |config|
4
4
  config.cookie_domain = ""
5
- config.cookie_key_name= "viewer"
5
+ config.cookie_key_name = "viewer"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: domain_viewer_tracker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ryonext
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-25 00:00:00.000000000 Z
11
+ date: 2016-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -154,9 +154,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
154
  version: '0'
155
155
  requirements: []
156
156
  rubyforge_project:
157
- rubygems_version: 2.4.5.1
157
+ rubygems_version: 2.5.1
158
158
  signing_key:
159
159
  specification_version: 4
160
160
  summary: Generate cookie with viewer id in same domain services.
161
161
  test_files: []
162
- has_rdoc: