Skip to content

Commit 84c9c41

Browse files
committed
Unnecessary files removed #11
1 parent c33457b commit 84c9c41

19 files changed

+0
-223
lines changed

app/assets/javascripts/callbacks.js.coffee

-3
This file was deleted.

app/assets/stylesheets/callbacks.css.scss

-3
This file was deleted.

app/controllers/callbacks_controller.rb

-101
This file was deleted.

app/controllers/home_controller.rb

-18
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,4 @@
11
class HomeController < ApplicationController
22
def index
33
end
4-
5-
def add_from_google
6-
@sheets = Token.first
7-
@client = Google::APIClient.new
8-
@client.authorization.access_token = @sheets['access_token']
9-
@client.authorization.client_id = ENV["GOOGLE_ID"]
10-
@client.authorization.client_secret = ENV["GOOGLE_KEY"]
11-
@client.authorization.refresh_token = @sheets["refresh_token"]
12-
@re = @client.auto_refresh_token
13-
#session = GoogleDrive.login_with_oauth(tkn["access_token"])
14-
drive = @client.discovered_api('drive', 'v2')
15-
16-
@wks = @client.execute(
17-
api_method: drive.files.watch,
18-
parameters: {fileId: @sheets["spreadsheet_id"]},
19-
headers: {'Content-Type'=>'application/json'}
20-
)
21-
end
224
end

app/models/token.rb

-8
This file was deleted.

app/views/callbacks/create.html.haml

-4
This file was deleted.

app/views/callbacks/createv1.html.erb

-9
This file was deleted.

app/views/callbacks/failure.html.haml

-1
This file was deleted.

app/views/callbacks/index.html.haml

-14
This file was deleted.

app/views/callbacks/setSheet.html.erb

-5
This file was deleted.

app/views/callbacks/test.html.haml

-4
This file was deleted.

app/views/create.html.erb

-9
This file was deleted.

app/views/failure.html.erb

-1
This file was deleted.

app/views/home/add_from_google.html.haml

-7
This file was deleted.

app/views/setSheet.html.erb

-5
This file was deleted.

spec/controllers/callbacks_controller_spec.rb

-5
This file was deleted.

spec/factories/tokens.rb

-6
This file was deleted.

spec/helpers/callbacks_helper_spec.rb

-15
This file was deleted.

spec/models/token_spec.rb

-5
This file was deleted.

0 commit comments

Comments
 (0)