drnic-ruby-efax 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/efax.rb +6 -6
- data/ruby-efax.gemspec +2 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.1
|
data/lib/efax.rb
CHANGED
@@ -42,9 +42,9 @@ end
|
|
42
42
|
|
43
43
|
module EFax
|
44
44
|
# URL of eFax web service
|
45
|
-
|
45
|
+
Url = "https://secure.efaxdeveloper.com/EFax_WebFax.serv"
|
46
46
|
# URI of eFax web service
|
47
|
-
|
47
|
+
Uri = URI.parse(Url)
|
48
48
|
# Prefered content type
|
49
49
|
HEADERS = {'Content-Type' => 'text/xml'}
|
50
50
|
|
@@ -82,8 +82,8 @@ module EFax
|
|
82
82
|
class OutboundRequest < Request
|
83
83
|
def self.post(name, company, fax_number, subject, content, content_type = :html)
|
84
84
|
xml_request = xml(name, company, fax_number, subject, content, content_type)
|
85
|
-
response = Net::HTTPS.start(EFax::
|
86
|
-
https.post(EFax::
|
85
|
+
response = Net::HTTPS.start(EFax::Uri.host, EFax::Uri.port) do |https|
|
86
|
+
https.post(EFax::Uri.path, params(xml_request), EFax::HEADERS)
|
87
87
|
end
|
88
88
|
OutboundResponse.new(response)
|
89
89
|
end
|
@@ -161,8 +161,8 @@ module EFax
|
|
161
161
|
class OutboundStatus < Request
|
162
162
|
def self.post(doc_id)
|
163
163
|
data = params(xml(doc_id))
|
164
|
-
response = Net::HTTPS.start(EFax::
|
165
|
-
https.post(EFax::
|
164
|
+
response = Net::HTTPS.start(EFax::Uri.host, EFax::Uri.port) do |https|
|
165
|
+
https.post(EFax::Uri.path, data, EFax::HEADERS)
|
166
166
|
end
|
167
167
|
OutboundStatusResponse.new(response)
|
168
168
|
end
|
data/ruby-efax.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{ruby-efax}
|
8
|
-
s.version = "1.1.
|
8
|
+
s.version = "1.1.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Szymon Nowak", "Pawel Kozlowski"]
|
12
|
-
s.date = %q{2009-09-
|
12
|
+
s.date = %q{2009-09-24}
|
13
13
|
s.email = %q{szimek@gmail.com}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"README"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: drnic-ruby-efax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Szymon Nowak
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-09-
|
13
|
+
date: 2009-09-24 00:00:00 -07:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|