catarse_pagarme 2.9.12 → 2.9.13
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/.ruby-version +1 -1
- data/Gemfile.lock +11 -16
- data/catarse_pagarme.gemspec +2 -2
- data/lib/catarse_pagarme/version.rb +1 -1
- data/spec/controllers/catarse_pagarme/notifications_controller_spec.rb +6 -5
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e89fa1f29aece060a0dbd5d4df8c86665754f9e4
|
|
4
|
+
data.tar.gz: e5599584d466cc9d731b23fa94a6d431799e1ac4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7c433264f3666fd1c2eb4c09221711a693aac5cad37c211b46d0c8ba3856cde74c33abaf38ccd72e755e744d0d2173dded98e5db93d7ba5b863fed57136249a9
|
|
7
|
+
data.tar.gz: 4f1a7b424910186c7236a6aa37ac6a12f19cc6c3cc916c033f04149a27985787fbd8b77b50693ba495e45518047140b8e2c699b9dbe682e5444c487fa7ab00fa
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.3.
|
|
1
|
+
2.3.1
|
data/Gemfile.lock
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
catarse_pagarme (2.9.
|
|
5
|
-
pagarme (= 2.1.
|
|
4
|
+
catarse_pagarme (2.9.13)
|
|
5
|
+
pagarme (= 2.1.4)
|
|
6
6
|
rails (~> 4.0)
|
|
7
7
|
sidekiq
|
|
8
8
|
weekdays (>= 1.0.2)
|
|
@@ -49,10 +49,10 @@ GEM
|
|
|
49
49
|
builder (3.2.2)
|
|
50
50
|
coderay (1.1.0)
|
|
51
51
|
concurrent-ruby (1.0.2)
|
|
52
|
-
connection_pool (2.2.
|
|
52
|
+
connection_pool (2.2.1)
|
|
53
53
|
database_cleaner (1.5.0)
|
|
54
54
|
diff-lcs (1.2.5)
|
|
55
|
-
domain_name (0.5.
|
|
55
|
+
domain_name (0.5.20161129)
|
|
56
56
|
unf (>= 0.0.5, < 1.0.0)
|
|
57
57
|
erubis (2.7.0)
|
|
58
58
|
factory_girl (4.5.0)
|
|
@@ -62,7 +62,7 @@ GEM
|
|
|
62
62
|
railties (>= 3.0.0)
|
|
63
63
|
globalid (0.3.7)
|
|
64
64
|
activesupport (>= 4.1.0)
|
|
65
|
-
http-cookie (1.0.
|
|
65
|
+
http-cookie (1.0.3)
|
|
66
66
|
domain_name (~> 0.5)
|
|
67
67
|
i18n (0.7.0)
|
|
68
68
|
json (1.8.3)
|
|
@@ -80,7 +80,7 @@ GEM
|
|
|
80
80
|
netrc (0.11.0)
|
|
81
81
|
nokogiri (1.6.6.2)
|
|
82
82
|
mini_portile (~> 0.6.0)
|
|
83
|
-
pagarme (2.1.
|
|
83
|
+
pagarme (2.1.4)
|
|
84
84
|
multi_json
|
|
85
85
|
rest-client
|
|
86
86
|
pg (0.18.3)
|
|
@@ -118,7 +118,7 @@ GEM
|
|
|
118
118
|
rake (>= 0.8.7)
|
|
119
119
|
thor (>= 0.18.1, < 2.0)
|
|
120
120
|
rake (10.4.2)
|
|
121
|
-
redis (3.3.
|
|
121
|
+
redis (3.3.2)
|
|
122
122
|
rest-client (2.0.0)
|
|
123
123
|
http-cookie (>= 1.0.2, < 2.0)
|
|
124
124
|
mime-types (>= 1.16, < 4.0)
|
|
@@ -140,26 +140,21 @@ GEM
|
|
|
140
140
|
rspec-mocks (~> 3.3.0)
|
|
141
141
|
rspec-support (~> 3.3.0)
|
|
142
142
|
rspec-support (3.3.0)
|
|
143
|
-
sidekiq (4.
|
|
143
|
+
sidekiq (4.2.7)
|
|
144
144
|
concurrent-ruby (~> 1.0)
|
|
145
145
|
connection_pool (~> 2.2, >= 2.2.0)
|
|
146
|
+
rack-protection (>= 1.5.0)
|
|
146
147
|
redis (~> 3.2, >= 3.2.1)
|
|
147
|
-
sinatra (>= 1.4.7)
|
|
148
|
-
sinatra (1.4.7)
|
|
149
|
-
rack (~> 1.5)
|
|
150
|
-
rack-protection (~> 1.4)
|
|
151
|
-
tilt (>= 1.3, < 3)
|
|
152
148
|
slop (3.6.0)
|
|
153
149
|
sprockets (3.7.0)
|
|
154
150
|
concurrent-ruby (~> 1.0)
|
|
155
151
|
rack (> 1, < 3)
|
|
156
|
-
sprockets-rails (3.
|
|
152
|
+
sprockets-rails (3.2.0)
|
|
157
153
|
actionpack (>= 4.0)
|
|
158
154
|
activesupport (>= 4.0)
|
|
159
155
|
sprockets (>= 3.0.0)
|
|
160
156
|
thor (0.19.1)
|
|
161
157
|
thread_safe (0.3.5)
|
|
162
|
-
tilt (2.0.5)
|
|
163
158
|
tzinfo (1.2.2)
|
|
164
159
|
thread_safe (~> 0.1)
|
|
165
160
|
unf (0.1.4)
|
|
@@ -179,4 +174,4 @@ DEPENDENCIES
|
|
|
179
174
|
rspec-rails (~> 3.3)
|
|
180
175
|
|
|
181
176
|
BUNDLED WITH
|
|
182
|
-
1.13.
|
|
177
|
+
1.13.6
|
data/catarse_pagarme.gemspec
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# encoding:
|
|
1
|
+
# encoding: utf-8
|
|
2
2
|
$:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
|
4
4
|
# Maintain your gem's version:
|
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
|
|
|
18
18
|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
|
19
19
|
|
|
20
20
|
s.add_dependency "rails", "~> 4.0"
|
|
21
|
-
s.add_dependency "pagarme", "2.1.
|
|
21
|
+
s.add_dependency "pagarme", "2.1.4"
|
|
22
22
|
#s.add_dependency "pagarme", "1.10.0"
|
|
23
23
|
s.add_dependency "weekdays", ">= 1.0.2"
|
|
24
24
|
s.add_dependency "sidekiq"
|
|
@@ -5,8 +5,8 @@ describe CatarsePagarme::NotificationsController, type: :controller do
|
|
|
5
5
|
|
|
6
6
|
before do
|
|
7
7
|
@routes = CatarsePagarme::Engine.routes
|
|
8
|
-
PagarMe::
|
|
9
|
-
PagarMe::Transaction.
|
|
8
|
+
allow(PagarMe::Postback).to receive(:validate_request_signature?).and_return(true)
|
|
9
|
+
allow(PagarMe::Transaction).to receive(:find_by_id).and_return(fake_transaction)
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
let(:project) { create(:project, goal: 10_000, state: 'online') }
|
|
@@ -21,18 +21,19 @@ describe CatarsePagarme::NotificationsController, type: :controller do
|
|
|
21
21
|
describe 'CREATE' do
|
|
22
22
|
context "with invalid payment" do
|
|
23
23
|
before do
|
|
24
|
-
PaymentEngines.
|
|
24
|
+
allow(PaymentEngines).to receive(:find_payment).and_return(nil)
|
|
25
25
|
post :create, { locale: :pt, id: 'abcdfg'}
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
it "should not found the payment" do
|
|
29
|
-
expect(response.code.to_i).to eq(
|
|
29
|
+
expect(response.code.to_i).to eq(400)
|
|
30
30
|
end
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
context "with valid payment" do
|
|
34
34
|
before do
|
|
35
|
-
PaymentEngines.
|
|
35
|
+
allow(PaymentEngines).to receive(:find_payment).and_return(payment)
|
|
36
|
+
allow_any_instance_of(CatarsePagarme::NotificationsController).to receive(:valid_postback?).and_return(true)
|
|
36
37
|
post :create, { locale: :pt, id: 'abcd'}
|
|
37
38
|
end
|
|
38
39
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: catarse_pagarme
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.9.
|
|
4
|
+
version: 2.9.13
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Antônio Roberto Silva
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2016-
|
|
12
|
+
date: 2016-12-01 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|
|
@@ -31,14 +31,14 @@ dependencies:
|
|
|
31
31
|
requirements:
|
|
32
32
|
- - '='
|
|
33
33
|
- !ruby/object:Gem::Version
|
|
34
|
-
version: 2.1.
|
|
34
|
+
version: 2.1.4
|
|
35
35
|
type: :runtime
|
|
36
36
|
prerelease: false
|
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
|
38
38
|
requirements:
|
|
39
39
|
- - '='
|
|
40
40
|
- !ruby/object:Gem::Version
|
|
41
|
-
version: 2.1.
|
|
41
|
+
version: 2.1.4
|
|
42
42
|
- !ruby/object:Gem::Dependency
|
|
43
43
|
name: weekdays
|
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|