empower 0.1.1 → 0.1.2

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: be69ae4ebfc41949946358819b13f4664288f788
4
- data.tar.gz: 514769ae06879dc16c90b8ebacc6eae9e7571988
3
+ metadata.gz: b807143a9e1cdb1b237d42d1bec17b9f5ada939d
4
+ data.tar.gz: c6ede5512544397ae4ec1c786293bb5787d86132
5
5
  SHA512:
6
- metadata.gz: a61d910115c519a078bfc71f96c415da13768d908bbc0d7cfde639010c17f8155956a1238e9d459396ce3b22206799f77fc5b1b46660198a1e67bdaa2e0bd9ab
7
- data.tar.gz: 758e18117e446e62c925c89ecc2d1f1c3fcd91f9621f5d574db5cdbe3a709588bd5344df35da7b696cf65dff8570dd6eac3798a954c6ef3416ab3d04615e4daa
6
+ metadata.gz: 1a23c399a04801665b8d2843b3e8d7828ec487b6c17d494566ed157e08d3dc0bc6c51edfe89d3ef49750c813446995470104c781f554203ada81042571e3fc77
7
+ data.tar.gz: d2e9c9f11d00c427a80b7c3cfe56fbfb7bacc99f37c4a7b1827a62dda785d59fba0e65df9dc278dae31e67c2b39a1706eca062d2461e4c84fed69485f5bd951e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- empower (0.1.1)
4
+ empower (0.1.2)
5
5
  devise
6
6
  omniauth-facebook
7
7
  rails (~> 4.1.0)
@@ -15,10 +15,10 @@ module Empower
15
15
  :password => Devise.friendly_token[0,20],
16
16
  )
17
17
  attrs = {}
18
- if user.respond_to?(:name)
18
+ if ActiveRecord::Base.connection.column_exists?(:users, :name, :string)
19
19
  attrs[:name] = auth.info.name
20
20
  end
21
- if user.respond_to?(:image)
21
+ if ActiveRecord::Base.connection.column_exists?(:users, :image, :string)
22
22
  attrs[:image] = auth.info.image
23
23
  end
24
24
  if attrs.keys.size > 0
@@ -26,10 +26,10 @@ module Empower
26
26
  end
27
27
  else
28
28
  attrs = {}
29
- if user.respond_to?(:name)
29
+ if ActiveRecord::Base.connection.column_exists?(:users, :name, :string)
30
30
  attrs[:name] = auth.info.name
31
31
  end
32
- if user.respond_to?(:image)
32
+ if ActiveRecord::Base.connection.column_exists?(:users, :image, :string)
33
33
  attrs[:image] = auth.info.image
34
34
  end
35
35
  if attrs.keys.size > 0
@@ -1,3 +1,3 @@
1
1
  module Empower
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: empower
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean C Davis