imperituroard 0.5.1 → 0.5.2

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
1
  ---
2
2
  SHA1:
3
- metadata.gz: 52002c225cdd8a15b12f2d30c3bd9abbb7c81cdb
4
- data.tar.gz: '098b0b33d5bdfb45f0b0912c9f5d882cf06a9278'
3
+ metadata.gz: e82d66d85db1bd66d2a98362544e98de744cf142
4
+ data.tar.gz: 71a88db5237cc41dbc305efcfb3de6ea5158379e
5
5
  SHA512:
6
- metadata.gz: 885ae1c34b6f201e8f77a2ea0f0a21852c0b95a37f4c01e9394ad63892264c4070e79ff0d20103b452eb54c2651ed1d1a424182a18feb282973cf697f9f2bb9a
7
- data.tar.gz: 56cc1e2a934b2cd1b8be4d83794838daa358d27939fb27eb3fda9a463a485639c3409d275a9ef8d8735674f429ceafe521f439015d2d5d5a6d7f3d9bb9c94b55
6
+ metadata.gz: 7a30826bee6fcb2d3bf180bda82fa41893138b471d28f611065874f1d05ebb13bc3246f613d1b292a50aa44501f1301e6606b0f700aba0f1c195fa1f5362ceb7
7
+ data.tar.gz: 85e5c0a75b626cd7eaaeda049a6ca3c2209b58b120b3930bfebaa2f74c2b4fb6300ceb6d23b10465a0dcb7088e3d302ad62b8ee56d08a66628ca4c679601d67b
@@ -27,17 +27,29 @@ Gem::Specification.new do |spec|
27
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
28
  spec.require_paths = ["lib"]
29
29
 
30
- spec.add_development_dependency "bundler", "2.1.4"
31
- spec.add_development_dependency "rake", "13.0.1"
32
- spec.add_development_dependency "net-ssh", '4.0.1'
33
- spec.add_development_dependency "mysql2", "0.4.10"
34
- spec.add_development_dependency "savon", "2.12.0"
35
- spec.add_development_dependency "json", "2.3.0"
36
- spec.add_development_dependency "mongo", "2.11.4"
37
- spec.add_development_dependency "nokogiri", "1.10.9"
38
- spec.add_development_dependency "ipaddr", "1.2.2"
39
- spec.add_development_dependency "simpleidn", "0.1.1"
40
- spec.add_development_dependency "net-scp", "3.0.0"
30
+ # spec.add_development_dependency "bundler", "2.1.4"
31
+ # spec.add_development_dependency "rake", "13.0.1"
32
+ # spec.add_development_dependency "net-ssh", '4.0.1'
33
+ # spec.add_development_dependency "mysql2", "0.4.10"
34
+ # spec.add_development_dependency "savon", "2.12.0"
35
+ # spec.add_development_dependency "json", "2.3.0"
36
+ # spec.add_development_dependency "mongo", "2.11.4"
37
+ # spec.add_development_dependency "nokogiri", "1.10.9"
38
+ # spec.add_development_dependency "ipaddr", "1.2.2"
39
+ # spec.add_development_dependency "simpleidn", "0.1.1"
40
+ # spec.add_development_dependency "net-scp", "3.0.0"
41
+
42
+ spec.add_dependency "bundler", "2.1.4"
43
+ spec.add_dependency "rake", "13.0.1"
44
+ spec.add_dependency "net-ssh", '4.0.1'
45
+ spec.add_dependency "mysql2", "0.4.10"
46
+ spec.add_dependency "savon", "2.12.0"
47
+ spec.add_dependency "json", "2.3.0"
48
+ spec.add_dependency "mongo", "2.11.4"
49
+ spec.add_dependency "nokogiri", "1.10.9"
50
+ spec.add_dependency "ipaddr", "1.2.2"
51
+ spec.add_dependency "simpleidn", "0.1.1"
52
+ spec.add_dependency "net-scp", "3.0.0"
41
53
 
42
54
 
43
55
 
@@ -37,6 +37,8 @@ class Crm_2
37
37
 
38
38
  req.body = crm_payload.to_json
39
39
  res = https.request(req)
40
+
41
+
40
42
  output_params = {:code => 200,
41
43
  :result => "Crm_2.crm_status_2: Request processed",
42
44
  :body => {:request_message => crm_payload,
@@ -128,8 +128,12 @@ class MhubFunctions_2
128
128
 
129
129
  begin
130
130
  mes_report = dabrab_connecter.delivery_report_transform(params)[:body][:report_to_recip]
131
- result = crm_connector.crm_status_1(mes_report)
132
- output_params = {"code": 200, "result": "Data processed", "body": {"answer": {"code": 200, "status": "Success"}, "sender": {"ip_src": ip_src, "ip_real": ip_real, "ip_vip": ip_vip}}}
131
+ result = crm_connector.crm_status_2(mes_report)
132
+ if result[:body][:res_body]["GetReportsResult"]==""
133
+ output_params = {"code": 200, "result": "Data processed", "body": {"answer": {"code": 200, "status": "Success"}, "sender": {"ip_src": ip_src, "ip_real": ip_real, "ip_vip": ip_vip}}}
134
+ else
135
+ output_params = {"code": 202, "result": "CRM returned error #{result[:body][:res_body]["GetReportsResult"].to_s}", "body": {"answer": {"code": 200, "status": "Success"}, "sender": {"ip_src": ip_src, "ip_real": ip_real, "ip_vip": ip_vip}}}
136
+ end
133
137
  rescue
134
138
  output_params = {"code": 500, "result": "MhubFunctions_2.rec_deliv_report_2: Unknown SDK error", "body": {"answer": {}, "sender": {"ip_src": ip_src, "ip_real": ip_real, "ip_vip": ip_vip}}}
135
139
  telegram_connector.telegram_message(output_params)
@@ -1,3 +1,3 @@
1
1
  module Imperituroard
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imperituroard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dzmitry Buynovskiy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-14 00:00:00.000000000 Z
11
+ date: 2020-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -17,7 +17,7 @@ dependencies:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
19
  version: 2.1.4
20
- type: :development
20
+ type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
@@ -31,7 +31,7 @@ dependencies:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
33
  version: 13.0.1
34
- type: :development
34
+ type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
@@ -45,7 +45,7 @@ dependencies:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
47
  version: 4.0.1
48
- type: :development
48
+ type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
@@ -59,7 +59,7 @@ dependencies:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
61
  version: 0.4.10
62
- type: :development
62
+ type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
@@ -73,7 +73,7 @@ dependencies:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
75
  version: 2.12.0
76
- type: :development
76
+ type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
@@ -87,7 +87,7 @@ dependencies:
87
87
  - - '='
88
88
  - !ruby/object:Gem::Version
89
89
  version: 2.3.0
90
- type: :development
90
+ type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
@@ -101,7 +101,7 @@ dependencies:
101
101
  - - '='
102
102
  - !ruby/object:Gem::Version
103
103
  version: 2.11.4
104
- type: :development
104
+ type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
@@ -115,7 +115,7 @@ dependencies:
115
115
  - - '='
116
116
  - !ruby/object:Gem::Version
117
117
  version: 1.10.9
118
- type: :development
118
+ type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
@@ -129,7 +129,7 @@ dependencies:
129
129
  - - '='
130
130
  - !ruby/object:Gem::Version
131
131
  version: 1.2.2
132
- type: :development
132
+ type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
@@ -143,7 +143,7 @@ dependencies:
143
143
  - - '='
144
144
  - !ruby/object:Gem::Version
145
145
  version: 0.1.1
146
- type: :development
146
+ type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
@@ -157,7 +157,7 @@ dependencies:
157
157
  - - '='
158
158
  - !ruby/object:Gem::Version
159
159
  version: 3.0.0
160
- type: :development
160
+ type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements: