appscms-tools-theme 0.8.8 → 0.8.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/assets/js/googledrive.js +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e1f1c4ec51b98d03064f1762f57f28a6148b23eddb24709dfe16c5198d646fe9
4
- data.tar.gz: 979740aacf21e9ec8e5e7d87558d3fbb60bb065610fbe744484f533a1af177d5
3
+ metadata.gz: 74c80e5e73290857e21cb4d38f7b6d667a4f75872d82632b625ae090c7d036dc
4
+ data.tar.gz: f57d4364becb7eeb90ec3260df18a6f6ae24382fc4dbb650c8c4ee0ae79500dc
5
5
  SHA512:
6
- metadata.gz: fc954fca8a3a6baa51ccba9e122a7d7687f7df191a18800fd8442199d29f9eaf81167cdfc1d8bebac3289af6ffcd0057d090f861950356689c0fc59ed2555e53
7
- data.tar.gz: e43704840a72228abf13c3c156648bb99bb0d2e3f5b5ddee02d4c7360c416b171c938b3763c16831a6151844374be0c5b1766f487be902c267d921d8df552ef9
6
+ metadata.gz: 93f37bedd59a78488636afaef48fc1f6552e81866c01b28b08232a0d0344b4d527237ab821686746c5e7c8114b5dbc403102e04dcf5998ea6fa38deeaa478b75
7
+ data.tar.gz: 6a81516dbe48ae1f45687411eba3a0966fb3c3f0dca64b0b2ac72c870b7b2836837f081ad8ab5cb9e877a0da72c8db02ab3c643e38dded37bb3b35a8355a9f86
@@ -52,7 +52,7 @@ const createPicker = () => {
52
52
  const pickerCallback = async (data) => {
53
53
  if (data.action == google.picker.Action.PICKED) {
54
54
  const res = await fetch(
55
- `https://www.googleapis.com/drive/v3/files/${data.docs[0].id}?key=${developerKey}`,
55
+ `https://www.googleapis.com/drive/v2/files/${data.docs[0].id}?key=${developerKey}?alt=media`,
56
56
  {
57
57
  headers: {
58
58
  Authorization: `Bearer ${oauthToken}`,
@@ -60,7 +60,7 @@ const pickerCallback = async (data) => {
60
60
  },
61
61
  }
62
62
  ).then((res) => res.json())
63
- const response = await fetch(res.downloadUrl).then((res) => res.blob())
63
+ const response = await fetch(res.webContentLink).then((res) => res.blob())
64
64
  let metadata = {
65
65
  type: data.docs[0].mimeType,
66
66
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appscms-tools-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.8
4
+ version: 0.8.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - vivek-appscms