ninja_van_api 0.3.10 → 0.3.11

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: f9f76f1d5a78f49a5d8ec73f27e2e80ffd01811740d43aff486d948d2df5b8b4
4
- data.tar.gz: d00dd0886875b62866da7b66098d10877b4563cf3ed9a1ae64660e0b22f2ba29
3
+ metadata.gz: 34724a8b8d348323fe598cb628435f25d08d6347592ad6b150dfe6b262457412
4
+ data.tar.gz: 6ada0a2a7a78ac9110b0e6c2b6179bf0553f7572bd2c3f9ce80820b4f3fe789f
5
5
  SHA512:
6
- metadata.gz: 959314ad0f31cc21b13c9a821104784f8289784ba4e218c79565aca7de6e32b54ffa2433f4e115997e19069019d34f12b0420b11fe411eaf6513ebc2222eaa83
7
- data.tar.gz: 90f21bd8a0a6330dc2ef52d4486db99c380620a713d653d121e91d5bab055279ca8301883cebf069f7aea0676fa2bff53202a798cae0f982feec50ca6b79be3a
6
+ metadata.gz: e3560bf994b67236ed33f95a490bfbddb3d8faf65743506ec1166be3d8b095204ad16720f5ae0cef5190549a2209fdd4331c4c37f4970823774e4afdf981fe94
7
+ data.tar.gz: 0cfc55f034bdb12e98842601964029f78a6f3d1bf9018c69b7363688e1b6b2af0ee529a58bbacc4530cd871463f5063a1362931f108d364dac6a8be1380c5178
@@ -47,14 +47,8 @@ module NinjaVanApi
47
47
  private
48
48
 
49
49
  def validate_country_code
50
- if test_mode
51
- if country_code != "SG"
52
- raise NinjaVanApi::UnsupportedCountryCodeError, "#{country_code} is not supported on test mode"
53
- end
54
- else
55
- unless SUPPORTED_COUNTRY_CODES.include? country_code
56
- raise NinjaVanApi::UnsupportedCountryCodeError, "#{country_code} is not supported"
57
- end
50
+ if SUPPORTED_COUNTRY_CODES.exclude?(country_code)
51
+ raise NinjaVanApi::UnsupportedCountryCodeError, "#{country_code} is not supported"
58
52
  end
59
53
  end
60
54
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NinjaVanApi
4
- VERSION = "0.3.10"
4
+ VERSION = "0.3.11"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ninja_van_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.10
4
+ version: 0.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jane Trang Mai Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-03-19 00:00:00.000000000 Z
11
+ date: 2025-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails