glass-rails 0.0.3 → 0.0.4
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7895aa12acaf59c7ceab8a3620da39b38463030c
|
|
4
|
+
data.tar.gz: 72a55311d5b5ac468ec694cccddcbd997863a31d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 48e986790480c4468ef6c555490503c8282e49e89d2e3f808c58b346c574025a1e9559e9e75e1b23f5aea80f2d787fa4795e5dbf1000b5785c82185c90075be7
|
|
7
|
+
data.tar.gz: 40299e64eef59d36a61e966aff8c907bbbce03c88fac0cc4c151cff18676fa1987cfd35fd3280751ebfd7e873e1f709924087eb381de5d89195dfc4bd6f1b82d
|
|
@@ -13,7 +13,7 @@ module Glass
|
|
|
13
13
|
end
|
|
14
14
|
|
|
15
15
|
def create_glass_account_migration
|
|
16
|
-
generate("model", "google_account token refresh_token expires_at:integer email name id_token verification_secret #{user_model.underscore.singularize}:references")
|
|
16
|
+
generate("model", "google_account token refresh_token expires_at:integer email name id_token:text verification_secret #{user_model.underscore.singularize}:references")
|
|
17
17
|
remove_file("app/models/google_account.rb")
|
|
18
18
|
template("google_account.rb", "app/models/google_account.rb")
|
|
19
19
|
insert_into_file("app/models/#{user_model.underscore.singularize}.rb", "\n\s\shas_one :google_account\n\n", after: "ActiveRecord::Base\n")
|
data/lib/glass/rails/version.rb
CHANGED
data/lib/glass/subscription.rb
CHANGED
|
@@ -21,7 +21,7 @@ module Glass
|
|
|
21
21
|
collection: opts[:collection] || DEFAULT_COLLECTION,
|
|
22
22
|
userToken: user_token,
|
|
23
23
|
verifyToken: verification_secret,
|
|
24
|
-
callbackUrl: callback_url,
|
|
24
|
+
callbackUrl: opts[:callback_url] || callback_url,
|
|
25
25
|
operation: opts[:operations] || DEFAULT_OPERATIONS)
|
|
26
26
|
result = google_client.execute(api_method: mirror_api.subscriptions.insert,
|
|
27
27
|
body_object: subscription)
|