4info 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{4info}
8
- s.version = "1.0.4"
8
+ s.version = "1.0.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jack Danger Canty"]
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.4
1
+ 1.0.5
@@ -59,7 +59,11 @@ module FourInfo
59
59
 
60
60
  def perform(body)
61
61
  start do |http|
62
- http.post(FourInfo::Gateway.path, body).read_body
62
+ http.post(
63
+ FourInfo::Gateway.path,
64
+ body,
65
+ {'Content-Type' => 'text/xml'}
66
+ ).read_body
63
67
  end
64
68
  end
65
69
 
@@ -1,4 +1,4 @@
1
- !!! xml 1.0
1
+ !!! XML
2
2
  %request{ :clientId => config[:client_id], :clientKey => config[:client_key], :type => "VALIDATION" }
3
3
  %validation
4
4
  %recipient
@@ -1,4 +1,4 @@
1
- !!! xml 1.0
1
+ !!! XML
2
2
  %request{ :clientId => config[:client_id], :clientKey => config[:client_key], :type => "MESSAGE" }
3
3
  %message
4
4
  %recipient
@@ -1,4 +1,4 @@
1
- !!! xml 1.0
1
+ !!! XML
2
2
  %request{ :clientId => config[:client_id], :clientKey => config[:client_key], :type => "UNBLOCK" }
3
3
  %unblock
4
4
  %recipient
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: 4info
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jack Danger Canty