promise_pay 0.1.10 → 0.2.0
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.
- checksums.yaml +4 -4
- data/.travis.yml +3 -5
- data/CHANGELOG.md +4 -0
- data/Gemfile +0 -1
- data/README.md +16 -7
- data/lib/promise_pay/callback.rb +74 -0
- data/lib/promise_pay/item.rb +4 -5
- data/lib/promise_pay/version.rb +1 -1
- data/lib/promise_pay.rb +1 -0
- data/promise_pay.gemspec +6 -6
- data/spec/promise_pay/callback_spec.rb +116 -0
- data/spec/promise_pay/item_spec.rb +25 -11
- data/spec/support/fixtures/callback/create.json +13 -0
- data/spec/support/fixtures/callback/delete.json +3 -0
- data/spec/support/fixtures/callback/index.json +21 -0
- metadata +40 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57fc2674df1d8d9b170ee3f7d3f789d4b18d5ab3
|
4
|
+
data.tar.gz: 870f85879f4435dc5dd2434848d52f2ca24feeed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a247db1fb8d3b364c8ab00f1d36f4cce6e09c3963ef4e65580361be65b28c6f0de20cafc460fa93d0a4641852f658f2190ba3728ba04b024d66c629a702a227
|
7
|
+
data.tar.gz: 456f02b71098d500830807274389a13ebeb7fb44a2367aef38060c25bd3720233efd5ab5ff08e18a0c08835249445481d309a0f4ce5b6dec377dfe3e1c91c2d3
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
ADDED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -28,7 +28,7 @@ You're set to go!
|
|
28
28
|
|
29
29
|
To use PromisePay's test API, set the following in `config/initializers/promise_pay.rb`:
|
30
30
|
|
31
|
-
PromisePay.env = :test
|
31
|
+
PromisePay.env = :test # probaby should reference config/environments/...
|
32
32
|
|
33
33
|
Along with your test environments api user/key. You can generate all this by running:
|
34
34
|
|
@@ -53,7 +53,7 @@ user = PromisePay::User.find(12345)
|
|
53
53
|
user.email => "email@addr"
|
54
54
|
|
55
55
|
# Query for a status of an item (abc123) returning a PromisePay::Item::Status object
|
56
|
-
user = PromisePay::
|
56
|
+
user = PromisePay::ItemStatus.find('abc123')
|
57
57
|
user.state => "pending"
|
58
58
|
|
59
59
|
# Query PromisePay for an item (1s345) returning a PromisePay::Item object
|
@@ -61,16 +61,25 @@ item = PromisePay::Item.find("1s345")
|
|
61
61
|
item.amount => 10
|
62
62
|
# Note: this is a slow operation, it you just want item status use the Item::Status API
|
63
63
|
|
64
|
+
# New PromisePay::Item using params hash for attributes
|
65
|
+
item = PromisePay::Item.new({id: "1s345"})
|
66
|
+
item.id => "1s345"
|
67
|
+
|
64
68
|
# Create a fee returning a PromisePay::Feelist object
|
65
69
|
fee = PromisePay::Feelist.create(fee_params)
|
66
70
|
fee.id => "5c07f36a-d18f-4153-9a75-ebf9f4f2f9ef"
|
67
71
|
|
72
|
+
# Create a callback
|
73
|
+
fee = PromisePay::Callback.create(url: "https://our.api/callback", object_type: "items")
|
74
|
+
fee.id => "77e4fc66-b695-4e72-90ac-b454c395b867"
|
75
|
+
|
68
76
|
```
|
69
77
|
|
70
78
|
## Contributing
|
71
79
|
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
80
|
+
This project follows [semantic versioning](http://semver.org).
|
81
|
+
|
82
|
+
In order to make a change, do so from a feature branch and pull request the
|
83
|
+
project. Your pull request should not include a version change. Instead, make
|
84
|
+
an addition to the "head" version in the CHANGELOG that briefly describes the
|
85
|
+
change and ideally links to the pull request.
|
@@ -0,0 +1,74 @@
|
|
1
|
+
require "promise_pay/lib/dynamic_accessors"
|
2
|
+
require "json"
|
3
|
+
|
4
|
+
module PromisePay
|
5
|
+
class Callback
|
6
|
+
include Lib::DynamicAccessors
|
7
|
+
|
8
|
+
ENDPOINT = 'callbacks/'
|
9
|
+
|
10
|
+
attr_reader :id
|
11
|
+
attr_reader :url
|
12
|
+
attr_reader :description
|
13
|
+
attr_reader :object_type
|
14
|
+
attr_reader :enabled
|
15
|
+
|
16
|
+
attr_reader :method
|
17
|
+
attr_reader :endpoint
|
18
|
+
|
19
|
+
def self.index(options = {})
|
20
|
+
new(options.merge(method: :get)).execute
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.delete(options = {})
|
24
|
+
new(options.merge(method: :delete)).execute
|
25
|
+
end
|
26
|
+
|
27
|
+
def self.create(options = {})
|
28
|
+
new(options.merge(method: :post)).execute
|
29
|
+
end
|
30
|
+
|
31
|
+
def initialize(options = {})
|
32
|
+
@id = options.fetch(:id) { nil }
|
33
|
+
@url = options.fetch(:url) { "" }
|
34
|
+
@description = options.fetch(:description) { "" }
|
35
|
+
@object_type = options.fetch(:object_type) { "" }
|
36
|
+
@enabled = options.fetch(:enabled) { true }
|
37
|
+
|
38
|
+
@method = options.fetch(:method)
|
39
|
+
@endpoint = ENDPOINT + @id.to_s
|
40
|
+
end
|
41
|
+
|
42
|
+
def execute
|
43
|
+
assign_instance_variables(result)
|
44
|
+
self
|
45
|
+
end
|
46
|
+
|
47
|
+
private
|
48
|
+
|
49
|
+
def result
|
50
|
+
JSON.parse(response)
|
51
|
+
end
|
52
|
+
|
53
|
+
def response
|
54
|
+
request.execute
|
55
|
+
end
|
56
|
+
|
57
|
+
def request
|
58
|
+
PromisePay::Request.new(
|
59
|
+
path: endpoint,
|
60
|
+
method: method,
|
61
|
+
payload: payload
|
62
|
+
)
|
63
|
+
end
|
64
|
+
|
65
|
+
def payload
|
66
|
+
{
|
67
|
+
description: description,
|
68
|
+
enabled: enabled,
|
69
|
+
object_type: object_type,
|
70
|
+
url: url,
|
71
|
+
}
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
data/lib/promise_pay/item.rb
CHANGED
@@ -7,15 +7,14 @@ module PromisePay
|
|
7
7
|
|
8
8
|
attr_reader :id
|
9
9
|
|
10
|
-
def initialize(
|
11
|
-
@id = id
|
12
|
-
|
10
|
+
def initialize(options = {})
|
11
|
+
@id = options[:id]
|
13
12
|
assign_instance_variables({'item' => options})
|
14
13
|
end
|
15
14
|
|
16
15
|
class << self
|
17
16
|
def find(id)
|
18
|
-
new(id).find
|
17
|
+
new(id: id).find
|
19
18
|
end
|
20
19
|
|
21
20
|
def find_all
|
@@ -30,7 +29,7 @@ module PromisePay
|
|
30
29
|
|
31
30
|
def find_all
|
32
31
|
resource_result.map do |result|
|
33
|
-
self.class.new(
|
32
|
+
self.class.new(result)
|
34
33
|
end
|
35
34
|
end
|
36
35
|
|
data/lib/promise_pay/version.rb
CHANGED
data/lib/promise_pay.rb
CHANGED
data/promise_pay.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Liam Norton"]
|
10
10
|
spec.email = ["liam.norton@flippa.com"]
|
11
11
|
spec.summary = %q{PromisePay gem}
|
12
|
-
spec.description = %q{PromisePay gem for API calls
|
12
|
+
spec.description = %q{PromisePay gem for API calls}
|
13
13
|
spec.homepage = "https://github.com/iamliamnorton/promise_pay"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
@@ -19,10 +19,10 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.5"
|
22
|
-
spec.add_development_dependency "rake"
|
23
|
-
spec.add_development_dependency "rspec"
|
22
|
+
spec.add_development_dependency "rake", "~> 10.5"
|
23
|
+
spec.add_development_dependency "rspec", "~> 3.4"
|
24
24
|
|
25
|
-
spec.add_runtime_dependency "activesupport", "
|
26
|
-
spec.add_runtime_dependency "json"
|
27
|
-
spec.add_runtime_dependency "rest-client", "~> 1.
|
25
|
+
spec.add_runtime_dependency "activesupport", "~> 3.2"
|
26
|
+
spec.add_runtime_dependency "json", "~> 1.7"
|
27
|
+
spec.add_runtime_dependency "rest-client", "~> 1.8"
|
28
28
|
end
|
@@ -0,0 +1,116 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe PromisePay::Callback do
|
4
|
+
let(:request) { double("PromisePay::Request", execute: sample_response) }
|
5
|
+
|
6
|
+
before { allow(PromisePay::Request).to receive(:new).and_return(request) }
|
7
|
+
|
8
|
+
describe ".index" do
|
9
|
+
let(:sample_response) { File.read("./spec/support/fixtures/callback/index.json") }
|
10
|
+
|
11
|
+
it "PromisePay::Callback has correctly assigned attributes" do
|
12
|
+
promise_pay_callback = described_class.index
|
13
|
+
|
14
|
+
expect(promise_pay_callback.callbacks).not_to eq(nil)
|
15
|
+
end
|
16
|
+
|
17
|
+
it "instantiates PromisePay::Request with the correct path" do
|
18
|
+
expect(PromisePay::Request).
|
19
|
+
to receive(:new).
|
20
|
+
with(hash_including(path: PromisePay::Callback::ENDPOINT))
|
21
|
+
|
22
|
+
described_class.index
|
23
|
+
end
|
24
|
+
|
25
|
+
it "instantiates PromisePay::Request with the correct method" do
|
26
|
+
expect(PromisePay::Request).
|
27
|
+
to receive(:new).
|
28
|
+
with(hash_including(method: :get))
|
29
|
+
|
30
|
+
described_class.index
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe ".create" do
|
35
|
+
let(:sample_response) { File.read("./spec/support/fixtures/callback/create.json") }
|
36
|
+
|
37
|
+
let(:params) do
|
38
|
+
{
|
39
|
+
description: "Our callback endpoint",
|
40
|
+
enabled: true,
|
41
|
+
object_type: "items",
|
42
|
+
url: "https://foo.bar/baz",
|
43
|
+
}
|
44
|
+
end
|
45
|
+
|
46
|
+
it "PromisePay::Callback has correctly assigned attributes" do
|
47
|
+
promise_pay_callback = described_class.create(params)
|
48
|
+
|
49
|
+
aggregate_failures do
|
50
|
+
expect(promise_pay_callback.id).to eq("77e4fc66-b695-4e72-90ac-b454c395b867")
|
51
|
+
expect(promise_pay_callback.description).to eq("Our callback endpoint")
|
52
|
+
expect(promise_pay_callback.enabled).to eq(true)
|
53
|
+
expect(promise_pay_callback.object_type).to eq("items")
|
54
|
+
expect(promise_pay_callback.url).to eq("https://foo.bar/baz")
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
it "instantiates PromisePay::Request with the correct path" do
|
59
|
+
expect(PromisePay::Request).
|
60
|
+
to receive(:new).
|
61
|
+
with(hash_including(path: PromisePay::Callback::ENDPOINT))
|
62
|
+
|
63
|
+
described_class.create(params)
|
64
|
+
end
|
65
|
+
|
66
|
+
it "instantiates PromisePay::Request with the correct method" do
|
67
|
+
expect(PromisePay::Request).
|
68
|
+
to receive(:new).
|
69
|
+
with(hash_including(method: :post))
|
70
|
+
|
71
|
+
described_class.create(params)
|
72
|
+
end
|
73
|
+
|
74
|
+
it "instantiates PromisePay::Request with the correct payload" do
|
75
|
+
expect(PromisePay::Request).
|
76
|
+
to receive(:new).
|
77
|
+
with(hash_including(payload: params))
|
78
|
+
|
79
|
+
described_class.create(params)
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
describe ".delete" do
|
84
|
+
let(:sample_response) { File.read("./spec/support/fixtures/callback/delete.json") }
|
85
|
+
|
86
|
+
let(:params) do
|
87
|
+
{ id: "77e4fc66-b695-4e72-90ac-b454c395b867" }
|
88
|
+
end
|
89
|
+
|
90
|
+
it "PromisePay::Callback has correctly assigned attributes" do
|
91
|
+
promise_pay_callback = described_class.delete(params)
|
92
|
+
|
93
|
+
expect(promise_pay_callback.id).to eq("77e4fc66-b695-4e72-90ac-b454c395b867")
|
94
|
+
end
|
95
|
+
|
96
|
+
it "instantiates PromisePay::Request with the correct path" do
|
97
|
+
expect(PromisePay::Request).
|
98
|
+
to receive(:new).
|
99
|
+
with(
|
100
|
+
hash_including(
|
101
|
+
path: PromisePay::Callback::ENDPOINT + "77e4fc66-b695-4e72-90ac-b454c395b867"
|
102
|
+
)
|
103
|
+
)
|
104
|
+
|
105
|
+
described_class.delete(params)
|
106
|
+
end
|
107
|
+
|
108
|
+
it "instantiates PromisePay::Request with the correct method" do
|
109
|
+
expect(PromisePay::Request).
|
110
|
+
to receive(:new).
|
111
|
+
with(hash_including(method: :delete))
|
112
|
+
|
113
|
+
described_class.delete(params)
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
@@ -17,21 +17,28 @@ describe PromisePay::Item do
|
|
17
17
|
|
18
18
|
it "returned object has correctly assigned attributes" do
|
19
19
|
promise_pay_item = described_class.find(item_id)
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
20
|
+
|
21
|
+
aggregate_failures do
|
22
|
+
expect(promise_pay_item.id).to eq "wef9834tg"
|
23
|
+
expect(promise_pay_item.name).to eq "ItemName"
|
24
|
+
expect(promise_pay_item.amount).to eq 10
|
25
|
+
expect(promise_pay_item.state).to eq "pending"
|
26
|
+
end
|
24
27
|
end
|
25
28
|
|
26
29
|
it "formats created_at and updated_at as Time" do
|
27
30
|
promise_pay_item = described_class.find(item_id)
|
28
|
-
|
29
|
-
|
31
|
+
|
32
|
+
aggregate_failures do
|
33
|
+
expect(promise_pay_item.created_at).to be_a_kind_of Time
|
34
|
+
expect(promise_pay_item.updated_at).to be_a_kind_of Time
|
35
|
+
end
|
30
36
|
end
|
31
37
|
|
32
38
|
it "instantiates PromisePay::Request with the correct path" do
|
33
39
|
valid_path = "items/#{item_id}"
|
34
40
|
expect(PromisePay::Request).to receive(:new).with(path: valid_path)
|
41
|
+
|
35
42
|
described_class.find(item_id)
|
36
43
|
end
|
37
44
|
end
|
@@ -41,20 +48,27 @@ describe PromisePay::Item do
|
|
41
48
|
|
42
49
|
it "returns an array of PromisePay::Item objects" do
|
43
50
|
result = described_class.find_all
|
44
|
-
|
45
|
-
|
51
|
+
|
52
|
+
aggregate_failures do
|
53
|
+
expect(result).to be_a_kind_of Array
|
54
|
+
expect(result.first).to be_a_kind_of PromisePay::Item
|
55
|
+
end
|
46
56
|
end
|
47
57
|
|
48
58
|
it "returned objects have correctly assigned attributes" do
|
49
59
|
promise_pay_user = described_class.find_all.first
|
50
|
-
|
51
|
-
|
52
|
-
|
60
|
+
|
61
|
+
aggregate_failures do
|
62
|
+
expect(promise_pay_user.id).to eq "wef9834tg"
|
63
|
+
expect(promise_pay_user.name).to eq "ItemName"
|
64
|
+
expect(promise_pay_user.amount).to eq 10
|
65
|
+
end
|
53
66
|
end
|
54
67
|
|
55
68
|
it "instantiates PromisePay::Request with the correct path" do
|
56
69
|
valid_path = "items/"
|
57
70
|
expect(PromisePay::Request).to receive(:new).with(path: valid_path)
|
71
|
+
|
58
72
|
described_class.find_all
|
59
73
|
end
|
60
74
|
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
{
|
2
|
+
"id": "77e4fc66-b695-4e72-90ac-b454c395b867",
|
3
|
+
"description": "Our callback endpoint",
|
4
|
+
"url": "https://foo.bar/baz",
|
5
|
+
"object_type": "items",
|
6
|
+
"enabled": true,
|
7
|
+
"created_at": "2016-02-10T19:11:18.264Z",
|
8
|
+
"updated_at": "2016-02-10T19:11:18.264Z",
|
9
|
+
"links": {
|
10
|
+
"self": "/callbacks",
|
11
|
+
"responses": "/callbacks/77e4fc66-b695-4e72-90ac-b454c395b867/responses"
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
{
|
2
|
+
"callbacks": [
|
3
|
+
{
|
4
|
+
"id": "77e4fc66-b695-4e72-90ac-b454c395b867",
|
5
|
+
"created_at": "2016-02-10T19:11:18.264Z",
|
6
|
+
"updated_at": "2016-02-10T19:11:18.264Z",
|
7
|
+
"description": "",
|
8
|
+
"url": "https://foo.bar/baz",
|
9
|
+
"object_type": "items",
|
10
|
+
"enabled": true
|
11
|
+
}
|
12
|
+
],
|
13
|
+
"meta": {
|
14
|
+
"limit": 10,
|
15
|
+
"offset": 0,
|
16
|
+
"total": 1
|
17
|
+
},
|
18
|
+
"links": {
|
19
|
+
"self": "/callbacks"
|
20
|
+
}
|
21
|
+
}
|
metadata
CHANGED
@@ -1,108 +1,109 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: promise_pay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Liam Norton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.5'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.5'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '10.5'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '10.5'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '3.4'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '3.4'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: activesupport
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '2
|
61
|
+
version: '3.2'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '2
|
68
|
+
version: '3.2'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: json
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '1.7'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '1.7'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rest-client
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - ~>
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '1.
|
89
|
+
version: '1.8'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - ~>
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '1.
|
97
|
-
description: PromisePay gem for API calls
|
96
|
+
version: '1.8'
|
97
|
+
description: PromisePay gem for API calls
|
98
98
|
email:
|
99
99
|
- liam.norton@flippa.com
|
100
100
|
executables: []
|
101
101
|
extensions: []
|
102
102
|
extra_rdoc_files: []
|
103
103
|
files:
|
104
|
-
- .gitignore
|
105
|
-
- .travis.yml
|
104
|
+
- ".gitignore"
|
105
|
+
- ".travis.yml"
|
106
|
+
- CHANGELOG.md
|
106
107
|
- Gemfile
|
107
108
|
- LICENSE.txt
|
108
109
|
- README.md
|
@@ -110,6 +111,7 @@ files:
|
|
110
111
|
- lib/generators/promise_pay/init_generator.rb
|
111
112
|
- lib/generators/templates/promise_pay_initializer.rb
|
112
113
|
- lib/promise_pay.rb
|
114
|
+
- lib/promise_pay/callback.rb
|
113
115
|
- lib/promise_pay/collection.rb
|
114
116
|
- lib/promise_pay/country.rb
|
115
117
|
- lib/promise_pay/fee.rb
|
@@ -122,6 +124,7 @@ files:
|
|
122
124
|
- lib/promise_pay/user.rb
|
123
125
|
- lib/promise_pay/version.rb
|
124
126
|
- promise_pay.gemspec
|
127
|
+
- spec/promise_pay/callback_spec.rb
|
125
128
|
- spec/promise_pay/country_spec.rb
|
126
129
|
- spec/promise_pay/fee_spec.rb
|
127
130
|
- spec/promise_pay/item_spec.rb
|
@@ -131,6 +134,9 @@ files:
|
|
131
134
|
- spec/promise_pay/session_spec.rb
|
132
135
|
- spec/promise_pay/user_spec.rb
|
133
136
|
- spec/spec_helper.rb
|
137
|
+
- spec/support/fixtures/callback/create.json
|
138
|
+
- spec/support/fixtures/callback/delete.json
|
139
|
+
- spec/support/fixtures/callback/index.json
|
134
140
|
- spec/support/fixtures/fee/create.json
|
135
141
|
- spec/support/fixtures/item/find.json
|
136
142
|
- spec/support/fixtures/item/find_all.json
|
@@ -148,21 +154,22 @@ require_paths:
|
|
148
154
|
- lib
|
149
155
|
required_ruby_version: !ruby/object:Gem::Requirement
|
150
156
|
requirements:
|
151
|
-
- -
|
157
|
+
- - ">="
|
152
158
|
- !ruby/object:Gem::Version
|
153
159
|
version: '0'
|
154
160
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
155
161
|
requirements:
|
156
|
-
- -
|
162
|
+
- - ">="
|
157
163
|
- !ruby/object:Gem::Version
|
158
164
|
version: '0'
|
159
165
|
requirements: []
|
160
166
|
rubyforge_project:
|
161
|
-
rubygems_version: 2.
|
167
|
+
rubygems_version: 2.5.1
|
162
168
|
signing_key:
|
163
169
|
specification_version: 4
|
164
170
|
summary: PromisePay gem
|
165
171
|
test_files:
|
172
|
+
- spec/promise_pay/callback_spec.rb
|
166
173
|
- spec/promise_pay/country_spec.rb
|
167
174
|
- spec/promise_pay/fee_spec.rb
|
168
175
|
- spec/promise_pay/item_spec.rb
|
@@ -172,6 +179,9 @@ test_files:
|
|
172
179
|
- spec/promise_pay/session_spec.rb
|
173
180
|
- spec/promise_pay/user_spec.rb
|
174
181
|
- spec/spec_helper.rb
|
182
|
+
- spec/support/fixtures/callback/create.json
|
183
|
+
- spec/support/fixtures/callback/delete.json
|
184
|
+
- spec/support/fixtures/callback/index.json
|
175
185
|
- spec/support/fixtures/fee/create.json
|
176
186
|
- spec/support/fixtures/item/find.json
|
177
187
|
- spec/support/fixtures/item/find_all.json
|