isotope11-suitcase 1.7.8 → 1.7.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/suitcase/configuration.rb +5 -1
- data/lib/suitcase/version.rb +1 -1
- metadata +162 -168
@@ -6,7 +6,7 @@ module Suitcase
|
|
6
6
|
class Configuration
|
7
7
|
class << self
|
8
8
|
attr_accessor :hotel_api_key, :hotel_cid, :hotel_shared_secret,
|
9
|
-
:hotwire_api_key, :hotwire_linkshare_id
|
9
|
+
:hotwire_api_key, :hotwire_linkshare_id, :use_signature_auth
|
10
10
|
|
11
11
|
attr_writer :ean_revision
|
12
12
|
attr_reader :cache
|
@@ -19,6 +19,10 @@ module Suitcase
|
|
19
19
|
@cache = Suitcase::Hotel::Cache.new(mechanism)
|
20
20
|
end
|
21
21
|
|
22
|
+
def use_signature_auth?
|
23
|
+
@use_signature_auth
|
24
|
+
end
|
25
|
+
|
22
26
|
def method_missing(method, *args, &blk)
|
23
27
|
if method.to_s =~ /(.+)\?/
|
24
28
|
send($1.to_sym)
|
data/lib/suitcase/version.rb
CHANGED
metadata
CHANGED
@@ -1,188 +1,182 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: isotope11-suitcase
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.7.9
|
4
5
|
prerelease:
|
5
|
-
version: 1.7.8
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
8
|
-
|
9
|
-
|
7
|
+
authors:
|
8
|
+
- Walter Nelson
|
9
|
+
- Tad Hosford
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
email:
|
106
|
-
|
13
|
+
date: 2012-10-09 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: minitest
|
17
|
+
requirement: &11211560 !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0'
|
23
|
+
type: :development
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: *11211560
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: mocha
|
28
|
+
requirement: &11210640 !ruby/object:Gem::Requirement
|
29
|
+
none: false
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: *11210640
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: turn
|
39
|
+
requirement: &11210080 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ! '>='
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: '0'
|
45
|
+
type: :development
|
46
|
+
prerelease: false
|
47
|
+
version_requirements: *11210080
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: chronic
|
50
|
+
requirement: &11209400 !ruby/object:Gem::Requirement
|
51
|
+
none: false
|
52
|
+
requirements:
|
53
|
+
- - ! '>='
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
type: :development
|
57
|
+
prerelease: false
|
58
|
+
version_requirements: *11209400
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
name: rake
|
61
|
+
requirement: &11208820 !ruby/object:Gem::Requirement
|
62
|
+
none: false
|
63
|
+
requirements:
|
64
|
+
- - ! '>='
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0'
|
67
|
+
type: :development
|
68
|
+
prerelease: false
|
69
|
+
version_requirements: *11208820
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: pry
|
72
|
+
requirement: &11208100 !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
type: :development
|
79
|
+
prerelease: false
|
80
|
+
version_requirements: *11208100
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: json
|
83
|
+
requirement: &11207380 !ruby/object:Gem::Requirement
|
84
|
+
none: false
|
85
|
+
requirements:
|
86
|
+
- - ! '>='
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
type: :runtime
|
90
|
+
prerelease: false
|
91
|
+
version_requirements: *11207380
|
92
|
+
- !ruby/object:Gem::Dependency
|
93
|
+
name: patron
|
94
|
+
requirement: &11206860 !ruby/object:Gem::Requirement
|
95
|
+
none: false
|
96
|
+
requirements:
|
97
|
+
- - ! '>='
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '0'
|
100
|
+
type: :runtime
|
101
|
+
prerelease: false
|
102
|
+
version_requirements: *11206860
|
103
|
+
description: Ruby library that utilizes the EAN (Expedia.com) API for locating available
|
104
|
+
hotels and the Hotwire API for rental cars.
|
105
|
+
email:
|
106
|
+
- tad@isotope11.com
|
107
107
|
executables: []
|
108
|
-
|
109
108
|
extensions: []
|
110
|
-
|
111
109
|
extra_rdoc_files: []
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
- test/support/fake_response.rb
|
110
|
+
files:
|
111
|
+
- .gitignore
|
112
|
+
- CHANGELOG.md
|
113
|
+
- Gemfile
|
114
|
+
- README.md
|
115
|
+
- Rakefile
|
116
|
+
- examples/hash_adapter.rb
|
117
|
+
- examples/hotel_image_db.rb
|
118
|
+
- examples/redis_adapter.rb
|
119
|
+
- isotope11-suitcase.gemspec
|
120
|
+
- lib/suitcase.rb
|
121
|
+
- lib/suitcase/car_rental.rb
|
122
|
+
- lib/suitcase/codes.rb
|
123
|
+
- lib/suitcase/configuration.rb
|
124
|
+
- lib/suitcase/core_ext/string.rb
|
125
|
+
- lib/suitcase/hotel.rb
|
126
|
+
- lib/suitcase/hotel/.room.rb.swp
|
127
|
+
- lib/suitcase/hotel/amenity.rb
|
128
|
+
- lib/suitcase/hotel/bed_type.rb
|
129
|
+
- lib/suitcase/hotel/cache.rb
|
130
|
+
- lib/suitcase/hotel/cancellation.rb
|
131
|
+
- lib/suitcase/hotel/ean_exception.rb
|
132
|
+
- lib/suitcase/hotel/helpers.rb
|
133
|
+
- lib/suitcase/hotel/image.rb
|
134
|
+
- lib/suitcase/hotel/location.rb
|
135
|
+
- lib/suitcase/hotel/nightly_rate.rb
|
136
|
+
- lib/suitcase/hotel/payment_option.rb
|
137
|
+
- lib/suitcase/hotel/reservation.rb
|
138
|
+
- lib/suitcase/hotel/room.rb
|
139
|
+
- lib/suitcase/hotel/session.rb
|
140
|
+
- lib/suitcase/hotel/surcharge.rb
|
141
|
+
- lib/suitcase/version.rb
|
142
|
+
- test/car_rentals/car_rental_test.rb
|
143
|
+
- test/hotels/amenity_test.rb
|
144
|
+
- test/hotels/caching_test.rb
|
145
|
+
- test/hotels/ean_exception_test.rb
|
146
|
+
- test/hotels/helpers_test.rb
|
147
|
+
- test/hotels/hotel_location_test.rb
|
148
|
+
- test/hotels/hotel_test.rb
|
149
|
+
- test/hotels/image_test.rb
|
150
|
+
- test/hotels/payment_option_test.rb
|
151
|
+
- test/hotels/reservation_test.rb
|
152
|
+
- test/hotels/room_test.rb
|
153
|
+
- test/hotels/session_test.rb
|
154
|
+
- test/keys.rb
|
155
|
+
- test/minitest_helper.rb
|
156
|
+
- test/support/fake_response.rb
|
160
157
|
homepage: http://github.com/isotope11/suitcase
|
161
158
|
licenses: []
|
162
|
-
|
163
159
|
post_install_message:
|
164
160
|
rdoc_options: []
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
161
|
+
require_paths:
|
162
|
+
- lib
|
163
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
169
164
|
none: false
|
170
|
-
requirements:
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
165
|
+
requirements:
|
166
|
+
- - ! '>='
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: '0'
|
169
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
175
170
|
none: false
|
176
|
-
requirements:
|
177
|
-
|
178
|
-
|
179
|
-
|
171
|
+
requirements:
|
172
|
+
- - ! '>='
|
173
|
+
- !ruby/object:Gem::Version
|
174
|
+
version: '0'
|
180
175
|
requirements: []
|
181
|
-
|
182
176
|
rubyforge_project:
|
183
|
-
rubygems_version: 1.8.
|
177
|
+
rubygems_version: 1.8.17
|
184
178
|
signing_key:
|
185
179
|
specification_version: 3
|
186
|
-
summary: Locates available hotels and rental cars through Expedia and Hotwire. This
|
180
|
+
summary: Locates available hotels and rental cars through Expedia and Hotwire. This
|
181
|
+
is a fork of Walter Nelson's gem - suitcase
|
187
182
|
test_files: []
|
188
|
-
|