tessitura_rest 0.5.12 → 0.6.0

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
  SHA256:
3
- metadata.gz: f417e5cf39b1e7b3475a7c8ac86252d8da7e7e54ad201b68de37b712fcd875b0
4
- data.tar.gz: cf939ba00d31f53ef6746ae1f59b29587797983e0fb7a1ae118acf76c7a064eb
3
+ metadata.gz: 62a4effb5df19288dc79f2ed7171c0746d91ac232593c179679cc74202512e5c
4
+ data.tar.gz: 556ef014d73bd786f4517421e4269de00e801bea7dcc179d735677a389b74628
5
5
  SHA512:
6
- metadata.gz: 7e528f68d9a921c27a511f2e7b3448ed98b5fa96ab87d316a9ca83eadb6a35b58e30aa73b719456fd1b386354874a2bb142717f8127181ddb04e563ced13e6a7
7
- data.tar.gz: 02c61eebf41636c537790c83d7446b327ec867ebdf619bdad61deabc07ebe3bd6e7685ab0e0bdb4a3ecd3232333241ba43b38f124c27f8ca81f2e82c8a87fcf0
6
+ metadata.gz: 37f92f0c3266773f69dbf1944f5a55af03677eb2efee026d0490b7369aab79840be0c91d04c731bdc890b189e22c147c72b056698bb954f78bb925e9e57052b3
7
+ data.tar.gz: 82c2430e9a878ac1337c715a9eefdf2f382d78c1e090e7aeeb7d8e4956ac9e29037cc9765e0cb1a773fdd0b79a18e821f181f3febeeb7d2af30a8ac21567158e
data/.codeclimate.yml ADDED
@@ -0,0 +1,42 @@
1
+ version: "2"
2
+ plugins:
3
+ brakeman:
4
+ enabled: false
5
+ bundler-audit:
6
+ enabled: false
7
+ eslint:
8
+ enabled: false
9
+ fixme:
10
+ enabled: true
11
+ flog:
12
+ enabled: true
13
+ config:
14
+ score_threshold: 20.0
15
+ haml-lint:
16
+ enabled: false
17
+ checks:
18
+ HamlLint/FinalNewline:
19
+ enabled: false
20
+ reek:
21
+ enabled: true
22
+ checks:
23
+ IrresponsibleModule:
24
+ enabled: false
25
+ UncommunicativeName:
26
+ enabled: false
27
+ UncommunicativeVariableName:
28
+ enabled: false
29
+ rubocop:
30
+ enabled: true
31
+ channel: rubocop-0-79
32
+ stylelint:
33
+ enabled: false
34
+ checks:
35
+ no-eol-whitespace:
36
+ enabled: false
37
+ no-missing-end-of-source-newline:
38
+ enabled: false
39
+ exclude_patterns:
40
+ - .rubocop.yml
41
+ - .rubocop_todo.yml
42
+ - spec/**/*
data/.rubocop.yml ADDED
@@ -0,0 +1,553 @@
1
+ AllCops:
2
+ Exclude:
3
+ - spec/**/*
4
+
5
+ Naming/AccessorMethodName:
6
+ Description: Check the naming of accessor methods for get_/set_.
7
+ Enabled: false
8
+
9
+ Style/Alias:
10
+ Description: 'Use alias_method instead of alias.'
11
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#alias-method'
12
+ Enabled: false
13
+
14
+ Style/ArrayJoin:
15
+ Description: 'Use Array#join instead of Array#*.'
16
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#array-join'
17
+ Enabled: false
18
+
19
+ Style/AsciiComments:
20
+ Description: 'Use only ascii symbols in comments.'
21
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-comments'
22
+ Enabled: false
23
+
24
+ Naming/AsciiIdentifiers:
25
+ Description: 'Use only ascii symbols in identifiers.'
26
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-identifiers'
27
+ Enabled: false
28
+
29
+ Style/Attr:
30
+ Description: 'Checks for uses of Module#attr.'
31
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr'
32
+ Enabled: false
33
+
34
+ Metrics/BlockNesting:
35
+ Description: 'Avoid excessive block nesting'
36
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count'
37
+ Enabled: false
38
+
39
+ Style/CaseEquality:
40
+ Description: 'Avoid explicit use of the case equality operator(===).'
41
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-case-equality'
42
+ Enabled: false
43
+
44
+ Style/CharacterLiteral:
45
+ Description: 'Checks for uses of character literals.'
46
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-character-literals'
47
+ Enabled: false
48
+
49
+ # Style/ClassAndModuleChildren:
50
+ # Description: 'Checks style of children classes and modules.'
51
+ # Enabled: true
52
+ # EnforcedStyle: nested
53
+
54
+ Metrics/ClassLength:
55
+ Description: 'Avoid classes longer than 100 lines of code.'
56
+ Enabled: false
57
+
58
+ Metrics/ModuleLength:
59
+ Description: 'Avoid modules longer than 100 lines of code.'
60
+ Enabled: false
61
+
62
+ Style/ClassVars:
63
+ Description: 'Avoid the use of class variables.'
64
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-class-vars'
65
+ Enabled: false
66
+
67
+ Style/CollectionMethods:
68
+ Enabled: true
69
+ PreferredMethods:
70
+ find: detect
71
+ inject: reduce
72
+ collect: map
73
+ find_all: select
74
+
75
+ Style/ColonMethodCall:
76
+ Description: 'Do not use :: for method call.'
77
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#double-colons'
78
+ Enabled: false
79
+
80
+ Style/CommentAnnotation:
81
+ Description: >-
82
+ Checks formatting of special comments
83
+ (TODO, FIXME, OPTIMIZE, HACK, REVIEW).
84
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#annotate-keywords'
85
+ Enabled: false
86
+
87
+ Metrics/AbcSize:
88
+ Description: >-
89
+ A calculated magnitude based on number of assignments,
90
+ branches, and conditions.
91
+ Enabled: false
92
+
93
+ # Metrics/BlockLength:
94
+ # CountComments: true # count full line comments?
95
+ # Max: 25
96
+ # ExcludedMethods: []
97
+ # Exclude:
98
+ # - "spec/**/*"
99
+
100
+ Metrics/CyclomaticComplexity:
101
+ Description: >-
102
+ A complexity metric that is strongly correlated to the number
103
+ of test cases needed to validate a method.
104
+ Enabled: false
105
+
106
+ Style/PreferredHashMethods:
107
+ Description: 'Checks use of `has_key?` and `has_value?` Hash methods.'
108
+ StyleGuide: '#hash-key'
109
+ Enabled: false
110
+
111
+ Style/Documentation:
112
+ Description: 'Document classes and non-namespace modules.'
113
+ Enabled: false
114
+
115
+ Style/DoubleNegation:
116
+ Description: 'Checks for uses of double negation (!!).'
117
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-bang-bang'
118
+ Enabled: false
119
+
120
+ Style/EachWithObject:
121
+ Description: 'Prefer `each_with_object` over `inject` or `reduce`.'
122
+ Enabled: false
123
+
124
+ Style/EmptyLiteral:
125
+ Description: 'Prefer literals to Array.new/Hash.new/String.new.'
126
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#literal-array-hash'
127
+ Enabled: false
128
+
129
+ # Checks whether the source file has a utf-8 encoding comment or not
130
+ # AutoCorrectEncodingComment must match the regex
131
+ # /#.*coding\s?[:=]\s?(?:UTF|utf)-8/
132
+ Style/Encoding:
133
+ Enabled: false
134
+
135
+ Style/EvenOdd:
136
+ Description: 'Favor the use of Fixnum#even? && Fixnum#odd?'
137
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
138
+ Enabled: false
139
+
140
+ Naming/FileName:
141
+ Description: 'Use snake_case for source file names.'
142
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-files'
143
+ Enabled: false
144
+
145
+ Style/FrozenStringLiteralComment:
146
+ Description: >-
147
+ Add the frozen_string_literal comment to the top of files
148
+ to help transition from Ruby 2.3.0 to Ruby 3.0.
149
+ Enabled: false
150
+
151
+ Style/FormatString:
152
+ Description: 'Enforce the use of Kernel#sprintf, Kernel#format or String#%.'
153
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#sprintf'
154
+ Enabled: false
155
+
156
+ Style/GlobalVars:
157
+ Description: 'Do not introduce global variables.'
158
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#instance-vars'
159
+ Reference: 'http://www.zenspider.com/Languages/Ruby/QuickRef.html'
160
+ Enabled: false
161
+
162
+ Style/GuardClause:
163
+ Description: 'Check for conditionals that can be replaced with guard clauses'
164
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
165
+ Enabled: false
166
+
167
+ Style/IfUnlessModifier:
168
+ Description: >-
169
+ Favor modifier if/unless usage when you have a
170
+ single-line body.
171
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier'
172
+ Enabled: false
173
+
174
+ Style/IfWithSemicolon:
175
+ Description: 'Do not use if x; .... Use the ternary operator instead.'
176
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs'
177
+ Enabled: false
178
+
179
+ Style/InlineComment:
180
+ Description: 'Avoid inline comments.'
181
+ Enabled: false
182
+
183
+ Style/Lambda:
184
+ Description: 'Use the new lambda literal syntax for single-line blocks.'
185
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#lambda-multi-line'
186
+ Enabled: false
187
+
188
+ Style/LambdaCall:
189
+ Description: 'Use lambda.call(...) instead of lambda.(...).'
190
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc-call'
191
+ Enabled: false
192
+
193
+ Style/LineEndConcatenation:
194
+ Description: >-
195
+ Use \ instead of + or << to concatenate two string literals at
196
+ line end.
197
+ Enabled: false
198
+
199
+ # Metrics/LineLength:
200
+ # Description: 'Limit lines to 80 characters.'
201
+ # StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#80-character-limits'
202
+ # Max: 80
203
+
204
+ Metrics/MethodLength:
205
+ Description: 'Avoid methods longer than 10 lines of code.'
206
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#short-methods'
207
+ Enabled: false
208
+
209
+ Style/ModuleFunction:
210
+ Description: 'Checks for usage of `extend self` in modules.'
211
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#module-function'
212
+ Enabled: false
213
+
214
+ Style/MultilineBlockChain:
215
+ Description: 'Avoid multi-line chains of blocks.'
216
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
217
+ Enabled: false
218
+
219
+ Style/NegatedIf:
220
+ Description: >-
221
+ Favor unless over if for negative conditions
222
+ (or control flow or).
223
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#unless-for-negatives'
224
+ Enabled: false
225
+
226
+ Style/NegatedWhile:
227
+ Description: 'Favor until over while for negative conditions.'
228
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#until-for-negatives'
229
+ Enabled: false
230
+
231
+ Style/Next:
232
+ Description: 'Use `next` to skip iteration instead of a condition at the end.'
233
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
234
+ Enabled: false
235
+
236
+ Style/NilComparison:
237
+ Description: 'Prefer x.nil? to x == nil.'
238
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
239
+ Enabled: false
240
+
241
+ Style/Not:
242
+ Description: 'Use ! instead of not.'
243
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bang-not-not'
244
+ Enabled: false
245
+
246
+ Style/NumericLiterals:
247
+ Description: >-
248
+ Add underscores to large numeric literals to improve their
249
+ readability.
250
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics'
251
+ Enabled: false
252
+
253
+ Style/OneLineConditional:
254
+ Description: >-
255
+ Favor the ternary operator(?:) over
256
+ if/then/else/end constructs.
257
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#ternary-operator'
258
+ Enabled: false
259
+
260
+ Naming/BinaryOperatorParameterName:
261
+ Description: 'When defining binary operators, name the argument other.'
262
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#other-arg'
263
+ Enabled: false
264
+
265
+ Metrics/ParameterLists:
266
+ Description: 'Avoid parameter lists longer than three or four parameters.'
267
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#too-many-params'
268
+ Enabled: false
269
+
270
+ Style/PercentLiteralDelimiters:
271
+ Description: 'Use `%`-literal delimiters consistently'
272
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-literal-braces'
273
+ Enabled: false
274
+
275
+ Style/PerlBackrefs:
276
+ Description: 'Avoid Perl-style regex back references.'
277
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers'
278
+ Enabled: false
279
+
280
+ # Naming/PredicateName:
281
+ # Description: 'Check the names of predicate methods.'
282
+ # StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark'
283
+ # NamePrefixBlacklist:
284
+ # - is_
285
+ # Exclude:
286
+ # - spec/**/*
287
+
288
+ Style/Proc:
289
+ Description: 'Use proc instead of Proc.new.'
290
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc'
291
+ Enabled: false
292
+
293
+ Style/RaiseArgs:
294
+ Description: 'Checks the arguments passed to raise/fail.'
295
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#exception-class-messages'
296
+ Enabled: false
297
+
298
+ Style/RegexpLiteral:
299
+ Description: 'Use / or %r around regular expressions.'
300
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-r'
301
+ Enabled: false
302
+
303
+ Style/SelfAssignment:
304
+ Description: >-
305
+ Checks for places where self-assignment shorthand should have
306
+ been used.
307
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#self-assignment'
308
+ Enabled: false
309
+
310
+ Style/SingleLineBlockParams:
311
+ Description: 'Enforces the names of some block params.'
312
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#reduce-blocks'
313
+ Enabled: false
314
+
315
+ Style/SingleLineMethods:
316
+ Description: 'Avoid single-line methods.'
317
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-single-line-methods'
318
+ Enabled: false
319
+
320
+ Style/SignalException:
321
+ Description: 'Checks for proper usage of fail and raise.'
322
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#fail-method'
323
+ Enabled: false
324
+
325
+ Style/SpecialGlobalVars:
326
+ Description: 'Avoid Perl-style global variables.'
327
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms'
328
+ Enabled: false
329
+
330
+ Style/StringLiterals:
331
+ Description: 'Checks if uses of quotes match the configured preference.'
332
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-string-literals'
333
+ EnforcedStyle: single_quotes
334
+ Enabled: true
335
+
336
+ Style/TrailingCommaInArguments:
337
+ Description: 'Checks for trailing comma in argument lists.'
338
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
339
+ EnforcedStyleForMultiline: comma
340
+ SupportedStylesForMultiline:
341
+ - comma
342
+ - consistent_comma
343
+ - no_comma
344
+ Enabled: true
345
+
346
+ Style/TrailingCommaInArrayLiteral:
347
+ Description: 'Checks for trailing comma in array literals.'
348
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
349
+ EnforcedStyleForMultiline: comma
350
+ SupportedStylesForMultiline:
351
+ - comma
352
+ - consistent_comma
353
+ - no_comma
354
+ Enabled: true
355
+
356
+ Style/TrailingCommaInHashLiteral:
357
+ Description: 'Checks for trailing comma in hash literals.'
358
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
359
+ EnforcedStyleForMultiline: comma
360
+ SupportedStylesForMultiline:
361
+ - comma
362
+ - consistent_comma
363
+ - no_comma
364
+ Enabled: true
365
+
366
+ Style/TrivialAccessors:
367
+ Description: 'Prefer attr_* methods to trivial readers/writers.'
368
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr_family'
369
+ Enabled: false
370
+
371
+ Style/VariableInterpolation:
372
+ Description: >-
373
+ Don't interpolate global, instance and class variables
374
+ directly in strings.
375
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#curlies-interpolate'
376
+ Enabled: false
377
+
378
+ Style/WhenThen:
379
+ Description: 'Use when x then ... for one-line cases.'
380
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#one-line-cases'
381
+ Enabled: false
382
+
383
+ Style/WhileUntilModifier:
384
+ Description: >-
385
+ Favor modifier while/until usage when you have a
386
+ single-line body.
387
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier'
388
+ Enabled: false
389
+
390
+ Style/WordArray:
391
+ Description: 'Use %w or %W for arrays of words.'
392
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-w'
393
+ Enabled: false
394
+
395
+ # Layout
396
+
397
+ Layout/ParameterAlignment:
398
+ Description: 'Here we check if the parameters on a multi-line method call or definition are aligned.'
399
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-double-indent'
400
+ Enabled: false
401
+
402
+ Layout/ConditionPosition:
403
+ Description: >-
404
+ Checks for condition placed in a confusing position relative to
405
+ the keyword.
406
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#same-line-condition'
407
+ Enabled: false
408
+
409
+ Layout/DotPosition:
410
+ Description: 'Checks the position of the dot in multi-line method calls.'
411
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains'
412
+ EnforcedStyle: trailing
413
+
414
+ Layout/ExtraSpacing:
415
+ Description: 'Do not use unnecessary spacing.'
416
+ Enabled: true
417
+
418
+ Layout/MultilineOperationIndentation:
419
+ Description: >-
420
+ Checks indentation of binary operations that span more than
421
+ one line.
422
+ Enabled: true
423
+ EnforcedStyle: indented
424
+
425
+ Layout/MultilineMethodCallIndentation:
426
+ Description: >-
427
+ Checks indentation of method calls with the dot operator
428
+ that span more than one line.
429
+ Enabled: true
430
+ EnforcedStyle: indented
431
+
432
+ Layout/InitialIndentation:
433
+ Description: >-
434
+ Checks the indentation of the first non-blank non-comment line in a file.
435
+ Enabled: false
436
+
437
+ Layout/TrailingEmptyLines:
438
+ Enabled: false
439
+
440
+ # Lint
441
+
442
+ Lint/AmbiguousOperator:
443
+ Description: >-
444
+ Checks for ambiguous operators in the first argument of a
445
+ method invocation without parentheses.
446
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-as-args'
447
+ Enabled: false
448
+
449
+ Lint/AmbiguousRegexpLiteral:
450
+ Description: >-
451
+ Checks for ambiguous regexp literals in the first argument of
452
+ a method invocation without parenthesis.
453
+ Enabled: false
454
+
455
+ Lint/AssignmentInCondition:
456
+ Description: "Don't use assignment in conditions."
457
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition'
458
+ Enabled: false
459
+
460
+ Lint/CircularArgumentReference:
461
+ Description: "Don't refer to the keyword argument in the default value."
462
+ Enabled: false
463
+
464
+ Lint/DeprecatedClassMethods:
465
+ Description: 'Check for deprecated class method calls.'
466
+ Enabled: false
467
+
468
+ Lint/DuplicateHashKey:
469
+ Description: 'Check for duplicate keys in hash literals.'
470
+ Enabled: false
471
+
472
+ Lint/EachWithObjectArgument:
473
+ Description: 'Check for immutable argument given to each_with_object.'
474
+ Enabled: false
475
+
476
+ Lint/ElseLayout:
477
+ Description: 'Check for odd code arrangement in an else block.'
478
+ Enabled: false
479
+
480
+ Lint/FormatParameterMismatch:
481
+ Description: 'The number of parameters to format/sprint must match the fields.'
482
+ Enabled: false
483
+
484
+ Lint/FlipFlop:
485
+ Description: 'Checks for flip flops'
486
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-flip-flops'
487
+ Enabled: false
488
+
489
+ Lint/SuppressedException:
490
+ Description: "Don't suppress exception."
491
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions'
492
+ Enabled: false
493
+
494
+ Lint/LiteralAsCondition:
495
+ Description: 'Checks of literals used in conditions.'
496
+ Enabled: false
497
+
498
+ Lint/LiteralInInterpolation:
499
+ Description: 'Checks for literals used in interpolation.'
500
+ Enabled: false
501
+
502
+ Lint/Loop:
503
+ Description: >-
504
+ Use Kernel#loop with break rather than begin/end/until or
505
+ begin/end/while for post-loop tests.
506
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#loop-with-break'
507
+ Enabled: false
508
+
509
+ Lint/NestedMethodDefinition:
510
+ Description: 'Do not use nested method definitions.'
511
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-methods'
512
+ Enabled: false
513
+
514
+ Lint/NonLocalExitFromIterator:
515
+ Description: 'Do not use return in iterator to cause non-local exit.'
516
+ Enabled: false
517
+
518
+ Lint/ParenthesesAsGroupedExpression:
519
+ Description: >-
520
+ Checks for method calls with a space before the opening
521
+ parenthesis.
522
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
523
+ Enabled: false
524
+
525
+ Lint/RequireParentheses:
526
+ Description: >-
527
+ Use parentheses in the method call to avoid confusion
528
+ about precedence.
529
+ Enabled: false
530
+
531
+ Lint/UnderscorePrefixedVariableName:
532
+ Description: 'Do not use prefix `_` for a variable that is used.'
533
+ Enabled: false
534
+
535
+ Lint/RedundantCopDisableDirective:
536
+ Description: >-
537
+ Checks for rubocop:disable comments that can be removed.
538
+ Note: this cop is not disabled when disabling all cops.
539
+ It must be explicitly disabled.
540
+ Enabled: false
541
+
542
+ Lint/Void:
543
+ Description: 'Possible use of operator/literal/variable in void context.'
544
+ Enabled: false
545
+
546
+ # Performance
547
+
548
+ Performance/Sample:
549
+ Description: >-
550
+ Use `sample` instead of `shuffle.first`,
551
+ `shuffle.last`, and `shuffle[Fixnum]`.
552
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#arrayshufflefirst-vs-arraysample-code'
553
+ Enabled: false
@@ -15,7 +15,37 @@ module Addresses
15
15
  JSON.parse(response.body)
16
16
  end
17
17
 
18
- def update_address(id, address_type, city, postal_code, state, country, street1, street2, options={})
18
+ def create_address(constituent, address_type, city, postal_code, state, country, street1, street2, primary, options={})
19
+ parameters =
20
+ {
21
+ 'AddressType': {
22
+ 'Id': address_type
23
+ },
24
+ 'City': city,
25
+ 'Constituent': {
26
+ 'Id': constituent
27
+ },
28
+ 'Inactive': false,
29
+ 'Label': true,
30
+ 'Months': 'YYYYYYYYYYYY',
31
+ 'PostalCode': postal_code,
32
+ 'PrimaryIndicator': primary,
33
+ 'State': {
34
+ 'Id': state,
35
+ 'Country': {
36
+ 'Id': country
37
+ }
38
+ },
39
+ 'Street1': street1,
40
+ 'Street2': street2
41
+ }
42
+ options.merge!(basic_auth: @auth, headers: @headers)
43
+ options.merge!(:body => parameters)
44
+ response = self.class.post(base_api_endpoint("CRM/Addresses"), options)
45
+ JSON.parse(response.body)
46
+ end
47
+
48
+ def update_address(id, address_type, city, postal_code, state, country, street1, street2, primary, options={})
19
49
  current = get_address(id)
20
50
  parameters =
21
51
  {
@@ -32,7 +62,7 @@ module Addresses
32
62
  'Label': true,
33
63
  'Months': 'YYYYYYYYYYYY',
34
64
  'PostalCode': postal_code,
35
- 'PrimaryIndicator': true,
65
+ 'PrimaryIndicator': primary,
36
66
  'State': {
37
67
  'Id': state,
38
68
  'Country': {
@@ -10,6 +10,12 @@ module PerformanceExtension
10
10
  response = self.class.post(base_api_endpoint('TXN/Performances/Search'), options)
11
11
  end
12
12
 
13
+ def get_performance_summaries(production_season_id, performance_ids=nil, season_ids=nil, options={})
14
+ options.merge!(basic_auth: @auth, headers: @headers)
15
+ response = self.class.get(base_api_endpoint("/TXN/Performances/Summary?performanceIds=#{performance_ids}&seasonIds=#{season_ids}&productionSeasonId=#{production_season_id}"), options)
16
+ JSON.parse(response.body)
17
+ end
18
+
13
19
  def get_performance_detail(id, options={})
14
20
  options.merge!(basic_auth: @auth, headers: @headers)
15
21
  response = self.class.get(base_api_endpoint("TXN/Performances?performanceIds=#{id}"), options)
@@ -0,0 +1,8 @@
1
+ module PerformancePackageModeOfSales
2
+
3
+ def performance_package_mode_of_sales(mode_of_sale, ids, options={})
4
+ options.merge!(basic_auth: @auth, headers: @headers)
5
+ self.class.get(base_api_endpoint("TXN/PerformancePackageModeOfSales?modeOfSaleId=#{mode_of_sale}&performanceIds=#{ids}"), options)
6
+ end
7
+
8
+ end
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '0.5.12'
2
+ VERSION = '0.6.0'
3
3
  end
@@ -24,6 +24,7 @@ class TessituraRest
24
24
  include Package
25
25
  include PaymentPlanExtension
26
26
  include PerformanceExtension
27
+ include PerformancePackageModeOfSales
27
28
  include Phones
28
29
  include PriceTypes
29
30
  include ProductionExtension
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tessitura_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.12
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brittany Martin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-02-04 00:00:00.000000000 Z
11
+ date: 2020-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -116,8 +116,10 @@ executables: []
116
116
  extensions: []
117
117
  extra_rdoc_files: []
118
118
  files:
119
+ - ".codeclimate.yml"
119
120
  - ".gitignore"
120
121
  - ".rspec"
122
+ - ".rubocop.yml"
121
123
  - ".travis.yml"
122
124
  - CODE_OF_CONDUCT.md
123
125
  - Gemfile
@@ -147,6 +149,7 @@ files:
147
149
  - lib/tessitura_rest/txn/orders.rb
148
150
  - lib/tessitura_rest/txn/package.rb
149
151
  - lib/tessitura_rest/txn/performance_extension.rb
152
+ - lib/tessitura_rest/txn/performance_package_mode_of_sales.rb
150
153
  - lib/tessitura_rest/txn/price_types.rb
151
154
  - lib/tessitura_rest/txn/product_keywords.rb
152
155
  - lib/tessitura_rest/txn/production_extension.rb