effective_test_bot 0.6.6 → 0.6.7

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: 98ff82d111899f6b06e58b2fe1c919bd5a84fa50
4
- data.tar.gz: 07f8530ea45f135e2cc7a94f8d6999805daf6733
3
+ metadata.gz: 8e70c529e79a56be7660a51e42e6361514392f0d
4
+ data.tar.gz: 01331f562aa1b86336b63ef417c7077c26207fe6
5
5
  SHA512:
6
- metadata.gz: 93aed79f3755265be9352fe7b1b4f831381bd9d0a7c5b59d1025858fd438fc04db156cb5757c99e875dff7d862ca16a386a5cbd87ccf834cb20e966aa75a9188
7
- data.tar.gz: c3aaecd68a094471c26be28298b5aad53eb88e22fc0da5437627f0726d7689dc365d8f68fb03fd26f5bdcb002fb15b6d6d20a304a7628707c9bf08ea32fbf788
6
+ metadata.gz: 058341e8cf7ea0321deeb5d9cfe64105ba66d797785594fb92f24a64598f1a5541dab8263d834c913c334eb45a0aff106c24f4c390155549340dd131c0179b71
7
+ data.tar.gz: 9dc78159d70bc057c883ef4b79ba1ec6b13766fa183e1320ee14d289009a49ad6c22a6e4b9c7006d2767d1a8383bc98552a1f8236544084a747c8943f8f8dce7
@@ -1,3 +1,3 @@
1
1
  module EffectiveTestBot
2
- VERSION = '0.6.6'.freeze
2
+ VERSION = '0.6.7'.freeze
3
3
  end
@@ -50,4 +50,9 @@ module EffectiveTestBotLoginHelper
50
50
 
51
51
  User.find_by_email(email)
52
52
  end
53
+
54
+ def current_user
55
+ User.where(id: assigns['current_user']['id']).first if (assigns['current_user'] && assigns['current_user']['id'])
56
+ end
57
+
53
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_test_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.6
4
+ version: 0.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-14 00:00:00.000000000 Z
11
+ date: 2017-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails