wat_catcher 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/controllers/wat_catcher/catcher_of_wats.rb +0 -18
- data/lib/wat_catcher/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab2612128d21587cd5f760ce8d8d094b938c3cd3
|
4
|
+
data.tar.gz: 34eccc1843a010ca5503b6accc0f28fe35cb19e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70f4c04c5db5ab4963cd1087d9544dc5c2a16ff7bca6878af528a0e9f9666b4d4a7fa3497b4853b64f00c17241afc3be6c668f655243f8e8575fdd4b3d91c151
|
7
|
+
data.tar.gz: 77f57e4664e0fce4aec2d78e88bf11e309a6720891a6adc59903d2469043d8203a23dab73b3266e4d5b41128b1ad000049f542e4b7e8baaa22ea563733427dde
|
data/Gemfile.lock
CHANGED
@@ -33,25 +33,7 @@ module WatCatcher
|
|
33
33
|
request: request,
|
34
34
|
user: user
|
35
35
|
}
|
36
|
-
disable_wat_report unless user_came_from_us
|
37
|
-
disable_wat_report if access_denied?(e)
|
38
36
|
raise
|
39
37
|
end
|
40
|
-
|
41
|
-
private
|
42
|
-
|
43
|
-
def user_came_from_us
|
44
|
-
request.referrer.present? || request_from_email?
|
45
|
-
end
|
46
|
-
|
47
|
-
def request_from_email?
|
48
|
-
params[:utm_campaign].present? && params[:utm_medium] == "email"
|
49
|
-
end
|
50
|
-
|
51
|
-
def access_denied?(e)
|
52
|
-
if defined?(CanCan::AccessDenied)
|
53
|
-
e.is_a? CanCan::AccessDenied
|
54
|
-
end
|
55
|
-
end
|
56
38
|
end
|
57
39
|
end
|
data/lib/wat_catcher/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wat_catcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Constantine
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|