ninja_van_api 0.3.6 → 0.3.7
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 +4 -4
- data/lib/ninja_van_api/client.rb +1 -1
- data/lib/ninja_van_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33acdd51491e96f0a1b44ecfa3d10d97f44ba610339c5d186d843271c3eb499d
|
4
|
+
data.tar.gz: '068f35a49333d8497c8373276612b305ab046eb09db02a303e6e85aedaf1b99f'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae824b61a0f0ff0b9d182fa545666ce7e8cdaf8c9f8b35f745dfb17ce89117e1a52c1aa9ef64ee1bfe7f4a23e06fd2ef4eb5a39c6b964bb29cc4c0ccaf56dc90
|
7
|
+
data.tar.gz: dd8728eaf5b3d66e4e53ba60c307e1ea4c4d2a876ddbbc4936206c711aba9136f9a087c0ffd967eb1451ccdb9b8b0b63e2f5c8d26425d592e6722e27eb992b02
|
data/lib/ninja_van_api/client.rb
CHANGED
@@ -61,7 +61,7 @@ module NinjaVanApi
|
|
61
61
|
def access_token
|
62
62
|
if Rails.env.development?
|
63
63
|
Rails.logger.debug "Access token might be expired. You can refetch the token by calling NinjaVanApi::Client#refresh_access_token. Make sure update the ENV variable NINJAVAN_API_ACCESS_TOKEN"
|
64
|
-
ENV.fetch("NINJAVAN_API_ACCESS_TOKEN")
|
64
|
+
return ENV.fetch("NINJAVAN_API_ACCESS_TOKEN")
|
65
65
|
end
|
66
66
|
|
67
67
|
fetch_access_token if token_expired?
|