hostconnect 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ .bundle
2
+ doc/*
3
+ pkg/*
4
+ coverage
5
+ test.rb
6
+ Manifest
7
+ *.dtd
8
+ *.gem
data/CHANGELOG CHANGED
@@ -1,3 +1,4 @@
1
+ v0.1.8 Moved to bundler for dependencies
1
2
  v0.1.7 Updated copyright information
2
3
  v0.1.6 Correct handling of prices
3
4
  v0.1.5 Fixed floating point bug
data/Gemfile ADDED
@@ -0,0 +1,11 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem "activesupport", "~> 2.3.10"
4
+ gem "builder", "2.1.2"
5
+ gem "hpricot"
6
+ gem "rtf"
7
+
8
+ group :development do
9
+ gem "rcov"
10
+ gem "rspec", "~> 2.1.0"
11
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,28 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ activesupport (2.3.10)
5
+ builder (2.1.2)
6
+ diff-lcs (1.1.2)
7
+ hpricot (0.8.3)
8
+ rcov (0.9.9)
9
+ rspec (2.1.0)
10
+ rspec-core (~> 2.1.0)
11
+ rspec-expectations (~> 2.1.0)
12
+ rspec-mocks (~> 2.1.0)
13
+ rspec-core (2.1.0)
14
+ rspec-expectations (2.1.0)
15
+ diff-lcs (~> 1.1.2)
16
+ rspec-mocks (2.1.0)
17
+ rtf (0.1.0)
18
+
19
+ PLATFORMS
20
+ ruby
21
+
22
+ DEPENDENCIES
23
+ activesupport (~> 2.3.10)
24
+ builder (= 2.1.2)
25
+ hpricot
26
+ rcov
27
+ rspec (~> 2.1.0)
28
+ rtf
data/MIT-LICENSE CHANGED
@@ -1,22 +1,22 @@
1
- Copyright (c) 2007-2010 Bjørn Arild Mæland
2
-
3
- Permission is hereby granted, free of charge, to any person
4
- obtaining a copy of this software and associated documentation
5
- files (the "Software"), to deal in the Software without
6
- restriction, including without limitation the rights to use,
7
- copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- copies of the Software, and to permit persons to whom the
9
- Software is furnished to do so, subject to the following
10
- conditions:
11
-
12
- The above copyright notice and this permission notice shall be
13
- included in all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
- OTHER DEALINGS IN THE SOFTWARE.
1
+ Copyright (c) 2007-2010 Bjørn Arild Mæland
2
+
3
+ Permission is hereby granted, free of charge, to any person
4
+ obtaining a copy of this software and associated documentation
5
+ files (the "Software"), to deal in the Software without
6
+ restriction, including without limitation the rights to use,
7
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the
9
+ Software is furnished to do so, subject to the following
10
+ conditions:
11
+
12
+ The above copyright notice and this permission notice shall be
13
+ included in all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
+ OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile CHANGED
@@ -3,41 +3,21 @@
3
3
 
4
4
  require 'rubygems'
5
5
  require 'rake'
6
- require 'spec/rake/spectask'
7
6
  require 'rake/rdoctask'
8
- require 'echoe'
9
-
10
- PROJECT = 'hostconnect'
11
-
12
- Echoe.new(PROJECT) do |p|
13
- p.author = "Bjørn Arild Mæland"
14
- p.summary = "Library for interfacing with Tourplan's hostConnect software,
15
- which is a web service interface for tour booking."
16
- p.url = "http://www.github.com/Chrononaut/hostconnect/"
17
- p.dependencies = ["activesupport", "hpricot", "builder", "rtf"]
18
- p.ignore_pattern = FileList[".gitignore"]
19
- p.include_rakefile = true
20
- end
7
+ require 'rspec/core/rake_task'
21
8
 
22
9
  task :default => 'spec'
23
10
 
24
11
  desc "Run specifications"
25
- Spec::Rake::SpecTask.new('spec') do |t|
26
- t.spec_opts = ["--format", "specdoc", "--colour"]
27
- t.spec_files = FileList[(ENV['FILES'] || 'spec/**/*_spec.rb')]
12
+ RSpec::Core::RakeTask.new('spec') do |t|
28
13
  unless ENV["NO_RCOV"]
29
- #t.rcov = true
14
+ t.rcov = true
30
15
  t.rcov_opts = ['--exclude', 'spec']
31
16
  end
32
17
  end
33
18
 
34
- desc "Create spec docs"
35
- Spec::Rake::SpecTask.new('spec_docs') do |t|
36
- t.spec_opts = ["--format", "html:spec_docs.html"]
37
- t.spec_files = FileList[(ENV['FILES'] || 'spec/**/*_spec.rb')]
38
- end
39
-
40
- DOCUMENTED_FILES = FileList['README.markdown', 'MIT-LICENSE', 'lib/**/*.rb']
19
+ DOCUMENTED_FILES = FileList['CHANGELOG', 'README.markdown',
20
+ 'MIT-LICENSE', 'lib/**/*.rb']
41
21
 
42
22
  desc "Generate Documentation"
43
23
  Rake::RDocTask.new do |rdoc|
data/hostconnect.gemspec CHANGED
@@ -1,44 +1,29 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
+ require "lib/hostconnect"
4
+
3
5
  Gem::Specification.new do |s|
4
6
  s.name = %q{hostconnect}
5
- s.version = "0.1.7"
7
+ s.version = HostConnect::Version.combined
8
+ s.platform = Gem::Platform::RUBY
6
9
  s.authors = ["Bjørn Arild Mæland"]
7
- s.date = %q{2008-12-02}
8
10
  s.description = %q{Library for interfacing with Tourplan's hostConnect software, which is a web service interface for tour booking.}
11
+ s.summary = %q{Library for interfacing with Tourplan's hostConnect software, which is a web service interface for tour booking.}
9
12
  s.email = %q{bjorn.maeland@gmail.com}
10
- s.extra_rdoc_files = ["README.markdown", "CHANGELOG", "lib/hostconnect.rb", "lib/hostconnect/builders/agent_info_builder.rb", "lib/hostconnect/builders/pax_details_builder.rb", "lib/hostconnect/builders/record_booking_payment_builder.rb", "lib/hostconnect/builders/add_service_builder.rb", "lib/hostconnect/builders/room_config_builder.rb", "lib/hostconnect/builders/get_booking_builder.rb", "lib/hostconnect/builders/get_services_builder.rb", "lib/hostconnect/builders/get_system_settings_builder.rb", "lib/hostconnect/builders/get_locations_builder.rb", "lib/hostconnect/builders/new_booking_info_builder.rb", "lib/hostconnect/builders/suppler_info_builder.rb", "lib/hostconnect/builders/list_bookings_builder.rb", "lib/hostconnect/builders/option_info_builder.rb", "lib/hostconnect/builders/get_booking_payment_summary_builder.rb", "lib/hostconnect/builders/service_line_note_builder.rb", "lib/hostconnect/builders/ping_builder.rb", "lib/hostconnect/coercion.rb", "lib/hostconnect/core_extensions/string.rb", "lib/hostconnect/core_extensions/symbol.rb", "lib/hostconnect/translation.rb", "lib/hostconnect/responses/agent_info.rb", "lib/hostconnect/responses/get_services.rb", "lib/hostconnect/responses/list_bookings.rb", "lib/hostconnect/responses/get_locations.rb", "lib/hostconnect/responses/get_booking.rb", "lib/hostconnect/responses/record_booking_payment.rb", "lib/hostconnect/responses/option_info.rb", "lib/hostconnect/responses/get_booking_payment_summary.rb", "lib/hostconnect/responses/add_service.rb", "lib/hostconnect/responses/supplier_info.rb", "lib/hostconnect/responses/get_system_settings.rb", "lib/hostconnect/responses/ping.rb", "lib/hostconnect/rtf_document.rb", "lib/hostconnect/builder.rb", "lib/hostconnect/client.rb", "lib/hostconnect/response.rb"]
11
- s.files = ["Rakefile", "README.markdown", "CHANGELOG", "hostconnect.gemspec", "lib/hostconnect.rb", "lib/hostconnect/builders/agent_info_builder.rb", "lib/hostconnect/builders/pax_details_builder.rb", "lib/hostconnect/builders/record_booking_payment_builder.rb", "lib/hostconnect/builders/add_service_builder.rb", "lib/hostconnect/builders/room_config_builder.rb", "lib/hostconnect/builders/get_booking_builder.rb", "lib/hostconnect/builders/get_services_builder.rb", "lib/hostconnect/builders/get_system_settings_builder.rb", "lib/hostconnect/builders/get_locations_builder.rb", "lib/hostconnect/builders/new_booking_info_builder.rb", "lib/hostconnect/builders/suppler_info_builder.rb", "lib/hostconnect/builders/list_bookings_builder.rb", "lib/hostconnect/builders/option_info_builder.rb", "lib/hostconnect/builders/get_booking_payment_summary_builder.rb", "lib/hostconnect/builders/service_line_note_builder.rb", "lib/hostconnect/builders/ping_builder.rb", "lib/hostconnect/coercion.rb", "lib/hostconnect/core_extensions/string.rb", "lib/hostconnect/core_extensions/symbol.rb", "lib/hostconnect/translation.rb", "lib/hostconnect/responses/agent_info.rb", "lib/hostconnect/responses/get_services.rb", "lib/hostconnect/responses/list_bookings.rb", "lib/hostconnect/responses/get_locations.rb", "lib/hostconnect/responses/get_booking.rb", "lib/hostconnect/responses/record_booking_payment.rb", "lib/hostconnect/responses/option_info.rb", "lib/hostconnect/responses/get_booking_payment_summary.rb", "lib/hostconnect/responses/add_service.rb", "lib/hostconnect/responses/supplier_info.rb", "lib/hostconnect/responses/get_system_settings.rb", "lib/hostconnect/responses/ping.rb", "lib/hostconnect/rtf_document.rb", "lib/hostconnect/builder.rb", "lib/hostconnect/client.rb", "lib/hostconnect/response.rb", "MIT-LICENSE", "spec/builders/new_booking_info_builder_spec.rb", "spec/builders/ping_builder_spec.rb", "spec/builders/get_locations_builder_spec.rb", "spec/builders/add_service_builder_spec.rb", "spec/builders/room_config_builder_spec.rb", "spec/builders/option_info_builder_spec.rb", "spec/builders/agent_info_builder_spec.rb", "spec/builders/pax_details_builder_spec.rb", "spec/spec_helper.rb", "spec/fixtures/requests/ping.xml", "spec/fixtures/requests/agent_info.xml", "spec/fixtures/requests/option_info/hotel_search_total_stay_price.xml", "spec/fixtures/requests/option_info/option_number.xml", "spec/fixtures/requests/option_info/hotel_search.xml", "spec/fixtures/requests/get_locations.xml", "spec/fixtures/requests/add_service_request/hotel_booking.xml", "spec/fixtures/responses/ping.xml", "spec/fixtures/responses/agent_info.xml", "spec/fixtures/responses/agent_info_error.xml", "spec/fixtures/responses/get_booking.xml", "spec/fixtures/responses/option_info/tours.xml", "spec/fixtures/responses/option_info/hotel_search_with_stay_price.xml", "spec/fixtures/responses/option_info/option_number.xml", "spec/fixtures/responses/option_info/hotel_price.xml", "spec/fixtures/responses/option_info/hotel_search.xml", "spec/fixtures/responses/get_system_settings.xml", "spec/fixtures/responses/add_service.xml", "spec/fixtures/responses/get_locations.xml", "spec/client_spec.rb", "spec/core_extensions_spec.rb", "spec/responses/get_booking_spec.rb", "spec/responses/get_system_settings_spec.rb", "spec/responses/agent_info_spec.rb", "spec/responses/option_info_spec.rb", "spec/responses/add_service_spec.rb", "spec/responses/ping_spec.rb", "spec/responses/get_locations_spec.rb", "spec/translation_spec.rb", "spec/coercion_spec.rb"]
13
+ s.files = `git ls-files`.split("\n")
14
+ s.test_files = `git ls-files -- spec`.split("\n")
12
15
  s.has_rdoc = true
13
- s.homepage = %q{http://www.github.com/bmaland/hostconnect/}
16
+ s.homepage = %q{http://github.com/bmaland/hostconnect/}
14
17
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Hostconnect", "--main", "README.markdown"]
15
- s.require_paths = ["lib"]
18
+ s.require_path = "lib"
16
19
  s.rubyforge_project = %q{hostconnect}
17
- s.rubygems_version = %q{1.3.1}
18
- s.summary = %q{Library for interfacing with Tourplan's hostConnect software, which is a web service interface for tour booking.}
20
+ s.required_rubygems_version = ">= 1.3.6"
19
21
 
20
- if s.respond_to? :specification_version then
21
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
22
- s.specification_version = 2
22
+ s.add_dependency "activesupport", "~> 2.3.10"
23
+ s.add_dependency "builder", "2.1.2"
24
+ s.add_dependency "hpricot"
25
+ s.add_dependency "rtf"
23
26
 
24
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
25
- s.add_runtime_dependency(%q<activesupport>, [">= 0"])
26
- s.add_runtime_dependency(%q<hpricot>, [">= 0"])
27
- s.add_runtime_dependency(%q<builder>, [">= 0"])
28
- s.add_runtime_dependency(%q<rtf>, [">= 0"])
29
- s.add_development_dependency(%q<echoe>, [">= 0"])
30
- else
31
- s.add_dependency(%q<activesupport>, [">= 0"])
32
- s.add_dependency(%q<hpricot>, [">= 0"])
33
- s.add_dependency(%q<builder>, [">= 0"])
34
- s.add_dependency(%q<rtf>, [">= 0"])
35
- s.add_dependency(%q<echoe>, [">= 0"])
36
- end
37
- else
38
- s.add_dependency(%q<activesupport>, [">= 0"])
39
- s.add_dependency(%q<hpricot>, [">= 0"])
40
- s.add_dependency(%q<builder>, [">= 0"])
41
- s.add_dependency(%q<rtf>, [">= 0"])
42
- s.add_dependency(%q<echoe>, [">= 0"])
43
- end
27
+ s.add_development_dependency "rcov"
28
+ s.add_development_dependency "rspec", "~> 2.1.0"
44
29
  end
data/lib/hostconnect.rb CHANGED
@@ -5,8 +5,11 @@ pwd = File.dirname(__FILE__)
5
5
  # without specifying a full path.
6
6
  $LOAD_PATH.unshift(pwd)
7
7
 
8
+ require "rubygems"
9
+ require "bundler/setup"
10
+
8
11
  # Require dependencies
9
- %w[rubygems net/https builder date time ostruct hpricot rtf
12
+ %w[net/https builder date time ostruct hpricot rtf
10
13
  active_support yaml logger].each { |lib| require lib }
11
14
 
12
15
  # Require HostConnect files
@@ -23,7 +26,7 @@ module HostConnect
23
26
  module Version
24
27
  MAJOR = '0'
25
28
  MINOR = '1'
26
- REVISION = '6'
29
+ REVISION = '8'
27
30
  def self.combined
28
31
  [MAJOR, MINOR, REVISION].join('.')
29
32
  end
data/log/.gitignore ADDED
@@ -0,0 +1 @@
1
+ *.log
data/spec/client_spec.rb CHANGED
@@ -4,17 +4,17 @@ describe HostConnect::Client do
4
4
  it "should have a http connection" do
5
5
  Client.http_connection.should be_an_instance_of(Net::HTTP)
6
6
  end
7
-
7
+
8
8
  it "should post xml requests" do
9
9
  request = File.read("./spec/fixtures/requests/ping.xml")
10
10
  response = File.read("./spec/fixtures/responses/ping.xml")
11
11
  config = HostConnect.config
12
-
12
+
13
13
  Net::HTTP::Post.should_receive(:new).with(config.path).and_return({})
14
- mock = mock("response", :null_object => true)
14
+ mock = mock("response").as_null_object
15
15
  mock.stub!(:body).and_return(response)
16
16
  Client.http_connection.should_receive(:request).and_return(mock)
17
-
17
+
18
18
  Client.post_xml_request(request).should == response
19
19
  end
20
20
  end
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require 'rubygems'
2
+ require 'bundler/setup'
2
3
  require 'pp'
3
- require 'spec'
4
+ require 'rspec'
4
5
 
5
6
  require "./lib/hostconnect.rb"
6
7
  include HostConnect
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hostconnect
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 7
10
- version: 0.1.7
9
+ - 8
10
+ version: 0.1.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Bj\xC3\xB8rn Arild M\xC3\xA6land"
@@ -15,39 +15,42 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2008-12-02 00:00:00 +01:00
18
+ date: 2010-11-22 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- name: activesupport
23
22
  prerelease: false
24
23
  requirement: &id001 !ruby/object:Gem::Requirement
25
24
  none: false
26
25
  requirements:
27
- - - ">="
26
+ - - ~>
28
27
  - !ruby/object:Gem::Version
29
- hash: 3
28
+ hash: 23
30
29
  segments:
31
- - 0
32
- version: "0"
30
+ - 2
31
+ - 3
32
+ - 10
33
+ version: 2.3.10
33
34
  type: :runtime
34
35
  version_requirements: *id001
36
+ name: activesupport
35
37
  - !ruby/object:Gem::Dependency
36
- name: hpricot
37
38
  prerelease: false
38
39
  requirement: &id002 !ruby/object:Gem::Requirement
39
40
  none: false
40
41
  requirements:
41
- - - ">="
42
+ - - "="
42
43
  - !ruby/object:Gem::Version
43
- hash: 3
44
+ hash: 15
44
45
  segments:
45
- - 0
46
- version: "0"
46
+ - 2
47
+ - 1
48
+ - 2
49
+ version: 2.1.2
47
50
  type: :runtime
48
51
  version_requirements: *id002
49
- - !ruby/object:Gem::Dependency
50
52
  name: builder
53
+ - !ruby/object:Gem::Dependency
51
54
  prerelease: false
52
55
  requirement: &id003 !ruby/object:Gem::Requirement
53
56
  none: false
@@ -60,8 +63,8 @@ dependencies:
60
63
  version: "0"
61
64
  type: :runtime
62
65
  version_requirements: *id003
66
+ name: hpricot
63
67
  - !ruby/object:Gem::Dependency
64
- name: rtf
65
68
  prerelease: false
66
69
  requirement: &id004 !ruby/object:Gem::Requirement
67
70
  none: false
@@ -74,8 +77,8 @@ dependencies:
74
77
  version: "0"
75
78
  type: :runtime
76
79
  version_requirements: *id004
80
+ name: rtf
77
81
  - !ruby/object:Gem::Dependency
78
- name: echoe
79
82
  prerelease: false
80
83
  requirement: &id005 !ruby/object:Gem::Requirement
81
84
  none: false
@@ -88,136 +91,119 @@ dependencies:
88
91
  version: "0"
89
92
  type: :development
90
93
  version_requirements: *id005
94
+ name: rcov
95
+ - !ruby/object:Gem::Dependency
96
+ prerelease: false
97
+ requirement: &id006 !ruby/object:Gem::Requirement
98
+ none: false
99
+ requirements:
100
+ - - ~>
101
+ - !ruby/object:Gem::Version
102
+ hash: 11
103
+ segments:
104
+ - 2
105
+ - 1
106
+ - 0
107
+ version: 2.1.0
108
+ type: :development
109
+ version_requirements: *id006
110
+ name: rspec
91
111
  description: Library for interfacing with Tourplan's hostConnect software, which is a web service interface for tour booking.
92
112
  email: bjorn.maeland@gmail.com
93
113
  executables: []
94
114
 
95
115
  extensions: []
96
116
 
97
- extra_rdoc_files:
98
- - README.markdown
117
+ extra_rdoc_files: []
118
+
119
+ files:
120
+ - .gitignore
99
121
  - CHANGELOG
122
+ - Gemfile
123
+ - Gemfile.lock
124
+ - MIT-LICENSE
125
+ - README.markdown
126
+ - Rakefile
127
+ - hostconnect.gemspec
100
128
  - lib/hostconnect.rb
101
- - lib/hostconnect/builders/agent_info_builder.rb
102
- - lib/hostconnect/builders/pax_details_builder.rb
103
- - lib/hostconnect/builders/record_booking_payment_builder.rb
129
+ - lib/hostconnect/builder.rb
104
130
  - lib/hostconnect/builders/add_service_builder.rb
105
- - lib/hostconnect/builders/room_config_builder.rb
131
+ - lib/hostconnect/builders/agent_info_builder.rb
106
132
  - lib/hostconnect/builders/get_booking_builder.rb
133
+ - lib/hostconnect/builders/get_booking_payment_summary_builder.rb
134
+ - lib/hostconnect/builders/get_locations_builder.rb
107
135
  - lib/hostconnect/builders/get_services_builder.rb
108
136
  - lib/hostconnect/builders/get_system_settings_builder.rb
109
- - lib/hostconnect/builders/get_locations_builder.rb
110
- - lib/hostconnect/builders/new_booking_info_builder.rb
111
- - lib/hostconnect/builders/suppler_info_builder.rb
112
137
  - lib/hostconnect/builders/list_bookings_builder.rb
138
+ - lib/hostconnect/builders/new_booking_info_builder.rb
113
139
  - lib/hostconnect/builders/option_info_builder.rb
114
- - lib/hostconnect/builders/get_booking_payment_summary_builder.rb
115
- - lib/hostconnect/builders/service_line_note_builder.rb
116
- - lib/hostconnect/builders/ping_builder.rb
117
- - lib/hostconnect/coercion.rb
118
- - lib/hostconnect/core_extensions/string.rb
119
- - lib/hostconnect/core_extensions/symbol.rb
120
- - lib/hostconnect/translation.rb
121
- - lib/hostconnect/responses/agent_info.rb
122
- - lib/hostconnect/responses/get_services.rb
123
- - lib/hostconnect/responses/list_bookings.rb
124
- - lib/hostconnect/responses/get_locations.rb
125
- - lib/hostconnect/responses/get_booking.rb
126
- - lib/hostconnect/responses/record_booking_payment.rb
127
- - lib/hostconnect/responses/option_info.rb
128
- - lib/hostconnect/responses/get_booking_payment_summary.rb
129
- - lib/hostconnect/responses/add_service.rb
130
- - lib/hostconnect/responses/supplier_info.rb
131
- - lib/hostconnect/responses/get_system_settings.rb
132
- - lib/hostconnect/responses/ping.rb
133
- - lib/hostconnect/rtf_document.rb
134
- - lib/hostconnect/builder.rb
135
- - lib/hostconnect/client.rb
136
- - lib/hostconnect/response.rb
137
- files:
138
- - Rakefile
139
- - README.markdown
140
- - CHANGELOG
141
- - hostconnect.gemspec
142
- - lib/hostconnect.rb
143
- - lib/hostconnect/builders/agent_info_builder.rb
144
140
  - lib/hostconnect/builders/pax_details_builder.rb
141
+ - lib/hostconnect/builders/ping_builder.rb
145
142
  - lib/hostconnect/builders/record_booking_payment_builder.rb
146
- - lib/hostconnect/builders/add_service_builder.rb
147
143
  - lib/hostconnect/builders/room_config_builder.rb
148
- - lib/hostconnect/builders/get_booking_builder.rb
149
- - lib/hostconnect/builders/get_services_builder.rb
150
- - lib/hostconnect/builders/get_system_settings_builder.rb
151
- - lib/hostconnect/builders/get_locations_builder.rb
152
- - lib/hostconnect/builders/new_booking_info_builder.rb
153
- - lib/hostconnect/builders/suppler_info_builder.rb
154
- - lib/hostconnect/builders/list_bookings_builder.rb
155
- - lib/hostconnect/builders/option_info_builder.rb
156
- - lib/hostconnect/builders/get_booking_payment_summary_builder.rb
157
144
  - lib/hostconnect/builders/service_line_note_builder.rb
158
- - lib/hostconnect/builders/ping_builder.rb
145
+ - lib/hostconnect/builders/suppler_info_builder.rb
146
+ - lib/hostconnect/client.rb
159
147
  - lib/hostconnect/coercion.rb
160
148
  - lib/hostconnect/core_extensions/string.rb
161
149
  - lib/hostconnect/core_extensions/symbol.rb
162
- - lib/hostconnect/translation.rb
150
+ - lib/hostconnect/response.rb
151
+ - lib/hostconnect/responses/add_service.rb
163
152
  - lib/hostconnect/responses/agent_info.rb
164
- - lib/hostconnect/responses/get_services.rb
165
- - lib/hostconnect/responses/list_bookings.rb
166
- - lib/hostconnect/responses/get_locations.rb
167
153
  - lib/hostconnect/responses/get_booking.rb
168
- - lib/hostconnect/responses/record_booking_payment.rb
169
- - lib/hostconnect/responses/option_info.rb
170
154
  - lib/hostconnect/responses/get_booking_payment_summary.rb
171
- - lib/hostconnect/responses/add_service.rb
172
- - lib/hostconnect/responses/supplier_info.rb
155
+ - lib/hostconnect/responses/get_locations.rb
156
+ - lib/hostconnect/responses/get_services.rb
173
157
  - lib/hostconnect/responses/get_system_settings.rb
158
+ - lib/hostconnect/responses/list_bookings.rb
159
+ - lib/hostconnect/responses/option_info.rb
174
160
  - lib/hostconnect/responses/ping.rb
161
+ - lib/hostconnect/responses/record_booking_payment.rb
162
+ - lib/hostconnect/responses/supplier_info.rb
175
163
  - lib/hostconnect/rtf_document.rb
176
- - lib/hostconnect/builder.rb
177
- - lib/hostconnect/client.rb
178
- - lib/hostconnect/response.rb
179
- - MIT-LICENSE
180
- - spec/builders/new_booking_info_builder_spec.rb
181
- - spec/builders/ping_builder_spec.rb
182
- - spec/builders/get_locations_builder_spec.rb
164
+ - lib/hostconnect/translation.rb
165
+ - log/.gitignore
183
166
  - spec/builders/add_service_builder_spec.rb
184
- - spec/builders/room_config_builder_spec.rb
185
- - spec/builders/option_info_builder_spec.rb
186
167
  - spec/builders/agent_info_builder_spec.rb
168
+ - spec/builders/get_locations_builder_spec.rb
169
+ - spec/builders/new_booking_info_builder_spec.rb
170
+ - spec/builders/option_info_builder_spec.rb
187
171
  - spec/builders/pax_details_builder_spec.rb
188
- - spec/spec_helper.rb
189
- - spec/fixtures/requests/ping.xml
172
+ - spec/builders/ping_builder_spec.rb
173
+ - spec/builders/room_config_builder_spec.rb
174
+ - spec/client_spec.rb
175
+ - spec/coercion_spec.rb
176
+ - spec/core_extensions_spec.rb
177
+ - spec/fixtures/requests/add_service_request/hotel_booking.xml
190
178
  - spec/fixtures/requests/agent_info.xml
179
+ - spec/fixtures/requests/get_locations.xml
180
+ - spec/fixtures/requests/option_info/hotel_search.xml
191
181
  - spec/fixtures/requests/option_info/hotel_search_total_stay_price.xml
192
182
  - spec/fixtures/requests/option_info/option_number.xml
193
- - spec/fixtures/requests/option_info/hotel_search.xml
194
- - spec/fixtures/requests/get_locations.xml
195
- - spec/fixtures/requests/add_service_request/hotel_booking.xml
196
- - spec/fixtures/responses/ping.xml
183
+ - spec/fixtures/requests/ping.xml
184
+ - spec/fixtures/responses/add_service.xml
197
185
  - spec/fixtures/responses/agent_info.xml
198
186
  - spec/fixtures/responses/agent_info_error.xml
199
187
  - spec/fixtures/responses/get_booking.xml
200
- - spec/fixtures/responses/option_info/tours.xml
201
- - spec/fixtures/responses/option_info/hotel_search_with_stay_price.xml
202
- - spec/fixtures/responses/option_info/option_number.xml
188
+ - spec/fixtures/responses/get_locations.xml
189
+ - spec/fixtures/responses/get_system_settings.xml
203
190
  - spec/fixtures/responses/option_info/hotel_price.xml
204
191
  - spec/fixtures/responses/option_info/hotel_search.xml
205
- - spec/fixtures/responses/get_system_settings.xml
206
- - spec/fixtures/responses/add_service.xml
207
- - spec/fixtures/responses/get_locations.xml
208
- - spec/client_spec.rb
209
- - spec/core_extensions_spec.rb
192
+ - spec/fixtures/responses/option_info/hotel_search_with_stay_price.xml
193
+ - spec/fixtures/responses/option_info/option_number.xml
194
+ - spec/fixtures/responses/option_info/tours.xml
195
+ - spec/fixtures/responses/ping.xml
196
+ - spec/responses/add_service_spec.rb
197
+ - spec/responses/agent_info_spec.rb
210
198
  - spec/responses/get_booking_spec.rb
199
+ - spec/responses/get_locations_spec.rb
211
200
  - spec/responses/get_system_settings_spec.rb
212
- - spec/responses/agent_info_spec.rb
213
201
  - spec/responses/option_info_spec.rb
214
- - spec/responses/add_service_spec.rb
215
202
  - spec/responses/ping_spec.rb
216
- - spec/responses/get_locations_spec.rb
203
+ - spec/spec_helper.rb
217
204
  - spec/translation_spec.rb
218
- - spec/coercion_spec.rb
219
205
  has_rdoc: true
220
- homepage: http://www.github.com/bmaland/hostconnect/
206
+ homepage: http://github.com/bmaland/hostconnect/
221
207
  licenses: []
222
208
 
223
209
  post_install_message:
@@ -244,16 +230,56 @@ required_rubygems_version: !ruby/object:Gem::Requirement
244
230
  requirements:
245
231
  - - ">="
246
232
  - !ruby/object:Gem::Version
247
- hash: 3
233
+ hash: 23
248
234
  segments:
249
- - 0
250
- version: "0"
235
+ - 1
236
+ - 3
237
+ - 6
238
+ version: 1.3.6
251
239
  requirements: []
252
240
 
253
241
  rubyforge_project: hostconnect
254
242
  rubygems_version: 1.3.7
255
243
  signing_key:
256
- specification_version: 2
244
+ specification_version: 3
257
245
  summary: Library for interfacing with Tourplan's hostConnect software, which is a web service interface for tour booking.
258
- test_files: []
259
-
246
+ test_files:
247
+ - spec/builders/add_service_builder_spec.rb
248
+ - spec/builders/agent_info_builder_spec.rb
249
+ - spec/builders/get_locations_builder_spec.rb
250
+ - spec/builders/new_booking_info_builder_spec.rb
251
+ - spec/builders/option_info_builder_spec.rb
252
+ - spec/builders/pax_details_builder_spec.rb
253
+ - spec/builders/ping_builder_spec.rb
254
+ - spec/builders/room_config_builder_spec.rb
255
+ - spec/client_spec.rb
256
+ - spec/coercion_spec.rb
257
+ - spec/core_extensions_spec.rb
258
+ - spec/fixtures/requests/add_service_request/hotel_booking.xml
259
+ - spec/fixtures/requests/agent_info.xml
260
+ - spec/fixtures/requests/get_locations.xml
261
+ - spec/fixtures/requests/option_info/hotel_search.xml
262
+ - spec/fixtures/requests/option_info/hotel_search_total_stay_price.xml
263
+ - spec/fixtures/requests/option_info/option_number.xml
264
+ - spec/fixtures/requests/ping.xml
265
+ - spec/fixtures/responses/add_service.xml
266
+ - spec/fixtures/responses/agent_info.xml
267
+ - spec/fixtures/responses/agent_info_error.xml
268
+ - spec/fixtures/responses/get_booking.xml
269
+ - spec/fixtures/responses/get_locations.xml
270
+ - spec/fixtures/responses/get_system_settings.xml
271
+ - spec/fixtures/responses/option_info/hotel_price.xml
272
+ - spec/fixtures/responses/option_info/hotel_search.xml
273
+ - spec/fixtures/responses/option_info/hotel_search_with_stay_price.xml
274
+ - spec/fixtures/responses/option_info/option_number.xml
275
+ - spec/fixtures/responses/option_info/tours.xml
276
+ - spec/fixtures/responses/ping.xml
277
+ - spec/responses/add_service_spec.rb
278
+ - spec/responses/agent_info_spec.rb
279
+ - spec/responses/get_booking_spec.rb
280
+ - spec/responses/get_locations_spec.rb
281
+ - spec/responses/get_system_settings_spec.rb
282
+ - spec/responses/option_info_spec.rb
283
+ - spec/responses/ping_spec.rb
284
+ - spec/spec_helper.rb
285
+ - spec/translation_spec.rb