janio_api 0.3.2 → 0.3.3
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/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/dev/config.rb +7 -5
- data/lib/janio_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: e57c2ea2a0a13ddc13f64b70dedaa02c7b940f0b04cf926c115d64190b047ef8
|
|
4
|
+
data.tar.gz: aac6b0f91383b97228e50dddce705c049f09657ba5cdbf1af5e99180068c0f1c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 79597cc7d1907306f897fb35e35f2ac060d6b894b2181dd45eaf1cd982174db462270319448c842c143ee158b5bfae448a26862ee067b68758a66c4f7a202e7c
|
|
7
|
+
data.tar.gz: d4b320389f56fa3a8f9962c08360e5e4dcff3a8c6f6f782ad8f5793721a61d63fbd4ffff6bee6d5e202fb11aa535f6069c0e27097569028063686a8db8720900
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -31,7 +31,7 @@ Or install it yourself as:
|
|
|
31
31
|
|
|
32
32
|
config.api_token = ENV["API_TOKEN"]
|
|
33
33
|
# or
|
|
34
|
-
# api_tokens will take
|
|
34
|
+
# api_tokens will take higher precedence than api_token
|
|
35
35
|
config.api_tokens = {
|
|
36
36
|
MY: ENV["MALAYSIA_JANIO_API_TOKEN"],
|
|
37
37
|
SG: ENV["SINGAPORE_JANIO_API_TOKEN"],
|
data/lib/dev/config.rb
CHANGED
|
@@ -3,10 +3,12 @@ require "dotenv/load"
|
|
|
3
3
|
def set_config
|
|
4
4
|
JanioAPI.configure do |config|
|
|
5
5
|
config.api_host = ENV["API_HOST"]
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
config.api_token = ENV["API_TOKEN"]
|
|
7
|
+
# or
|
|
8
|
+
# api_tokens take higher precedence than api_token
|
|
9
|
+
# config.api_tokens = {
|
|
10
|
+
# MY: ENV["MY_API_TOKEN"],
|
|
11
|
+
# SG: ENV["SG_API_TOKEN"]
|
|
12
|
+
# }
|
|
11
13
|
end
|
|
12
14
|
end
|
data/lib/janio_api/version.rb
CHANGED