yeller_ruby 0.4.0 → 0.4.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: 75ca2ec992c7f228b51a61baf5b0b83bab8fa2af
4
- data.tar.gz: 2d2a0c86c4b612992637d03c2e12b6183d54d6f5
3
+ metadata.gz: 33fe054283424e5b1d98ea57cef0f6d69d10e038
4
+ data.tar.gz: 973837ba97c4adb19c4007a889ce16ea0dd94aab
5
5
  SHA512:
6
- metadata.gz: d6f51227e916ca49971edba31f466d90ae229bcafff389306672665567ee573ca3d89d4716a14403bde1e3599fabaabc0dc5aabc549279442226a2e78c9b5fd1
7
- data.tar.gz: 230533d1187072dba5d59d05c8dbfcf0bd7c1d6aff6b57ba4b5bbf6f31ffba2cb992e8276b8257395253a8452d431f077b1f09b6e3716e5e6a94d3c43364e7af
6
+ metadata.gz: 29976834a9299621b9759aba6256aa34da79c855bea1dd0c065adc5ec490a5931243d564ac3d26f4a8681650a701a6debd3175427ca8e27c0c0a2baa35ea1b26
7
+ data.tar.gz: b09a4dd8cc48c23972a69aa4b8ab5e0b293f932122e5ba7fee6135ff840cfabc7b0a5a8c589023a9693b42b10b3420a517864bbfff2ab5ed7f51bdfef1085ebf
data/lib/yeller/rails.rb CHANGED
@@ -66,6 +66,7 @@ module Yeller
66
66
  def yeller_user_data
67
67
  return {} unless respond_to?(:current_user)
68
68
  return {} unless current_user.respond_to?(:id)
69
+ return {} if current_user.nil?
69
70
  id = current_user.id
70
71
  return {} unless id.is_a?(Integer)
71
72
  user = {"id" => id}
@@ -1,3 +1,3 @@
1
1
  module Yeller
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yeller_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Crayford
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-15 00:00:00.000000000 Z
11
+ date: 2015-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler