phaxio 0.4.0 → 2.1.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +2 -0
- data/.travis.yml +11 -0
- data/Gemfile +11 -5
- data/README.md +296 -40
- data/Rakefile +7 -9
- data/lib/phaxio.rb +48 -3
- data/lib/phaxio/client.rb +151 -241
- data/lib/phaxio/config.rb +31 -0
- data/lib/phaxio/error.rb +13 -0
- data/lib/phaxio/helpers/mime_type_helper.rb +14 -0
- data/lib/phaxio/resource.rb +168 -0
- data/lib/phaxio/resources.rb +7 -0
- data/lib/phaxio/resources/account.rb +41 -0
- data/lib/phaxio/resources/ata.rb +219 -0
- data/lib/phaxio/resources/callback.rb +65 -0
- data/lib/phaxio/resources/fax.rb +310 -0
- data/lib/phaxio/resources/fax_recipient.rb +41 -0
- data/lib/phaxio/resources/phax_code.rb +89 -0
- data/lib/phaxio/resources/phone_number.rb +112 -0
- data/lib/phaxio/resources/public.rb +8 -0
- data/lib/phaxio/resources/public/area_code.rb +64 -0
- data/lib/phaxio/resources/public/country.rb +54 -0
- data/lib/phaxio/version.rb +1 -1
- data/phaxio.gemspec +10 -8
- data/spec/client_spec.rb +164 -0
- data/spec/helpers/mime_type_helper_spec.rb +11 -0
- data/spec/phaxio_spec.rb +20 -0
- data/spec/resources/account_spec.rb +24 -0
- data/spec/resources/callback_spec.rb +34 -0
- data/spec/resources/fax_spec.rb +248 -0
- data/spec/resources/phax_code_spec.rb +111 -0
- data/spec/resources/phone_number_spec.rb +89 -0
- data/spec/resources/public/area_code_spec.rb +24 -0
- data/spec/resources/public/country_spec.rb +24 -0
- data/spec/spec_helper.rb +6 -0
- data/spec/support/credentials.rb +7 -0
- data/spec/support/expectations.rb +9 -0
- data/spec/support/files/test.pdf +0 -0
- data/spec/support/files/test.txt +1 -0
- data/spec/support/vcr.rb +8 -0
- data/spec/support/vcr_cassettes/resources/account/status.yml +45 -0
- data/spec/support/vcr_cassettes/resources/fax/cancel.yml +47 -0
- data/spec/support/vcr_cassettes/resources/fax/create.yml +50 -0
- data/spec/support/vcr_cassettes/resources/fax/create_for_cancel.yml +50 -0
- data/spec/support/vcr_cassettes/resources/fax/create_for_delete.yml +50 -0
- data/spec/support/vcr_cassettes/resources/fax/create_for_delete_file.yml +50 -0
- data/spec/support/vcr_cassettes/resources/fax/create_for_download_file.yml +50 -0
- data/spec/support/vcr_cassettes/resources/fax/create_for_get.yml +50 -0
- data/spec/support/vcr_cassettes/resources/fax/create_for_reference.yml +50 -0
- data/spec/support/vcr_cassettes/resources/fax/create_for_resend.yml +50 -0
- data/spec/support/vcr_cassettes/resources/fax/delete.yml +45 -0
- data/spec/support/vcr_cassettes/resources/fax/delete_file.yml +45 -0
- data/spec/support/vcr_cassettes/resources/fax/file.yml +50 -0
- data/spec/support/vcr_cassettes/resources/fax/get.yml +45 -0
- data/spec/support/vcr_cassettes/resources/fax/list.yml +51 -0
- data/spec/support/vcr_cassettes/resources/fax/reference.yml +45 -0
- data/spec/support/vcr_cassettes/resources/fax/resend.yml +47 -0
- data/spec/support/vcr_cassettes/resources/fax/test_receive.yml +51 -0
- data/spec/support/vcr_cassettes/resources/phax_code/create.yml +47 -0
- data/spec/support/vcr_cassettes/resources/phax_code/create_png.yml +52 -0
- data/spec/support/vcr_cassettes/resources/phax_code/get.yml +45 -0
- data/spec/support/vcr_cassettes/resources/phax_code/get_id.yml +46 -0
- data/spec/support/vcr_cassettes/resources/phax_code/get_id_png.yml +50 -0
- data/spec/support/vcr_cassettes/resources/phax_code/get_png.yml +50 -0
- data/spec/support/vcr_cassettes/resources/phone_number/create.yml +48 -0
- data/spec/support/vcr_cassettes/resources/phone_number/get.yml +46 -0
- data/spec/support/vcr_cassettes/resources/phone_number/list.yml +60 -0
- data/spec/support/vcr_cassettes/resources/phone_number/release.yml +45 -0
- data/spec/support/vcr_cassettes/resources/public/area_codes/list.yml +79 -0
- data/spec/support/vcr_cassettes/resources/public/country/list.yml +55 -0
- metadata +103 -73
- data/test/support/responses/account_status.json +0 -9
- data/test/support/responses/cancel_success.json +0 -4
- data/test/support/responses/fax_status_success.json +0 -21
- data/test/support/responses/list_faxes.json +0 -68
- data/test/support/responses/list_numbers.json +0 -22
- data/test/support/responses/provision_number.json +0 -12
- data/test/support/responses/release_number.json +0 -7
- data/test/support/responses/send_failure.json +0 -8
- data/test/support/responses/send_success.json +0 -8
- data/test/support/responses/test.pdf +0 -0
- data/test/support/responses/test_receive.json +0 -4
- data/test/test_helper.rb +0 -53
- data/test/test_phaxio.rb +0 -72
@@ -0,0 +1,60 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.phaxio.com/v2.1/phone_numbers
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Basic dGVzdC1hcGkta2V5OnRlc3QtYXBpLXNlY3JldA==
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v1.3.0
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
cache-control:
|
20
|
+
- max-age=0, private, must-revalidate
|
21
|
+
content-type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
date:
|
24
|
+
- Wed, 24 Feb 2021 19:48:23 GMT
|
25
|
+
etag:
|
26
|
+
- W/"2a2b7f3b168cdda8e7f2bd456d9f53cd"
|
27
|
+
server:
|
28
|
+
- nginx
|
29
|
+
strict-transport-security:
|
30
|
+
- max-age=15768000; preload
|
31
|
+
x-page:
|
32
|
+
- '1'
|
33
|
+
x-per-page:
|
34
|
+
- '25'
|
35
|
+
x-request-id:
|
36
|
+
- cb48b0e7-7536-42dd-96a2-95f1e6af0b9e
|
37
|
+
x-robots-tag:
|
38
|
+
- noindex, nofollow, nosnippet, noarchive
|
39
|
+
x-runtime:
|
40
|
+
- '0.074689'
|
41
|
+
x-total:
|
42
|
+
- '9'
|
43
|
+
content-length:
|
44
|
+
- '2427'
|
45
|
+
connection:
|
46
|
+
- keep-alive
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"success":true,"message":"Retrieved user phone numbers successfully","data":[{"phone_number":"+13372022383","city":"Lafayette,
|
50
|
+
Lake Charles","state":"Louisiana","country":"United States of America","cost":200,"last_billed_at":"2021-02-16T16:10:50.000-06:00","provisioned_at":"2019-09-16T17:10:50.000-05:00","callback_url":null,"ata_name":null},{"phone_number":"+15558675309","city":"Seattle","state":"Washington","country":"United
|
51
|
+
States of America","cost":200,"last_billed_at":"2021-02-04T15:25:35.000-06:00","provisioned_at":"2020-05-04T16:25:35.000-05:00","callback_url":null,"ata_name":null},{"phone_number":"+12253250536","city":"Baton
|
52
|
+
Rouge","state":"Louisiana","country":"United States of America","cost":200,"last_billed_at":"2021-02-24T10:42:25.000-06:00","provisioned_at":"2021-02-24T10:42:25.000-06:00","callback_url":null,"ata_name":null},{"phone_number":"+12253250537","city":"Baton
|
53
|
+
Rouge","state":"Louisiana","country":"United States of America","cost":200,"last_billed_at":"2021-02-24T11:08:29.000-06:00","provisioned_at":"2021-02-24T11:08:29.000-06:00","callback_url":null,"ata_name":null},{"phone_number":"+12253250538","city":"Baton
|
54
|
+
Rouge","state":"Louisiana","country":"United States of America","cost":200,"last_billed_at":"2021-02-24T11:17:49.000-06:00","provisioned_at":"2021-02-24T11:17:49.000-06:00","callback_url":null,"ata_name":null},{"phone_number":"+12253250539","city":"Baton
|
55
|
+
Rouge","state":"Louisiana","country":"United States of America","cost":200,"last_billed_at":"2021-02-24T11:58:15.000-06:00","provisioned_at":"2021-02-24T11:58:15.000-06:00","callback_url":null,"ata_name":null},{"phone_number":"+12253250549","city":"Baton
|
56
|
+
Rouge","state":"Louisiana","country":"United States of America","cost":200,"last_billed_at":"2021-02-24T12:44:31.000-06:00","provisioned_at":"2021-02-24T12:44:31.000-06:00","callback_url":null,"ata_name":null},{"phone_number":"+12253250550","city":"Baton
|
57
|
+
Rouge","state":"Louisiana","country":"United States of America","cost":200,"last_billed_at":"2021-02-24T12:45:24.000-06:00","provisioned_at":"2021-02-24T12:45:24.000-06:00","callback_url":null,"ata_name":null},{"phone_number":"+12253250554","city":"Baton
|
58
|
+
Rouge","state":"Louisiana","country":"United States of America","cost":200,"last_billed_at":"2021-02-24T13:44:18.000-06:00","provisioned_at":"2021-02-24T13:44:18.000-06:00","callback_url":null,"ata_name":null}],"paging":{"total":9,"per_page":25,"page":1}}'
|
59
|
+
recorded_at: Wed, 24 Feb 2021 19:47:36 GMT
|
60
|
+
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,45 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: delete
|
5
|
+
uri: https://api.phaxio.com/v2.1/phone_numbers/+12258675309
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Basic dGVzdC1hcGkta2V5OnRlc3QtYXBpLXNlY3JldA==
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v1.3.0
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
cache-control:
|
20
|
+
- max-age=0, private, must-revalidate
|
21
|
+
content-type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
date:
|
24
|
+
- Wed, 24 Feb 2021 19:49:15 GMT
|
25
|
+
etag:
|
26
|
+
- W/"72f232a3122ac0559f594e0dc20e2512"
|
27
|
+
server:
|
28
|
+
- nginx
|
29
|
+
strict-transport-security:
|
30
|
+
- max-age=15768000; preload
|
31
|
+
x-request-id:
|
32
|
+
- 28a97db1-61d1-4b00-adb8-0e38ed8d3577
|
33
|
+
x-robots-tag:
|
34
|
+
- noindex, nofollow, nosnippet, noarchive
|
35
|
+
x-runtime:
|
36
|
+
- '0.044131'
|
37
|
+
transfer-encoding:
|
38
|
+
- chunked
|
39
|
+
connection:
|
40
|
+
- keep-alive
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"success":true,"message":"Number released successfully!"}'
|
44
|
+
recorded_at: Wed, 24 Feb 2021 19:48:28 GMT
|
45
|
+
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,79 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.phaxio.com/v2.1/public/area_codes
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Basic dGVzdC1hcGkta2V5OnRlc3QtYXBpLXNlY3JldA==
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v1.3.0
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
cache-control:
|
20
|
+
- max-age=0, private, must-revalidate
|
21
|
+
content-type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
date:
|
24
|
+
- Wed, 24 Feb 2021 19:38:52 GMT
|
25
|
+
etag:
|
26
|
+
- W/"9c18315fdbc934efdcc5d98e24b54bef"
|
27
|
+
server:
|
28
|
+
- nginx
|
29
|
+
strict-transport-security:
|
30
|
+
- max-age=15768000; preload
|
31
|
+
x-page:
|
32
|
+
- '1'
|
33
|
+
x-per-page:
|
34
|
+
- '25'
|
35
|
+
x-request-id:
|
36
|
+
- 1b4a830d-591d-49b1-b9f4-fbcb59136968
|
37
|
+
x-robots-tag:
|
38
|
+
- noindex, nofollow, nosnippet, noarchive
|
39
|
+
x-runtime:
|
40
|
+
- '0.029816'
|
41
|
+
x-total:
|
42
|
+
- '327'
|
43
|
+
content-length:
|
44
|
+
- '3552'
|
45
|
+
connection:
|
46
|
+
- keep-alive
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"success":true,"message":"Data contains found available area codes","data":[{"country_code":1,"area_code":202,"city":"Washington","state":"District
|
50
|
+
of Columbia","country":"United States of America","toll_free":false},{"country_code":1,"area_code":204,"city":"Brandon,
|
51
|
+
Winnipeg","state":"Manitoba","country":"Canada","toll_free":false},{"country_code":1,"area_code":205,"city":"Birmingham,
|
52
|
+
Clanton, Jasper","state":"Alabama","country":"United States of America","toll_free":false},{"country_code":1,"area_code":206,"city":"Seattle","state":"Washington","country":"United
|
53
|
+
States of America","toll_free":false},{"country_code":1,"area_code":207,"city":"Portland","state":"Maine","country":"United
|
54
|
+
States of America","toll_free":false},{"country_code":1,"area_code":208,"city":"Boise,
|
55
|
+
Idaho Falls, Pocatello","state":"Idaho","country":"United States of America","toll_free":false},{"country_code":1,"area_code":209,"city":"Lodi,
|
56
|
+
Merced, Modesto","state":"California","country":"United States of America","toll_free":false},{"country_code":1,"area_code":210,"city":"San
|
57
|
+
Antonio","state":"Texas","country":"United States of America","toll_free":false},{"country_code":1,"area_code":213,"city":"Los
|
58
|
+
Angeles","state":"California","country":"United States of America","toll_free":false},{"country_code":1,"area_code":215,"city":"Levittown,
|
59
|
+
Philadelphia","state":"Pennsylvania","country":"United States of America","toll_free":false},{"country_code":1,"area_code":216,"city":"Cleveland,
|
60
|
+
Euclid, Lakewood","state":"Ohio","country":"United States of America","toll_free":false},{"country_code":1,"area_code":217,"city":"Champaign,
|
61
|
+
Decatur, Springfield","state":"Illinois","country":"United States of America","toll_free":false},{"country_code":1,"area_code":218,"city":"Duluth,
|
62
|
+
Ely, Moorhead","state":"Minnesota","country":"United States of America","toll_free":false},{"country_code":1,"area_code":219,"city":"Gary,
|
63
|
+
Hammond","state":"Indiana","country":"United States of America","toll_free":false},{"country_code":1,"area_code":224,"city":"Arlington
|
64
|
+
Heights, Evanston, Skokie","state":"Illinois","country":"United States of
|
65
|
+
America","toll_free":false},{"country_code":1,"area_code":225,"city":"Baton
|
66
|
+
Rouge","state":"Louisiana","country":"United States of America","toll_free":false},{"country_code":1,"area_code":226,"city":"Kitchener,
|
67
|
+
London, Windsor","state":"Ontario","country":"Canada","toll_free":false},{"country_code":1,"area_code":228,"city":"Biloxi,
|
68
|
+
Gulfport","state":"Mississippi","country":"United States of America","toll_free":false},{"country_code":1,"area_code":229,"city":"Albany,
|
69
|
+
Americus, Bainbridge","state":"Georgia","country":"United States of America","toll_free":false},{"country_code":1,"area_code":231,"city":"Grant","state":"Michigan","country":"United
|
70
|
+
States of America","toll_free":false},{"country_code":1,"area_code":234,"city":"Akron,
|
71
|
+
Canton, Youngstown","state":"Ohio","country":"United States of America","toll_free":false},{"country_code":1,"area_code":236,"city":"Vancouver","state":"British
|
72
|
+
Columbia","country":"Canada","toll_free":false},{"country_code":1,"area_code":239,"city":"Cape
|
73
|
+
Coral","state":"Florida","country":"United States of America","toll_free":false},{"country_code":1,"area_code":240,"city":"Aspen
|
74
|
+
Hill, Bethesda, Frederick","state":"Maryland","country":"United States of
|
75
|
+
America","toll_free":false},{"country_code":1,"area_code":248,"city":"Farmington
|
76
|
+
Hills, Pontiac, Rochester Hills","state":"Michigan","country":"United States
|
77
|
+
of America","toll_free":false}],"paging":{"total":327,"per_page":25,"page":1}}'
|
78
|
+
recorded_at: Wed, 24 Feb 2021 19:38:05 GMT
|
79
|
+
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.phaxio.com/v2.1/public/countries
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Basic dGVzdC1hcGkta2V5OnRlc3QtYXBpLXNlY3JldA==
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v1.3.0
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
cache-control:
|
20
|
+
- max-age=0, private, must-revalidate
|
21
|
+
content-type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
date:
|
24
|
+
- Wed, 24 Feb 2021 19:37:27 GMT
|
25
|
+
etag:
|
26
|
+
- W/"1662637ad255ab3635318bef0bf5068b"
|
27
|
+
server:
|
28
|
+
- nginx
|
29
|
+
strict-transport-security:
|
30
|
+
- max-age=15768000; preload
|
31
|
+
x-page:
|
32
|
+
- '1'
|
33
|
+
x-per-page:
|
34
|
+
- '25'
|
35
|
+
x-request-id:
|
36
|
+
- b394b58a-a31e-42ba-b342-d8441dedc7c9
|
37
|
+
x-robots-tag:
|
38
|
+
- noindex, nofollow, nosnippet, noarchive
|
39
|
+
x-runtime:
|
40
|
+
- '0.014810'
|
41
|
+
x-total:
|
42
|
+
- '250'
|
43
|
+
content-length:
|
44
|
+
- '3128'
|
45
|
+
connection:
|
46
|
+
- keep-alive
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"success":true,"message":"Data contains countries info","data":[{"name":"United
|
50
|
+
States of America","alpha2":"US","country_code":1,"price_per_page":7,"send_support":"full","receive_support":"full"},{"name":"Canada","alpha2":"CA","country_code":1,"price_per_page":7,"send_support":"full","receive_support":"full"},{"name":"Puerto
|
51
|
+
Rico","alpha2":"PR","country_code":1,"price_per_page":7,"send_support":"full","receive_support":"none"},{"name":"Argentina","alpha2":"AR","country_code":54,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Austria","alpha2":"AT","country_code":43,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Australia","alpha2":"AU","country_code":61,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Belgium","alpha2":"BE","country_code":32,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Brazil","alpha2":"BR","country_code":55,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Switzerland","alpha2":"CH","country_code":41,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Germany","alpha2":"DE","country_code":49,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Denmark","alpha2":"DK","country_code":45,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Spain","alpha2":"ES","country_code":34,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"France","alpha2":"FR","country_code":33,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"United
|
52
|
+
Kingdom of Great Britain and Northern Ireland","alpha2":"GB","country_code":44,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Greece","alpha2":"GR","country_code":30,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Hong
|
53
|
+
Kong","alpha2":"HK","country_code":852,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Ireland","alpha2":"IE","country_code":353,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Israel","alpha2":"IL","country_code":972,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"India","alpha2":"IN","country_code":91,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Italy","alpha2":"IT","country_code":39,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Jersey","alpha2":"JE","country_code":44,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Japan","alpha2":"JP","country_code":81,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Luxembourg","alpha2":"LU","country_code":352,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Netherlands","alpha2":"NL","country_code":31,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Norway","alpha2":"NO","country_code":47,"price_per_page":10,"send_support":"full","receive_support":"none"}],"paging":{"total":250,"per_page":25,"page":1}}'
|
54
|
+
recorded_at: Wed, 24 Feb 2021 19:36:40 GMT
|
55
|
+
recorded_with: VCR 6.0.0
|
metadata
CHANGED
@@ -1,132 +1,162 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phaxio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
5
|
-
prerelease:
|
4
|
+
version: 2.1.0.pre
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
|
-
-
|
9
|
-
- Brett Chalupa
|
7
|
+
- Julien Negrotto
|
10
8
|
autorequire:
|
11
9
|
bindir: bin
|
12
10
|
cert_chain: []
|
13
|
-
date:
|
11
|
+
date: 2021-02-24 00:00:00.000000000 Z
|
14
12
|
dependencies:
|
15
13
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
14
|
+
name: faraday
|
17
15
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
16
|
requirements:
|
20
|
-
- -
|
17
|
+
- - ">="
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.
|
19
|
+
version: '0.10'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '2.0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
26
|
requirements:
|
28
|
-
- -
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.10'
|
30
|
+
- - "<"
|
29
31
|
- !ruby/object:Gem::Version
|
30
|
-
version: 0
|
32
|
+
version: '2.0'
|
31
33
|
- !ruby/object:Gem::Dependency
|
32
|
-
name:
|
34
|
+
name: mime-types
|
33
35
|
requirement: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
36
|
requirements:
|
36
|
-
- - ~>
|
37
|
+
- - "~>"
|
37
38
|
- !ruby/object:Gem::Version
|
38
|
-
version:
|
39
|
-
type: :
|
39
|
+
version: '3.0'
|
40
|
+
type: :runtime
|
40
41
|
prerelease: false
|
41
42
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
43
|
requirements:
|
44
|
-
- - ~>
|
44
|
+
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
46
|
+
version: '3.0'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
48
|
+
name: activesupport
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
50
|
requirements:
|
52
|
-
- -
|
51
|
+
- - ">="
|
53
52
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0
|
55
|
-
type: :
|
53
|
+
version: '0'
|
54
|
+
type: :runtime
|
56
55
|
prerelease: false
|
57
56
|
version_requirements: !ruby/object:Gem::Requirement
|
58
|
-
none: false
|
59
57
|
requirements:
|
60
|
-
- -
|
58
|
+
- - ">="
|
61
59
|
- !ruby/object:Gem::Version
|
62
|
-
version: 0
|
63
|
-
description:
|
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.
|
60
|
+
version: '0'
|
61
|
+
description: Official ruby gem for interacting with Phaxio's API.
|
66
62
|
email:
|
67
|
-
-
|
68
|
-
- brettchalupa@gmail.com
|
63
|
+
- julien@phaxio.com
|
69
64
|
executables: []
|
70
65
|
extensions: []
|
71
66
|
extra_rdoc_files: []
|
72
67
|
files:
|
73
|
-
- .gitignore
|
68
|
+
- ".gitignore"
|
69
|
+
- ".travis.yml"
|
74
70
|
- Gemfile
|
75
71
|
- LICENSE
|
76
72
|
- README.md
|
77
73
|
- Rakefile
|
78
74
|
- lib/phaxio.rb
|
79
75
|
- lib/phaxio/client.rb
|
76
|
+
- lib/phaxio/config.rb
|
77
|
+
- lib/phaxio/error.rb
|
78
|
+
- lib/phaxio/helpers/mime_type_helper.rb
|
79
|
+
- lib/phaxio/resource.rb
|
80
|
+
- lib/phaxio/resources.rb
|
81
|
+
- lib/phaxio/resources/account.rb
|
82
|
+
- lib/phaxio/resources/ata.rb
|
83
|
+
- lib/phaxio/resources/callback.rb
|
84
|
+
- lib/phaxio/resources/fax.rb
|
85
|
+
- lib/phaxio/resources/fax_recipient.rb
|
86
|
+
- lib/phaxio/resources/phax_code.rb
|
87
|
+
- lib/phaxio/resources/phone_number.rb
|
88
|
+
- lib/phaxio/resources/public.rb
|
89
|
+
- lib/phaxio/resources/public/area_code.rb
|
90
|
+
- lib/phaxio/resources/public/country.rb
|
80
91
|
- lib/phaxio/version.rb
|
81
92
|
- phaxio.gemspec
|
82
|
-
-
|
83
|
-
-
|
84
|
-
-
|
85
|
-
-
|
86
|
-
-
|
87
|
-
-
|
88
|
-
-
|
89
|
-
-
|
90
|
-
-
|
91
|
-
-
|
92
|
-
-
|
93
|
-
-
|
94
|
-
-
|
95
|
-
|
96
|
-
|
93
|
+
- spec/client_spec.rb
|
94
|
+
- spec/helpers/mime_type_helper_spec.rb
|
95
|
+
- spec/phaxio_spec.rb
|
96
|
+
- spec/resources/account_spec.rb
|
97
|
+
- spec/resources/callback_spec.rb
|
98
|
+
- spec/resources/fax_spec.rb
|
99
|
+
- spec/resources/phax_code_spec.rb
|
100
|
+
- spec/resources/phone_number_spec.rb
|
101
|
+
- spec/resources/public/area_code_spec.rb
|
102
|
+
- spec/resources/public/country_spec.rb
|
103
|
+
- spec/spec_helper.rb
|
104
|
+
- spec/support/credentials.rb
|
105
|
+
- spec/support/expectations.rb
|
106
|
+
- spec/support/files/test.pdf
|
107
|
+
- spec/support/files/test.txt
|
108
|
+
- spec/support/vcr.rb
|
109
|
+
- spec/support/vcr_cassettes/resources/account/status.yml
|
110
|
+
- spec/support/vcr_cassettes/resources/fax/cancel.yml
|
111
|
+
- spec/support/vcr_cassettes/resources/fax/create.yml
|
112
|
+
- spec/support/vcr_cassettes/resources/fax/create_for_cancel.yml
|
113
|
+
- spec/support/vcr_cassettes/resources/fax/create_for_delete.yml
|
114
|
+
- spec/support/vcr_cassettes/resources/fax/create_for_delete_file.yml
|
115
|
+
- spec/support/vcr_cassettes/resources/fax/create_for_download_file.yml
|
116
|
+
- spec/support/vcr_cassettes/resources/fax/create_for_get.yml
|
117
|
+
- spec/support/vcr_cassettes/resources/fax/create_for_reference.yml
|
118
|
+
- spec/support/vcr_cassettes/resources/fax/create_for_resend.yml
|
119
|
+
- spec/support/vcr_cassettes/resources/fax/delete.yml
|
120
|
+
- spec/support/vcr_cassettes/resources/fax/delete_file.yml
|
121
|
+
- spec/support/vcr_cassettes/resources/fax/file.yml
|
122
|
+
- spec/support/vcr_cassettes/resources/fax/get.yml
|
123
|
+
- spec/support/vcr_cassettes/resources/fax/list.yml
|
124
|
+
- spec/support/vcr_cassettes/resources/fax/reference.yml
|
125
|
+
- spec/support/vcr_cassettes/resources/fax/resend.yml
|
126
|
+
- spec/support/vcr_cassettes/resources/fax/test_receive.yml
|
127
|
+
- spec/support/vcr_cassettes/resources/phax_code/create.yml
|
128
|
+
- spec/support/vcr_cassettes/resources/phax_code/create_png.yml
|
129
|
+
- spec/support/vcr_cassettes/resources/phax_code/get.yml
|
130
|
+
- spec/support/vcr_cassettes/resources/phax_code/get_id.yml
|
131
|
+
- spec/support/vcr_cassettes/resources/phax_code/get_id_png.yml
|
132
|
+
- spec/support/vcr_cassettes/resources/phax_code/get_png.yml
|
133
|
+
- spec/support/vcr_cassettes/resources/phone_number/create.yml
|
134
|
+
- spec/support/vcr_cassettes/resources/phone_number/get.yml
|
135
|
+
- spec/support/vcr_cassettes/resources/phone_number/list.yml
|
136
|
+
- spec/support/vcr_cassettes/resources/phone_number/release.yml
|
137
|
+
- spec/support/vcr_cassettes/resources/public/area_codes/list.yml
|
138
|
+
- spec/support/vcr_cassettes/resources/public/country/list.yml
|
139
|
+
homepage: https://github.com/phaxio/phaxio-ruby
|
140
|
+
licenses:
|
141
|
+
- MIT
|
142
|
+
metadata: {}
|
97
143
|
post_install_message:
|
98
144
|
rdoc_options: []
|
99
145
|
require_paths:
|
100
146
|
- lib
|
101
147
|
required_ruby_version: !ruby/object:Gem::Requirement
|
102
|
-
none: false
|
103
148
|
requirements:
|
104
|
-
- -
|
149
|
+
- - ">="
|
105
150
|
- !ruby/object:Gem::Version
|
106
|
-
version: '0'
|
151
|
+
version: '2.0'
|
107
152
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
108
|
-
none: false
|
109
153
|
requirements:
|
110
|
-
- -
|
154
|
+
- - ">"
|
111
155
|
- !ruby/object:Gem::Version
|
112
|
-
version:
|
156
|
+
version: 1.3.1
|
113
157
|
requirements: []
|
114
|
-
|
115
|
-
rubygems_version: 1.8.24
|
158
|
+
rubygems_version: 3.2.11
|
116
159
|
signing_key:
|
117
|
-
specification_version:
|
118
|
-
summary:
|
119
|
-
test_files:
|
120
|
-
- test/support/responses/account_status.json
|
121
|
-
- test/support/responses/cancel_success.json
|
122
|
-
- test/support/responses/fax_status_success.json
|
123
|
-
- test/support/responses/list_faxes.json
|
124
|
-
- test/support/responses/list_numbers.json
|
125
|
-
- test/support/responses/provision_number.json
|
126
|
-
- test/support/responses/release_number.json
|
127
|
-
- test/support/responses/send_failure.json
|
128
|
-
- test/support/responses/send_success.json
|
129
|
-
- test/support/responses/test.pdf
|
130
|
-
- test/support/responses/test_receive.json
|
131
|
-
- test/test_helper.rb
|
132
|
-
- test/test_phaxio.rb
|
160
|
+
specification_version: 4
|
161
|
+
summary: Official ruby gem for interacting with Phaxio's API.
|
162
|
+
test_files: []
|