ahoy_matey 0.1.7 → 0.1.8

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: 5e2afc9edc527febe7ba479f3b13803762f6b5d3
4
- data.tar.gz: 05588f6ba3edcf1ed0e1b468d86bb0834c0f4184
3
+ metadata.gz: e26a906ddc293ac0416f2f254d784cfc6db73003
4
+ data.tar.gz: 541082bbd91a7633e0dbec197f8107e5d4eda36b
5
5
  SHA512:
6
- metadata.gz: 749684e36dc09e12787418cd4d02d9dd990bede5da4c9528de784fef88f013ac19c4f27e2be1d3c74c135a73e45196be10274f2b38833e381325276d8c637194
7
- data.tar.gz: 3c651a4ae851f9214be39e7004ad0abf0a344f24282fa48fb5ec5358dfd2a0928714869e3e14b6b39fdc214aa5d6a8348f00ed6505af12a66afeaecb3a2e3be5
6
+ metadata.gz: 003f1ce5a22f8a075dc29e2f1fec577621977152821cfd4bff6f8f6b930237909f9b63ca148efc03d9ddc12f8224a1f60f6683f1753ba801569ca745dab03898
7
+ data.tar.gz: bdc8fe84047e09ffec04fa4464c30698ef7be5771749a2fce969e70b704676e33395ff2cb508e9541c3930111228fa5d3b17e46b01b661fb791ea686b18a320a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.1.8
2
+
3
+ - Fixed bug with `user_type` set to `false` instead of `nil`
4
+
1
5
  ## 0.1.7
2
6
 
3
7
  - Made cookie functions public for ahoy_events
data/lib/ahoy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ahoy
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
data/lib/ahoy_matey.rb CHANGED
@@ -40,7 +40,7 @@ module Ahoy
40
40
 
41
41
  mattr_accessor :user_method
42
42
  self.user_method = proc do |controller|
43
- (controller.respond_to?(:current_user) && controller.current_user) || (controller.respond_to?(:current_resource_owner, true) and controller.send(:current_resource_owner))
43
+ (controller.respond_to?(:current_user) && controller.current_user) || (controller.respond_to?(:current_resource_owner, true) && controller.send(:current_resource_owner)) || nil
44
44
  end
45
45
 
46
46
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ahoy_matey
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane