easytobookr 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. data/.gitignore +18 -0
  2. data/.rspec +1 -0
  3. data/.travis.yml +11 -0
  4. data/Gemfile +4 -0
  5. data/Guardfile +10 -0
  6. data/LICENSE.txt +22 -0
  7. data/README.rdoc +68 -0
  8. data/Rakefile +33 -0
  9. data/easytobookr.gemspec +29 -0
  10. data/lib/easytobookr.rb +8 -0
  11. data/lib/easytobookr/config.rb +51 -0
  12. data/lib/easytobookr/request.rb +45 -0
  13. data/lib/easytobookr/request_methods.rb +98 -0
  14. data/lib/easytobookr/version.rb +3 -0
  15. data/spec/fixtures/response_examples/all_facilities.xml +2 -0
  16. data/spec/fixtures/response_examples/city_availability.xml +26 -0
  17. data/spec/fixtures/response_examples/city_availability_error.xml +2 -0
  18. data/spec/fixtures/response_examples/city_cheapest_room_availability.xml +2 -0
  19. data/spec/fixtures/response_examples/city_hotel_info.xml +51 -0
  20. data/spec/fixtures/response_examples/city_hotel_list.xml +26 -0
  21. data/spec/fixtures/response_examples/city_info.xml +2 -0
  22. data/spec/fixtures/response_examples/city_list.xml +1 -0
  23. data/spec/fixtures/response_examples/hotel_availability.xml +2 -0
  24. data/spec/fixtures/response_examples/hotel_facilities.xml +2 -0
  25. data/spec/fixtures/response_examples/hotel_photos.xml +2 -0
  26. data/spec/fixtures/response_examples/room_facilities.xml +2 -0
  27. data/spec/fixtures/response_examples/room_facilities_error.xml +2 -0
  28. data/spec/integration/city_info_spec.rb +16 -0
  29. data/spec/integration/city_list_spec.rb +15 -0
  30. data/spec/spec_helper.rb +24 -0
  31. data/spec/support/fixtures_helper.rb +27 -0
  32. data/spec/unit/easytobookr/config_spec.rb +27 -0
  33. data/spec/unit/easytobookr/request_methods_spec.rb +128 -0
  34. data/spec/unit/easytobookr/request_spec.rb +38 -0
  35. data/spec/unit/easytobookr_spec.rb +54 -0
  36. metadata +179 -0
metadata ADDED
@@ -0,0 +1,179 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: easytobookr
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Paul Gallagher
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-11-08 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: nokogiri
16
+ requirement: &70362868479020 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 1.4.4
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70362868479020
25
+ - !ruby/object:Gem::Dependency
26
+ name: bundler
27
+ requirement: &70362868478460 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>'
31
+ - !ruby/object:Gem::Version
32
+ version: 1.1.0
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *70362868478460
36
+ - !ruby/object:Gem::Dependency
37
+ name: rake
38
+ requirement: &70362868477960 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: 0.9.2.2
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *70362868477960
47
+ - !ruby/object:Gem::Dependency
48
+ name: rspec
49
+ requirement: &70362868477460 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 2.11.0
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: *70362868477460
58
+ - !ruby/object:Gem::Dependency
59
+ name: rdoc
60
+ requirement: &70362868476960 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ~>
64
+ - !ruby/object:Gem::Version
65
+ version: '3.11'
66
+ type: :development
67
+ prerelease: false
68
+ version_requirements: *70362868476960
69
+ - !ruby/object:Gem::Dependency
70
+ name: guard-rspec
71
+ requirement: &70362868476480 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ~>
75
+ - !ruby/object:Gem::Version
76
+ version: 2.1.1
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: *70362868476480
80
+ - !ruby/object:Gem::Dependency
81
+ name: rb-fsevent
82
+ requirement: &70362868476000 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ~>
86
+ - !ruby/object:Gem::Version
87
+ version: 0.9.2
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: *70362868476000
91
+ description: Easytobook.com API wrapper for Ruby
92
+ email:
93
+ - gallagher.paul@gmail.com
94
+ executables: []
95
+ extensions: []
96
+ extra_rdoc_files: []
97
+ files:
98
+ - .gitignore
99
+ - .rspec
100
+ - .travis.yml
101
+ - Gemfile
102
+ - Guardfile
103
+ - LICENSE.txt
104
+ - README.rdoc
105
+ - Rakefile
106
+ - easytobookr.gemspec
107
+ - lib/easytobookr.rb
108
+ - lib/easytobookr/config.rb
109
+ - lib/easytobookr/request.rb
110
+ - lib/easytobookr/request_methods.rb
111
+ - lib/easytobookr/version.rb
112
+ - spec/fixtures/response_examples/all_facilities.xml
113
+ - spec/fixtures/response_examples/city_availability.xml
114
+ - spec/fixtures/response_examples/city_availability_error.xml
115
+ - spec/fixtures/response_examples/city_cheapest_room_availability.xml
116
+ - spec/fixtures/response_examples/city_hotel_info.xml
117
+ - spec/fixtures/response_examples/city_hotel_list.xml
118
+ - spec/fixtures/response_examples/city_info.xml
119
+ - spec/fixtures/response_examples/city_list.xml
120
+ - spec/fixtures/response_examples/hotel_availability.xml
121
+ - spec/fixtures/response_examples/hotel_facilities.xml
122
+ - spec/fixtures/response_examples/hotel_photos.xml
123
+ - spec/fixtures/response_examples/room_facilities.xml
124
+ - spec/fixtures/response_examples/room_facilities_error.xml
125
+ - spec/integration/city_info_spec.rb
126
+ - spec/integration/city_list_spec.rb
127
+ - spec/spec_helper.rb
128
+ - spec/support/fixtures_helper.rb
129
+ - spec/unit/easytobookr/config_spec.rb
130
+ - spec/unit/easytobookr/request_methods_spec.rb
131
+ - spec/unit/easytobookr/request_spec.rb
132
+ - spec/unit/easytobookr_spec.rb
133
+ homepage: https://github.com/evendis/easytobookr
134
+ licenses: []
135
+ post_install_message:
136
+ rdoc_options: []
137
+ require_paths:
138
+ - lib
139
+ required_ruby_version: !ruby/object:Gem::Requirement
140
+ none: false
141
+ requirements:
142
+ - - ! '>='
143
+ - !ruby/object:Gem::Version
144
+ version: '0'
145
+ required_rubygems_version: !ruby/object:Gem::Requirement
146
+ none: false
147
+ requirements:
148
+ - - ! '>='
149
+ - !ruby/object:Gem::Version
150
+ version: '0'
151
+ requirements: []
152
+ rubyforge_project:
153
+ rubygems_version: 1.8.15
154
+ signing_key:
155
+ specification_version: 3
156
+ summary: Provides a simple interface to the easytobook.com API for hotel listings
157
+ and booking
158
+ test_files:
159
+ - spec/fixtures/response_examples/all_facilities.xml
160
+ - spec/fixtures/response_examples/city_availability.xml
161
+ - spec/fixtures/response_examples/city_availability_error.xml
162
+ - spec/fixtures/response_examples/city_cheapest_room_availability.xml
163
+ - spec/fixtures/response_examples/city_hotel_info.xml
164
+ - spec/fixtures/response_examples/city_hotel_list.xml
165
+ - spec/fixtures/response_examples/city_info.xml
166
+ - spec/fixtures/response_examples/city_list.xml
167
+ - spec/fixtures/response_examples/hotel_availability.xml
168
+ - spec/fixtures/response_examples/hotel_facilities.xml
169
+ - spec/fixtures/response_examples/hotel_photos.xml
170
+ - spec/fixtures/response_examples/room_facilities.xml
171
+ - spec/fixtures/response_examples/room_facilities_error.xml
172
+ - spec/integration/city_info_spec.rb
173
+ - spec/integration/city_list_spec.rb
174
+ - spec/spec_helper.rb
175
+ - spec/support/fixtures_helper.rb
176
+ - spec/unit/easytobookr/config_spec.rb
177
+ - spec/unit/easytobookr/request_methods_spec.rb
178
+ - spec/unit/easytobookr/request_spec.rb
179
+ - spec/unit/easytobookr_spec.rb