boletosimples 0.6.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +34 -0
  3. data/.rspec +3 -0
  4. data/.rubocop.yml +9 -0
  5. data/.ruby-version +1 -1
  6. data/CHANGELOG.md +6 -20
  7. data/Gemfile +2 -0
  8. data/README.md +12 -54
  9. data/Rakefile +3 -1
  10. data/boletosimples.gemspec +14 -11
  11. data/lib/boletosimples.rb +4 -6
  12. data/lib/boletosimples/configuration.rb +14 -25
  13. data/lib/boletosimples/last_request.rb +12 -9
  14. data/lib/boletosimples/middlewares/bearer.rb +12 -0
  15. data/lib/boletosimples/middlewares/last_request.rb +3 -1
  16. data/lib/boletosimples/middlewares/raise_error.rb +9 -2
  17. data/lib/boletosimples/middlewares/user_agent.rb +3 -1
  18. data/lib/boletosimples/resources/bank_billet.rb +5 -11
  19. data/lib/boletosimples/resources/bank_billet_account.rb +3 -1
  20. data/lib/boletosimples/resources/bank_billet_discharge.rb +3 -1
  21. data/lib/boletosimples/resources/bank_billet_payment.rb +3 -1
  22. data/lib/boletosimples/resources/bank_billet_remittance.rb +3 -1
  23. data/lib/boletosimples/resources/base_model.rb +3 -1
  24. data/lib/boletosimples/resources/customer.rb +3 -1
  25. data/lib/boletosimples/resources/customer_import.rb +5 -3
  26. data/lib/boletosimples/resources/customer_subscription.rb +3 -10
  27. data/lib/boletosimples/resources/customer_subscription_import.rb +5 -3
  28. data/lib/boletosimples/resources/discharge.rb +4 -11
  29. data/lib/boletosimples/resources/email_delivery.rb +3 -1
  30. data/lib/boletosimples/resources/event.rb +3 -1
  31. data/lib/boletosimples/resources/installment.rb +3 -1
  32. data/lib/boletosimples/resources/remittance.rb +3 -1
  33. data/lib/boletosimples/resources/sms_delivery.rb +6 -0
  34. data/lib/boletosimples/resources/transaction.rb +3 -1
  35. data/lib/boletosimples/resources/webhook.rb +3 -1
  36. data/lib/boletosimples/resources/webhook_delivery.rb +3 -1
  37. data/lib/boletosimples/response_error.rb +8 -3
  38. data/lib/boletosimples/version.rb +3 -1
  39. data/spec/boletosimples/configuration_spec.rb +71 -101
  40. data/spec/boletosimples/last_request_spec.rb +16 -28
  41. data/spec/boletosimples/resources/bank_billet_account_spec.rb +57 -33
  42. data/spec/boletosimples/resources/bank_billet_discharge_spec.rb +7 -12
  43. data/spec/boletosimples/resources/bank_billet_payment_spec.rb +7 -12
  44. data/spec/boletosimples/resources/bank_billet_remittance_spec.rb +7 -12
  45. data/spec/boletosimples/resources/bank_billet_spec.rb +56 -42
  46. data/spec/boletosimples/resources/customer_import_spec.rb +41 -30
  47. data/spec/boletosimples/resources/customer_spec.rb +52 -39
  48. data/spec/boletosimples/resources/customer_subscription_import_spec.rb +41 -30
  49. data/spec/boletosimples/resources/customer_subscription_spec.rb +61 -33
  50. data/spec/boletosimples/resources/discharge_spec.rb +64 -11
  51. data/spec/boletosimples/resources/email_delivery_spec.rb +6 -11
  52. data/spec/boletosimples/resources/event_spec.rb +7 -12
  53. data/spec/boletosimples/resources/installment_spec.rb +61 -32
  54. data/spec/boletosimples/resources/remittance_spec.rb +7 -12
  55. data/spec/boletosimples/resources/sms_delivery_spec.rb +12 -0
  56. data/spec/boletosimples/resources/transactions_spec.rb +7 -12
  57. data/spec/boletosimples/resources/webhook_delivery_spec.rb +7 -12
  58. data/spec/boletosimples/resources/webhook_spec.rb +7 -12
  59. data/spec/fixtures/discharge.RET +3 -0
  60. data/spec/fixtures/vcr_cassettes/last_request/bank_billets.yml +536 -88
  61. data/spec/fixtures/vcr_cassettes/resources/bank_billet/all.yml +537 -91
  62. data/spec/fixtures/vcr_cassettes/resources/bank_billet/cancel/success.yml +34 -92
  63. data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/invalid_params.yml +32 -20
  64. data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/invalid_root.yml +28 -17
  65. data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/valid.yml +43 -27
  66. data/spec/fixtures/vcr_cassettes/resources/bank_billet/duplicate/success.yml +83 -0
  67. data/spec/fixtures/vcr_cassettes/resources/bank_billet/find.yml +51 -27
  68. data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/all.yml +131 -20
  69. data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/invalid_params.yml +34 -20
  70. data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/invalid_root.yml +30 -19
  71. data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/valid.yml +41 -21
  72. data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/find.yml +38 -18
  73. data/spec/fixtures/vcr_cassettes/resources/bank_billet_discharge/all.yml +66 -47
  74. data/spec/fixtures/vcr_cassettes/resources/bank_billet_payment/all.yml +44 -42
  75. data/spec/fixtures/vcr_cassettes/resources/bank_billet_remittance/all.yml +95 -48
  76. data/spec/fixtures/vcr_cassettes/resources/customer/all.yml +79 -32
  77. data/spec/fixtures/vcr_cassettes/resources/customer/create/invalid_params.yml +30 -17
  78. data/spec/fixtures/vcr_cassettes/resources/customer/create/invalid_root.yml +28 -17
  79. data/spec/fixtures/vcr_cassettes/resources/customer/create/valid.yml +33 -21
  80. data/spec/fixtures/vcr_cassettes/resources/customer/find.yml +33 -19
  81. data/spec/fixtures/vcr_cassettes/resources/customer_import/all.yml +43 -60
  82. data/spec/fixtures/vcr_cassettes/resources/customer_import/create/invalid_params.yml +37 -51
  83. data/spec/fixtures/vcr_cassettes/resources/customer_import/create/invalid_root.yml +38 -52
  84. data/spec/fixtures/vcr_cassettes/resources/customer_import/create/valid.yml +43 -68
  85. data/spec/fixtures/vcr_cassettes/resources/customer_import/find.yml +40 -54
  86. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/all.yml +102 -52
  87. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/invalid_params.yml +40 -50
  88. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/invalid_root.yml +36 -48
  89. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/valid.yml +48 -53
  90. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/find.yml +44 -50
  91. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/next_charge.yml +45 -133
  92. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/all.yml +44 -55
  93. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/invalid_params.yml +37 -52
  94. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/invalid_root.yml +39 -53
  95. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/valid.yml +43 -70
  96. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/find.yml +40 -55
  97. data/spec/fixtures/vcr_cassettes/resources/discharge/all.yml +64 -33
  98. data/spec/fixtures/vcr_cassettes/resources/discharge/create/invalid_params.yml +70 -0
  99. data/spec/fixtures/vcr_cassettes/resources/discharge/create/invalid_root.yml +69 -0
  100. data/spec/fixtures/vcr_cassettes/resources/discharge/create/valid.yml +84 -0
  101. data/spec/fixtures/vcr_cassettes/resources/discharge/find.yml +71 -0
  102. data/spec/fixtures/vcr_cassettes/resources/email_delivery/all.yml +40 -43
  103. data/spec/fixtures/vcr_cassettes/resources/event/all.yml +490 -166
  104. data/spec/fixtures/vcr_cassettes/resources/installment/all.yml +418 -52
  105. data/spec/fixtures/vcr_cassettes/resources/installment/create/invalid_params.yml +41 -52
  106. data/spec/fixtures/vcr_cassettes/resources/installment/create/invalid_root.yml +36 -48
  107. data/spec/fixtures/vcr_cassettes/resources/installment/create/valid.yml +48 -53
  108. data/spec/fixtures/vcr_cassettes/resources/installment/find.yml +44 -52
  109. data/spec/fixtures/vcr_cassettes/resources/remittance/all.yml +53 -33
  110. data/spec/fixtures/vcr_cassettes/resources/sns_delivery/all.yml +73 -0
  111. data/spec/fixtures/vcr_cassettes/resources/transaction/all.yml +34 -22
  112. data/spec/fixtures/vcr_cassettes/resources/web_hook/all.yml +42 -33
  113. data/spec/fixtures/vcr_cassettes/resources/webhook_delivery/all.yml +1232 -54
  114. data/spec/spec_helper.rb +3 -20
  115. data/spec/support/stub_env.rb +7 -0
  116. data/spec/support/vcr.rb +3 -4
  117. metadata +87 -52
  118. data/.coveralls.yml +0 -2
  119. data/.travis.yml +0 -46
  120. data/gemfiles/rails_42.gemfile +0 -8
  121. data/gemfiles/rails_50.gemfile +0 -8
  122. data/gemfiles/rails_51.gemfile +0 -8
  123. data/gemfiles/rails_52.gemfile +0 -9
  124. data/lib/boletosimples/extra.rb +0 -8
  125. data/lib/boletosimples/resources/partner/user.rb +0 -7
  126. data/lib/oauth2_patch.rb +0 -24
  127. data/spec/boletosimples/extra_spec.rb +0 -31
  128. data/spec/boletosimples/resources/partner/user_spec.rb +0 -19
  129. data/spec/fixtures/vcr_cassettes/configuration/client_credentials/invalid.yml +0 -64
  130. data/spec/fixtures/vcr_cassettes/configuration/client_credentials/valid.yml +0 -56
  131. data/spec/fixtures/vcr_cassettes/extra/userinfo/authenticated.yml +0 -58
  132. data/spec/fixtures/vcr_cassettes/extra/userinfo/not_authenticated.yml +0 -54
  133. data/spec/fixtures/vcr_cassettes/last_request/userinfo.yml +0 -58
  134. data/spec/fixtures/vcr_cassettes/resources/bank_billet/cancel/failure.yml +0 -118
  135. data/spec/fixtures/vcr_cassettes/resources/partner/user/create.yml +0 -60
  136. data/spec/spec.opts +0 -8
data/spec/spec_helper.rb CHANGED
@@ -1,25 +1,10 @@
1
- require 'coveralls'
2
- Coveralls.wear!
3
-
4
- require 'simplecov'
5
- SimpleCov.start
1
+ # frozen_string_literal: true
6
2
 
7
3
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
8
4
  $LOAD_PATH.unshift(File.dirname(__FILE__))
9
5
  require 'rspec'
10
- require 'pry'
11
6
  require 'boletosimples'
12
7
 
13
- if(ENV['BOLETOSIMPLES_ACCESS_TOKEN'].nil?)
14
- puts "\e[31mWarning: Environment variable BOLETOSIMPLES_ACCESS_TOKEN is not set. Tests will run and pass, but if you delete vcr cassettes you need to set this variable before running tests.\e[0m"
15
- ENV['BOLETOSIMPLES_ACCESS_TOKEN'] = 'any-token'
16
- end
17
-
18
- if(ENV['BOLETOSIMPLES_CLIENT_CREDENTIALS_TOKEN'].nil?)
19
- puts "\e[31mWarning: Environment variable BOLETOSIMPLES_CLIENT_CREDENTIALS_TOKEN is not set. Tests will run and pass, but if you delete vcr cassettes you need to set this variable before running tests.\e[0m"
20
- ENV['BOLETOSIMPLES_CLIENT_CREDENTIALS_TOKEN'] = 'any-token'
21
- end
22
-
23
8
  RSpec.configure do |config|
24
9
  config.disable_monkey_patching!
25
10
  config.order = :random
@@ -33,11 +18,9 @@ RSpec.configure do |config|
33
18
  mocks.syntax = :expect
34
19
  mocks.verify_partial_doubles = true
35
20
  end
36
- if config.files_to_run.one?
37
- config.default_formatter = 'doc'
38
- end
21
+ config.default_formatter = 'doc' if config.files_to_run.one?
39
22
  end
40
23
 
41
24
  # Requires supporting files with custom matchers and macros, etc,
42
25
  # in ./support/ and its subdirectories.
43
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
26
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].sort.each { |f| require f }
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'stub_env'
4
+
5
+ RSpec.configure do |config|
6
+ config.include StubEnv::Helpers
7
+ end
data/spec/support/vcr.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'vcr'
2
4
 
3
5
  VCR.configure do |c|
@@ -8,8 +10,5 @@ VCR.configure do |c|
8
10
  c.before_record do |i|
9
11
  i.response.body.force_encoding('UTF-8')
10
12
  end
11
- c.filter_sensitive_data('BOLETOSIMPLES_APP_ID') { ENV['BOLETOSIMPLES_APP_ID'] }
12
- c.filter_sensitive_data('BOLETOSIMPLES_APP_SECRET') { ENV['BOLETOSIMPLES_APP_SECRET'] }
13
- c.filter_sensitive_data('BOLETOSIMPLES_ACCESS_TOKEN') { ENV['BOLETOSIMPLES_ACCESS_TOKEN'] }
14
- c.filter_sensitive_data('BOLETOSIMPLES_CLIENT_CREDENTIALS_TOKEN') { ENV['BOLETOSIMPLES_CLIENT_CREDENTIALS_TOKEN'] }
13
+ c.filter_sensitive_data('BOLETOSIMPLES_API_TOKEN') { ENV['BOLETOSIMPLES_API_TOKEN'] }
15
14
  end
metadata CHANGED
@@ -1,61 +1,75 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boletosimples
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kivanio Barbosa
8
8
  - Rafael Lima
9
9
  - Thiago Belem
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-12-14 00:00:00.000000000 Z
13
+ date: 2021-04-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: her
16
+ name: faraday-http-cache
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
19
  - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: '1.0'
21
+ version: 2.2.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: '1.0'
28
+ version: 2.2.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: faraday_middleware
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - "~>"
34
34
  - !ruby/object:Gem::Version
35
- version: '0.12'
35
+ version: '0.14'
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - "~>"
41
41
  - !ruby/object:Gem::Version
42
- version: '0.12'
42
+ version: '0.14'
43
43
  - !ruby/object:Gem::Dependency
44
- name: faraday-http-cache
44
+ name: her
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: 2.0.0
49
+ version: '1.1'
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - "~>"
55
55
  - !ruby/object:Gem::Version
56
- version: 2.0.0
56
+ version: '1.1'
57
+ - !ruby/object:Gem::Dependency
58
+ name: fuubar
59
+ requirement: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
64
+ type: :development
65
+ prerelease: false
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
57
71
  - !ruby/object:Gem::Dependency
58
- name: pry
72
+ name: rake
59
73
  requirement: !ruby/object:Gem::Requirement
60
74
  requirements:
61
75
  - - ">="
@@ -83,7 +97,7 @@ dependencies:
83
97
  - !ruby/object:Gem::Version
84
98
  version: '0'
85
99
  - !ruby/object:Gem::Dependency
86
- name: vcr
100
+ name: rubocop
87
101
  requirement: !ruby/object:Gem::Requirement
88
102
  requirements:
89
103
  - - ">="
@@ -97,7 +111,7 @@ dependencies:
97
111
  - !ruby/object:Gem::Version
98
112
  version: '0'
99
113
  - !ruby/object:Gem::Dependency
100
- name: webmock
114
+ name: rubocop-performance
101
115
  requirement: !ruby/object:Gem::Requirement
102
116
  requirements:
103
117
  - - ">="
@@ -111,7 +125,7 @@ dependencies:
111
125
  - !ruby/object:Gem::Version
112
126
  version: '0'
113
127
  - !ruby/object:Gem::Dependency
114
- name: rake
128
+ name: rubocop-rake
115
129
  requirement: !ruby/object:Gem::Requirement
116
130
  requirements:
117
131
  - - ">="
@@ -125,7 +139,7 @@ dependencies:
125
139
  - !ruby/object:Gem::Version
126
140
  version: '0'
127
141
  - !ruby/object:Gem::Dependency
128
- name: coveralls
142
+ name: rubocop-rspec
129
143
  requirement: !ruby/object:Gem::Requirement
130
144
  requirements:
131
145
  - - ">="
@@ -139,7 +153,7 @@ dependencies:
139
153
  - !ruby/object:Gem::Version
140
154
  version: '0'
141
155
  - !ruby/object:Gem::Dependency
142
- name: simplecov
156
+ name: solargraph
143
157
  requirement: !ruby/object:Gem::Requirement
144
158
  requirements:
145
159
  - - ">="
@@ -153,7 +167,7 @@ dependencies:
153
167
  - !ruby/object:Gem::Version
154
168
  version: '0'
155
169
  - !ruby/object:Gem::Dependency
156
- name: codeclimate-test-reporter
170
+ name: stub_env
157
171
  requirement: !ruby/object:Gem::Requirement
158
172
  requirements:
159
173
  - - ">="
@@ -167,7 +181,35 @@ dependencies:
167
181
  - !ruby/object:Gem::Version
168
182
  version: '0'
169
183
  - !ruby/object:Gem::Dependency
170
- name: rubocop
184
+ name: test-prof
185
+ requirement: !ruby/object:Gem::Requirement
186
+ requirements:
187
+ - - ">="
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
190
+ type: :development
191
+ prerelease: false
192
+ version_requirements: !ruby/object:Gem::Requirement
193
+ requirements:
194
+ - - ">="
195
+ - !ruby/object:Gem::Version
196
+ version: '0'
197
+ - !ruby/object:Gem::Dependency
198
+ name: vcr
199
+ requirement: !ruby/object:Gem::Requirement
200
+ requirements:
201
+ - - ">="
202
+ - !ruby/object:Gem::Version
203
+ version: '0'
204
+ type: :development
205
+ prerelease: false
206
+ version_requirements: !ruby/object:Gem::Requirement
207
+ requirements:
208
+ - - ">="
209
+ - !ruby/object:Gem::Version
210
+ version: '0'
211
+ - !ruby/object:Gem::Dependency
212
+ name: webmock
171
213
  requirement: !ruby/object:Gem::Requirement
172
214
  requirements:
173
215
  - - ">="
@@ -189,24 +231,21 @@ executables: []
189
231
  extensions: []
190
232
  extra_rdoc_files: []
191
233
  files:
192
- - ".coveralls.yml"
234
+ - ".github/workflows/ruby.yml"
193
235
  - ".gitignore"
236
+ - ".rspec"
237
+ - ".rubocop.yml"
194
238
  - ".ruby-version"
195
- - ".travis.yml"
196
239
  - CHANGELOG.md
197
240
  - Gemfile
198
241
  - LICENSE.txt
199
242
  - README.md
200
243
  - Rakefile
201
244
  - boletosimples.gemspec
202
- - gemfiles/rails_42.gemfile
203
- - gemfiles/rails_50.gemfile
204
- - gemfiles/rails_51.gemfile
205
- - gemfiles/rails_52.gemfile
206
245
  - lib/boletosimples.rb
207
246
  - lib/boletosimples/configuration.rb
208
- - lib/boletosimples/extra.rb
209
247
  - lib/boletosimples/last_request.rb
248
+ - lib/boletosimples/middlewares/bearer.rb
210
249
  - lib/boletosimples/middlewares/last_request.rb
211
250
  - lib/boletosimples/middlewares/raise_error.rb
212
251
  - lib/boletosimples/middlewares/user_agent.rb
@@ -224,16 +263,14 @@ files:
224
263
  - lib/boletosimples/resources/email_delivery.rb
225
264
  - lib/boletosimples/resources/event.rb
226
265
  - lib/boletosimples/resources/installment.rb
227
- - lib/boletosimples/resources/partner/user.rb
228
266
  - lib/boletosimples/resources/remittance.rb
267
+ - lib/boletosimples/resources/sms_delivery.rb
229
268
  - lib/boletosimples/resources/transaction.rb
230
269
  - lib/boletosimples/resources/webhook.rb
231
270
  - lib/boletosimples/resources/webhook_delivery.rb
232
271
  - lib/boletosimples/response_error.rb
233
272
  - lib/boletosimples/version.rb
234
- - lib/oauth2_patch.rb
235
273
  - spec/boletosimples/configuration_spec.rb
236
- - spec/boletosimples/extra_spec.rb
237
274
  - spec/boletosimples/last_request_spec.rb
238
275
  - spec/boletosimples/resources/bank_billet_account_spec.rb
239
276
  - spec/boletosimples/resources/bank_billet_discharge_spec.rb
@@ -248,25 +285,21 @@ files:
248
285
  - spec/boletosimples/resources/email_delivery_spec.rb
249
286
  - spec/boletosimples/resources/event_spec.rb
250
287
  - spec/boletosimples/resources/installment_spec.rb
251
- - spec/boletosimples/resources/partner/user_spec.rb
252
288
  - spec/boletosimples/resources/remittance_spec.rb
289
+ - spec/boletosimples/resources/sms_delivery_spec.rb
253
290
  - spec/boletosimples/resources/transactions_spec.rb
254
291
  - spec/boletosimples/resources/webhook_delivery_spec.rb
255
292
  - spec/boletosimples/resources/webhook_spec.rb
256
293
  - spec/fixtures/customer_imports.csv
257
294
  - spec/fixtures/customer_subscription_imports.csv
258
- - spec/fixtures/vcr_cassettes/configuration/client_credentials/invalid.yml
259
- - spec/fixtures/vcr_cassettes/configuration/client_credentials/valid.yml
260
- - spec/fixtures/vcr_cassettes/extra/userinfo/authenticated.yml
261
- - spec/fixtures/vcr_cassettes/extra/userinfo/not_authenticated.yml
295
+ - spec/fixtures/discharge.RET
262
296
  - spec/fixtures/vcr_cassettes/last_request/bank_billets.yml
263
- - spec/fixtures/vcr_cassettes/last_request/userinfo.yml
264
297
  - spec/fixtures/vcr_cassettes/resources/bank_billet/all.yml
265
- - spec/fixtures/vcr_cassettes/resources/bank_billet/cancel/failure.yml
266
298
  - spec/fixtures/vcr_cassettes/resources/bank_billet/cancel/success.yml
267
299
  - spec/fixtures/vcr_cassettes/resources/bank_billet/create/invalid_params.yml
268
300
  - spec/fixtures/vcr_cassettes/resources/bank_billet/create/invalid_root.yml
269
301
  - spec/fixtures/vcr_cassettes/resources/bank_billet/create/valid.yml
302
+ - spec/fixtures/vcr_cassettes/resources/bank_billet/duplicate/success.yml
270
303
  - spec/fixtures/vcr_cassettes/resources/bank_billet/find.yml
271
304
  - spec/fixtures/vcr_cassettes/resources/bank_billet_account/all.yml
272
305
  - spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/invalid_params.yml
@@ -298,6 +331,10 @@ files:
298
331
  - spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/valid.yml
299
332
  - spec/fixtures/vcr_cassettes/resources/customer_subscription_import/find.yml
300
333
  - spec/fixtures/vcr_cassettes/resources/discharge/all.yml
334
+ - spec/fixtures/vcr_cassettes/resources/discharge/create/invalid_params.yml
335
+ - spec/fixtures/vcr_cassettes/resources/discharge/create/invalid_root.yml
336
+ - spec/fixtures/vcr_cassettes/resources/discharge/create/valid.yml
337
+ - spec/fixtures/vcr_cassettes/resources/discharge/find.yml
301
338
  - spec/fixtures/vcr_cassettes/resources/email_delivery/all.yml
302
339
  - spec/fixtures/vcr_cassettes/resources/event/all.yml
303
340
  - spec/fixtures/vcr_cassettes/resources/installment/all.yml
@@ -305,18 +342,18 @@ files:
305
342
  - spec/fixtures/vcr_cassettes/resources/installment/create/invalid_root.yml
306
343
  - spec/fixtures/vcr_cassettes/resources/installment/create/valid.yml
307
344
  - spec/fixtures/vcr_cassettes/resources/installment/find.yml
308
- - spec/fixtures/vcr_cassettes/resources/partner/user/create.yml
309
345
  - spec/fixtures/vcr_cassettes/resources/remittance/all.yml
346
+ - spec/fixtures/vcr_cassettes/resources/sns_delivery/all.yml
310
347
  - spec/fixtures/vcr_cassettes/resources/transaction/all.yml
311
348
  - spec/fixtures/vcr_cassettes/resources/web_hook/all.yml
312
349
  - spec/fixtures/vcr_cassettes/resources/webhook_delivery/all.yml
313
- - spec/spec.opts
314
350
  - spec/spec_helper.rb
351
+ - spec/support/stub_env.rb
315
352
  - spec/support/vcr.rb
316
353
  homepage: https://github.com/BoletoSimples/boletosimples-ruby
317
354
  licenses: []
318
355
  metadata: {}
319
- post_install_message:
356
+ post_install_message:
320
357
  rdoc_options: []
321
358
  require_paths:
322
359
  - lib
@@ -331,14 +368,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
331
368
  - !ruby/object:Gem::Version
332
369
  version: '0'
333
370
  requirements: []
334
- rubyforge_project:
335
- rubygems_version: 2.7.3
336
- signing_key:
371
+ rubygems_version: 3.2.15
372
+ signing_key:
337
373
  specification_version: 4
338
374
  summary: Boleto Simples API wrapper.
339
375
  test_files:
340
376
  - spec/boletosimples/configuration_spec.rb
341
- - spec/boletosimples/extra_spec.rb
342
377
  - spec/boletosimples/last_request_spec.rb
343
378
  - spec/boletosimples/resources/bank_billet_account_spec.rb
344
379
  - spec/boletosimples/resources/bank_billet_discharge_spec.rb
@@ -353,25 +388,21 @@ test_files:
353
388
  - spec/boletosimples/resources/email_delivery_spec.rb
354
389
  - spec/boletosimples/resources/event_spec.rb
355
390
  - spec/boletosimples/resources/installment_spec.rb
356
- - spec/boletosimples/resources/partner/user_spec.rb
357
391
  - spec/boletosimples/resources/remittance_spec.rb
392
+ - spec/boletosimples/resources/sms_delivery_spec.rb
358
393
  - spec/boletosimples/resources/transactions_spec.rb
359
394
  - spec/boletosimples/resources/webhook_delivery_spec.rb
360
395
  - spec/boletosimples/resources/webhook_spec.rb
361
396
  - spec/fixtures/customer_imports.csv
362
397
  - spec/fixtures/customer_subscription_imports.csv
363
- - spec/fixtures/vcr_cassettes/configuration/client_credentials/invalid.yml
364
- - spec/fixtures/vcr_cassettes/configuration/client_credentials/valid.yml
365
- - spec/fixtures/vcr_cassettes/extra/userinfo/authenticated.yml
366
- - spec/fixtures/vcr_cassettes/extra/userinfo/not_authenticated.yml
398
+ - spec/fixtures/discharge.RET
367
399
  - spec/fixtures/vcr_cassettes/last_request/bank_billets.yml
368
- - spec/fixtures/vcr_cassettes/last_request/userinfo.yml
369
400
  - spec/fixtures/vcr_cassettes/resources/bank_billet/all.yml
370
- - spec/fixtures/vcr_cassettes/resources/bank_billet/cancel/failure.yml
371
401
  - spec/fixtures/vcr_cassettes/resources/bank_billet/cancel/success.yml
372
402
  - spec/fixtures/vcr_cassettes/resources/bank_billet/create/invalid_params.yml
373
403
  - spec/fixtures/vcr_cassettes/resources/bank_billet/create/invalid_root.yml
374
404
  - spec/fixtures/vcr_cassettes/resources/bank_billet/create/valid.yml
405
+ - spec/fixtures/vcr_cassettes/resources/bank_billet/duplicate/success.yml
375
406
  - spec/fixtures/vcr_cassettes/resources/bank_billet/find.yml
376
407
  - spec/fixtures/vcr_cassettes/resources/bank_billet_account/all.yml
377
408
  - spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/invalid_params.yml
@@ -403,6 +434,10 @@ test_files:
403
434
  - spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/valid.yml
404
435
  - spec/fixtures/vcr_cassettes/resources/customer_subscription_import/find.yml
405
436
  - spec/fixtures/vcr_cassettes/resources/discharge/all.yml
437
+ - spec/fixtures/vcr_cassettes/resources/discharge/create/invalid_params.yml
438
+ - spec/fixtures/vcr_cassettes/resources/discharge/create/invalid_root.yml
439
+ - spec/fixtures/vcr_cassettes/resources/discharge/create/valid.yml
440
+ - spec/fixtures/vcr_cassettes/resources/discharge/find.yml
406
441
  - spec/fixtures/vcr_cassettes/resources/email_delivery/all.yml
407
442
  - spec/fixtures/vcr_cassettes/resources/event/all.yml
408
443
  - spec/fixtures/vcr_cassettes/resources/installment/all.yml
@@ -410,11 +445,11 @@ test_files:
410
445
  - spec/fixtures/vcr_cassettes/resources/installment/create/invalid_root.yml
411
446
  - spec/fixtures/vcr_cassettes/resources/installment/create/valid.yml
412
447
  - spec/fixtures/vcr_cassettes/resources/installment/find.yml
413
- - spec/fixtures/vcr_cassettes/resources/partner/user/create.yml
414
448
  - spec/fixtures/vcr_cassettes/resources/remittance/all.yml
449
+ - spec/fixtures/vcr_cassettes/resources/sns_delivery/all.yml
415
450
  - spec/fixtures/vcr_cassettes/resources/transaction/all.yml
416
451
  - spec/fixtures/vcr_cassettes/resources/web_hook/all.yml
417
452
  - spec/fixtures/vcr_cassettes/resources/webhook_delivery/all.yml
418
- - spec/spec.opts
419
453
  - spec/spec_helper.rb
454
+ - spec/support/stub_env.rb
420
455
  - spec/support/vcr.rb
data/.coveralls.yml DELETED
@@ -1,2 +0,0 @@
1
- service_name: travis-ci
2
- repo_token: hSYBAmKtSBLrLODdt13qT0A6sk7uGoO8h
data/.travis.yml DELETED
@@ -1,46 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
- before_install:
4
- - gem update --system # use the very latest Rubygems
5
- - gem install bundler # use the very latest Bundler
6
- dist: trusty
7
- before_script:
8
- - unset _JAVA_OPTIONS
9
- rvm:
10
- - '2.5.0'
11
- - '2.4.3'
12
- - '2.3.4'
13
- - '2.2.7'
14
- - '2.1.10'
15
- - jruby-9.1.16.0
16
-
17
- gemfile:
18
- - gemfiles/rails_42.gemfile
19
- - gemfiles/rails_50.gemfile
20
- - gemfiles/rails_51.gemfile
21
- - gemfiles/rails_52.gemfile
22
-
23
- env:
24
- global:
25
- - JRUBY_OPTS="-J-Xmx1024m --dev --debug"
26
- - COVERAGE=true
27
-
28
- matrix:
29
- fast_finish: true
30
-
31
- allow_failures:
32
- - rvm: jruby-9.1.16.0
33
- gemfile: gemfiles/rails_52.gemfile
34
- - rvm: 2.1.10
35
- gemfile: gemfiles/rails_50.gemfile
36
- - rvm: 2.1.10
37
- gemfile: gemfiles/rails_51.gemfile
38
- - rvm: 2.1.10
39
- gemfile: gemfiles/rails_52.gemfile
40
-
41
- branches:
42
- only:
43
- - master
44
- addons:
45
- code_climate:
46
- repo_token: 9c2feef5a1d636d5b08d10561c53f9293783fc175c0cc44d152cdb05a65d1868