marty 5.1.3 → 5.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +164 -200
- data/lib/marty/rpc_call.rb +11 -8
- data/lib/marty/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76a0d4a1329fc8a257a905e327c3245dde1e638a
|
4
|
+
data.tar.gz: e918f2b2349a35da28cfdd7e01c0c6710cc5190c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca56ed8fdeb18d1951a6ceeefb7ae3d7b63b7292ac7a577d628153384c333693888feb2669c9ec6ad1074a680ab89a6db9a8212e3540462ee79d6410f937deae
|
7
|
+
data.tar.gz: 36157384d4e25c764cbe1277380603da2e3ef359a07220f2e1572ad7b3a3f2a29810e0917d8a3a9af4e9795e6b3dc45280a523fd0a436f0278b6cd744f44ca03
|
data/.rubocop_todo.yml
CHANGED
@@ -1,29 +1,21 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on 2019-
|
3
|
+
# on 2019-08-13 13:20:18 -0700 using RuboCop version 0.73.0.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
8
8
|
|
9
|
-
# Offense count:
|
9
|
+
# Offense count: 418
|
10
10
|
# Cop supports --auto-correct.
|
11
|
-
# Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
11
|
+
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
12
12
|
# SupportedHashRocketStyles: key, separator, table
|
13
13
|
# SupportedColonStyles: key, separator, table
|
14
14
|
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
15
15
|
Layout/AlignHash:
|
16
16
|
Enabled: false
|
17
17
|
|
18
|
-
# Offense count:
|
19
|
-
# Cop supports --auto-correct.
|
20
|
-
# Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth.
|
21
|
-
# SupportedStyles: case, end
|
22
|
-
Layout/CaseIndentation:
|
23
|
-
Exclude:
|
24
|
-
- 'app/models/marty/data_grid.rb'
|
25
|
-
|
26
|
-
# Offense count: 35
|
18
|
+
# Offense count: 38
|
27
19
|
# Cop supports --auto-correct.
|
28
20
|
Layout/ClosingHeredocIndentation:
|
29
21
|
Exclude:
|
@@ -38,59 +30,76 @@ Layout/ClosingHeredocIndentation:
|
|
38
30
|
Layout/EndAlignment:
|
39
31
|
Enabled: false
|
40
32
|
|
41
|
-
# Offense count:
|
33
|
+
# Offense count: 33
|
42
34
|
# Cop supports --auto-correct.
|
43
|
-
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
|
35
|
+
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
44
36
|
Layout/ExtraSpacing:
|
45
|
-
|
37
|
+
Exclude:
|
38
|
+
- 'app/components/marty/data_grid_view.rb'
|
39
|
+
- 'app/components/marty/posting_window.rb'
|
40
|
+
- 'app/models/marty/data_grid.rb'
|
41
|
+
- 'lib/marty/logger.rb'
|
42
|
+
- 'lib/marty/migrations.rb'
|
43
|
+
- 'lib/marty/monkey.rb'
|
44
|
+
- 'spec/controllers/rpc_controller_spec.rb'
|
45
|
+
- 'spec/features/rule_spec.rb'
|
46
|
+
- 'spec/lib/json_schema_spec.rb'
|
47
|
+
- 'spec/models/data_grid_spec.rb'
|
48
|
+
- 'spec/models/event_spec.rb'
|
49
|
+
- 'spec/models/rule_spec.rb'
|
50
|
+
- 'spec/models/script_spec.rb'
|
46
51
|
|
47
|
-
# Offense count:
|
52
|
+
# Offense count: 112
|
48
53
|
# Cop supports --auto-correct.
|
49
54
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
50
55
|
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
51
56
|
Layout/IndentFirstHashElement:
|
52
57
|
Exclude:
|
53
58
|
- 'app/components/marty/extras/layout.rb'
|
54
|
-
- 'lib/marty/data_change.rb'
|
55
|
-
- 'lib/marty/rpc_call.rb'
|
56
59
|
- 'spec/controllers/diagnostic/controller_spec.rb'
|
57
|
-
- 'spec/controllers/job_controller_spec.rb'
|
58
60
|
- 'spec/controllers/rpc_controller_spec.rb'
|
59
61
|
- 'spec/controllers/rpc_import_spec.rb'
|
60
|
-
- 'spec/dummy/app/models/gemini/fannie_bup.rb'
|
61
|
-
- 'spec/features/user_view_spec.rb'
|
62
|
-
- 'spec/lib/data_importer_spec.rb'
|
63
62
|
- 'spec/lib/json_schema_spec.rb'
|
64
63
|
- 'spec/models/api_auth_spec.rb'
|
65
64
|
|
66
|
-
# Offense count:
|
65
|
+
# Offense count: 93
|
67
66
|
# Cop supports --auto-correct.
|
68
67
|
# Configuration parameters: EnforcedStyle.
|
69
|
-
# SupportedStyles:
|
68
|
+
# SupportedStyles: squiggly, active_support, powerpack, unindent
|
70
69
|
Layout/IndentHeredoc:
|
71
70
|
Enabled: false
|
72
71
|
|
73
|
-
# Offense count:
|
72
|
+
# Offense count: 288
|
74
73
|
# Cop supports --auto-correct.
|
75
74
|
# Configuration parameters: Width, IgnoredPatterns.
|
76
75
|
Layout/IndentationWidth:
|
77
76
|
Enabled: false
|
78
77
|
|
79
|
-
# Offense count:
|
78
|
+
# Offense count: 22
|
80
79
|
# Cop supports --auto-correct.
|
81
80
|
# Configuration parameters: EnforcedStyle.
|
82
81
|
# SupportedStyles: symmetrical, new_line, same_line
|
83
82
|
Layout/MultilineHashBraceLayout:
|
84
|
-
|
83
|
+
Exclude:
|
84
|
+
- 'app/components/marty/event_view.rb'
|
85
|
+
- 'app/components/marty/user_view.rb'
|
86
|
+
- 'app/models/marty/delorean_rule.rb'
|
87
|
+
- 'lib/marty/migrations.rb'
|
88
|
+
- 'lib/marty/schema_helper.rb'
|
89
|
+
- 'other/marty/api/base.rb'
|
90
|
+
- 'other/marty/diagnostic/nodes.rb'
|
91
|
+
- 'spec/features/rule_spec.rb'
|
92
|
+
- 'spec/lib/json_schema_spec.rb'
|
93
|
+
- 'spec/other/diagnostic/base_spec.rb'
|
85
94
|
|
86
|
-
# Offense count:
|
95
|
+
# Offense count: 123
|
87
96
|
# Cop supports --auto-correct.
|
88
97
|
# Configuration parameters: EnforcedStyle.
|
89
98
|
# SupportedStyles: symmetrical, new_line, same_line
|
90
99
|
Layout/MultilineMethodCallBraceLayout:
|
91
100
|
Enabled: false
|
92
101
|
|
93
|
-
# Offense count:
|
102
|
+
# Offense count: 88
|
94
103
|
# Cop supports --auto-correct.
|
95
104
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
96
105
|
# SupportedStyles: aligned, indented, indented_relative_to_receiver
|
@@ -105,7 +114,7 @@ Layout/MultilineMethodDefinitionBraceLayout:
|
|
105
114
|
Exclude:
|
106
115
|
- 'lib/marty/data_importer.rb'
|
107
116
|
|
108
|
-
# Offense count:
|
117
|
+
# Offense count: 18
|
109
118
|
# Cop supports --auto-correct.
|
110
119
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
111
120
|
# SupportedStyles: aligned, indented
|
@@ -119,12 +128,10 @@ Layout/MultilineOperationIndentation:
|
|
119
128
|
- 'lib/marty/data_change.rb'
|
120
129
|
- 'other/marty/api/base.rb'
|
121
130
|
- 'spec/controllers/application_controller_spec.rb'
|
122
|
-
- 'spec/dummy/app/models/gemini/extras/settlement_import.rb'
|
123
131
|
- 'spec/models/api_auth_spec.rb'
|
124
132
|
- 'spec/models/script_spec.rb'
|
125
133
|
- 'spec/support/shared_connection.rb'
|
126
134
|
|
127
|
-
|
128
135
|
# Offense count: 11
|
129
136
|
# Cop supports --auto-correct.
|
130
137
|
# Configuration parameters: IndentationWidth.
|
@@ -132,31 +139,6 @@ Layout/Tab:
|
|
132
139
|
Exclude:
|
133
140
|
- 'app/components/marty/posting_window.rb'
|
134
141
|
|
135
|
-
# Offense count: 9
|
136
|
-
# Cop supports --auto-correct.
|
137
|
-
# Configuration parameters: EnforcedStyle.
|
138
|
-
# SupportedStyles: final_newline, final_blank_line
|
139
|
-
Layout/TrailingBlankLines:
|
140
|
-
Exclude:
|
141
|
-
- 'spec/dummy/app/controllers/components_controller.rb'
|
142
|
-
- 'spec/dummy/config/boot.rb'
|
143
|
-
- 'spec/dummy/public/extjs/build/examples/classic/app/nested-loading/resources/sass/config.rb'
|
144
|
-
- 'spec/dummy/public/extjs/build/examples/classic/panel/bubble-panel/resources/sass/config.rb'
|
145
|
-
- 'spec/dummy/public/extjs/classic/theme-base/sass/overrides.rb'
|
146
|
-
- 'spec/dummy/public/extjs/classic/theme-base/sass/utils.rb'
|
147
|
-
- 'spec/dummy/public/extjs/examples/classic/app/nested-loading/resources/sass/config.rb'
|
148
|
-
- 'spec/dummy/public/extjs/examples/classic/panel/bubble-panel/resources/sass/config.rb'
|
149
|
-
- 'spec/dummy/public/extjs/modern/theme-base/sass/utils.rb'
|
150
|
-
|
151
|
-
# Offense count: 28
|
152
|
-
# Cop supports --auto-correct.
|
153
|
-
# Configuration parameters: AllowInHeredoc.
|
154
|
-
Layout/TrailingWhitespace:
|
155
|
-
Exclude:
|
156
|
-
- 'spec/dummy/public/extjs/classic/theme-base/sass/overrides.rb'
|
157
|
-
- 'spec/dummy/public/extjs/classic/theme-base/sass/utils.rb'
|
158
|
-
- 'spec/lib/xl_spec.rb'
|
159
|
-
|
160
142
|
# Offense count: 1
|
161
143
|
Lint/AmbiguousBlockAssociation:
|
162
144
|
Exclude:
|
@@ -168,19 +150,17 @@ Lint/AmbiguousOperator:
|
|
168
150
|
- 'app/components/marty/script_form.rb'
|
169
151
|
- 'other/marty/diagnostic/aws/ec2_instance.rb'
|
170
152
|
|
171
|
-
# Offense count:
|
153
|
+
# Offense count: 3
|
172
154
|
Lint/AmbiguousRegexpLiteral:
|
173
155
|
Exclude:
|
174
156
|
- 'spec/controllers/job_controller_spec.rb'
|
175
|
-
- 'spec/dummy/app/models/gemini/fannie_bup.rb'
|
176
157
|
- 'spec/models/posting_spec.rb'
|
177
158
|
|
178
|
-
# Offense count:
|
159
|
+
# Offense count: 1
|
179
160
|
# Configuration parameters: AllowSafeAssignment.
|
180
161
|
Lint/AssignmentInCondition:
|
181
162
|
Exclude:
|
182
163
|
- 'app/components/marty/event_view.rb'
|
183
|
-
- 'spec/dummy/public/extjs/classic/theme-base/sass/overrides.rb'
|
184
164
|
|
185
165
|
# Offense count: 2
|
186
166
|
Lint/Debugger:
|
@@ -195,11 +175,12 @@ Lint/DuplicateMethods:
|
|
195
175
|
- 'spec/support/shared_connection_db_helpers.rb'
|
196
176
|
|
197
177
|
# Offense count: 2
|
178
|
+
# Configuration parameters: AllowComments.
|
198
179
|
Lint/HandleExceptions:
|
199
180
|
Exclude:
|
200
181
|
- 'spec/support/netzke.rb'
|
201
182
|
|
202
|
-
# Offense count:
|
183
|
+
# Offense count: 25
|
203
184
|
Lint/IneffectiveAccessModifier:
|
204
185
|
Exclude:
|
205
186
|
- 'app/components/marty/mcfly_grid_panel.rb'
|
@@ -219,12 +200,10 @@ Lint/LiteralAsCondition:
|
|
219
200
|
Exclude:
|
220
201
|
- 'app/models/marty/promise.rb'
|
221
202
|
|
222
|
-
# Offense count:
|
203
|
+
# Offense count: 3
|
223
204
|
Lint/ParenthesesAsGroupedExpression:
|
224
205
|
Exclude:
|
225
|
-
- 'lib/marty/permissions.rb'
|
226
206
|
- 'spec/lib/logger_spec.rb'
|
227
|
-
- 'spec/models/data_grid_spec.rb'
|
228
207
|
- 'spec/models/user_spec.rb'
|
229
208
|
- 'spec/support/suite.rb'
|
230
209
|
|
@@ -233,18 +212,11 @@ Lint/RescueException:
|
|
233
212
|
Exclude:
|
234
213
|
- 'lib/marty/promise_proxy.rb'
|
235
214
|
|
236
|
-
# Offense count:
|
215
|
+
# Offense count: 1
|
237
216
|
# Cop supports --auto-correct.
|
238
217
|
Lint/ScriptPermission:
|
239
218
|
Exclude:
|
240
219
|
- 'Rakefile'
|
241
|
-
- 'spec/dummy/Rakefile'
|
242
|
-
|
243
|
-
# Offense count: 1
|
244
|
-
# Configuration parameters: IgnoreImplicitReferences.
|
245
|
-
Lint/ShadowedArgument:
|
246
|
-
Exclude:
|
247
|
-
- 'app/components/marty/main_auth_app.rb'
|
248
220
|
|
249
221
|
# Offense count: 7
|
250
222
|
Lint/ShadowingOuterLocalVariable:
|
@@ -257,20 +229,19 @@ Lint/ShadowingOuterLocalVariable:
|
|
257
229
|
- 'other/marty/diagnostic/base.rb'
|
258
230
|
- 'other/marty/diagnostic/database.rb'
|
259
231
|
|
260
|
-
# Offense count:
|
232
|
+
# Offense count: 7
|
261
233
|
# Cop supports --auto-correct.
|
262
234
|
Lint/StringConversionInInterpolation:
|
263
235
|
Exclude:
|
264
236
|
- 'app/components/marty/api_log_view.rb'
|
265
|
-
- 'app/components/marty/extras/layout.rb'
|
266
237
|
- 'app/components/marty/import_view.rb'
|
267
238
|
- 'spec/support/netzke.rb'
|
268
239
|
|
269
240
|
# Offense count: 2
|
241
|
+
# Configuration parameters: AllowKeywordBlockArguments.
|
270
242
|
Lint/UnderscorePrefixedVariableName:
|
271
243
|
Exclude:
|
272
244
|
- 'lib/marty/monkey.rb'
|
273
|
-
- 'lib/marty/promise_job.rb'
|
274
245
|
|
275
246
|
# Offense count: 4
|
276
247
|
Lint/UriEscapeUnescape:
|
@@ -289,7 +260,7 @@ Lint/UselessAccessModifier:
|
|
289
260
|
- 'lib/marty/json_schema.rb'
|
290
261
|
- 'other/marty/diagnostic/reporter.rb'
|
291
262
|
|
292
|
-
# Offense count:
|
263
|
+
# Offense count: 90
|
293
264
|
Lint/UselessAssignment:
|
294
265
|
Enabled: false
|
295
266
|
|
@@ -303,20 +274,14 @@ Lint/Void:
|
|
303
274
|
- 'spec/lib/xl_styles_spec.rb'
|
304
275
|
- 'spec/models/posting_spec.rb'
|
305
276
|
|
306
|
-
# Offense count:
|
277
|
+
# Offense count: 109
|
307
278
|
Metrics/AbcSize:
|
308
|
-
Max:
|
309
|
-
|
310
|
-
# Offense count: 138
|
311
|
-
# Configuration parameters: CountComments, ExcludedMethods.
|
312
|
-
# ExcludedMethods: refine
|
313
|
-
Metrics/BlockLength:
|
314
|
-
Max: 842
|
279
|
+
Max: 129
|
315
280
|
|
316
|
-
# Offense count:
|
281
|
+
# Offense count: 22
|
317
282
|
# Configuration parameters: CountComments.
|
318
283
|
Metrics/ClassLength:
|
319
|
-
Max:
|
284
|
+
Max: 578
|
320
285
|
|
321
286
|
# Offense count: 68
|
322
287
|
Metrics/CyclomaticComplexity:
|
@@ -327,21 +292,21 @@ Metrics/CyclomaticComplexity:
|
|
327
292
|
Metrics/MethodLength:
|
328
293
|
Max: 98
|
329
294
|
|
330
|
-
# Offense count:
|
295
|
+
# Offense count: 11
|
331
296
|
# Configuration parameters: CountComments.
|
332
297
|
Metrics/ModuleLength:
|
333
|
-
Max:
|
298
|
+
Max: 598
|
334
299
|
|
335
|
-
# Offense count:
|
300
|
+
# Offense count: 17
|
336
301
|
# Configuration parameters: CountKeywordArgs.
|
337
302
|
Metrics/ParameterLists:
|
338
|
-
Max:
|
303
|
+
Max: 10
|
339
304
|
|
340
|
-
# Offense count:
|
305
|
+
# Offense count: 50
|
341
306
|
Metrics/PerceivedComplexity:
|
342
307
|
Max: 35
|
343
308
|
|
344
|
-
# Offense count:
|
309
|
+
# Offense count: 30
|
345
310
|
Naming/AccessorMethodName:
|
346
311
|
Enabled: false
|
347
312
|
|
@@ -349,9 +314,8 @@ Naming/AccessorMethodName:
|
|
349
314
|
Naming/BinaryOperatorParameterName:
|
350
315
|
Exclude:
|
351
316
|
- 'lib/marty/monkey.rb'
|
352
|
-
- 'lib/marty/promise_job.rb'
|
353
317
|
|
354
|
-
# Offense count:
|
318
|
+
# Offense count: 12
|
355
319
|
Naming/ConstantName:
|
356
320
|
Exclude:
|
357
321
|
- 'spec/models/data_grid_spec.rb'
|
@@ -364,7 +328,7 @@ Naming/HeredocDelimiterCase:
|
|
364
328
|
- 'spec/controllers/rpc_controller_spec.rb'
|
365
329
|
- 'spec/models/script_spec.rb'
|
366
330
|
|
367
|
-
# Offense count:
|
331
|
+
# Offense count: 64
|
368
332
|
# Configuration parameters: Blacklist.
|
369
333
|
# Blacklist: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
|
370
334
|
Naming/HeredocDelimiterNaming:
|
@@ -380,13 +344,7 @@ Naming/HeredocDelimiterNaming:
|
|
380
344
|
- 'spec/lib/xl_styles_spec.rb'
|
381
345
|
- 'spec/models/data_grid_spec.rb'
|
382
346
|
|
383
|
-
# Offense count:
|
384
|
-
# Configuration parameters: .
|
385
|
-
# SupportedStyles: snake_case, camelCase
|
386
|
-
Naming/MethodName:
|
387
|
-
EnforcedStyle: snake_case
|
388
|
-
|
389
|
-
# Offense count: 9
|
347
|
+
# Offense count: 10
|
390
348
|
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
|
391
349
|
# NamePrefix: is_, has_, have_
|
392
350
|
# NamePrefixBlacklist: is_, has_, have_
|
@@ -403,20 +361,19 @@ Naming/PredicateName:
|
|
403
361
|
- 'other/marty/api/base.rb'
|
404
362
|
- 'other/marty/diagnostic/packer.rb'
|
405
363
|
|
406
|
-
# Offense count:
|
364
|
+
# Offense count: 148
|
407
365
|
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
408
366
|
# AllowedNames: io, id, to, by, on, in, at, ip, db
|
409
367
|
Naming/UncommunicativeMethodParamName:
|
410
368
|
Enabled: false
|
411
369
|
|
412
|
-
# Offense count:
|
370
|
+
# Offense count: 3
|
413
371
|
# Configuration parameters: EnforcedStyle.
|
414
372
|
# SupportedStyles: snake_case, camelCase
|
415
373
|
Naming/VariableName:
|
416
374
|
Exclude:
|
417
375
|
- 'app/models/marty/enum.rb'
|
418
376
|
- 'app/models/marty/tag.rb'
|
419
|
-
- 'spec/dummy/public/extjs/classic/theme-base/sass/utils.rb'
|
420
377
|
- 'spec/features/enum_spec.rb'
|
421
378
|
|
422
379
|
# Offense count: 1
|
@@ -447,11 +404,10 @@ Performance/FlatMap:
|
|
447
404
|
- 'lib/marty/aws/request.rb'
|
448
405
|
- 'other/marty/diagnostic/aws/ec2_instance.rb'
|
449
406
|
|
450
|
-
# Offense count:
|
407
|
+
# Offense count: 1
|
451
408
|
# Cop supports --auto-correct.
|
452
409
|
Performance/InefficientHashSearch:
|
453
410
|
Exclude:
|
454
|
-
- 'app/components/marty/base_rule_view.rb'
|
455
411
|
- 'other/marty/diagnostic/reporter.rb'
|
456
412
|
|
457
413
|
# Offense count: 5
|
@@ -464,11 +420,10 @@ Performance/RedundantBlockCall:
|
|
464
420
|
- 'spec/features/scripting_test_spec.rb'
|
465
421
|
- 'spec/support/setup.rb'
|
466
422
|
|
467
|
-
# Offense count:
|
423
|
+
# Offense count: 4
|
468
424
|
# Cop supports --auto-correct.
|
469
425
|
Performance/RedundantMatch:
|
470
426
|
Exclude:
|
471
|
-
- 'app/components/marty/base_rule_view.rb'
|
472
427
|
- 'lib/marty/migrations.rb'
|
473
428
|
- 'spec/support/components/netzke_combobox.rb'
|
474
429
|
- 'spec/support/components/netzke_grid.rb'
|
@@ -484,7 +439,7 @@ Performance/RedundantMerge:
|
|
484
439
|
- 'app/components/marty/event_view.rb'
|
485
440
|
- 'app/components/marty/user_view.rb'
|
486
441
|
|
487
|
-
# Offense count:
|
442
|
+
# Offense count: 21
|
488
443
|
# Cop supports --auto-correct.
|
489
444
|
Performance/Size:
|
490
445
|
Exclude:
|
@@ -492,11 +447,10 @@ Performance/Size:
|
|
492
447
|
- 'spec/lib/mcfly_model_spec.rb'
|
493
448
|
- 'spec/models/rule_spec.rb'
|
494
449
|
|
495
|
-
# Offense count:
|
450
|
+
# Offense count: 1
|
496
451
|
# Cop supports --auto-correct.
|
497
452
|
Performance/StringReplacement:
|
498
453
|
Exclude:
|
499
|
-
- 'spec/dummy/app/models/gemini/fannie_bup.rb'
|
500
454
|
- 'spec/lib/data_importer_spec.rb'
|
501
455
|
|
502
456
|
# Offense count: 2
|
@@ -506,19 +460,12 @@ Performance/TimesMap:
|
|
506
460
|
Exclude:
|
507
461
|
- 'spec/models/data_grid_spec.rb'
|
508
462
|
|
509
|
-
# Offense count:
|
510
|
-
# Cop supports --auto-correct.
|
511
|
-
Style/UnneededSort:
|
512
|
-
Exclude:
|
513
|
-
- 'app/models/marty/event.rb'
|
514
|
-
|
515
|
-
# Offense count: 9
|
463
|
+
# Offense count: 7
|
516
464
|
# Cop supports --auto-correct.
|
517
465
|
# Configuration parameters: EnforcedStyle.
|
518
466
|
# SupportedStyles: prefer_alias, prefer_alias_method
|
519
467
|
Style/Alias:
|
520
468
|
Exclude:
|
521
|
-
- 'app/models/marty/pg_enum.rb'
|
522
469
|
- 'app/models/marty/vw_promise.rb'
|
523
470
|
- 'lib/marty/monkey.rb'
|
524
471
|
- 'lib/marty/promise_proxy.rb'
|
@@ -548,19 +495,7 @@ Style/BarePercentLiterals:
|
|
548
495
|
- 'spec/models/config_spec.rb'
|
549
496
|
- 'spec/support/netzke.rb'
|
550
497
|
|
551
|
-
# Offense count:
|
552
|
-
Style/CaseEquality:
|
553
|
-
Exclude:
|
554
|
-
- 'app/components/marty/report_form.rb'
|
555
|
-
- 'app/models/marty/data_grid.rb'
|
556
|
-
- 'lib/marty/data_change.rb'
|
557
|
-
- 'lib/marty/data_conversion.rb'
|
558
|
-
- 'lib/marty/mcfly_model.rb'
|
559
|
-
- 'lib/marty/monkey.rb'
|
560
|
-
- 'other/marty/api/base.rb'
|
561
|
-
- 'spec/lib/mcfly_model_spec.rb'
|
562
|
-
|
563
|
-
# Offense count: 157
|
498
|
+
# Offense count: 130
|
564
499
|
# Cop supports --auto-correct.
|
565
500
|
# Configuration parameters: AutoCorrect, EnforcedStyle.
|
566
501
|
# SupportedStyles: nested, compact
|
@@ -617,7 +552,7 @@ Style/CommentedKeyword:
|
|
617
552
|
Exclude:
|
618
553
|
- 'app/models/marty/data_grid.rb'
|
619
554
|
|
620
|
-
# Offense count:
|
555
|
+
# Offense count: 5
|
621
556
|
# Cop supports --auto-correct.
|
622
557
|
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
623
558
|
# SupportedStyles: assign_to_condition, assign_inside_condition
|
@@ -625,12 +560,11 @@ Style/ConditionalAssignment:
|
|
625
560
|
Exclude:
|
626
561
|
- 'app/components/marty/auth_app.rb'
|
627
562
|
- 'app/controllers/marty/application_controller.rb'
|
628
|
-
- 'app/models/marty/script.rb'
|
629
563
|
- 'spec/other/diagnostic/reporter_spec.rb'
|
630
564
|
- 'spec/support/components/netzke_combobox.rb'
|
631
565
|
- 'spec/support/components/netzke_grid.rb'
|
632
566
|
|
633
|
-
# Offense count:
|
567
|
+
# Offense count: 159
|
634
568
|
Style/Documentation:
|
635
569
|
Enabled: false
|
636
570
|
|
@@ -661,22 +595,32 @@ Style/EmptyMethod:
|
|
661
595
|
- 'spec/models/import_type_spec.rb'
|
662
596
|
- 'spec/support/empty_job.rb'
|
663
597
|
|
664
|
-
# Offense count:
|
598
|
+
# Offense count: 15
|
665
599
|
# Cop supports --auto-correct.
|
666
600
|
Style/ExpandPathArguments:
|
667
|
-
|
601
|
+
Exclude:
|
602
|
+
- 'Rakefile'
|
603
|
+
- 'app/models/marty/script.rb'
|
604
|
+
- 'marty.gemspec'
|
605
|
+
- 'script/rails'
|
606
|
+
- 'spec/controllers/rpc_controller_spec.rb'
|
607
|
+
- 'spec/features/data_grid_spec.rb'
|
608
|
+
- 'spec/features/rule_spec.rb'
|
609
|
+
- 'spec/lib/struct_compare_spec.rb'
|
610
|
+
- 'spec/models/data_grid_spec.rb'
|
611
|
+
- 'spec/models/rule_spec.rb'
|
612
|
+
- 'spec/models/script_spec.rb'
|
613
|
+
- 'spec/spec_helper.rb'
|
668
614
|
|
669
|
-
# Offense count:
|
615
|
+
# Offense count: 7
|
670
616
|
# Cop supports --auto-correct.
|
671
617
|
# Configuration parameters: EnforcedStyle.
|
672
618
|
# SupportedStyles: format, sprintf, percent
|
673
619
|
Style/FormatString:
|
674
620
|
Exclude:
|
675
|
-
- 'app/components/marty/base_rule_view.rb'
|
676
621
|
- 'app/components/marty/extras/misc.rb'
|
677
622
|
- 'app/models/marty/base_rule.rb'
|
678
623
|
- 'spec/controllers/rpc_controller_spec.rb'
|
679
|
-
- 'spec/dummy/app/models/gemini/helper.rb'
|
680
624
|
- 'spec/features/rule_spec.rb'
|
681
625
|
- 'spec/lib/struct_compare_spec.rb'
|
682
626
|
- 'spec/models/rule_spec.rb'
|
@@ -693,16 +637,14 @@ Style/FormatStringToken:
|
|
693
637
|
- 'spec/lib/struct_compare_spec.rb'
|
694
638
|
- 'spec/models/rule_spec.rb'
|
695
639
|
|
696
|
-
# Offense count:
|
697
|
-
#
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
- 'spec/dummy/public/extjs/examples/classic/app/nested-loading/resources/sass/config.rb'
|
703
|
-
- 'spec/dummy/public/extjs/examples/classic/panel/bubble-panel/resources/sass/config.rb'
|
640
|
+
# Offense count: 211
|
641
|
+
# Cop supports --auto-correct.
|
642
|
+
# Configuration parameters: EnforcedStyle.
|
643
|
+
# SupportedStyles: always, never
|
644
|
+
Style/FrozenStringLiteralComment:
|
645
|
+
Enabled: false
|
704
646
|
|
705
|
-
# Offense count:
|
647
|
+
# Offense count: 15
|
706
648
|
# Configuration parameters: MinBodyLength.
|
707
649
|
Style/GuardClause:
|
708
650
|
Exclude:
|
@@ -716,7 +658,6 @@ Style/GuardClause:
|
|
716
658
|
- 'app/models/marty/user.rb'
|
717
659
|
- 'lib/marty/json_schema.rb'
|
718
660
|
- 'lib/marty/util.rb'
|
719
|
-
- 'spec/dummy/public/extjs/classic/theme-base/sass/utils.rb'
|
720
661
|
- 'spec/lib/json_schema_spec.rb'
|
721
662
|
- 'spec/support/post_run_logger.rb'
|
722
663
|
|
@@ -726,19 +667,18 @@ Style/IdenticalConditionalBranches:
|
|
726
667
|
- 'app/components/marty/mcfly_grid_panel.rb'
|
727
668
|
|
728
669
|
# Offense count: 1
|
670
|
+
# Configuration parameters: AllowIfModifier.
|
729
671
|
Style/IfInsideElse:
|
730
672
|
Exclude:
|
731
673
|
- 'lib/marty/data_change.rb'
|
732
674
|
|
733
|
-
# Offense count:
|
675
|
+
# Offense count: 5
|
734
676
|
# Cop supports --auto-correct.
|
735
677
|
Style/IfUnlessModifier:
|
736
678
|
Exclude:
|
737
679
|
- 'app/components/marty/promise_view.rb'
|
738
680
|
- 'app/models/marty/promise.rb'
|
739
681
|
- 'app/models/marty/token.rb'
|
740
|
-
- 'spec/dummy/public/extjs/classic/theme-base/sass/utils.rb'
|
741
|
-
- 'spec/dummy/public/extjs/modern/theme-base/sass/utils.rb'
|
742
682
|
|
743
683
|
# Offense count: 1
|
744
684
|
# Cop supports --auto-correct.
|
@@ -779,7 +719,7 @@ Style/Lambda:
|
|
779
719
|
- 'spec/lib/xl_styles_spec.rb'
|
780
720
|
- 'spec/support/shared_connection.rb'
|
781
721
|
|
782
|
-
# Offense count:
|
722
|
+
# Offense count: 24
|
783
723
|
# Cop supports --auto-correct.
|
784
724
|
Style/LineEndConcatenation:
|
785
725
|
Exclude:
|
@@ -791,25 +731,22 @@ Style/LineEndConcatenation:
|
|
791
731
|
- 'lib/marty/migrations.rb'
|
792
732
|
- 'other/marty/api/base.rb'
|
793
733
|
- 'spec/controllers/application_controller_spec.rb'
|
794
|
-
- 'spec/dummy/app/models/gemini/extras/settlement_import.rb'
|
795
734
|
- 'spec/features/reporting_spec.rb'
|
796
735
|
- 'spec/features/user_view_spec.rb'
|
797
736
|
- 'spec/models/api_auth_spec.rb'
|
798
737
|
- 'spec/models/script_spec.rb'
|
799
738
|
|
800
|
-
# Offense count:
|
739
|
+
# Offense count: 7
|
801
740
|
# Cop supports --auto-correct.
|
802
741
|
# Configuration parameters: IgnoredMethods.
|
803
742
|
Style/MethodCallWithoutArgsParentheses:
|
804
743
|
Exclude:
|
805
|
-
- 'spec/dummy/public/extjs/classic/theme-base/sass/utils.rb'
|
806
744
|
- 'spec/features/log_view_spec.rb'
|
807
745
|
- 'spec/features/rule_spec.rb'
|
808
746
|
- 'spec/lib/xl_spec.rb'
|
809
747
|
- 'spec/lib/xl_styles_spec.rb'
|
810
|
-
- 'spec/support/netzke.rb'
|
811
748
|
|
812
|
-
# Offense count:
|
749
|
+
# Offense count: 100
|
813
750
|
# Cop supports --auto-correct.
|
814
751
|
# Configuration parameters: EnforcedStyle.
|
815
752
|
# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
|
@@ -829,7 +766,7 @@ Style/MissingRespondToMissing:
|
|
829
766
|
|
830
767
|
# Offense count: 1
|
831
768
|
# Cop supports --auto-correct.
|
832
|
-
# Configuration parameters: EnforcedStyle.
|
769
|
+
# Configuration parameters: EnforcedStyle, Autocorrect.
|
833
770
|
# SupportedStyles: module_function, extend_self
|
834
771
|
Style/ModuleFunction:
|
835
772
|
Exclude:
|
@@ -845,7 +782,7 @@ Style/MultilineBlockChain:
|
|
845
782
|
- 'other/marty/diagnostic/delayed_job_version.rb'
|
846
783
|
- 'other/marty/diagnostic/node.rb'
|
847
784
|
|
848
|
-
# Offense count:
|
785
|
+
# Offense count: 22
|
849
786
|
# Cop supports --auto-correct.
|
850
787
|
Style/MultilineIfModifier:
|
851
788
|
Exclude:
|
@@ -859,7 +796,6 @@ Style/MultilineIfModifier:
|
|
859
796
|
- 'lib/marty/data_importer.rb'
|
860
797
|
- 'lib/marty/json_schema.rb'
|
861
798
|
- 'lib/marty/migrations.rb'
|
862
|
-
- 'lib/marty/promise_job.rb'
|
863
799
|
- 'lib/marty/xl.rb'
|
864
800
|
- 'spec/support/structure_compare.rb'
|
865
801
|
|
@@ -874,12 +810,14 @@ Style/MultipleComparison:
|
|
874
810
|
- 'app/models/marty/data_grid.rb'
|
875
811
|
- 'lib/marty/xl.rb'
|
876
812
|
|
877
|
-
# Offense count:
|
813
|
+
# Offense count: 74
|
878
814
|
# Cop supports --auto-correct.
|
815
|
+
# Configuration parameters: EnforcedStyle.
|
816
|
+
# SupportedStyles: literals, strict
|
879
817
|
Style/MutableConstant:
|
880
818
|
Enabled: false
|
881
819
|
|
882
|
-
# Offense count:
|
820
|
+
# Offense count: 15
|
883
821
|
# Cop supports --auto-correct.
|
884
822
|
# Configuration parameters: EnforcedStyle.
|
885
823
|
# SupportedStyles: both, prefix, postfix
|
@@ -896,7 +834,6 @@ Style/NegatedIf:
|
|
896
834
|
- 'app/models/marty/tag.rb'
|
897
835
|
- 'lib/marty/data_change.rb'
|
898
836
|
- 'lib/marty/data_exporter.rb'
|
899
|
-
- 'spec/dummy/public/extjs/classic/theme-base/sass/utils.rb'
|
900
837
|
|
901
838
|
# Offense count: 1
|
902
839
|
# Cop supports --auto-correct.
|
@@ -932,19 +869,31 @@ Style/Next:
|
|
932
869
|
# Cop supports --auto-correct.
|
933
870
|
# Configuration parameters: Strict.
|
934
871
|
Style/NumericLiterals:
|
935
|
-
MinDigits:
|
872
|
+
MinDigits: 7
|
936
873
|
|
937
|
-
# Offense count:
|
874
|
+
# Offense count: 18
|
875
|
+
# Cop supports --auto-correct.
|
876
|
+
# Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
|
877
|
+
# SupportedStyles: predicate, comparison
|
878
|
+
Style/NumericPredicate:
|
879
|
+
Exclude:
|
880
|
+
- 'spec/**/*'
|
881
|
+
- 'app/models/marty/event.rb'
|
882
|
+
- 'lib/marty/content_handler.rb'
|
883
|
+
- 'lib/marty/data_change.rb'
|
884
|
+
- 'lib/marty/data_importer.rb'
|
885
|
+
- 'lib/marty/xl.rb'
|
886
|
+
|
887
|
+
# Offense count: 40
|
938
888
|
# Cop supports --auto-correct.
|
939
889
|
Style/ParallelAssignment:
|
940
890
|
Enabled: false
|
941
891
|
|
942
|
-
# Offense count:
|
892
|
+
# Offense count: 4
|
943
893
|
# Cop supports --auto-correct.
|
944
894
|
# Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions.
|
945
895
|
Style/ParenthesesAroundCondition:
|
946
896
|
Exclude:
|
947
|
-
- 'app/models/marty/data_grid.rb'
|
948
897
|
- 'lib/marty/aws/request.rb'
|
949
898
|
- 'lib/marty/data_change.rb'
|
950
899
|
- 'lib/marty/xl.rb'
|
@@ -977,15 +926,13 @@ Style/PerlBackrefs:
|
|
977
926
|
Exclude:
|
978
927
|
- 'lib/marty/migrations.rb'
|
979
928
|
|
980
|
-
# Offense count:
|
929
|
+
# Offense count: 1
|
981
930
|
# Cop supports --auto-correct.
|
982
931
|
# Configuration parameters: EnforcedStyle.
|
983
932
|
# SupportedStyles: compact, exploded
|
984
933
|
Style/RaiseArgs:
|
985
934
|
Exclude:
|
986
935
|
- 'other/marty/diagnostic/reporter.rb'
|
987
|
-
- 'spec/dummy/public/extjs/classic/theme-base/sass/overrides.rb'
|
988
|
-
- 'spec/dummy/public/extjs/classic/theme-base/sass/utils.rb'
|
989
936
|
|
990
937
|
# Offense count: 6
|
991
938
|
# Cop supports --auto-correct.
|
@@ -1000,12 +947,34 @@ Style/RegexpLiteral:
|
|
1000
947
|
- 'lib/marty/xl.rb'
|
1001
948
|
- 'spec/models/event_spec.rb'
|
1002
949
|
|
1003
|
-
# Offense count:
|
950
|
+
# Offense count: 36
|
1004
951
|
# Cop supports --auto-correct.
|
1005
952
|
Style/RescueModifier:
|
1006
953
|
Enabled: false
|
1007
954
|
|
1008
|
-
# Offense count:
|
955
|
+
# Offense count: 20
|
956
|
+
# Cop supports --auto-correct.
|
957
|
+
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, Whitelist.
|
958
|
+
# Whitelist: present?, blank?, presence, try, try!
|
959
|
+
Style/SafeNavigation:
|
960
|
+
Exclude:
|
961
|
+
- 'app/components/marty/extras/layout.rb'
|
962
|
+
- 'app/components/marty/script_grid.rb'
|
963
|
+
- 'app/controllers/marty/application_controller.rb'
|
964
|
+
- 'app/controllers/marty/diagnostic/controller.rb'
|
965
|
+
- 'app/models/marty/config.rb'
|
966
|
+
- 'app/models/marty/data_grid.rb'
|
967
|
+
- 'app/models/marty/delorean_rule.rb'
|
968
|
+
- 'app/models/marty/enum.rb'
|
969
|
+
- 'app/models/marty/import_type.rb'
|
970
|
+
- 'app/models/marty/tag.rb'
|
971
|
+
- 'lib/marty/cache_adapters/mcfly_ruby_cache.rb'
|
972
|
+
- 'lib/marty/data_importer.rb'
|
973
|
+
- 'lib/marty/mcfly_model.rb'
|
974
|
+
- 'lib/marty/xl.rb'
|
975
|
+
- 'spec/support/chromedriver.rb'
|
976
|
+
|
977
|
+
# Offense count: 4
|
1009
978
|
# Cop supports --auto-correct.
|
1010
979
|
# Configuration parameters: AllowAsExpressionSeparator.
|
1011
980
|
Style/Semicolon:
|
@@ -1013,10 +982,9 @@ Style/Semicolon:
|
|
1013
982
|
- 'app/components/marty/base_rule_view.rb'
|
1014
983
|
- 'app/components/marty/config_view.rb'
|
1015
984
|
- 'spec/controllers/rpc_controller_spec.rb'
|
1016
|
-
- 'spec/dummy/public/extjs/classic/theme-base/sass/utils.rb'
|
1017
985
|
- 'spec/support/helper.rb'
|
1018
986
|
|
1019
|
-
# Offense count:
|
987
|
+
# Offense count: 2
|
1020
988
|
# Cop supports --auto-correct.
|
1021
989
|
# Configuration parameters: .
|
1022
990
|
# SupportedStyles: use_perl_names, use_english_names
|
@@ -1031,43 +999,42 @@ Style/StringLiteralsInInterpolation:
|
|
1031
999
|
Exclude:
|
1032
1000
|
- 'spec/spec_helper.rb'
|
1033
1001
|
|
1034
|
-
# Offense count:
|
1002
|
+
# Offense count: 2
|
1035
1003
|
Style/StructInheritance:
|
1036
1004
|
Exclude:
|
1037
1005
|
- 'lib/marty/promise_job.rb'
|
1038
1006
|
- 'lib/marty/promise_ruby_job.rb'
|
1039
1007
|
|
1040
|
-
# Offense count:
|
1008
|
+
# Offense count: 4
|
1041
1009
|
# Cop supports --auto-correct.
|
1042
1010
|
# Configuration parameters: EnforcedStyle, AllowSafeAssignment.
|
1043
1011
|
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
|
1044
1012
|
Style/TernaryParentheses:
|
1045
1013
|
Exclude:
|
1046
1014
|
- 'app/models/marty/data_grid.rb'
|
1047
|
-
- 'lib/marty/data_change.rb'
|
1048
1015
|
- 'lib/marty/xl.rb'
|
1049
1016
|
- 'other/marty/api/base.rb'
|
1050
1017
|
|
1051
|
-
# Offense count:
|
1018
|
+
# Offense count: 39
|
1052
1019
|
# Cop supports --auto-correct.
|
1053
1020
|
Style/TrailingBodyOnModule:
|
1054
1021
|
Enabled: false
|
1055
1022
|
|
1056
|
-
# Offense count:
|
1023
|
+
# Offense count: 71
|
1057
1024
|
# Cop supports --auto-correct.
|
1058
1025
|
# Configuration parameters: EnforcedStyleForMultiline.
|
1059
1026
|
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
1060
1027
|
Style/TrailingCommaInArguments:
|
1061
1028
|
Enabled: false
|
1062
1029
|
|
1063
|
-
# Offense count:
|
1030
|
+
# Offense count: 53
|
1064
1031
|
# Cop supports --auto-correct.
|
1065
1032
|
# Configuration parameters: EnforcedStyleForMultiline.
|
1066
1033
|
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
1067
1034
|
Style/TrailingCommaInArrayLiteral:
|
1068
1035
|
Enabled: false
|
1069
1036
|
|
1070
|
-
# Offense count:
|
1037
|
+
# Offense count: 147
|
1071
1038
|
# Cop supports --auto-correct.
|
1072
1039
|
# Configuration parameters: EnforcedStyleForMultiline.
|
1073
1040
|
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
@@ -1082,25 +1049,22 @@ Style/UnneededPercentQ:
|
|
1082
1049
|
- 'spec/features/rule_spec.rb'
|
1083
1050
|
- 'spec/models/config_spec.rb'
|
1084
1051
|
|
1085
|
-
# Offense count:
|
1052
|
+
# Offense count: 1
|
1053
|
+
# Cop supports --auto-correct.
|
1054
|
+
Style/UnneededSort:
|
1055
|
+
Exclude:
|
1056
|
+
- 'app/models/marty/event.rb'
|
1057
|
+
|
1058
|
+
# Offense count: 96
|
1086
1059
|
# Cop supports --auto-correct.
|
1087
|
-
# Configuration parameters: WordRegex.
|
1060
|
+
# Configuration parameters: EnforcedStyle, MinSize, WordRegex.
|
1088
1061
|
# SupportedStyles: percent, brackets
|
1089
1062
|
Style/WordArray:
|
1090
|
-
|
1091
|
-
MinSize: 18
|
1063
|
+
Enabled: false
|
1092
1064
|
|
1093
|
-
# Offense count:
|
1094
|
-
#
|
1065
|
+
# Offense count: 136
|
1066
|
+
# Cop supports --auto-correct.
|
1067
|
+
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
1095
1068
|
# URISchemes: http, https
|
1096
1069
|
Metrics/LineLength:
|
1097
1070
|
Max: 100
|
1098
|
-
|
1099
|
-
Style/FrozenStringLiteralComment:
|
1100
|
-
Enabled: false
|
1101
|
-
|
1102
|
-
Style/SafeNavigation:
|
1103
|
-
Enabled: false
|
1104
|
-
|
1105
|
-
Style/NumericPredicate:
|
1106
|
-
Enabled: false
|
data/lib/marty/rpc_call.rb
CHANGED
@@ -1,20 +1,22 @@
|
|
1
1
|
class Marty::RpcCall
|
2
2
|
# POST to a remote marty
|
3
3
|
def self.marty_post(host, port, path, script, node, attrs, params,
|
4
|
-
|
4
|
+
rpc_opts = {}, ssl = false, http_opts = {})
|
5
5
|
http = Net::HTTP.new(host, port)
|
6
6
|
|
7
|
-
# FIXME: in 5.2.0 put ssl in
|
7
|
+
# FIXME: in 5.2.0 put ssl in https_opts hash and change interface
|
8
8
|
http.use_ssl = ssl
|
9
|
-
http.read_timeout =
|
9
|
+
http.read_timeout = http_opts[:read_timeout] if http_opts[:read_timeout]
|
10
|
+
http.open_timeout = http_opts[:open_timeout] if http_opts[:open_timeout]
|
10
11
|
|
11
12
|
request = Net::HTTP::Post.new(path)
|
12
13
|
request.add_field('Content-Type', 'application/json')
|
13
|
-
request.body =
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
14
|
+
request.body = rpc_opts.merge(
|
15
|
+
'script' => script,
|
16
|
+
'node' => node,
|
17
|
+
'attrs' => attrs.to_json,
|
18
|
+
'params' => params.to_json,
|
19
|
+
).to_json
|
18
20
|
|
19
21
|
begin
|
20
22
|
response = http.request(request)
|
@@ -54,6 +56,7 @@ class Marty::RpcCall
|
|
54
56
|
request = Net::HTTP::Post.new(path)
|
55
57
|
http.use_ssl = use_ssl
|
56
58
|
http.read_timeout = options[:read_timeout] if options[:read_timeout]
|
59
|
+
http.open_timeout = options[:open_timeout] if options[:open_timeout]
|
57
60
|
request.add_field('Content-Type', 'xml')
|
58
61
|
request.add_field('Accept', 'xml')
|
59
62
|
request.body = body
|
data/lib/marty/version.rb
CHANGED