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: b2622120bea704369f332e7fef60dc5a95a74d67
4
- data.tar.gz: 7b02bec8378a52a49f95d7dbaa8395c2cba1797a
3
+ metadata.gz: 7895aa12acaf59c7ceab8a3620da39b38463030c
4
+ data.tar.gz: 72a55311d5b5ac468ec694cccddcbd997863a31d
5
5
  SHA512:
6
- metadata.gz: 6dcd01187d4bc6b31aaf0730d62982fef3c323bc2ebb3b1f3853a40bfc3ea5447d2b98d52d1aeca7ce027003348fd93fa19dd5233f0c1c8267a148db46fc2811
7
- data.tar.gz: fe254a6638db2ce0c4b73ee681e0a708b05c44ccbf9d4e718ae2c34a0a82d6167a1e25ee2143dce5c2a757330fadcd74a833d56bf20933bc390e64c5061b3933
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")
@@ -1,5 +1,5 @@
1
1
  module Glass
2
2
  module Rails
3
- VERSION="0.0.3"
3
+ VERSION="0.0.4"
4
4
  end
5
5
  end
@@ -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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glass-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kunal Modi