Dev (#42)
Dev (#42)

* required the rails helper in the spec and deleted the spec_helper and the synchronizer_spec

* first draft, first logic

* to remove the files from drive, that are not stored in the local backup files anymore, I first compared the two arrays of their titles, then took the elements by the collect method and passed delete as a method from the google drive gem documentation

* popping all old backup files means probably that I just throw them out of the array, but they are still not deleted from the account. I will change that now. But the pop is funny and works

* just made everything worse :P

* remove seems to be the better method from the google drive api. It is a method of the collection class and passes the files as an argument. But here collections is an array and unfortunately somehow the method doesn't work for an array

* why is the array a problem?

* everything works, but the deletion

* taking the files only from the collection. I put the output of both requests as comments underneath

* remove method only kills files inside localhost

* final version

* Remove (#38)

* first draft, first logic

* to remove the files from drive, that are not stored in the local backup files anymore, I first compared the two arrays of their titles, then took the elements by the collect method and passed delete as a method from the google drive gem documentation

* popping all old backup files means probably that I just throw them out of the array, but they are still not deleted from the account. I will change that now. But the pop is funny and works

* just made everything worse :P

* remove seems to be the better method from the google drive api. It is a method of the collection class and passes the files as an argument. But here collections is an array and unfortunately somehow the method doesn't work for an array

* why is the array a problem?

* everything works, but the deletion

* taking the files only from the collection. I put the output of both requests as comments underneath

* remove method only kills files inside localhost

* final version

* storing foldername

* uploading only files that were not in the folder already (#41)

berlindiamonds/discourse-sync-to-googledrive,berlindiamonds/discourse-sync-to-googledrive,berlindiamonds/discourse-sync-to-googledrive