remotty-rails 0.0.14 → 0.0.15

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: a075d93f9035aca4edfbc576c600771fd27ae485
4
- data.tar.gz: 4ca39c7a612b1b18f7f07a9125a9dce331426f55
3
+ metadata.gz: 98b8b68b3c48d957040c1c9c46f7b4faf26afcca
4
+ data.tar.gz: fcbde16f4d2efb79865ad55ef85c1937d430c756
5
5
  SHA512:
6
- metadata.gz: c3d7973ba89210d2bf1a5bdcbd653ea024a8d90e8332e267aaeb46c1556a362c385258ba7edd6af5cba3aa55d93b8bb6c07c598536134d3f7d9f9cf481679da3
7
- data.tar.gz: 62e497ae5f500430638b678b10dcc5d28495e3250bb3ea9e19271f7b4da10c6c911d98d20f1f0c7c84e2aeca226b3ea06553eee18ce6c88ed05df99f0b7c2130
6
+ metadata.gz: b4e80087fdd62933fb130a0373dc9d606901ea3e056adcf6307411cd5efdcbd8f4030b51c8c119735e20f6a9ff38042252b85826a29852d68c36c9170f35d89b
7
+ data.tar.gz: 53fb3ea646979270fba856084cd39744b7c6175d4e7fb36b4dbbb7e9a6677c48fabc8d57bb4ae9894e36fd1d36ba78cea38072d0888a73815ededb3cd393593f
data/README.md CHANGED
@@ -104,7 +104,7 @@ remotty-rails에서 사용중인 라이브러리 입니다.
104
104
  * Create Rails API Project
105
105
 
106
106
  ```sh
107
- $ gem install rails -v 4.0.5 --no-ri --no-rdoc
107
+ $ gem install rails -v 4.1.4 --no-ri --no-rdoc
108
108
  $ rails-api new {{project}} --skip-test-unit --skip-sprockets
109
109
  ```
110
110
 
@@ -117,6 +117,7 @@ gem 'remotty-rails'
117
117
  gem 'devise'
118
118
  gem 'omniauth-facebook'
119
119
  gem 'omniauth-twitter'
120
+ gem 'cancan'
120
121
 
121
122
  # attachment
122
123
  gem 'paperclip'
@@ -79,10 +79,11 @@ class Remotty::Users::OmniauthCallbacksController < Devise::OmniauthCallbacksCon
79
79
  user = User.find_or_create_by(email: auth[:info][:email]) do |u|
80
80
  u.name = auth[:info][:name] || auth[:info][:email]
81
81
  u.password = Devise.friendly_token[0,20]
82
- u.skip_confirmation!
82
+ u.skip_confirmation! if u.class.include? Devise::Models::Confirmable
83
83
  u.save
84
84
  end
85
- user.confirm! unless user.confirmed? # 인증 대기 중이면 바로 인증시켜버림
85
+ # 인증 대기 중이면 바로 인증시켜버림
86
+ user.confirm! if user.class.include?(Devise::Models::Confirmable) && !user.confirmed?
86
87
 
87
88
  # oauth 정보 생성
88
89
  user.add_oauth_info(auth)
@@ -1,5 +1,5 @@
1
1
  module Remotty
2
2
  module Rails
3
- VERSION = '0.0.14'
3
+ VERSION = '0.0.15'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remotty-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chungsub Kim
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-06-23 00:00:00.000000000 Z
12
+ date: 2014-08-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack-cors