tourico 0.0.3 → 0.0.4

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tourico (0.0.3)
4
+ tourico (0.0.4)
5
5
  savon (~> 1.2.0)
6
6
 
7
7
  GEM
@@ -2,13 +2,11 @@ require 'savon'
2
2
 
3
3
  module Tourico
4
4
  module HTTPService
5
- API_HOTEL_SERVICE_LINK = 'http://demo-hotelws.touricoholidays.com/HotelFlow.svc?wsdl'
6
- API_RESERVATION_SERVICE_LINK = 'http://demo-wsnew.touricoholidays.com/reservationsservice.asmx?wsdl'
7
5
 
8
6
  class << self
9
7
  def make_request(action, args, options = {})
10
8
 
11
- client = Savon::Client.new(API_HOTEL_SERVICE_LINK)
9
+ client = Savon::Client.new(Tourico.hotel_service_link)
12
10
 
13
11
  response = client.request :hot, action do
14
12
 
@@ -39,7 +37,7 @@ module Tourico
39
37
 
40
38
  def make_request_reservation_service(action, args, options = {})
41
39
 
42
- client = Savon::Client.new(API_RESERVATION_SERVICE_LINK)
40
+ client = Savon::Client.new(Tourico.hotel_service_link)
43
41
 
44
42
  response = client.request :hot, action do
45
43
 
@@ -1,3 +1,3 @@
1
1
  module Tourico
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
data/lib/tourico.rb CHANGED
@@ -4,10 +4,13 @@ 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
7
+ attr_accessor :login_name, :password, :culture, :hotels_service_version, :reservations_service_version, :location_service_version,:hotel_service_link,:reservation_service_link,:sandbox
8
8
 
9
9
  # initializer with all the configuration values
10
10
  def setup
11
+ self.sandbox = true
12
+ self.hotel_service_link = 'http://demo-hotelws.touricoholidays.com/HotelFlow.svc?wsdl'
13
+ self.reservation_service_link = 'http://demo-wsnew.touricoholidays.com/reservationsservice.asmx?wsdl'
11
14
  yield self
12
15
  end
13
16
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tourico
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-29 00:00:00.000000000 Z
12
+ date: 2013-10-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -78,7 +78,6 @@ files:
78
78
  - lib/tourico/http_service.rb
79
79
  - lib/tourico/version.rb
80
80
  - pkg/tourico-0.0.1.gem
81
- - pkg/tourico-0.0.3.gem
82
81
  - spec/models/api_spec.rb
83
82
  - spec/spec_helper.rb
84
83
  - spec/tourico_spec.rb
@@ -98,7 +97,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
98
97
  version: '0'
99
98
  segments:
100
99
  - 0
101
- hash: -3025441895499345331
100
+ hash: 1423128929547412604
102
101
  required_rubygems_version: !ruby/object:Gem::Requirement
103
102
  none: false
104
103
  requirements:
@@ -107,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
106
  version: '0'
108
107
  segments:
109
108
  - 0
110
- hash: -3025441895499345331
109
+ hash: 1423128929547412604
111
110
  requirements: []
112
111
  rubyforge_project:
113
112
  rubygems_version: 1.8.24
Binary file