wirecard_sepa 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +8 -0
- data/.gitignore +1 -0
- data/CHANGELOG.md +4 -0
- data/lib/wirecard_sepa/gateway.rb +5 -1
- data/lib/wirecard_sepa/version.rb +1 -1
- data/spec/lib/wirecard_sepa/direct_debit/request_spec.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 412fab80efb71ea7ad640b40e64ea80e7eed2d18
|
4
|
+
data.tar.gz: 2134aca9536af5f86882fc83b3eb9601c5f74127
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6358b080c557307bc3e5aa82f020638bd5085557777d001589e71703e0fec766f9b154009406e4fb423137a61d6f584a6b00e05a5d144bcf3d78e0718074a0e9
|
7
|
+
data.tar.gz: 5745409d6e78966ae4ad10354da80ad8df501ef3f1306a35b4dfac45f87ac632d2ecc814e48ecbaead7d05b2f26cc1de834a68f65fdd876e87d137d866f807f5
|
data/.codeclimate.yml
ADDED
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -38,13 +38,17 @@ module WirecardSepa
|
|
38
38
|
|
39
39
|
private
|
40
40
|
|
41
|
+
# Wirecard API returns correct charset (UTF-8), but the resulting
|
42
|
+
# body is encoded in (ASCII-8BIT), so we enforce it.
|
41
43
|
def post(request_xml)
|
42
|
-
Typhoeus.post(
|
44
|
+
response = Typhoeus.post(
|
43
45
|
config.api_url,
|
44
46
|
body: request_xml,
|
45
47
|
userpwd: http_auth_credentials,
|
46
48
|
headers: { 'Content-Type' => 'application/xml' }
|
47
49
|
)
|
50
|
+
response.body.force_encoding response.headers['Content-Type'][/charset=(.*)/, 1]
|
51
|
+
response
|
48
52
|
end
|
49
53
|
|
50
54
|
def add_auth_params_and_custom_fields(params)
|
@@ -45,7 +45,7 @@ describe WirecardSepa::DirectDebit::Request do
|
|
45
45
|
|
46
46
|
it 'can handle special chars' do
|
47
47
|
params[:account_holder_first_name] = 'Firma'
|
48
|
-
params[:account_holder_last_name] = '
|
48
|
+
params[:account_holder_last_name] = 'Müller & Schmidt gGmbh'
|
49
49
|
expect(errors).to be_empty
|
50
50
|
end
|
51
51
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wirecard_sepa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- betterplace developers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -129,6 +129,7 @@ executables: []
|
|
129
129
|
extensions: []
|
130
130
|
extra_rdoc_files: []
|
131
131
|
files:
|
132
|
+
- ".codeclimate.yml"
|
132
133
|
- ".gitignore"
|
133
134
|
- ".rspec"
|
134
135
|
- ".travis.yml"
|
@@ -202,7 +203,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
202
203
|
version: '0'
|
203
204
|
requirements: []
|
204
205
|
rubyforge_project:
|
205
|
-
rubygems_version: 2.4.
|
206
|
+
rubygems_version: 2.4.5.1
|
206
207
|
signing_key:
|
207
208
|
specification_version: 4
|
208
209
|
summary: Wirecard SEPA implementation
|