phaxio 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +1 -1
- data/README.md +12 -0
- data/lib/phaxio/version.rb +1 -1
- data/phaxio.gemspec +5 -5
- metadata +11 -9
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -39,6 +39,18 @@ To send a fax:
|
|
39
39
|
* cancel_fax - `Phaxio.cancel_fax(id: "123456")`
|
40
40
|
* get_account_status - `Phaxio.get_account_status`
|
41
41
|
|
42
|
+
### Example
|
43
|
+
|
44
|
+
require 'phaxio'
|
45
|
+
|
46
|
+
Phaxio.config do |config|
|
47
|
+
config.api_key = "your_key"
|
48
|
+
config.api_secret = "your_secret"
|
49
|
+
end
|
50
|
+
|
51
|
+
@fax = Phaxio.send_fax(to: '15555555555', string_data: "hello world")
|
52
|
+
Phaxio.get_fax_status(id: @fax["faxId"])
|
53
|
+
|
42
54
|
## Contributing
|
43
55
|
|
44
56
|
1. Fork it
|
data/lib/phaxio/version.rb
CHANGED
data/phaxio.gemspec
CHANGED
@@ -4,9 +4,9 @@ require File.expand_path('../lib/phaxio/version', __FILE__)
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.authors = ["Sean Behan", "Brett Chalupa"]
|
6
6
|
gem.email = ["inbox@seanbehan.com", "brettchalupa@gmail.com"]
|
7
|
-
gem.description = %q{A Ruby Gem for interacting with Phaxio's JSON API}
|
7
|
+
gem.description = %q{A Ruby Gem for interacting with Phaxio's JSON API. Currently, not all of the Phaxio API calls are supported. The essentials are in place and more will be coming with future versions of this gem.}
|
8
8
|
gem.summary = %q{A Ruby Gem for interacting with Phaxio's JSON API}
|
9
|
-
gem.homepage = "http://gristmill.io"
|
9
|
+
gem.homepage = "http://www.gristmill.io/posts/17-introducing-the-phaxio-gem-an-easy-way-to-use-phaxio-with-ruby"
|
10
10
|
|
11
11
|
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
12
12
|
gem.files = `git ls-files`.split("\n")
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
|
|
15
15
|
gem.require_paths = ["lib"]
|
16
16
|
gem.version = Phaxio::VERSION
|
17
17
|
|
18
|
-
gem.add_runtime_dependency "httmultiparty"
|
19
|
-
gem.add_development_dependency "fakeweb",
|
20
|
-
gem.add_development_dependency "rake",
|
18
|
+
gem.add_runtime_dependency "httmultiparty", "~> 0.3.8"
|
19
|
+
gem.add_development_dependency "fakeweb", "~> 1.3.0"
|
20
|
+
gem.add_development_dependency "rake", "~> 0.9.2.2"
|
21
21
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phaxio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,24 +10,24 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-10-
|
13
|
+
date: 2012-10-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: httmultiparty
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
|
-
- -
|
20
|
+
- - ~>
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
22
|
+
version: 0.3.8
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
none: false
|
27
27
|
requirements:
|
28
|
-
- -
|
28
|
+
- - ~>
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
version:
|
30
|
+
version: 0.3.8
|
31
31
|
- !ruby/object:Gem::Dependency
|
32
32
|
name: fakeweb
|
33
33
|
requirement: !ruby/object:Gem::Requirement
|
@@ -60,7 +60,9 @@ dependencies:
|
|
60
60
|
- - ~>
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: 0.9.2.2
|
63
|
-
description: A Ruby Gem for interacting with Phaxio's JSON API
|
63
|
+
description: A Ruby Gem for interacting with Phaxio's JSON API. Currently, not all
|
64
|
+
of the Phaxio API calls are supported. The essentials are in place and more will
|
65
|
+
be coming with future versions of this gem.
|
64
66
|
email:
|
65
67
|
- inbox@seanbehan.com
|
66
68
|
- brettchalupa@gmail.com
|
@@ -86,7 +88,7 @@ files:
|
|
86
88
|
- test/support/responses/test_receive.json
|
87
89
|
- test/test_helper.rb
|
88
90
|
- test/test_phaxio.rb
|
89
|
-
homepage: http://gristmill.io
|
91
|
+
homepage: http://www.gristmill.io/posts/17-introducing-the-phaxio-gem-an-easy-way-to-use-phaxio-with-ruby
|
90
92
|
licenses: []
|
91
93
|
post_install_message:
|
92
94
|
rdoc_options: []
|
@@ -106,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
108
|
version: '0'
|
107
109
|
requirements: []
|
108
110
|
rubyforge_project:
|
109
|
-
rubygems_version: 1.8.
|
111
|
+
rubygems_version: 1.8.23
|
110
112
|
signing_key:
|
111
113
|
specification_version: 3
|
112
114
|
summary: A Ruby Gem for interacting with Phaxio's JSON API
|