sf-gdrive 0.1.11 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/app/controllers/gdrive/drive_controller.rb +18 -2
- data/lib/gdrive/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: bea772569dca67a5b5866ac45b026b36ba311db4ed71ef32f0e9c9c9eb5bf70c
|
|
4
|
+
data.tar.gz: cf7375758c11b092499ccc115702540f5e3cdcb6b77c94c839fba3c763d5f731
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1046fdcfbdeb38aed95321e534b1db655cd58b39e21d164f0448f6381c56faefd12daf93ba2eb5c6418f3c3f207f13ec25af481244f34c6a3584617e47de3588
|
|
7
|
+
data.tar.gz: 8228caf3e1213690f96c9b93370e6f5284d0d1edce830c180551664de054c50ea72bf6b67f362586f4b4331e6792e6a5b54a5fbaea648adc6a895308cb8fd35d
|
|
@@ -131,8 +131,24 @@ module Gdrive
|
|
|
131
131
|
file = drive.create_file({:name => file_name, :parents => [folder.id]}, upload_source: tmp.path, content_type: "text/plain")
|
|
132
132
|
end
|
|
133
133
|
end
|
|
134
|
-
|
|
134
|
+
rescue Signet::AuthorizationError => _e
|
|
135
|
+
render(
|
|
136
|
+
json: {
|
|
137
|
+
error: {
|
|
138
|
+
message: 'Could not authorize with Google Drive. Please verify your integration.'
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
status: :bad_request
|
|
142
|
+
)
|
|
143
|
+
rescue Google::Apis::Error => _e
|
|
144
|
+
render(
|
|
145
|
+
json: {
|
|
146
|
+
error: {
|
|
147
|
+
message: 'Could not sync with Google Drive. Please verify your integration.'
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
status: :bad_request
|
|
151
|
+
)
|
|
135
152
|
end
|
|
136
|
-
|
|
137
153
|
end
|
|
138
154
|
end
|
data/lib/gdrive/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sf-gdrive
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.12
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- "@StandardNotes"
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-08-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -86,8 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
86
86
|
- !ruby/object:Gem::Version
|
|
87
87
|
version: '0'
|
|
88
88
|
requirements: []
|
|
89
|
-
|
|
90
|
-
rubygems_version: 2.5.1
|
|
89
|
+
rubygems_version: 3.0.3
|
|
91
90
|
signing_key:
|
|
92
91
|
specification_version: 4
|
|
93
92
|
summary: Google Drive Extension for Standard File/Standard Notes.
|