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 +4 -4
- data/README.md +2 -1
- data/app/controllers/remotty/users/omniauth_callbacks_controller.rb +3 -2
- data/lib/remotty/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98b8b68b3c48d957040c1c9c46f7b4faf26afcca
|
4
|
+
data.tar.gz: fcbde16f4d2efb79865ad55ef85c1937d430c756
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
-
|
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)
|
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.
|
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-
|
12
|
+
date: 2014-08-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack-cors
|