isotope11-suitcase 1.7.6 → 1.7.7

Sign up to get free protection for your applications and to get access to all the features.
Binary file
@@ -25,20 +25,9 @@ module Suitcase
25
25
  params["confirmationNumber"] = confirmation_number
26
26
  params["reason"] = reason if valid_reason?
27
27
 
28
- uri = Cancellation.url(
29
- method: 'cancel',
30
- params: params,
31
- include_key: true,
32
- include_cid: true,
33
- secure: true
34
- )
35
-
36
- session = Patron::Session.new
37
- session.timeout = 30000
38
- session.base_url = "https://" + uri.host
39
- res = session.post uri.request_uri, {}
40
- parsed = JSON.parse res.body
41
- handle_errors(parsed)
28
+ parsed = Hotel.parse_response(Hotel.url(method: 'cancel', params: params))
29
+ Hotel.handle_errors(parsed)
30
+
42
31
  @cancellation_number = parsed["HotelRoomCancellationResponse"]["cancellationNumber"]
43
32
  end
44
33
 
@@ -71,6 +71,8 @@ module Suitcase
71
71
  params["city"] = info[:city]
72
72
  params.merge!(parameterize_rooms(@rooms))
73
73
  @rooms.each_with_index do |room, index|
74
+ binding.pry
75
+ STDOUT.puts room.inspect
74
76
  index += 1
75
77
  params["room#{index}FirstName"] = room[:first_name] || params["firstName"] # defaults to the billing
76
78
  params["room#{index}LastName"] = room[:last_name] || params["lastName"] # person's name
@@ -1,3 +1,3 @@
1
1
  module Suitcase
2
- VERSION = "1.7.6"
2
+ VERSION = "1.7.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isotope11-suitcase
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.6
4
+ version: 1.7.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-09-10 00:00:00.000000000 Z
13
+ date: 2012-09-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: minitest
17
- requirement: &18584740 !ruby/object:Gem::Requirement
17
+ requirement: &4418380 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :development
24
24
  prerelease: false
25
- version_requirements: *18584740
25
+ version_requirements: *4418380
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: mocha
28
- requirement: &18584280 !ruby/object:Gem::Requirement
28
+ requirement: &4417520 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *18584280
36
+ version_requirements: *4417520
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: turn
39
- requirement: &18583800 !ruby/object:Gem::Requirement
39
+ requirement: &4416880 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: '0'
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *18583800
47
+ version_requirements: *4416880
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: chronic
50
- requirement: &18583220 !ruby/object:Gem::Requirement
50
+ requirement: &4416200 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: '0'
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *18583220
58
+ version_requirements: *4416200
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: rake
61
- requirement: &18582720 !ruby/object:Gem::Requirement
61
+ requirement: &4415620 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ! '>='
@@ -66,10 +66,10 @@ dependencies:
66
66
  version: '0'
67
67
  type: :development
68
68
  prerelease: false
69
- version_requirements: *18582720
69
+ version_requirements: *4415620
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: pry
72
- requirement: &18581580 !ruby/object:Gem::Requirement
72
+ requirement: &4414940 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ! '>='
@@ -77,10 +77,10 @@ dependencies:
77
77
  version: '0'
78
78
  type: :development
79
79
  prerelease: false
80
- version_requirements: *18581580
80
+ version_requirements: *4414940
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: json
83
- requirement: &18581080 !ruby/object:Gem::Requirement
83
+ requirement: &4414200 !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
86
86
  - - ! '>='
@@ -88,10 +88,10 @@ dependencies:
88
88
  version: '0'
89
89
  type: :runtime
90
90
  prerelease: false
91
- version_requirements: *18581080
91
+ version_requirements: *4414200
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: patron
94
- requirement: &18580500 !ruby/object:Gem::Requirement
94
+ requirement: &4413680 !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
97
97
  - - ! '>='
@@ -99,7 +99,7 @@ dependencies:
99
99
  version: '0'
100
100
  type: :runtime
101
101
  prerelease: false
102
- version_requirements: *18580500
102
+ version_requirements: *4413680
103
103
  description: Ruby library that utilizes the EAN (Expedia.com) API for locating available
104
104
  hotels and the Hotwire API for rental cars.
105
105
  email:
@@ -123,6 +123,7 @@ files:
123
123
  - lib/suitcase/configuration.rb
124
124
  - lib/suitcase/core_ext/string.rb
125
125
  - lib/suitcase/hotel.rb
126
+ - lib/suitcase/hotel/.room.rb.swp
126
127
  - lib/suitcase/hotel/amenity.rb
127
128
  - lib/suitcase/hotel/bed_type.rb
128
129
  - lib/suitcase/hotel/cache.rb
@@ -165,18 +166,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
165
166
  - - ! '>='
166
167
  - !ruby/object:Gem::Version
167
168
  version: '0'
168
- segments:
169
- - 0
170
- hash: -1403295208779248586
171
169
  required_rubygems_version: !ruby/object:Gem::Requirement
172
170
  none: false
173
171
  requirements:
174
172
  - - ! '>='
175
173
  - !ruby/object:Gem::Version
176
174
  version: '0'
177
- segments:
178
- - 0
179
- hash: -1403295208779248586
180
175
  requirements: []
181
176
  rubyforge_project:
182
177
  rubygems_version: 1.8.17