wego 0.2.1 → 0.2.2

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: d5e3fc2a4f7bcd8491087977d3163df045401c5f7b8b092c923d798e79b3fcf7
4
- data.tar.gz: 9beaf6fc91eeb0ce3e4de499a0c1bb735eba1badbdd6d8a61cc9f0812c4699fe
3
+ metadata.gz: cb681d945976991c32776b364116b92bd626b0fb0f40d49d8c56d0764d8c8671
4
+ data.tar.gz: 7b2fd77737e5d14afa1f24283f250b1efc95e10af3f8e91638fbcf23e1fc3e11
5
5
  SHA512:
6
- metadata.gz: 4a450d5235f022c70db4b247aece2ad1346e5138ff19d0d302734dff24c486c1131e75ef4a823fa93a1211728f185d05e5668509f0a515b59378b2e2956705ea
7
- data.tar.gz: 52b4c3e8c775f56f7af1baef3b11e9112e406e7e675ff3912326c919bfb428d60b12f22fbac713bdd62f918a1dd45a67de1a85adc63fe7e733eaf13a8006ee15
6
+ metadata.gz: 39a5296cfd9da29171e358987e493650936bff346530528ee6d3d718eaac753304c6e643bb80e78c92404e27691a1b0520df386df9803c76574904b3c4fb3ad6
7
+ data.tar.gz: 759c204913eaec2e0732ebaa587ad9526f78d74fa43a1561b105cce72a072588d7aabf8759c45888ba4fa610561cc593d4cdb2dae76889fbed007f758da18f37
@@ -1,7 +1,7 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.3.1
5
- - 2.2.0
6
- - 2.1.9
4
+ - 2.6.5
5
+ - 2.5.0
6
+ - 2.4.0
7
7
  before_install: gem install bundler -v 1.12.2
@@ -27,7 +27,7 @@ module Wego
27
27
  end
28
28
 
29
29
  def api_params
30
- Wego.configuration.api_keys.merge attributes
30
+ Wego.configuration.api_keys.merge(attributes).compact
31
31
  end
32
32
  end
33
33
 
@@ -1,3 +1,3 @@
1
1
  module Wego
2
- VERSION = "0.2.1".freeze
2
+ VERSION = "0.2.2".freeze
3
3
  end
@@ -14,7 +14,7 @@ module FakeWegoApi
14
14
  def stub_search_result_api(search_id:, hotel_id:, **options)
15
15
  stub_api_response(
16
16
  "search/#{search_id}",
17
- options.merge(hotel_id: hotel_id),
17
+ options.merge(hotel_id: hotel_id).compact,
18
18
  filename: "result"
19
19
  )
20
20
  end
@@ -36,7 +36,7 @@ RSpec.describe Wego::Client, "#url" do
36
36
  end
37
37
 
38
38
  def wego_api_path(options = {})
39
- params = Wego.configuration.api_keys.merge(options)
39
+ params = Wego.configuration.api_keys.merge(options).compact
40
40
  params.map { |key, value| "#{key}=#{value}" }.join("&")
41
41
  end
42
42
  end
@@ -16,11 +16,11 @@ Gem::Specification.new do |spec|
16
16
  spec.files = `git ls-files`.split("\n")
17
17
  spec.require_paths = ["lib"]
18
18
  spec.test_files = `git ls-files -- {spec}/*`.split("\n")
19
- spec.required_ruby_version = Gem::Requirement.new(">= 2.1.9")
19
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
20
20
 
21
21
  spec.add_dependency "rest-client", "~> 2.0"
22
22
 
23
- spec.add_development_dependency "bundler", "~> 1.15"
23
+ spec.add_development_dependency "bundler"
24
24
  spec.add_development_dependency "rake", "~> 10.0"
25
25
  spec.add_development_dependency "rspec", "~> 3.0"
26
26
  spec.add_development_dependency "webmock", "~> 2.3"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wego
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abu Nashir
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-10 00:00:00.000000000 Z
11
+ date: 2019-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '1.15'
33
+ version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '1.15'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -150,7 +150,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
150
150
  requirements:
151
151
  - - ">="
152
152
  - !ruby/object:Gem::Version
153
- version: 2.1.9
153
+ version: 2.4.0
154
154
  required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  requirements:
156
156
  - - ">="