tourico 0.0.7.4 → 0.0.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/tourico/http_service.rb +7 -1
- data/lib/tourico/version.rb +1 -1
- data/lib/tourico.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ceb51a027782329803bfe792ea070744c883d16
|
4
|
+
data.tar.gz: 1ce200bc624d3ea5922dc69f1c388ef0e12e2f19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15fe1dbdfd26c2a7ac4d1e21278bf1978c4b7506e003e4b8e01f18f4690e47dae7a8684b81e5a8e37255be4f758b5c0012ae410aff0135f381a1e8fe62259d84
|
7
|
+
data.tar.gz: 3389c772496f6ed96573138b7b30323031bacb963339ae7052a85e2a4c0fdfe085e919085d916b89c7eae0800fb7037b0b6b5cd9af78e248bf470e2b9d306e17
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
tourico (0.0.7.
|
4
|
+
tourico (0.0.7.5)
|
5
5
|
savon (~> 2.5.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -21,7 +21,7 @@ GEM
|
|
21
21
|
systemu (~> 2.6.2)
|
22
22
|
mime-types (1.25.1)
|
23
23
|
mini_portile (0.6.0)
|
24
|
-
nokogiri (1.6.
|
24
|
+
nokogiri (1.6.2.1)
|
25
25
|
mini_portile (= 0.6.0)
|
26
26
|
nori (2.4.0)
|
27
27
|
rack (1.5.2)
|
data/lib/tourico/http_service.rb
CHANGED
@@ -7,6 +7,9 @@ module Tourico
|
|
7
7
|
def make_request(action, args, options = {})
|
8
8
|
puts 'Making hotels request to Tourico'
|
9
9
|
client = Savon.client do
|
10
|
+
if Tourico.proxy_url.present?
|
11
|
+
proxy Tourico.proxy_url
|
12
|
+
end
|
10
13
|
log Tourico.show_logs
|
11
14
|
wsdl Tourico.hotel_service_link
|
12
15
|
soap_header 'aut:AuthenticationHeader' => {
|
@@ -36,7 +39,10 @@ module Tourico
|
|
36
39
|
def make_request_reservation_service(action, args, options = {})
|
37
40
|
puts 'Making reservations request to Tourico'
|
38
41
|
client = Savon.client do
|
39
|
-
|
42
|
+
if Tourico.proxy_url.present?
|
43
|
+
proxy Tourico.proxy_url
|
44
|
+
end
|
45
|
+
log Tourico.show_logs
|
40
46
|
wsdl Tourico.reservation_service_link
|
41
47
|
soap_header 'web:LoginHeader' => {
|
42
48
|
'trav:username' => Tourico.login_name,
|
data/lib/tourico/version.rb
CHANGED
data/lib/tourico.rb
CHANGED
@@ -4,7 +4,7 @@ require 'tourico/http_service'
|
|
4
4
|
|
5
5
|
module Tourico
|
6
6
|
class << self
|
7
|
-
attr_accessor :login_name, :password, :culture, :hotels_service_version, :reservations_service_version, :location_service_version,:hotel_service_link,:reservation_service_link,:sandbox, :show_logs
|
7
|
+
attr_accessor :login_name, :password, :culture, :hotels_service_version, :reservations_service_version, :location_service_version,:hotel_service_link,:reservation_service_link,:sandbox, :show_logs, :proxy_url
|
8
8
|
|
9
9
|
# initializer with all the configuration values
|
10
10
|
def setup
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tourico
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.7.
|
4
|
+
version: 0.0.7.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vitali Margolin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|