cobro_digital 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 02ddf257503cd550fc4b8a1583475c5f56a3c363
4
- data.tar.gz: f577d7d9b881a5282c20a507598eff02af683002
5
- SHA512:
6
- metadata.gz: '098cd90720c214cff2cb970244a1c859854bcc778fa0c33235bfcc06c2536a82dfdb0ccd9f484890e4a5c05c9c8e3450da96587c249b4c915404d6660501ab82'
7
- data.tar.gz: 204eb5352e5a3d52128b52a47c44e5d81f6000d18d29364f94c764b641c199cf70fee732a25f177a09d1eb104ace611c33411434105f11c5389037c474e2852d
1
+ ---
2
+ SHA1:
3
+ data.tar.gz: e60fff05cd6694fbb1ed9b378168349f33a8788d
4
+ metadata.gz: 39c3fe0849a4a2729feeef0e2bd9b55c3783af4d
5
+ SHA512:
6
+ data.tar.gz: 7f850ef2cda80e4ebc9997d8c5a373c2fc4975084f1a1e6585b27d2b6c2a089f8ff2a1fe41968a3dd1635f7e00ce141eb6924bb07700a4cdbf80754afff5b213
7
+ metadata.gz: 27b45f52c4b91cef8ca8dc0f088db2c6590f5c526a7f6b29647c4d81132ab45e1cbe30135a2f7921676ccec1cd2e86a60d1194427b5312e1f8e9bdc86b30db21
@@ -71,21 +71,24 @@ module CobroDigital
71
71
 
72
72
  def parse_response
73
73
  output = response.body[:webservice_cobrodigital_response][:output]
74
+
74
75
  parsed_response = JSON.parse(output)
75
76
 
76
- datos = parsed_response['datos'].map do |data|
77
- parsed_data = JSON.parse(data)
77
+ datos = if parsed_response.key?('datos')
78
+ parsed_response['datos'].map do |data|
79
+ parsed_data = JSON.parse(data)
78
80
 
79
- local_data = if parsed_data['datos'].present?
80
- JSON.parse(parsed_data['datos'].first) rescue []
81
- else
82
- []
83
- end
81
+ local_data = if parsed_data['datos'].present?
82
+ JSON.parse(parsed_data['datos'].first) rescue []
83
+ else
84
+ []
85
+ end
84
86
 
85
- { resultado: (parsed_data['ejecucion_correcta'] == '1'),
86
- log: parsed_data['log'],
87
- datos: local_data }
88
- end
87
+ { resultado: (parsed_data['ejecucion_correcta'] == '1'),
88
+ log: parsed_data['log'],
89
+ datos: local_data }
90
+ end
91
+ end
89
92
 
90
93
  { resultado: (parsed_response['ejecucion_correcta'] == '1'),
91
94
  log: parsed_response['log'],
@@ -1,3 +1,3 @@
1
1
  module CobroDigital
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
metadata CHANGED
@@ -1,123 +1,99 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: cobro_digital
3
- version: !ruby/object:Gem::Version
4
- version: 1.3.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.3.1
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - g.edera
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-05 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
11
+
12
+ date: 2018-03-13 00:00:00 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
14
15
  name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1.13'
20
- type: :development
21
16
  prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '1.13'
27
- - !ruby/object:Gem::Dependency
28
- name: rake
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '10.0'
17
+ requirement: &id001 !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: "1.13"
34
22
  type: :development
23
+ version_requirements: *id001
24
+ - !ruby/object:Gem::Dependency
25
+ name: rake
35
26
  prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '10.0'
41
- - !ruby/object:Gem::Dependency
27
+ requirement: &id002 !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - ~>
30
+ - !ruby/object:Gem::Version
31
+ version: "10.0"
32
+ type: :development
33
+ version_requirements: *id002
34
+ - !ruby/object:Gem::Dependency
42
35
  name: savon
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '2.4'
48
- type: :runtime
49
36
  prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '2.4'
55
- - !ruby/object:Gem::Dependency
56
- name: nokogiri
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '1.6'
37
+ requirement: &id003 !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ~>
40
+ - !ruby/object:Gem::Version
41
+ version: "2.4"
62
42
  type: :runtime
43
+ version_requirements: *id003
44
+ - !ruby/object:Gem::Dependency
45
+ name: nokogiri
63
46
  prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '1.6'
69
- - !ruby/object:Gem::Dependency
70
- name: wasabi
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '3.2'
47
+ requirement: &id004 !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ~>
50
+ - !ruby/object:Gem::Version
51
+ version: "1.6"
76
52
  type: :runtime
53
+ version_requirements: *id004
54
+ - !ruby/object:Gem::Dependency
55
+ name: wasabi
77
56
  prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '3.2'
83
- - !ruby/object:Gem::Dependency
84
- name: akami
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '1.1'
57
+ requirement: &id005 !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: "3.2"
90
62
  type: :runtime
63
+ version_requirements: *id005
64
+ - !ruby/object:Gem::Dependency
65
+ name: akami
91
66
  prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '1.1'
97
- - !ruby/object:Gem::Dependency
98
- name: nori
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '2.3'
67
+ requirement: &id006 !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ~>
70
+ - !ruby/object:Gem::Version
71
+ version: "1.1"
104
72
  type: :runtime
73
+ version_requirements: *id006
74
+ - !ruby/object:Gem::Dependency
75
+ name: nori
105
76
  prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '2.3'
77
+ requirement: &id007 !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ~>
80
+ - !ruby/object:Gem::Version
81
+ version: "2.3"
82
+ type: :runtime
83
+ version_requirements: *id007
111
84
  description: Adaptador para el Web Service de CobroDigital
112
- email:
85
+ email:
113
86
  - gab.edera@gmail.com
114
87
  executables: []
88
+
115
89
  extensions: []
90
+
116
91
  extra_rdoc_files: []
117
- files:
118
- - ".gitignore"
119
- - ".rspec"
120
- - ".travis.yml"
92
+
93
+ files:
94
+ - .gitignore
95
+ - .rspec
96
+ - .travis.yml
121
97
  - CODE_OF_CONDUCT.md
122
98
  - Gemfile
123
99
  - LICENSE.txt
@@ -135,27 +111,30 @@ files:
135
111
  - lib/cobro_digital/transaccion.rb
136
112
  - lib/cobro_digital/version.rb
137
113
  homepage: https://github.com/gedera/cobro_digital
138
- licenses:
114
+ licenses:
139
115
  - MIT
140
116
  metadata: {}
117
+
141
118
  post_install_message:
142
119
  rdoc_options: []
143
- require_paths:
120
+
121
+ require_paths:
144
122
  - lib
145
- required_ruby_version: !ruby/object:Gem::Requirement
146
- requirements:
147
- - - ">="
148
- - !ruby/object:Gem::Version
149
- version: '0'
150
- required_rubygems_version: !ruby/object:Gem::Requirement
151
- requirements:
152
- - - ">="
153
- - !ruby/object:Gem::Version
154
- version: '0'
123
+ required_ruby_version: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - &id008
126
+ - ">="
127
+ - !ruby/object:Gem::Version
128
+ version: "0"
129
+ required_rubygems_version: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - *id008
155
132
  requirements: []
133
+
156
134
  rubyforge_project:
157
- rubygems_version: 2.6.14
135
+ rubygems_version: 2.6.12
158
136
  signing_key:
159
137
  specification_version: 4
160
138
  summary: Adaptador CobroDigital
161
139
  test_files: []
140
+