rthbound-suitcase 1.7.4 → 1.7.5

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.
@@ -122,10 +122,11 @@ module Suitcase
122
122
  end
123
123
  update_session(raw, session)
124
124
 
125
- [split(raw)].flatten.map do |hotel_data|
125
+ hotels = [split(raw)].flatten.map do |hotel_data|
126
126
  h = Hotel.new(parse_information(hotel_data))
127
127
  h
128
- end;hotels.first.raw = parsed
128
+ end;hotels.first.raw = raw
129
+ hotels
129
130
  end
130
131
 
131
132
  # Public: Find a hotel by info other than it's id.
@@ -178,6 +179,7 @@ module Suitcase
178
179
  Configuration.cache.save_query(:list, params, parsed)
179
180
  end
180
181
  end
182
+
181
183
  hotels = [split(parsed)].flatten.map do |hotel_data|
182
184
  h = Hotel.new(parse_information(hotel_data))
183
185
  end;hotels.first.raw = parsed
@@ -1,3 +1,3 @@
1
1
  module Suitcase
2
- VERSION = "1.7.4"
2
+ VERSION = "1.7.5"
3
3
  end
data/test/keys.rb CHANGED
@@ -6,8 +6,8 @@
6
6
  # Or configure with a block:
7
7
 
8
8
  Suitcase.configure do |config|
9
- config.hotel_api_key = ""
10
- config.hotel_cid = ""
9
+ config.hotel_api_key = ENV['EAN_KEY']
10
+ config.hotel_cid = ENV['EAN_CID']
11
11
 
12
12
  config.hotwire_api_key = ""
13
13
  # config.hotel_shared_secret = "none"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rthbound-suitcase
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.4
4
+ version: 1.7.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-09-08 00:00:00.000000000 Z
13
+ date: 2012-09-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: minitest
@@ -206,7 +206,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
206
206
  version: '0'
207
207
  segments:
208
208
  - 0
209
- hash: 1281791773025093274
209
+ hash: 3047620281659721395
210
210
  required_rubygems_version: !ruby/object:Gem::Requirement
211
211
  none: false
212
212
  requirements:
@@ -215,7 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
215
215
  version: '0'
216
216
  segments:
217
217
  - 0
218
- hash: 1281791773025093274
218
+ hash: 3047620281659721395
219
219
  requirements: []
220
220
  rubyforge_project:
221
221
  rubygems_version: 1.8.24