searates 0.1.1 → 0.1.2

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: ccfa3f04be9a5e54658770d3edfd8d0301c5ec6ccfd05322c1b8f56772c9da51
4
- data.tar.gz: 215848dfda17abf1475e84beb4d0ef93b3453408d9d8f88e4822c4dd479f7a5b
3
+ metadata.gz: 75f7c94aadb0e2700aac05ba609dee82b21b91ad6e05e52a39bd13eca98393b0
4
+ data.tar.gz: 9973b93b9ecf38dd98e6e97b4441dfc025cbea814eb56aa198eb689414b63908
5
5
  SHA512:
6
- metadata.gz: '08e1bd4401b4dabaf40ce442c0f7739f09eb5b0bdf18a8f325fee881d9d5a758896d521d571048c17ea94a200a1f29db63637f97b37da64cee0f9cc84188886c'
7
- data.tar.gz: 703633c976bdffaeaa1c822604731bdd0863adf6273e368ce67eb0d93dff153f5f082a42136fd1791c62efa36fc57a249440a38ef20ed2f7b40c6e075f2a1627
6
+ metadata.gz: 105695f80b4cf9e09ff64f98944ff85b871939e0e00add1934d953bd505f55f53079739f4e6cbaaf58e715c5a48ef24bfaa8a4abf36e47fb88cfd2f37085a653
7
+ data.tar.gz: 9f2f63ec0ad4eded1314a486dcd3b4e42c07b27c95613c1da9c3533254498690e48b40d07277f56050c9548f5053d172f552cd48cc95784178ac25b07256abba
@@ -34,7 +34,7 @@ module Searates
34
34
 
35
35
  def self.get_road_rates(lat_from, long_from, lat_to, long_to, weight, volume, type='CONTAINER', container='20st')
36
36
  [lat_from, long_from, lat_to, long_to, weight, volume, type, container].each{|param| raise Searates::Errors::API::MissingParameters, "Missing parameter: #{param}" unless param}
37
- request_url = "#{BASE_URL}air?apiKey=#{Searates.configuration.api_key}&lat_from=#{lat_from}&lng_from=#{long_from}&lat_to=#{lat_to}&lng_to=#{long_to}&weight=#{weight}&volume=#{volume}"
37
+ request_url = "#{BASE_URL}road?apiKey=#{Searates.configuration.api_key}&lat_from=#{lat_from}&lng_from=#{long_from}&lat_to=#{lat_to}&lng_to=#{long_to}&weight=#{weight}&volume=#{volume}"
38
38
  if type
39
39
  raise Searates::Errors::API::InvalidParameterValue unless ['FCL', 'LCL', 'CONTAINER'].include? type.upcase
40
40
  request_url += "&type=#{type.upcase}"
@@ -47,4 +47,4 @@ module Searates
47
47
  end
48
48
  end
49
49
  end
50
- end
50
+ end
@@ -1,3 +1,3 @@
1
1
  module Searates
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: searates
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - André Galatti
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-19 00:00:00.000000000 Z
11
+ date: 2019-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler