lolsoap 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/lolsoap/request.rb +19 -1
  3. data/lolsoap.gemspec +2 -2
  4. metadata +13 -13
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -37,10 +37,28 @@ module LolSoap
37
37
  envelope.output_type
38
38
  end
39
39
 
40
+ # The MIME type of the request. This is always application/soap+xml,
41
+ # but it could be overridden in a subclass.
42
+ def mime
43
+ 'application/soap+xml'
44
+ end
45
+
46
+ # The charset of the request. This is always UTF-8, but it could be
47
+ # overridden in a subclass.
48
+ def charset
49
+ 'UTF-8'
50
+ end
51
+
52
+ # The full content type of the request, assembled from the #mime and
53
+ # #charset.
54
+ def content_type
55
+ "#{mime};charset=#{charset}"
56
+ end
57
+
40
58
  # Headers that must be set when making the request
41
59
  def headers
42
60
  {
43
- 'Content-Type' => 'application/soap+xml;charset=UTF-8',
61
+ 'Content-Type' => content_type,
44
62
  'Content-Length' => content.bytesize.to_s,
45
63
  'SOAPAction' => envelope.action
46
64
  }
data/lolsoap.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "lolsoap"
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jon Leighton"]
12
- s.date = "2012-04-02"
12
+ s.date = "2012-05-10"
13
13
  s.description = "A library for dealing with SOAP requests and responses. We tear our hair out so you don't have to."
14
14
  s.email = "j@jonathanleighton.com"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lolsoap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-02 00:00:00.000000000 Z
12
+ date: 2012-05-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
16
- requirement: &21674480 !ruby/object:Gem::Requirement
16
+ requirement: &19657960 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.5.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *21674480
24
+ version_requirements: *19657960
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &21672260 !ruby/object:Gem::Requirement
27
+ requirement: &19656880 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.0.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *21672260
35
+ version_requirements: *19656880
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: jeweler
38
- requirement: &21669620 !ruby/object:Gem::Requirement
38
+ requirement: &19656060 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.6.4
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *21669620
46
+ version_requirements: *19656060
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: minitest
49
- requirement: &21273520 !ruby/object:Gem::Requirement
49
+ requirement: &19654620 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *21273520
57
+ version_requirements: *19654620
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: yard
60
- requirement: &21271840 !ruby/object:Gem::Requirement
60
+ requirement: &19652600 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *21271840
68
+ version_requirements: *19652600
69
69
  description: A library for dealing with SOAP requests and responses. We tear our hair
70
70
  out so you don't have to.
71
71
  email: j@jonathanleighton.com
@@ -136,7 +136,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
136
136
  version: '0'
137
137
  segments:
138
138
  - 0
139
- hash: -3972436845554789040
139
+ hash: -1228360456934755075
140
140
  required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  none: false
142
142
  requirements: