Skip to content

Commit c77b66f

Browse files
committed
ENvironment and gem setup for google_oauth2
1 parent 62f09a7 commit c77b66f

File tree

5 files changed

+19
-0
lines changed

5 files changed

+19
-0
lines changed

Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ gem 'spring', group: :development
4242
# gem 'debugger', group: [:development, :test]
4343

4444
# Use google_drive to read/write files or spreadsheets from google drive
45+
gem 'omniauth-google-oauth2'
4546
gem 'google_drive'
4647

4748
# Use linkedin to interface with linkedin api

Gemfile.lock

+12
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,17 @@ GEM
120120
multi_json (~> 1.3)
121121
multi_xml (~> 0.5)
122122
rack (~> 1.2)
123+
omniauth (1.2.1)
124+
hashie (>= 1.2, < 3)
125+
rack (~> 1.0)
126+
omniauth-google-oauth2 (0.2.4)
127+
omniauth (~> 1.0)
128+
omniauth-oauth2 (~> 1.1)
129+
omniauth-oauth2 (1.1.2)
130+
faraday (>= 0.8, < 0.10)
131+
multi_json (~> 1.3)
132+
oauth2 (~> 0.9.3)
133+
omniauth (~> 1.2)
123134
optionable (0.2.0)
124135
origin (2.1.1)
125136
orm_adapter (0.5.0)
@@ -239,6 +250,7 @@ DEPENDENCIES
239250
jquery-rails
240251
linkedin
241252
mongoid
253+
omniauth-google-oauth2
242254
rails (= 4.1.2)
243255
rspec-rails
244256
sass-rails (~> 4.0.3)

config/environments/development.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
Rails.application.configure do
2+
ENV["GOOGLE_ID"] = '367225507767-119uvbhdadqbft2kn4759rodoiivksn9.apps.googleusercontent.com'
3+
ENV["GOOGLE_KEY"] = '1yX7HzuzWi3yD1OqJ21ZgpSS'
24
# Settings specified here will take precedence over those in config/application.rb.
35

46
# In the development environment your application's code is reloaded on

config/environments/production.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
Rails.application.configure do
2+
ENV["GOOGLE_ID"] = '367225507767-119uvbhdadqbft2kn4759rodoiivksn9.apps.googleusercontent.com'
3+
ENV["GOOGLE_KEY"] = '1yX7HzuzWi3yD1OqJ21ZgpSS'
24
# Settings specified here will take precedence over those in config/application.rb.
35

46
# Code is not reloaded between requests.

config/environments/test.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
Rails.application.configure do
2+
ENV["GOOGLE_ID"] = '367225507767-119uvbhdadqbft2kn4759rodoiivksn9.apps.googleusercontent.com'
3+
ENV["GOOGLE_KEY"] = '1yX7HzuzWi3yD1OqJ21ZgpSS'
24
# Settings specified here will take precedence over those in config/application.rb.
35

46
# The test environment is used exclusively to run your application's

0 commit comments

Comments
 (0)