tourico 0.0.7.5 → 0.0.7.6

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
  SHA1:
3
- metadata.gz: 2ceb51a027782329803bfe792ea070744c883d16
4
- data.tar.gz: 1ce200bc624d3ea5922dc69f1c388ef0e12e2f19
3
+ metadata.gz: fa3656de1677537f4d81a58ac2fad64b8a53a019
4
+ data.tar.gz: 2f40c6871776d245b91b704106638b64b46b035a
5
5
  SHA512:
6
- metadata.gz: 15fe1dbdfd26c2a7ac4d1e21278bf1978c4b7506e003e4b8e01f18f4690e47dae7a8684b81e5a8e37255be4f758b5c0012ae410aff0135f381a1e8fe62259d84
7
- data.tar.gz: 3389c772496f6ed96573138b7b30323031bacb963339ae7052a85e2a4c0fdfe085e919085d916b89c7eae0800fb7037b0b6b5cd9af78e248bf470e2b9d306e17
6
+ metadata.gz: 03547097b954ae753a0596631166cf9961edb22124569ed714b132b015a81079064dcba43e22d1b2b7eabccafa4ddfcd3644096ab51ce7187e016d82782d9c4b
7
+ data.tar.gz: d5ad3b32f1a84d2b2182997e700ed7d1a4f7dd268a46205d7e57ebe28c9b5c84d54100ad7c6cef6ed0285727ae99abdc42c9828d92e7dd27381e312239dde265
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tourico (0.0.7.5)
4
+ tourico (0.0.7.6)
5
5
  savon (~> 2.5.0)
6
6
 
7
7
  GEM
@@ -14,14 +14,13 @@ GEM
14
14
  diff-lcs (1.2.5)
15
15
  gyoku (1.1.1)
16
16
  builder (>= 2.1.2)
17
- httpi (2.1.0)
17
+ httpi (2.1.1)
18
18
  rack
19
19
  rubyntlm (~> 0.3.2)
20
20
  macaddr (1.7.1)
21
21
  systemu (~> 2.6.2)
22
- mime-types (1.25.1)
23
22
  mini_portile (0.6.0)
24
- nokogiri (1.6.2.1)
23
+ nokogiri (1.6.3.1)
25
24
  mini_portile (= 0.6.0)
26
25
  nori (2.4.0)
27
26
  rack (1.5.2)
@@ -47,9 +46,8 @@ GEM
47
46
  systemu (2.6.4)
48
47
  uuid (2.3.7)
49
48
  macaddr (~> 1.0)
50
- wasabi (3.3.0)
49
+ wasabi (3.3.1)
51
50
  httpi (~> 2.0)
52
- mime-types (< 2.0.0)
53
51
  nokogiri (>= 1.4.0)
54
52
 
55
53
  PLATFORMS
@@ -9,7 +9,10 @@ module Tourico
9
9
  client = Savon.client do
10
10
  if Tourico.proxy_url.present?
11
11
  proxy Tourico.proxy_url
12
- end
12
+ end
13
+ if Tourico.digest_auth.present?
14
+ digest_auth(Tourico.digest_auth[:username], Tourico.digest_auth[:password])
15
+ end
13
16
  log Tourico.show_logs
14
17
  wsdl Tourico.hotel_service_link
15
18
  soap_header 'aut:AuthenticationHeader' => {
@@ -41,7 +44,8 @@ module Tourico
41
44
  client = Savon.client do
42
45
  if Tourico.proxy_url.present?
43
46
  proxy Tourico.proxy_url
44
- end
47
+ end
48
+ digest_auth('proxy_user', 'r00merhas1t!')
45
49
  log Tourico.show_logs
46
50
  wsdl Tourico.reservation_service_link
47
51
  soap_header 'web:LoginHeader' => {
@@ -1,3 +1,3 @@
1
1
  module Tourico
2
- VERSION = '0.0.7.5'
2
+ VERSION = '0.0.7.6'
3
3
  end
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, :proxy_url
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, :digest_auth
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.5
4
+ version: 0.0.7.6
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-18 00:00:00.000000000 Z
11
+ date: 2014-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake