bloom_remit 0.7.0 → 0.8.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/app/services/bloom_remit/initialize_client.rb +3 -3
- data/lib/bloom_remit.rb +2 -1
- data/lib/bloom_remit/version.rb +1 -1
- data/spec/bloom_remit_spec.rb +1 -2
- data/spec/dummy/config/database.yml +2 -1
- data/spec/dummy/config/database.yml.sample +2 -1
- data/spec/dummy/config/database.yml.travis +7 -0
- data/spec/dummy/log/development.log +116 -0
- data/spec/dummy/log/test.log +2322 -0
- data/spec/rails_helper.rb +1 -1
- data/spec/services/bloom_remit/create_txn_spec.rb +1 -1
- data/spec/services/bloom_remit/initialize_client_spec.rb +4 -4
- data/spec/services/bloom_remit/txns/handle_response_spec.rb +2 -2
- data/spec/services/bloom_remit/txns/post_spec.rb +1 -1
- data/spec/support/vcr.rb +1 -1
- metadata +6 -5
data/spec/rails_helper.rb
CHANGED
@@ -67,7 +67,7 @@ RSpec.configure do |config|
|
|
67
67
|
BloomRemit.configure do |c|
|
68
68
|
c.token = ENV["BLOOM_REMIT_TOKEN"]
|
69
69
|
c.secret = ENV["BLOOM_REMIT_SECRET"]
|
70
|
-
c.
|
70
|
+
c.sandbox = true
|
71
71
|
c.agent_id = ENV["BLOOM_REMIT_AGENT_ID"]
|
72
72
|
c.sender_id_method = c.sender_id_method_default
|
73
73
|
end
|
@@ -8,15 +8,15 @@ module BloomRemit
|
|
8
8
|
c.token = "token"
|
9
9
|
c.secret = "secret"
|
10
10
|
c.agent_id = "agent_id"
|
11
|
-
c.
|
11
|
+
c.sandbox = true
|
12
12
|
end
|
13
13
|
|
14
14
|
client = described_class.execute.client
|
15
15
|
|
16
|
-
expect(client.
|
17
|
-
expect(client.
|
16
|
+
expect(client.api_token).to eq "token"
|
17
|
+
expect(client.api_secret).to eq "secret"
|
18
18
|
expect(client.agent_id).to eq "agent_id"
|
19
|
-
expect(client.
|
19
|
+
expect(client.host).to eq BloomRemitClient::STAGING
|
20
20
|
end
|
21
21
|
|
22
22
|
end
|
@@ -6,7 +6,7 @@ module BloomRemit
|
|
6
6
|
|
7
7
|
context "successful response" do
|
8
8
|
let(:remote_response) do
|
9
|
-
build(:
|
9
|
+
build(:bloom_remit_client_responses_payments_create, {
|
10
10
|
success: true,
|
11
11
|
body: {"i" => "am body"},
|
12
12
|
})
|
@@ -25,7 +25,7 @@ module BloomRemit
|
|
25
25
|
|
26
26
|
context "unsuccessful response" do
|
27
27
|
let(:remote_response) do
|
28
|
-
build(:
|
28
|
+
build(:bloom_remit_client_responses_payments_create, {
|
29
29
|
success: false,
|
30
30
|
body: {"status"=>"500", "error"=>"Internal Server Error"},
|
31
31
|
})
|
@@ -22,7 +22,7 @@ module BloomRemit
|
|
22
22
|
Engine.routes.url_helpers.api_v1_txn_url(txn, secret: txn.secret)
|
23
23
|
end
|
24
24
|
let(:client) { instance_double(BloomRemitClient::Client) }
|
25
|
-
let(:response) { build(:
|
25
|
+
let(:response) { build(:bloom_remit_client_responses_payments_create) }
|
26
26
|
|
27
27
|
it "posts the txn to Bloom Remit" do
|
28
28
|
expect(client).to receive(:create_payment).with(
|
data/spec/support/vcr.rb
CHANGED
@@ -4,7 +4,7 @@ VCR.configure do |c|
|
|
4
4
|
c.cassette_library_dir = 'spec/fixtures/cassettes'
|
5
5
|
c.hook_into :webmock
|
6
6
|
c.configure_rspec_metadata!
|
7
|
-
sensitive_vars = %w[BLOOM_REMIT_TOKEN BLOOM_REMIT_SECRET]
|
7
|
+
sensitive_vars = %w[BLOOM_REMIT_TOKEN BLOOM_REMIT_SECRET BLOOM_REMIT_AGENT_ID]
|
8
8
|
sensitive_vars.each do |var|
|
9
9
|
c.filter_sensitive_data("[#{var}]") { ENV[var] }
|
10
10
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bloom_remit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ramon Tayag
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.7.1
|
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: 0.
|
68
|
+
version: 0.7.1
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: sidekiq
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -417,6 +417,7 @@ files:
|
|
417
417
|
- spec/dummy/config/boot.rb
|
418
418
|
- spec/dummy/config/database.yml
|
419
419
|
- spec/dummy/config/database.yml.sample
|
420
|
+
- spec/dummy/config/database.yml.travis
|
420
421
|
- spec/dummy/config/environment.rb
|
421
422
|
- spec/dummy/config/environments/development.rb
|
422
423
|
- spec/dummy/config/environments/production.rb
|
@@ -520,6 +521,7 @@ test_files:
|
|
520
521
|
- spec/dummy/config/boot.rb
|
521
522
|
- spec/dummy/config/database.yml
|
522
523
|
- spec/dummy/config/database.yml.sample
|
524
|
+
- spec/dummy/config/database.yml.travis
|
523
525
|
- spec/dummy/config/environment.rb
|
524
526
|
- spec/dummy/config/environments/development.rb
|
525
527
|
- spec/dummy/config/environments/production.rb
|
@@ -580,4 +582,3 @@ test_files:
|
|
580
582
|
- spec/support/shoulda-matchers.rb
|
581
583
|
- spec/support/storext_matchers.rb
|
582
584
|
- spec/support/vcr.rb
|
583
|
-
has_rdoc:
|