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 +4 -4
- data/lib/ninja_van_api/client.rb +2 -8
- data/lib/ninja_van_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34724a8b8d348323fe598cb628435f25d08d6347592ad6b150dfe6b262457412
|
4
|
+
data.tar.gz: 6ada0a2a7a78ac9110b0e6c2b6179bf0553f7572bd2c3f9ce80820b4f3fe789f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3560bf994b67236ed33f95a490bfbddb3d8faf65743506ec1166be3d8b095204ad16720f5ae0cef5190549a2209fdd4331c4c37f4970823774e4afdf981fe94
|
7
|
+
data.tar.gz: 0cfc55f034bdb12e98842601964029f78a6f3d1bf9018c69b7363688e1b6b2af0ee529a58bbacc4530cd871463f5063a1362931f108d364dac6a8be1380c5178
|
data/lib/ninja_van_api/client.rb
CHANGED
@@ -47,14 +47,8 @@ module NinjaVanApi
|
|
47
47
|
private
|
48
48
|
|
49
49
|
def validate_country_code
|
50
|
-
if
|
51
|
-
|
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
|
|
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.
|
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-
|
11
|
+
date: 2025-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|