Skip to content

Commit

Permalink
Unnecessary files removed #11
Browse files Browse the repository at this point in the history
  • Loading branch information
Pbasnal committed Jul 15, 2014
1 parent 24a219e commit cb502c2
Show file tree
Hide file tree
Showing 19 changed files with 0 additions and 223 deletions.
3 changes: 0 additions & 3 deletions app/assets/javascripts/callbacks.js.coffee

This file was deleted.

3 changes: 0 additions & 3 deletions app/assets/stylesheets/callbacks.css.scss

This file was deleted.

101 changes: 0 additions & 101 deletions app/controllers/callbacks_controller.rb

This file was deleted.

18 changes: 0 additions & 18 deletions app/controllers/home_controller.rb
Original file line number Diff line number Diff line change
@@ -1,22 +1,4 @@
class HomeController < ApplicationController
def index
end

def add_from_google
@sheets = Token.first
@client = Google::APIClient.new
@client.authorization.access_token = @sheets['access_token']
@client.authorization.client_id = ENV["GOOGLE_ID"]
@client.authorization.client_secret = ENV["GOOGLE_KEY"]
@client.authorization.refresh_token = @sheets["refresh_token"]
@re = @client.auto_refresh_token
#session = GoogleDrive.login_with_oauth(tkn["access_token"])
drive = @client.discovered_api('drive', 'v2')

@wks = @client.execute(
api_method: drive.files.watch,
parameters: {fileId: @sheets["spreadsheet_id"]},
headers: {'Content-Type'=>'application/json'}
)
end
end
8 changes: 0 additions & 8 deletions app/models/token.rb

This file was deleted.

4 changes: 0 additions & 4 deletions app/views/callbacks/create.html.haml

This file was deleted.

9 changes: 0 additions & 9 deletions app/views/callbacks/createv1.html.erb

This file was deleted.

1 change: 0 additions & 1 deletion app/views/callbacks/failure.html.haml

This file was deleted.

14 changes: 0 additions & 14 deletions app/views/callbacks/index.html.haml

This file was deleted.

5 changes: 0 additions & 5 deletions app/views/callbacks/setSheet.html.erb

This file was deleted.

4 changes: 0 additions & 4 deletions app/views/callbacks/test.html.haml

This file was deleted.

9 changes: 0 additions & 9 deletions app/views/create.html.erb

This file was deleted.

1 change: 0 additions & 1 deletion app/views/failure.html.erb

This file was deleted.

7 changes: 0 additions & 7 deletions app/views/home/add_from_google.html.haml

This file was deleted.

5 changes: 0 additions & 5 deletions app/views/setSheet.html.erb

This file was deleted.

5 changes: 0 additions & 5 deletions spec/controllers/callbacks_controller_spec.rb

This file was deleted.

6 changes: 0 additions & 6 deletions spec/factories/tokens.rb

This file was deleted.

15 changes: 0 additions & 15 deletions spec/helpers/callbacks_helper_spec.rb

This file was deleted.

5 changes: 0 additions & 5 deletions spec/models/token_spec.rb

This file was deleted.

0 comments on commit cb502c2

Please sign in to comment.