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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7ead05593ce47d76a8f18f547f61d7c84783554909b4eb4f1d80b5c9d21f29dc
4
- data.tar.gz: 4db668fd55a9019167d52534243578802eda8ee2766a1a589abe139162bdfe15
3
+ metadata.gz: e57c2ea2a0a13ddc13f64b70dedaa02c7b940f0b04cf926c115d64190b047ef8
4
+ data.tar.gz: aac6b0f91383b97228e50dddce705c049f09657ba5cdbf1af5e99180068c0f1c
5
5
  SHA512:
6
- metadata.gz: a67d8337c5d5e0ddcc4b45ba0a299eacae6010cab7fb4c4e7654b04f5116b62a111c0c9e77f6bbbdf16b22b1f7c12c5b1e9284ae93da8c609a541dd280cc094c
7
- data.tar.gz: ced2968fb2fbf5b4dc438c8543d3e8cc342a349d5db65c61b6c3d4db7cbc9131896b1931c6c03c4f727b3f805f9ae1ed3542b58e80183a8e641b2777fc011fdb
6
+ metadata.gz: 79597cc7d1907306f897fb35e35f2ac060d6b894b2181dd45eaf1cd982174db462270319448c842c143ee158b5bfae448a26862ee067b68758a66c4f7a202e7c
7
+ data.tar.gz: d4b320389f56fa3a8f9962c08360e5e4dcff3a8c6f6f782ad8f5793721a61d63fbd4ffff6bee6d5e202fb11aa535f6069c0e27097569028063686a8db8720900
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- janio_api (0.3.2)
4
+ janio_api (0.3.3)
5
5
  activeresource
6
6
  countries
7
7
  phonelib
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 over api_token if set in config
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
- # config.api_token = ENV["API_TOKEN"]
7
- config.api_tokens = {
8
- MY: ENV["MY_API_TOKEN"],
9
- SG: ENV["SG_API_TOKEN"]
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
@@ -1,3 +1,3 @@
1
1
  module JanioAPI
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: janio_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Chong