LVS-JSONService 0.4.9 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{LVS-JSONService}
5
- s.version = "0.4.9"
5
+ s.version = "0.5.0"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["LVS", "andyjeffries"]
9
- s.date = %q{2010-12-16}
9
+ s.date = %q{2011-01-17}
10
10
  s.email = %q{info@lvs.co.uk}
11
11
  s.extra_rdoc_files = [
12
12
  "LICENSE",
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.9
1
+ 0.5.0
@@ -55,6 +55,10 @@ module LVS
55
55
  @field_prefix = value
56
56
  end
57
57
 
58
+ def caller_id=(value)
59
+ @caller_id = value
60
+ end
61
+
58
62
  def site=(value)
59
63
  # value is containing AGP_LOCATION already sometimes:
60
64
  value.gsub!(/^#{AGP_LOCATION}/, '') if defined?(AGP_LOCATION) && value.match(/#{AGP_LOCATION}/)
@@ -93,6 +97,7 @@ module LVS
93
97
  end
94
98
 
95
99
  options[:encrypted] = @encrypted if @encrypted
100
+ options[:caller_id] = @caller_id if @caller_id
96
101
  options[:auth_cert] = @auth_cert if @auth_cert
97
102
  options[:auth_key] = @auth_key if @auth_key
98
103
  options[:auth_key_pass] = @auth_key_pass if @auth_key_pass
@@ -22,6 +22,9 @@ module LVS
22
22
  req = Net::HTTP::Post.new(uri.path)
23
23
  req.add_field("X-LVS-Request-ID", options[:request_id])
24
24
 
25
+ if args.is_a? Hash
26
+ args["CallerId"] = options[:caller_id]
27
+ end
25
28
  req.form_data = { "object_request" => args.to_json }
26
29
 
27
30
  options[:encrypted] ||= require_ssl?
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 4
8
- - 9
9
- version: 0.4.9
7
+ - 5
8
+ - 0
9
+ version: 0.5.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - LVS
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-16 00:00:00 +00:00
18
+ date: 2011-01-17 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency