boffinio 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +22 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +2 -0
- data/boffinio.gemspec +31 -0
- data/lib/boffinio/api_operations/create.rb +16 -0
- data/lib/boffinio/api_operations/delete.rb +11 -0
- data/lib/boffinio/api_operations/list.rb +16 -0
- data/lib/boffinio/api_operations/update.rb +57 -0
- data/lib/boffinio/api_resource.rb +33 -0
- data/lib/boffinio/boffinio_object.rb +190 -0
- data/lib/boffinio/customer.rb +36 -0
- data/lib/boffinio/errors/api_error.rb +4 -0
- data/lib/boffinio/errors/authentication_error.rb +4 -0
- data/lib/boffinio/errors/boffinio_error.rb +20 -0
- data/lib/boffinio/errors/invalid_request_error.rb +4 -0
- data/lib/boffinio/list_object.rb +35 -0
- data/lib/boffinio/plan.rb +7 -0
- data/lib/boffinio/subscription.rb +10 -0
- data/lib/boffinio/util.rb +87 -0
- data/lib/boffinio/version.rb +3 -0
- data/lib/boffinio.rb +229 -0
- data/test/customer/customer_test.rb +149 -0
- data/test/fixtures/all_customers.yml +62 -0
- data/test/fixtures/cancel_subscription.yml +62 -0
- data/test/fixtures/create_customer.yml +66 -0
- data/test/fixtures/create_subscription.yml +66 -0
- data/test/fixtures/customer_subscriptions.yml +62 -0
- data/test/fixtures/one_customer.yml +67 -0
- data/test/fixtures/update_customer.yml +64 -0
- data/test/fixtures/update_named_subscription.yml +64 -0
- data/test/fixtures/update_subscription.yml +66 -0
- data/test/subscription/subscription_test.rb +0 -0
- data/test/test_helper.rb +13 -0
- metadata +210 -0
@@ -0,0 +1,62 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.boffin-dev.io:3000/v1/customers/1398/subscriptions
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Boffin/v1 RubyBindings/0.0.1
|
16
|
+
Authorization:
|
17
|
+
- Token token=141d246d5e0774eaab3482259516dae9
|
18
|
+
Content-Type:
|
19
|
+
- application/x-www-form-urlencoded
|
20
|
+
Stripe-Version:
|
21
|
+
- v1
|
22
|
+
X-Stripe-Client-User-Agent:
|
23
|
+
- '{"bindings_version":"0.0.1","lang":"ruby","lang_version":"2.0.0 p481 (2014-05-08)","platform":"x86_64-linux","publisher":"boffinio","uname":"Linux
|
24
|
+
tim-laptop 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64
|
25
|
+
x86_64 x86_64 GNU/Linux"}'
|
26
|
+
response:
|
27
|
+
status:
|
28
|
+
code: 200
|
29
|
+
message: 'OK '
|
30
|
+
headers:
|
31
|
+
X-Frame-Options:
|
32
|
+
- SAMEORIGIN
|
33
|
+
X-Xss-Protection:
|
34
|
+
- 1; mode=block
|
35
|
+
X-Content-Type-Options:
|
36
|
+
- nosniff
|
37
|
+
Content-Type:
|
38
|
+
- application/json; charset=utf-8
|
39
|
+
Etag:
|
40
|
+
- '"84895ca1ba655182fc1dc8207f557011"'
|
41
|
+
Cache-Control:
|
42
|
+
- max-age=0, private, must-revalidate
|
43
|
+
X-Request-Id:
|
44
|
+
- afc4492e-e3ce-48b4-afb3-2bd16042e4d4
|
45
|
+
X-Runtime:
|
46
|
+
- '0.022162'
|
47
|
+
Server:
|
48
|
+
- WEBrick/1.3.1 (Ruby/2.0.0/2014-05-08)
|
49
|
+
Date:
|
50
|
+
- Sun, 26 Oct 2014 13:01:09 GMT
|
51
|
+
Content-Length:
|
52
|
+
- '225'
|
53
|
+
Connection:
|
54
|
+
- Keep-Alive
|
55
|
+
Set-Cookie:
|
56
|
+
- request_method=GET; path=/
|
57
|
+
body:
|
58
|
+
encoding: UTF-8
|
59
|
+
string: '[{"object":"subscription","start":"2014-10-24T21:55:06.000Z","canceled_at":null,"id":"sub_3f8fab0de092d9","metadata":{"provider":"heroku"},"plan":{"object":"plan","slug":"test","amount":0,"currency":"usd"},"customer":"1398"}]'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Sun, 26 Oct 2014 13:01:09 GMT
|
62
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,67 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.boffin-dev.io:3000/v1/customers/1398
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Boffin/v1 RubyBindings/0.0.1
|
16
|
+
Authorization:
|
17
|
+
- Token token=141d246d5e0774eaab3482259516dae9
|
18
|
+
Content-Type:
|
19
|
+
- application/x-www-form-urlencoded
|
20
|
+
Stripe-Version:
|
21
|
+
- v1
|
22
|
+
X-Stripe-Client-Raw-User-Agent:
|
23
|
+
- '{:bindings_version=>"0.0.1", :lang=>"ruby", :lang_version=>"2.0.0 p481 (2014-05-08)",
|
24
|
+
:platform=>"x86_64-linux", :publisher=>"boffinio", :uname=>"Linux tim-laptop
|
25
|
+
3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64 x86_64
|
26
|
+
x86_64 GNU/Linux"}'
|
27
|
+
Error:
|
28
|
+
- uninitialized constant BoffinIO::JSON (NameError)
|
29
|
+
response:
|
30
|
+
status:
|
31
|
+
code: 200
|
32
|
+
message: 'OK '
|
33
|
+
headers:
|
34
|
+
X-Frame-Options:
|
35
|
+
- SAMEORIGIN
|
36
|
+
X-Xss-Protection:
|
37
|
+
- 1; mode=block
|
38
|
+
X-Content-Type-Options:
|
39
|
+
- nosniff
|
40
|
+
Content-Type:
|
41
|
+
- application/json; charset=utf-8
|
42
|
+
Etag:
|
43
|
+
- '"df4fb9f0de6858747cf963c78b81de41"'
|
44
|
+
Cache-Control:
|
45
|
+
- max-age=0, private, must-revalidate
|
46
|
+
X-Request-Id:
|
47
|
+
- 7d5ab574-50f9-4084-9706-a8d7f98f05e5
|
48
|
+
X-Runtime:
|
49
|
+
- '0.160796'
|
50
|
+
Server:
|
51
|
+
- WEBrick/1.3.1 (Ruby/2.0.0/2014-05-08)
|
52
|
+
Date:
|
53
|
+
- Sun, 26 Oct 2014 12:33:16 GMT
|
54
|
+
Content-Length:
|
55
|
+
- '452'
|
56
|
+
Connection:
|
57
|
+
- Keep-Alive
|
58
|
+
Set-Cookie:
|
59
|
+
- request_method=GET; path=/
|
60
|
+
body:
|
61
|
+
encoding: UTF-8
|
62
|
+
string: '{"object":"customer","id":"1398","ref_id":"1398","description":"Tim
|
63
|
+
Williams","email":"static-app9554@kensa.heroku.com","subscriptions":{"object":"list","url":"/v1/customers/1398/subscriptions","data":[{"object":"subscription","start":"2014-10-24T21:55:06.000Z","canceled_at":null,"id":null,"metadata":{"provider":"heroku"},"plan":{"object":"plan","slug":"test","amount":0,"currency":"usd"},"customer":{"ref_id":"1398","description":"Tim
|
64
|
+
Williams"}}]}}'
|
65
|
+
http_version:
|
66
|
+
recorded_at: Sun, 26 Oct 2014 12:33:16 GMT
|
67
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,64 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: http://api.boffin-dev.io:3000/v1/customers/1398
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: email=timwilliams%40example.com
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Boffin/v1 RubyBindings/0.0.1
|
16
|
+
Authorization:
|
17
|
+
- Token token=141d246d5e0774eaab3482259516dae9
|
18
|
+
Content-Type:
|
19
|
+
- application/x-www-form-urlencoded
|
20
|
+
Stripe-Version:
|
21
|
+
- v1
|
22
|
+
X-Stripe-Client-User-Agent:
|
23
|
+
- '{"bindings_version":"0.0.1","lang":"ruby","lang_version":"2.0.0 p481 (2014-05-08)","platform":"x86_64-linux","publisher":"boffinio","uname":"Linux
|
24
|
+
tim-laptop 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64
|
25
|
+
x86_64 x86_64 GNU/Linux"}'
|
26
|
+
Content-Length:
|
27
|
+
- '31'
|
28
|
+
response:
|
29
|
+
status:
|
30
|
+
code: 200
|
31
|
+
message: 'OK '
|
32
|
+
headers:
|
33
|
+
X-Frame-Options:
|
34
|
+
- SAMEORIGIN
|
35
|
+
X-Xss-Protection:
|
36
|
+
- 1; mode=block
|
37
|
+
X-Content-Type-Options:
|
38
|
+
- nosniff
|
39
|
+
Content-Type:
|
40
|
+
- application/json; charset=utf-8
|
41
|
+
Etag:
|
42
|
+
- '"04d81bf84237c0967796e03fca19c4da"'
|
43
|
+
Cache-Control:
|
44
|
+
- max-age=0, private, must-revalidate
|
45
|
+
X-Request-Id:
|
46
|
+
- d372cc31-ef70-4f29-9be4-ca86a7966ed0
|
47
|
+
X-Runtime:
|
48
|
+
- '0.201609'
|
49
|
+
Server:
|
50
|
+
- WEBrick/1.3.1 (Ruby/2.0.0/2014-05-08)
|
51
|
+
Date:
|
52
|
+
- Mon, 27 Oct 2014 13:13:41 GMT
|
53
|
+
Content-Length:
|
54
|
+
- '185'
|
55
|
+
Connection:
|
56
|
+
- Keep-Alive
|
57
|
+
Set-Cookie:
|
58
|
+
- request_method=PUT; path=/
|
59
|
+
body:
|
60
|
+
encoding: UTF-8
|
61
|
+
string: '{"id":5677,"description":"Tim Williams","email":"timwilliams@example.com","ref_id":"1398","created_at":"2014-10-23T10:32:23.000Z","updated_at":"2014-10-27T13:13:41.881Z","product_id":4}'
|
62
|
+
http_version:
|
63
|
+
recorded_at: Mon, 27 Oct 2014 13:13:41 GMT
|
64
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,64 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: http://api.boffin-dev.io:3000/v1/customers/1398/subscriptions/sub_3f8fab0de092d9
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: metadata[country]=gb&metadata[provider]=
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Boffin/v1 RubyBindings/0.0.1
|
16
|
+
Authorization:
|
17
|
+
- Token token=141d246d5e0774eaab3482259516dae9
|
18
|
+
Content-Type:
|
19
|
+
- application/x-www-form-urlencoded
|
20
|
+
Stripe-Version:
|
21
|
+
- v1
|
22
|
+
X-Stripe-Client-User-Agent:
|
23
|
+
- '{"bindings_version":"0.0.1","lang":"ruby","lang_version":"2.0.0 p481 (2014-05-08)","platform":"x86_64-linux","publisher":"boffinio","uname":"Linux
|
24
|
+
tim-laptop 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64
|
25
|
+
x86_64 x86_64 GNU/Linux"}'
|
26
|
+
Content-Length:
|
27
|
+
- '40'
|
28
|
+
response:
|
29
|
+
status:
|
30
|
+
code: 200
|
31
|
+
message: 'OK '
|
32
|
+
headers:
|
33
|
+
X-Frame-Options:
|
34
|
+
- SAMEORIGIN
|
35
|
+
X-Xss-Protection:
|
36
|
+
- 1; mode=block
|
37
|
+
X-Content-Type-Options:
|
38
|
+
- nosniff
|
39
|
+
Content-Type:
|
40
|
+
- application/json; charset=utf-8
|
41
|
+
Etag:
|
42
|
+
- '"e8ae9cccc06d84871b066625e04ad58b"'
|
43
|
+
Cache-Control:
|
44
|
+
- max-age=0, private, must-revalidate
|
45
|
+
X-Request-Id:
|
46
|
+
- 28d65c69-e093-4da4-83e4-e08bf120b854
|
47
|
+
X-Runtime:
|
48
|
+
- '0.093721'
|
49
|
+
Server:
|
50
|
+
- WEBrick/1.3.1 (Ruby/2.0.0/2014-05-08)
|
51
|
+
Date:
|
52
|
+
- Sun, 26 Oct 2014 13:06:31 GMT
|
53
|
+
Content-Length:
|
54
|
+
- '232'
|
55
|
+
Connection:
|
56
|
+
- Keep-Alive
|
57
|
+
Set-Cookie:
|
58
|
+
- request_method=PUT; path=/
|
59
|
+
body:
|
60
|
+
encoding: UTF-8
|
61
|
+
string: '{"object":"subscription","start":"2014-10-24T21:55:06.000Z","canceled_at":null,"id":"sub_3f8fab0de092d9","metadata":{"country":"gb","provider":""},"plan":{"object":"plan","slug":"test","amount":0,"currency":"usd"},"customer":"1398"}'
|
62
|
+
http_version:
|
63
|
+
recorded_at: Sun, 26 Oct 2014 13:06:31 GMT
|
64
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,66 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://api.boffin-dev.io:3000/v1/customers/1398/subscriptions
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: plan=test&metadata[provider]=heroku
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Boffin/v1 RubyBindings/0.0.1
|
16
|
+
Authorization:
|
17
|
+
- Token token=141d246d5e0774eaab3482259516dae9
|
18
|
+
Content-Type:
|
19
|
+
- application/x-www-form-urlencoded
|
20
|
+
Stripe-Version:
|
21
|
+
- v1
|
22
|
+
X-Stripe-Client-User-Agent:
|
23
|
+
- '{"bindings_version":"0.0.1","lang":"ruby","lang_version":"2.0.0 p481 (2014-05-08)","platform":"x86_64-linux","publisher":"boffinio","uname":"Linux
|
24
|
+
tim-laptop 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64
|
25
|
+
x86_64 x86_64 GNU/Linux"}'
|
26
|
+
Content-Length:
|
27
|
+
- '35'
|
28
|
+
response:
|
29
|
+
status:
|
30
|
+
code: 201
|
31
|
+
message: 'Created '
|
32
|
+
headers:
|
33
|
+
X-Frame-Options:
|
34
|
+
- SAMEORIGIN
|
35
|
+
X-Xss-Protection:
|
36
|
+
- 1; mode=block
|
37
|
+
X-Content-Type-Options:
|
38
|
+
- nosniff
|
39
|
+
Location:
|
40
|
+
- http://api.boffin-dev.io:3000/v1/customers/1398/subscriptions/7068
|
41
|
+
Content-Type:
|
42
|
+
- application/json; charset=utf-8
|
43
|
+
Etag:
|
44
|
+
- '"acada593a27e7932dc7630d35972dd4f"'
|
45
|
+
Cache-Control:
|
46
|
+
- max-age=0, private, must-revalidate
|
47
|
+
X-Request-Id:
|
48
|
+
- 4a8dadf2-04d7-450b-903a-7f8084172cc1
|
49
|
+
X-Runtime:
|
50
|
+
- '0.088694'
|
51
|
+
Server:
|
52
|
+
- WEBrick/1.3.1 (Ruby/2.0.0/2014-05-08)
|
53
|
+
Date:
|
54
|
+
- Fri, 24 Oct 2014 21:55:06 GMT
|
55
|
+
Content-Length:
|
56
|
+
- '208'
|
57
|
+
Connection:
|
58
|
+
- Keep-Alive
|
59
|
+
Set-Cookie:
|
60
|
+
- request_method=POST; path=/
|
61
|
+
body:
|
62
|
+
encoding: UTF-8
|
63
|
+
string: '{"object":"subscription","start":"2014-10-24T21:55:06.296Z","canceled_at":null,"metadata":{"provider":"heroku"},"plan":{"object":"plan","slug":"test","amount":0,"currency":"usd"},"customer":{"ref_id":"1398"}}'
|
64
|
+
http_version:
|
65
|
+
recorded_at: Fri, 24 Oct 2014 21:55:06 GMT
|
66
|
+
recorded_with: VCR 2.9.3
|
File without changes
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
#test/test_helper.rb
|
2
|
+
require './lib/boffinio'
|
3
|
+
require 'minitest/autorun'
|
4
|
+
require 'webmock/minitest'
|
5
|
+
require 'vcr'
|
6
|
+
|
7
|
+
VCR.configure do |c|
|
8
|
+
c.cassette_library_dir = "test/fixtures"
|
9
|
+
c.hook_into :webmock
|
10
|
+
end
|
11
|
+
|
12
|
+
BoffinIO.api_base="http://api.boffin-dev.io:3000"
|
13
|
+
BoffinIO.api_key=("141d246d5e0774eaab3482259516dae9")
|
metadata
ADDED
@@ -0,0 +1,210 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: boffinio
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tim Williams
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-10-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.6'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '5.4'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '5.4'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: vcr
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2.9'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '2.9'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: webmock
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.20'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.20'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rest-client
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.4'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.4'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: json
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '1.8'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '1.8'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: mime-types
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '1.25'
|
118
|
+
- - "<"
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: '3.0'
|
121
|
+
type: :runtime
|
122
|
+
prerelease: false
|
123
|
+
version_requirements: !ruby/object:Gem::Requirement
|
124
|
+
requirements:
|
125
|
+
- - ">="
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
version: '1.25'
|
128
|
+
- - "<"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '3.0'
|
131
|
+
description: 'Gem wrapper for the Boffin.io API. Officially supported and maintained
|
132
|
+
by the Boffin.io team '
|
133
|
+
email:
|
134
|
+
- tim@teachmatic.com
|
135
|
+
executables: []
|
136
|
+
extensions: []
|
137
|
+
extra_rdoc_files: []
|
138
|
+
files:
|
139
|
+
- ".gitignore"
|
140
|
+
- Gemfile
|
141
|
+
- LICENSE.txt
|
142
|
+
- README.md
|
143
|
+
- Rakefile
|
144
|
+
- boffinio.gemspec
|
145
|
+
- lib/boffinio.rb
|
146
|
+
- lib/boffinio/api_operations/create.rb
|
147
|
+
- lib/boffinio/api_operations/delete.rb
|
148
|
+
- lib/boffinio/api_operations/list.rb
|
149
|
+
- lib/boffinio/api_operations/update.rb
|
150
|
+
- lib/boffinio/api_resource.rb
|
151
|
+
- lib/boffinio/boffinio_object.rb
|
152
|
+
- lib/boffinio/customer.rb
|
153
|
+
- lib/boffinio/errors/api_error.rb
|
154
|
+
- lib/boffinio/errors/authentication_error.rb
|
155
|
+
- lib/boffinio/errors/boffinio_error.rb
|
156
|
+
- lib/boffinio/errors/invalid_request_error.rb
|
157
|
+
- lib/boffinio/list_object.rb
|
158
|
+
- lib/boffinio/plan.rb
|
159
|
+
- lib/boffinio/subscription.rb
|
160
|
+
- lib/boffinio/util.rb
|
161
|
+
- lib/boffinio/version.rb
|
162
|
+
- test/customer/customer_test.rb
|
163
|
+
- test/fixtures/all_customers.yml
|
164
|
+
- test/fixtures/cancel_subscription.yml
|
165
|
+
- test/fixtures/create_customer.yml
|
166
|
+
- test/fixtures/create_subscription.yml
|
167
|
+
- test/fixtures/customer_subscriptions.yml
|
168
|
+
- test/fixtures/one_customer.yml
|
169
|
+
- test/fixtures/update_customer.yml
|
170
|
+
- test/fixtures/update_named_subscription.yml
|
171
|
+
- test/fixtures/update_subscription.yml
|
172
|
+
- test/subscription/subscription_test.rb
|
173
|
+
- test/test_helper.rb
|
174
|
+
homepage: http://www.boffin.io
|
175
|
+
licenses:
|
176
|
+
- MIT
|
177
|
+
metadata: {}
|
178
|
+
post_install_message:
|
179
|
+
rdoc_options: []
|
180
|
+
require_paths:
|
181
|
+
- lib
|
182
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - ">="
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '0'
|
187
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
188
|
+
requirements:
|
189
|
+
- - ">="
|
190
|
+
- !ruby/object:Gem::Version
|
191
|
+
version: '0'
|
192
|
+
requirements: []
|
193
|
+
rubyforge_project:
|
194
|
+
rubygems_version: 2.2.2
|
195
|
+
signing_key:
|
196
|
+
specification_version: 4
|
197
|
+
summary: Gem wrapper for the Boffin.io API
|
198
|
+
test_files:
|
199
|
+
- test/customer/customer_test.rb
|
200
|
+
- test/fixtures/all_customers.yml
|
201
|
+
- test/fixtures/cancel_subscription.yml
|
202
|
+
- test/fixtures/create_customer.yml
|
203
|
+
- test/fixtures/create_subscription.yml
|
204
|
+
- test/fixtures/customer_subscriptions.yml
|
205
|
+
- test/fixtures/one_customer.yml
|
206
|
+
- test/fixtures/update_customer.yml
|
207
|
+
- test/fixtures/update_named_subscription.yml
|
208
|
+
- test/fixtures/update_subscription.yml
|
209
|
+
- test/subscription/subscription_test.rb
|
210
|
+
- test/test_helper.rb
|