janio_api 0.3.7 → 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2eb551722b7d734da79c0c34f59c6f14c8866e2656562b0fd25bdba9bcdc3fb3
4
- data.tar.gz: 487e7b65437e433546c116aba987176b41ad937d4c6937bcf5270c7995ab2907
3
+ metadata.gz: ae0cb146ffba0fbc7662773a8325a9cd72a6e5eb7714973acc335dfc9d717097
4
+ data.tar.gz: 5ff252c4242ce0d9d3b4b0446daadd9b0841b9af291507145f5bb2b47d137875
5
5
  SHA512:
6
- metadata.gz: a8dc69b4891a6d07f6a7d78a47a518e69819bbfe6b78b86784bc557fb4433e547160da13bf355efd1e36cb9a17c8b808f8a95e09039777cb11082922e1c83329
7
- data.tar.gz: '075582cc9cf498238a20f37a5e5107fc89644651526ab42b8c53450f5bd6e27db04e573342ba8ba3b9eb12467371b42b3c067e32c4fe4e6111862cb52f711067'
6
+ metadata.gz: fbba3362c3a30f88300346b69205fca18d622503ff65dea468776a11f14d31c51d29b12b9a7b6e36bad6b35a7d3dea09166003281b649f1d306351ef7ff13ce5
7
+ data.tar.gz: 0abe6280d48b98d3c9e4598aa9c72326789001e6f949e31e51ee954b35d176ed3e126a6bbd137baa22c1bc7dbf89798705b440bfe122ff608acd120134c51ce5
@@ -16,17 +16,5 @@ module JanioAPI
16
16
 
17
17
  super
18
18
  end
19
-
20
- class << self
21
- def headers
22
- if _headers_defined?
23
- _headers
24
- elsif superclass != Object && superclass.headers
25
- superclass.headers
26
- else
27
- _headers ||= {}
28
- end
29
- end
30
- end
31
19
  end
32
20
  end
@@ -117,7 +117,7 @@ module JanioAPI
117
117
  # Track one or more tracking nos
118
118
  #
119
119
  # Check http://apidocs.janio.asia/track for more information
120
- def track(tracking_nos, secret_key = nil)
120
+ def track(tracking_nos)
121
121
  raise ArgumentError, "tracking_nos must be an array" unless tracking_nos.is_a?(Array)
122
122
 
123
123
  body = {
@@ -126,10 +126,6 @@ module JanioAPI
126
126
  tracking_nos: tracking_nos
127
127
  }
128
128
 
129
- headers[:secret_key] = secret_key unless secret_key.nil?
130
-
131
- raise ArgumentError, "secret_key can't be blank" unless headers[:secret_key].present?
132
-
133
129
  retries = 0
134
130
  begin
135
131
  retries += 1
@@ -1,3 +1,3 @@
1
1
  module JanioAPI
2
- VERSION = "0.3.7"
2
+ VERSION = "0.3.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: janio_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Chong
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-13 00:00:00.000000000 Z
11
+ date: 2020-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeresource