Skip to content

Commit

Permalink
Add dotenv and vk omniauth gems
Browse files Browse the repository at this point in the history
  • Loading branch information
hmlON committed Feb 28, 2017
1 parent a6d3ca9 commit ba3a1f8
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.env
/coverage
/.bundle
/log/*
Expand Down
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ gem 'devise'
gem 'font-awesome-rails'
gem 'jbuilder', '~> 2.5'
gem 'jquery-rails'
gem 'omniauth-vkontakte'
gem 'pg', '~> 0.18'
gem 'public_activity'
gem 'puma', '~> 3.0'
Expand All @@ -29,6 +30,7 @@ end

group :development, :test do
gem 'byebug', platform: :mri
gem 'dotenv-rails'
gem 'factory_girl_rails'
gem 'rails-controller-testing'
gem 'rspec-rails'
Expand Down
26 changes: 26 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ GEM
warden (~> 1.2.3)
diff-lcs (1.3)
docile (1.1.5)
dotenv (2.2.0)
dotenv-rails (2.2.0)
dotenv (= 2.2.0)
railties (>= 3.2, < 5.1)
equalizer (0.0.11)
erubis (2.7.0)
execjs (2.7.0)
Expand All @@ -99,6 +103,8 @@ GEM
railties (>= 3.0.0)
faker (1.7.2)
i18n (~> 0.5)
faraday (0.10.1)
multipart-post (>= 1.2, < 3)
ffi (1.9.17)
font-awesome-rails (4.7.0.1)
railties (>= 3.2, < 5.1)
Expand All @@ -119,6 +125,7 @@ GEM
guard (~> 2.1)
guard-compat (~> 1.1)
rspec (>= 2.99.0, < 4.0)
hashie (3.5.5)
i18n (0.7.0)
ice_nine (0.11.2)
jbuilder (2.6.1)
Expand All @@ -129,6 +136,7 @@ GEM
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
json (2.0.3)
jwt (1.5.6)
launchy (2.4.3)
addressable (~> 2.3)
listen (3.0.8)
Expand All @@ -146,13 +154,29 @@ GEM
mini_portile2 (2.1.0)
minitest (5.10.1)
multi_json (1.12.1)
multi_xml (0.6.0)
multipart-post (2.0.0)
nenv (0.3.0)
nio4r (1.2.1)
nokogiri (1.7.0.1)
mini_portile2 (~> 2.1.0)
notiffany (0.1.1)
nenv (~> 0.1)
shellany (~> 0.0)
oauth2 (1.3.0)
faraday (>= 0.8, < 0.11)
jwt (~> 1.0)
multi_json (~> 1.3)
multi_xml (~> 0.5)
rack (>= 1.2, < 3)
omniauth (1.6.1)
hashie (>= 3.4.6, < 3.6.0)
rack (>= 1.6.2, < 3)
omniauth-oauth2 (1.4.0)
oauth2 (~> 1.0)
omniauth (~> 1.2)
omniauth-vkontakte (1.3.7)
omniauth-oauth2 (~> 1.1)
orm_adapter (0.5.0)
parser (2.3.3.1)
ast (~> 2.2)
Expand Down Expand Up @@ -323,6 +347,7 @@ DEPENDENCIES
coffee-rails (~> 4.2)
database_cleaner
devise
dotenv-rails
factory_girl_rails
faker
font-awesome-rails
Expand All @@ -331,6 +356,7 @@ DEPENDENCIES
jquery-rails
launchy
listen (~> 3.0.5)
omniauth-vkontakte
pg (~> 0.18)
public_activity
puma (~> 3.0)
Expand Down
2 changes: 2 additions & 0 deletions config/initializers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@
# Add a new OmniAuth provider. Check the wiki for more information on setting
# up on your models and hooks.
# config.omniauth :github, 'APP_ID', 'APP_SECRET', scope: 'user,public_repo'
config.omniauth :vkontakte, ENV['VK_APP_ID'], ENV['VK_APP_SECRET'],
scope: 'email' # , info_fields: 'email,name'

# ==> Warden configuration
# If you want to use other strategies, that are not supported by Devise, or
Expand Down

0 comments on commit ba3a1f8

Please sign in to comment.