trueandco_analytics 0.4.9 → 0.4.10

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: 743996af4c0bfdc92dd8b4cc7fddad4acc4bddd3
4
- data.tar.gz: 8a8c10ac3a82d9a71b172bf16da449836eca7414
3
+ metadata.gz: fef72a2fa99a4c541a73e17070841802585efe9d
4
+ data.tar.gz: cb5413156e06f8a00b70bdb1f9947a86c22cf204
5
5
  SHA512:
6
- metadata.gz: e19d9eb409ffae8a3f99e33199b63d695280725a5c7de68397efad2bb1c47bac4f3fd071f89805f6eb71fa1255d32a219b5797ba81f6b577d919185417db119b
7
- data.tar.gz: 0789c8189056264ddee3fe8b7ebd9f820026de4d4b6966cbf1ee05aaa0d9348aa9bc779c1ce1e6411d1660ec0e33b07e649c2a315ce2790a616f325d8437e45c
6
+ metadata.gz: 7376c24d0251350d458951104823150d897443d0a97000673a5042e8fc1acc9ba44ffc029466fc4cdc652815eb93f44540c017deb0552031764130a00d1fc7c2
7
+ data.tar.gz: 1559c7b5dc3838a0435144274afc2676ae24b4c96dc0616fafef10d0113c59a1d9b8cc9f885a9d96951c8b7595f6c176824355e9ffb3f7355120b6f9a19c7568
@@ -56,8 +56,13 @@ module TrueandcoAnalytics
56
56
  end
57
57
 
58
58
  def user_method
59
- return OpenStruct.new(id: nil, name: '', email: '') unless @user_method_check
60
- ::ApplicationController.new.send(@user_method)
59
+ emulation_user = OpenStruct.new(id: nil, name: '', email: '')
60
+ return emulation_user unless @user_method_check
61
+ begin
62
+ ::ApplicationController.new.send(@user_method)
63
+ rescue StandardError => e
64
+ emulation_user
65
+ end
61
66
  end
62
67
 
63
68
  def log
@@ -1,3 +1,3 @@
1
1
  module TrueandcoAnalytics
2
- VERSION = '0.4.9'
2
+ VERSION = '0.4.10'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trueandco_analytics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.9
4
+ version: 0.4.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Moroz Ivan