hostconnect 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -6,3 +6,4 @@ test.rb
6
6
  Manifest
7
7
  *.dtd
8
8
  *.gem
9
+ init.rb
data/CHANGELOG CHANGED
@@ -1,3 +1,4 @@
1
+ v0.1.9 Added RateId to AddServiceBuilder
1
2
  v0.1.8 Moved to bundler for dependencies
2
3
  v0.1.7 Updated copyright information
3
4
  v0.1.6 Correct handling of prices
data/hostconnect.gemspec CHANGED
@@ -18,6 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.require_path = "lib"
19
19
  s.rubyforge_project = %q{hostconnect}
20
20
  s.required_rubygems_version = ">= 1.3.6"
21
+ s.license = "MIT"
21
22
 
22
23
  s.add_dependency "activesupport", "~> 2.3.10"
23
24
  s.add_dependency "builder", "2.1.2"
data/lib/hostconnect.rb CHANGED
@@ -26,7 +26,7 @@ module HostConnect
26
26
  module Version
27
27
  MAJOR = '0'
28
28
  MINOR = '1'
29
- REVISION = '8'
29
+ REVISION = '9'
30
30
  def self.combined
31
31
  [MAJOR, MINOR, REVISION].join('.')
32
32
  end
@@ -9,7 +9,7 @@ module HostConnect
9
9
  :scu_qty, :room_configs, :email, :pu_time, :pu_remark,
10
10
  :do_time, :do_remark, :remarks, :ud_text1, :ud_text2,
11
11
  :ud_text3, :ud_text4, :ud_text5, :agent_ref,
12
- :service_line_notes ].freeze
12
+ :service_line_notes, :rate_id].freeze
13
13
  super(options)
14
14
  end
15
15
 
@@ -36,7 +36,8 @@ module HostConnect
36
36
  @service_line_notes.each { |note| i << note.to_xml.target! }
37
37
  }
38
38
  end
39
-
39
+
40
+ x.RateId @rate_id
40
41
  x.Opt @opt if @opt
41
42
  x.DateFrom @date_from if @date_from
42
43
  x.SCUqty @scu_qty if @scu_qty
@@ -57,4 +58,4 @@ module HostConnect
57
58
  x
58
59
  end
59
60
  end
60
- end
61
+ end
@@ -21,6 +21,7 @@ describe HostConnect::AddServiceBuilder do
21
21
  :pax_list => [ pax1, pax2 ])
22
22
  req.room_configs = [ room ]
23
23
 
24
+ req.rate_id = "Default"
24
25
  req.opt = "LONACCUMLONSTDBCB"
25
26
  req.date_from = "2007-10-07"
26
27
  req.scu_qty = "2"
@@ -30,6 +30,7 @@
30
30
  </PaxList>
31
31
  </RoomConfig>
32
32
  </RoomConfigs>
33
+ <RateId>Default</RateId>
33
34
  <Opt>LONACCUMLONSTDBCB</Opt>
34
35
  <DateFrom>2007-10-07</DateFrom>
35
36
  <SCUqty>2</SCUqty>
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: 11
4
+ hash: 9
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 8
10
- version: 0.1.8
9
+ - 9
10
+ version: 0.1.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Bj\xC3\xB8rn Arild M\xC3\xA6land"
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-22 00:00:00 +01:00
18
+ date: 2011-02-18 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -204,8 +204,8 @@ files:
204
204
  - spec/translation_spec.rb
205
205
  has_rdoc: true
206
206
  homepage: http://github.com/bmaland/hostconnect/
207
- licenses: []
208
-
207
+ licenses:
208
+ - MIT
209
209
  post_install_message:
210
210
  rdoc_options:
211
211
  - --line-numbers