glass-rails 1.0.3 → 1.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: 37b56305c29a9db73a5ada1a75300f60068973ac
4
- data.tar.gz: bf7de7f146ee006b4b127b7b6d481c4ed4d3247b
3
+ metadata.gz: 382a58c0097543d4c1afff112bf680c70cebd294
4
+ data.tar.gz: d2a2efab6190ae3c9baf25b031f5cca9062e6f82
5
5
  SHA512:
6
- metadata.gz: 2e1d1e03191e5d4d4137559d6d33e8aa7f2a1cb9cfbb40aa6a54ecdab737376cf89a2098db99f71e002a47c5a8bc630cacec14a0df339c26c36b58556e73f25d
7
- data.tar.gz: 46f57ec672c8d5470e399bacafae9d9273aab99d430808fccd4023ec6f745406e696cb16ebf03898e9d463a737a4f667be923d2381e92429381b53381cbac62f
6
+ metadata.gz: ffbea85cb1056755b39a54a32a615eba6051aa1a68f64ad10fac3bcc56b569119f4d45352e301326d5da0d078abd714f7833cc6af9bce1017723164b34709724
7
+ data.tar.gz: 7c63a4cef7533efde5d529009409988f149734f04ac5116c2b09a7fa05e6f478a1962e1e6c66f6b925f7cf9f3cc638f671a8a7a64e0d6009455d0dd7f1211f21
@@ -5,6 +5,11 @@ require 'glass/rails/version'
5
5
 
6
6
  module Glass
7
7
  DEVELOPMENT_PROXY_URL = "https://mirrornotifications.appspot.com/forward?url="
8
+
9
+ mattr_accessor :dev_callback_url
10
+
11
+
12
+
8
13
  mattr_accessor :application_name
9
14
  application_name = (defined?(::Rails) && ::Rails.application) ? ::Rails.application.class.name.split('::').first : "SomeGlassApp"
10
15
  @@application_name = application_name
@@ -23,7 +23,7 @@ module Glass
23
23
  self.access_token = opts[:access_token] || google_account.try(:token)
24
24
  self.refresh_token = opts[:refresh_token] || google_account.try(:refresh_token)
25
25
  self.has_expired_token = opts[:has_expired_token] || google_account.has_expired_token?
26
-
26
+
27
27
  setup_with_our_access_tokens
28
28
  setup_with_user_access_token
29
29
  self
@@ -45,7 +45,7 @@ module Glass
45
45
  if ::Rails.env.production?
46
46
  ::Rails.application.routes.url_helpers.glass_notifications_callback_url(protocol: 'https')
47
47
  else
48
- ::Glass::DEVELOPMENT_PROXY_URL + @callback_url + "/glass/notifications"
48
+ ::Glass::DEVELOPMENT_PROXY_URL + ::Glass.dev_callback_url + "/glass/notifications"
49
49
  end
50
50
  end
51
51
 
@@ -1,5 +1,5 @@
1
1
  module Glass
2
2
  module Rails
3
- VERSION="1.0.3"
3
+ VERSION="1.0.4"
4
4
  end
5
5
  end
@@ -22,7 +22,7 @@ module Glass
22
22
  collection: opts[:collection] || DEFAULT_COLLECTION,
23
23
  userToken: user_token,
24
24
  verifyToken: verification_secret,
25
- callbackUrl: opts[:callback_url] || google_client.callback_url,
25
+ callbackUrl: opts[:callback_url] || client.callback_url,
26
26
  operation: opts[:operations] || DEFAULT_OPERATIONS)
27
27
  result = google_client.execute(api_method: mirror_api.send(mirror_api_method).insert,
28
28
  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: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kunal Modi