sr_fax 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/Gemfile +8 -0
- data/LICENSE.txt +21 -0
- data/README.md +68 -0
- data/Rakefile +1 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/lib/srfax.rb +236 -0
- data/srfax.gemspec +27 -0
- metadata +127 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 56a3f8e6fc0de9b9777780d6a53e07b0321d8dcc
|
4
|
+
data.tar.gz: a0a385e62d210e72b916e66bc2607855074333d1
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 255ad2006904e751d180537d21de052a0038ee23d47405bd446f7e8d9eac9e83e395f3dc20b464972c2a2f6a290eb5ce1815c377861594b9b2a52dd020e8a0ce
|
7
|
+
data.tar.gz: 6baffe09500daa159d920a1c6bcd088faf3c3c08310441b0c9f089aa2687379777c45629a9316119b1e45c21004caa751d0589f77f2d9397749eed1fc6b403f7
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Sean Esson
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
Srfax
|
2
|
+
|
3
|
+
This is the 'unofficial' SRFax (http://www.srfax.com) API wrapper for ruby. The API documentation for SRFax can be found at https://www.srfax.com/srf/media/SRFax-REST-API-Documentation.pdf
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'sr_fax'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself using:
|
18
|
+
|
19
|
+
$ gem install sr_fax
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
To get started, simply open the console view and require the SrFax module. Once you have completed that, enter your account credentials using the SrFax setup block, and then begin to execute calls. All status' returned are simply formatted hashes from the SrFax service.
|
24
|
+
|
25
|
+
```sh
|
26
|
+
|
27
|
+
require 'SrFax'
|
28
|
+
|
29
|
+
SrFax.setup do |config|
|
30
|
+
config.defaults[:access_id] = '1234'
|
31
|
+
config.defaults[:access_pwd] = 'password'
|
32
|
+
end
|
33
|
+
|
34
|
+
SrFax.view_inbox
|
35
|
+
SrFax.view_outbox
|
36
|
+
SrFax.update_fax_status(descriptor, direction)
|
37
|
+
SrFax.get_fax(descriptor, direction, {:sMarkasViewed => 'Y'}
|
38
|
+
```
|
39
|
+
|
40
|
+
The SrFax module currently supports the following functions
|
41
|
+
- Sending and receiving faxes
|
42
|
+
- Updating flags on the inbox or outbox faxes
|
43
|
+
- Deleting faxes from either the inbox or outbox
|
44
|
+
- View account usage
|
45
|
+
- Download faxes from the inbox or outbox
|
46
|
+
|
47
|
+
Not yet implemented:
|
48
|
+
- Sending faxes
|
49
|
+
- Delete pending faxes (to be sent)
|
50
|
+
- Stop fax
|
51
|
+
- Multifax status
|
52
|
+
|
53
|
+
## Development
|
54
|
+
|
55
|
+
After checking out the repo, run `bin/console` for an interactive prompt that will allow you to experiment.
|
56
|
+
|
57
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
58
|
+
|
59
|
+
## Contributing
|
60
|
+
|
61
|
+
1. Fork it ( https://github.com/TechCanuck/srfax/fork )
|
62
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
63
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
64
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
65
|
+
5. Create a new Pull Request
|
66
|
+
|
67
|
+
Licensing: **MIT**
|
68
|
+
Remember: **'Great opportunities to help others seldom come, but small ones surround us daily' -- Sally Koch**
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "SrFax"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/lib/srfax.rb
ADDED
@@ -0,0 +1,236 @@
|
|
1
|
+
require 'RestClient'
|
2
|
+
require 'active_support'
|
3
|
+
|
4
|
+
# This class serves as the integration component between the application and the SRFax cloud service.
|
5
|
+
# API DOX available @ https://www.srfax.com/srf/media/SRFax-REST-API-Documentation.pdf.
|
6
|
+
#
|
7
|
+
# This module currently Implements the following POST commands from the API:
|
8
|
+
# Get_Usage – Retrieves the account usage
|
9
|
+
# Update_Viewed_Status – Mark a inbound or outbound fax as read or unread.
|
10
|
+
# Queue_Fax - Schedules a fax to be sent with or without cover page.
|
11
|
+
# Get_Fax_Inbox - Returns a list of faxes received for a specified period of time
|
12
|
+
# Get_Fax_Outbox - Returns a list of faxes sent for a specified period of time
|
13
|
+
# Retrieve_Fax – Returns a specified sent or received fax file in PDF or TIFF format
|
14
|
+
# Delete_Fax - Deletes specified received or sent faxes
|
15
|
+
#
|
16
|
+
# Unimplemented:
|
17
|
+
# Get_FaxStatus – Determines the status of a fax that has been scheduled for delivery.
|
18
|
+
# Get_MultiFaxStatus – Determines the status of a multiple faxes that hav been
|
19
|
+
# scheduled for delivery.
|
20
|
+
# Delete_Pending_Fax - Deletes a specified queued fax which has not been processed
|
21
|
+
# Stop_Fax - Removes a scheduled fax from the queue
|
22
|
+
module SrFax
|
23
|
+
VERSION = '0.3.0pre'
|
24
|
+
|
25
|
+
# Base URL for accessing SRFax API
|
26
|
+
BASE_URI = "https://www.srfax.com/SRF_SecWebSvc.php"
|
27
|
+
|
28
|
+
mattr_accessor :defaults
|
29
|
+
# Default values hash to use with all #execute commands
|
30
|
+
@@defaults = {
|
31
|
+
access_id: '1234',
|
32
|
+
access_pwd: 'password',
|
33
|
+
sFaxFormat: 'PDF', # Default format, PDF or TIF
|
34
|
+
sResponseFormat: 'JSON' # XML or JSON
|
35
|
+
}
|
36
|
+
|
37
|
+
mattr_accessor :logger
|
38
|
+
# Logger object for use in standalone modeo or with Rails
|
39
|
+
@@logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
|
40
|
+
|
41
|
+
class << self
|
42
|
+
# Allow configuring Srfax with a block, these will be the methods default values for passing to
|
43
|
+
# each function and will be overridden by any methods locally posted variables (ex: :action)
|
44
|
+
#
|
45
|
+
# @yield Accepts a block of valid configuration options to set or override default values
|
46
|
+
#
|
47
|
+
# Example:
|
48
|
+
# Srfax.setup do |config|
|
49
|
+
# config.defaults[:access_id] = '1234'
|
50
|
+
# config.defaults[:access_pwd] = 'password'
|
51
|
+
# end
|
52
|
+
def setup(&block)
|
53
|
+
yield self
|
54
|
+
end
|
55
|
+
|
56
|
+
# Views the remote inbox. By default this call does NOT update the viewed
|
57
|
+
# or read status of the fax unless specified in options.
|
58
|
+
#
|
59
|
+
# @param status [String] Specify the status of the message you are listing (UNREAD, ALL, READ)
|
60
|
+
# @param options [Hash] An optional hash paramter to ovveride any default values (ie., Account ID)
|
61
|
+
# @option options [String] :sPeriod Specify the period to query. Accepts 'ALL' or 'RANGE'
|
62
|
+
# @option options [String] :sStatDate Used with :sPeriod and denotes the period to start at. Format is 'YYYYMMDD'
|
63
|
+
# @option options [String] :sEndDate Used with :sPeriod and denotes the period to endd at. Format is 'YYYYMMDD'
|
64
|
+
# @option options [String] :sIncludeSubUsers Include subuser accounts ('Y' or 'N')
|
65
|
+
# @return [Hash] A hash containing the return value (Success/Failure) and the payload where applicable
|
66
|
+
#
|
67
|
+
# Example Payload for Return:
|
68
|
+
# {"Status"=>"Success", "Result"=>[{"FileName"=>"20150430124505-6104-19_1|20360095", "ReceiveStatus"=>"Ok",
|
69
|
+
# "Date"=>"Apr 30/15 02:45 PM", "EpochTime"=>1430423105, "CallerID"=>"9056193547", "RemoteID"=>"", "Pages"=>"1",
|
70
|
+
# "Size"=>"5000", "ViewedStatus"=>"N"} ]}
|
71
|
+
def view_inbox(status = 'UNREAD', options = {})
|
72
|
+
logger.info("Checking fax inbox from cloud service")
|
73
|
+
postVariables = {
|
74
|
+
:action => "Get_Fax_Inbox",
|
75
|
+
:sViewedStatus => status.upcase
|
76
|
+
}.merge!(options)
|
77
|
+
res = execute(postVariables)
|
78
|
+
|
79
|
+
if res[:Status] != "Failure"
|
80
|
+
faxcount = res["Result"].count
|
81
|
+
faxcount > 0 ? logger.debug("Found #{faxcount} new fax(es)") : logger.debug("No faxes found matching that criteria")
|
82
|
+
end
|
83
|
+
|
84
|
+
return res
|
85
|
+
end
|
86
|
+
|
87
|
+
# Uses post Get_Usage to fetch the current account usage statistics (for all associated accounts)
|
88
|
+
#
|
89
|
+
# @param options [Hash] An optional hash paramter to ovveride any default values (ie., Account ID)
|
90
|
+
# @option options [String] :sPeriod Specify the period to query. Accepts 'ALL' or 'RANGE'
|
91
|
+
# @option options [String] :sStatDate Used with :sPeriod and denotes the period to start at. Format is 'YYYYMMDD'
|
92
|
+
# @option options [String] :sEndDate Used with :sPeriod and denotes the period to endd at. Format is 'YYYYMMDD'
|
93
|
+
# @option options [String] :sIncludeSubUsers Include subuser accounts ('Y' or 'N')
|
94
|
+
# @return [Hash] A hash containing the return value (Success/Failure) and the payload where applicable
|
95
|
+
#
|
96
|
+
# Example Payload for Return:
|
97
|
+
# {"Status"=>"Success", "Result"=>[{"UserID"=>1234, "Period"=>"ALL",
|
98
|
+
# "ClientName"=>nil, "SubUserID"=>0, "BillingNumber"=>"8669906402", "NumberOfFaxes"=>5, "NumberOfPages"=>8}]}
|
99
|
+
#
|
100
|
+
# optional variables
|
101
|
+
# sPeriod: (ALL or RANGE), sStartDate: YYYYMMDD, sEndDate: YYYYMMDD
|
102
|
+
# sIncludeSubUsers: Y or N (if you want to see all faxes on subaccounts as well)
|
103
|
+
def view_usage(options = {})
|
104
|
+
logger.info "Viewing fax usage from cloud service"
|
105
|
+
postVariables = { :action => "Get_Fax_Usage" }
|
106
|
+
res = execute(postVariables)
|
107
|
+
return res
|
108
|
+
end
|
109
|
+
|
110
|
+
# Uses post Get_Fax_Outbox to retrieve the usage for the account (and all subaccounts)
|
111
|
+
#
|
112
|
+
# @param options [Hash] An optional hash paramter to ovveride any default values (ie., Account ID)
|
113
|
+
# @option options [String] :sPeriod Specify the period to query. Accepts 'ALL' or 'RANGE'
|
114
|
+
# @option options [String] :sStatDate Used with :sPeriod and denotes the period to start at. Format is 'YYYYMMDD'
|
115
|
+
# @option options [String] :sEndDate Used with :sPeriod and denotes the period to endd at. Format is 'YYYYMMDD'
|
116
|
+
# @option options [String] :sIncludeSubUsers Include subuser accounts ('Y' or 'N')
|
117
|
+
# @return [Hash] A hash containing the return value (Success/Failure) and the payload where applicable
|
118
|
+
def view_outbox(options = {})
|
119
|
+
logger.info "Viewing fax outbox from cloud service"
|
120
|
+
postVariables = { :action => "Get_Fax_Outbox" }
|
121
|
+
res = execute(postVariables)
|
122
|
+
|
123
|
+
if res[:Status] != "Failure"
|
124
|
+
faxcount = res["Result"].count
|
125
|
+
faxcount > 0 ? logger.debug("Found #{faxcount} new fax(es)") : logger.debug("No faxes found matching that criteria")
|
126
|
+
end
|
127
|
+
|
128
|
+
return res
|
129
|
+
end
|
130
|
+
|
131
|
+
# Uses POST Retrieve_Fax to retrieve a specified fax from the server. Returns it in the default
|
132
|
+
# specified format (PDF or TIFF)
|
133
|
+
#
|
134
|
+
# @param descriptor [String] Specify the status of the message you are listing (UNREAD, ALL, READ)
|
135
|
+
# @param direction [String] Either 'IN' or 'OUT' to specify the inbox or outbox
|
136
|
+
# @param options [Hash] An optional hash paramter to ovveride any default values (ie., Account ID)
|
137
|
+
# @option options [String] :sMarkasViewed Update the fax status to viewed (or unviewed). Accepts 'Y' or 'N'
|
138
|
+
# @option options [String] :sFaxFormat Update the format to retrieve the file in ('PDF' or 'TIFF')
|
139
|
+
# @return [Hash] A hash containing the return value (Success/Failure) and the payload where applicable
|
140
|
+
def get_fax(descriptor, direction, options = {})
|
141
|
+
logger.info "Retrieving fax from cloud service in the direction of '#{direction}', Descriptor:'#{descriptor}'"
|
142
|
+
faxname,faxid = descriptor.split('|')
|
143
|
+
if (faxname.nil? or faxid.nil?)
|
144
|
+
logger.info "Valid descriptor not provided to get_fax function call. Descriptor:'#{descriptor}'"
|
145
|
+
return nil
|
146
|
+
end
|
147
|
+
|
148
|
+
logger.info "Retrieving fax from cloud service"
|
149
|
+
postVariables = {
|
150
|
+
:action => "Retrieve_Fax",
|
151
|
+
:sFaxFileName => descriptor,
|
152
|
+
:sFaxDetailsID => faxid,
|
153
|
+
:sDirection => direction.upcase,
|
154
|
+
:sMarkasViewed => 'N'
|
155
|
+
}.merge!(options)
|
156
|
+
res = execute(postVariables)
|
157
|
+
return res
|
158
|
+
end
|
159
|
+
|
160
|
+
# Update the status (read/unread) for a particular fax
|
161
|
+
#
|
162
|
+
# @param descriptor [String] Specify the status of the message you are listing (UNREAD, ALL, READ)
|
163
|
+
# @param direction [String] Either 'IN' or 'OUT' to specify the inbox or outbox
|
164
|
+
# @param options [Hash] An optional hash paramter to ovveride any default values (ie., Account ID)
|
165
|
+
# @option options [String] :sMarkasViewed Update the fax status to viewed (or unviewed). Accepts 'Y' or 'N'. Defaults to Y
|
166
|
+
# @return [Hash] A hash containing the return value (Success/Failure) and the payload where applicable
|
167
|
+
def update_fax_status(descriptor, direction, options = {})
|
168
|
+
logger.info "Updating a fax in the cloud service in the direction of '#{direction}', Descriptor:'#{descriptor}'"
|
169
|
+
faxname,faxid = descriptor.split('|')
|
170
|
+
if (faxname.nil? or faxid.nil?)
|
171
|
+
logger.info "Valid descriptor not provided to get_fax function call. Descriptor:'#{descriptor}'"
|
172
|
+
return nil
|
173
|
+
end
|
174
|
+
|
175
|
+
postVariables = {
|
176
|
+
:action => "Update_Viewed_Status",
|
177
|
+
:sFaxFileName => descriptor,
|
178
|
+
:sFaxDetailsID => faxid,
|
179
|
+
:sDirection => direction.upcase,
|
180
|
+
:sMarkasViewed => 'Y',
|
181
|
+
}.merge!(options)
|
182
|
+
res = execute(postVariables)
|
183
|
+
return res
|
184
|
+
end
|
185
|
+
|
186
|
+
# Delete a particular fax from the SRFax cloud service
|
187
|
+
#
|
188
|
+
# @param descriptor [String] THe descriptor provided by SRFax which identifies a unique fax
|
189
|
+
# @param direction [String] Either 'IN' or 'OUT' to specify the inbox or outbox
|
190
|
+
# @return [Hash] A hash containing the return value (Success/Failure) and the payload where applicable
|
191
|
+
#
|
192
|
+
# Example Payload for Return:
|
193
|
+
# {"Status"=>"Success", "Result"=>[{"FileName"=>"20150430124505-6104-19_1|20360095", "ReceiveStatus"=>"Ok",
|
194
|
+
# "Date"=>"Apr 30/15 02:45 PM", "EpochTime"=>1430423105, "CallerID"=>"9056193547", "RemoteID"=>"", "Pages"=>"1",
|
195
|
+
# "Size"=>"5000", "ViewedStatus"=>"N"} ]}
|
196
|
+
# :direction is either 'IN' or 'OUT' for inbox or outbox
|
197
|
+
# :descriptor is what is returns from the POST Filename field from the view_inbox result
|
198
|
+
def delete_fax(descriptor, direction)
|
199
|
+
logger.info "Deleting a fax in the cloud service in the direction of '#{direction}', Descriptor:'#{descriptor}'"
|
200
|
+
faxname,faxid = descriptor.split('|')
|
201
|
+
if (faxname.nil? or faxid.nil?)
|
202
|
+
logger.info "Valid descriptor not provided to get_fax function call. Descriptor:'#{descriptor}'"
|
203
|
+
return nil
|
204
|
+
end
|
205
|
+
|
206
|
+
postVariables = {
|
207
|
+
:action => "Delete_Fax",
|
208
|
+
:sFaxFileName_x => descriptor,
|
209
|
+
:sFaxDetailsID_x => faxid,
|
210
|
+
:sDirection => direction.upcase,
|
211
|
+
}
|
212
|
+
res = execute(postVariables)
|
213
|
+
return res
|
214
|
+
end
|
215
|
+
|
216
|
+
private
|
217
|
+
|
218
|
+
# Actually execute the RESTful post command to the #BASE_URI
|
219
|
+
#
|
220
|
+
# @param postVariables [String] The list of variables to apply in the POST body when executing the request
|
221
|
+
# @return [Hash] The hash payload value including a proper status. Will never return nil.
|
222
|
+
def execute(postVariables)
|
223
|
+
res = RestClient::Request.execute :url => BASE_URI, :method => :post, :payload => postVariables.merge(defaults).to_json, :content_type => :json, :accept => :json
|
224
|
+
return_data = nil
|
225
|
+
return_data = JSON.parse(res) if res
|
226
|
+
|
227
|
+
if return_data.nil? || return_data.fetch("Status", "Failure") != "Success"
|
228
|
+
logger.info "Execution of SR Fax command not successful"
|
229
|
+
return_data = { :Status => "Failure" }
|
230
|
+
end
|
231
|
+
|
232
|
+
return return_data
|
233
|
+
end
|
234
|
+
end
|
235
|
+
end
|
236
|
+
|
data/srfax.gemspec
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'version.rb'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "sr_fax"
|
8
|
+
spec.version = SrFax::VERSION
|
9
|
+
spec.authors = ["Jeff Klink", "Sean Esson"]
|
10
|
+
spec.email = ["techcanuck@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{SR Fax Module provides and easy way to access SR fax online services to send, receive or query faxes}
|
13
|
+
spec.description = %q{This is the 'unofficial' SRFax (http://www.srfax.com) API wrapper for ruby. The API documentation for SRFax can be found at https://www.srfax.com/srf/media/SRFax-REST-API-Documentation.pdf}
|
14
|
+
spec.homepage = "https://github.com/TechCanuck/srfax"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.bindir = "exe"
|
19
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ["lib"]
|
21
|
+
|
22
|
+
spec.add_development_dependency "bundler", "~> 1.7"
|
23
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
24
|
+
spec.add_runtime_dependency 'logger', '~> 1'
|
25
|
+
spec.add_runtime_dependency 'activesupport', '~> 4.2'
|
26
|
+
spec.add_runtime_dependency 'rest-client', '~> 1.7'
|
27
|
+
end
|
metadata
ADDED
@@ -0,0 +1,127 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sr_fax
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jeff Klink
|
8
|
+
- Sean Esson
|
9
|
+
autorequire:
|
10
|
+
bindir: exe
|
11
|
+
cert_chain: []
|
12
|
+
date: 2015-05-12 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: bundler
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '1.7'
|
21
|
+
type: :development
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - "~>"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '1.7'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: rake
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - "~>"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '10.0'
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "~>"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '10.0'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: logger
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - "~>"
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '1'
|
49
|
+
type: :runtime
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - "~>"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '1'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: activesupport
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '4.2'
|
63
|
+
type: :runtime
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '4.2'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: rest-client
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - "~>"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '1.7'
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '1.7'
|
84
|
+
description: This is the 'unofficial' SRFax (http://www.srfax.com) API wrapper for
|
85
|
+
ruby. The API documentation for SRFax can be found at https://www.srfax.com/srf/media/SRFax-REST-API-Documentation.pdf
|
86
|
+
email:
|
87
|
+
- techcanuck@gmail.com
|
88
|
+
executables: []
|
89
|
+
extensions: []
|
90
|
+
extra_rdoc_files: []
|
91
|
+
files:
|
92
|
+
- ".gitignore"
|
93
|
+
- Gemfile
|
94
|
+
- LICENSE.txt
|
95
|
+
- README.md
|
96
|
+
- Rakefile
|
97
|
+
- bin/console
|
98
|
+
- bin/setup
|
99
|
+
- lib/srfax.rb
|
100
|
+
- srfax.gemspec
|
101
|
+
homepage: https://github.com/TechCanuck/srfax
|
102
|
+
licenses:
|
103
|
+
- MIT
|
104
|
+
metadata: {}
|
105
|
+
post_install_message:
|
106
|
+
rdoc_options: []
|
107
|
+
require_paths:
|
108
|
+
- lib
|
109
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - ">="
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '0'
|
114
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
requirements: []
|
120
|
+
rubyforge_project:
|
121
|
+
rubygems_version: 2.4.5
|
122
|
+
signing_key:
|
123
|
+
specification_version: 4
|
124
|
+
summary: SR Fax Module provides and easy way to access SR fax online services to send,
|
125
|
+
receive or query faxes
|
126
|
+
test_files: []
|
127
|
+
has_rdoc:
|