tessitura_rest 1.1.9 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c40488c47b4497e72d33d34168b7df274cd940e3fa9719b4d394aab301b221c
4
- data.tar.gz: 35d4f943fbc7372de657e3e1497f7f18e744a6ab4930ec58dcb00da28be4e32a
3
+ metadata.gz: 2812c2d529428c1cf0d14f6d3a939d8840c07f2da4760000f13d9021f53a0c7d
4
+ data.tar.gz: 101e006c9faa8374ce8e7296bc8360b708e713eba33bfb0319a3ead35fa1ae4e
5
5
  SHA512:
6
- metadata.gz: baa5f419a800dfeb948dc22c3619440571faa5a8a67e324532c032a7c9da0292cf57f59eb8b16878e0ee219630887b42a55081c096e92bf76748ca395db4473b
7
- data.tar.gz: ffbbdf5ac4a3dfcb6428e2d7ae79b92f60022290eacea2655bd215ff8262ba414694473f448768fe1dac8401cbf6ea92b0f14ad8f240c38afb3f36558b6df6cf
6
+ metadata.gz: 1a3fcd45427b219fe80d57a8fa981c4f27c1f8509f007cdcf9b2e32225b49528d018919f7ff4f16d3eb662ba6331e479228d6b69306e6da9e4bb9464285330c4
7
+ data.tar.gz: 2a643a907ca9857018904014ecc6cca30b61498a7fe0a86e84eae3c61bafa1937cc570e5a0fb0d9b048a7ffe3cfef77a0af45572cd29da289d2160baadaf8c84
data/.circleci/config.yml CHANGED
@@ -2,11 +2,13 @@
2
2
  # See: https://circleci.com/docs/2.0/configuration-reference
3
3
  version: 2.1
4
4
  orbs:
5
- ruby: circleci/ruby@1.4.0
5
+ ruby: circleci/ruby@1.8.0
6
6
  # Define a job to be invoked later in a workflow.
7
7
  # See: https://circleci.com/docs/2.0/configuration-reference/#jobs
8
8
  jobs:
9
9
  test:
10
+ environment:
11
+ CC_TEST_REPORTER_ID: 4951685688ee1bee2e2727863031df516e8b5a203811f3aa3802981368416b13
10
12
  docker:
11
13
  - image: cimg/ruby:3.0.1-node
12
14
 
@@ -25,9 +27,20 @@ jobs:
25
27
  name: Decrypt Env
26
28
  command: echo "$ENV_ENC" | base64 --decode > .env
27
29
 
30
+ - run:
31
+ name: Install Code Climate Test Reporter
32
+ command: |
33
+ curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
34
+ chmod +x ./cc-test-reporter
35
+
28
36
  - run:
29
37
  name: Run tests
30
- command: bundle exec rspec
38
+ command: |
39
+ ./cc-test-reporter before-build
40
+ bundle exec rspec
41
+ ./cc-test-reporter after-build --coverage-input-type simplecov
42
+ when: always
43
+
31
44
  # Invoke jobs via workflows
32
45
  # See: https://circleci.com/docs/2.0/configuration-reference/#workflows
33
46
  workflows:
data/.codeclimate.yml CHANGED
@@ -35,7 +35,7 @@ plugins:
35
35
  enabled: false
36
36
  rubocop:
37
37
  enabled: true
38
- channel: rubocop-1-21-0
38
+ channel: rubocop-1-30-0
39
39
  stylelint:
40
40
  enabled: false
41
41
  checks:
data/.rubocop.yml CHANGED
@@ -202,7 +202,7 @@ Style/LineEndConcatenation:
202
202
  Layout/LineLength:
203
203
  Description: 'Limit lines to 80 characters.'
204
204
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#80-character-limits'
205
- Max: 180
205
+ Max: 230
206
206
 
207
207
  Metrics/MethodLength:
208
208
  Description: 'Avoid methods longer than 10 lines of code.'
@@ -534,7 +534,12 @@ Lint/RequireParentheses:
534
534
  Lint/UnderscorePrefixedVariableName:
535
535
  Description: 'Do not use prefix `_` for a variable that is used.'
536
536
  Enabled: false
537
-
537
+
538
+ Lint/UselessAssignment:
539
+ Description: Checks for useless assignment to a local variable.
540
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#underscore-unused-vars
541
+ Enabled: false
542
+
538
543
  Lint/RedundantCopDisableDirective:
539
544
  Description: >-
540
545
  Checks for rubocop:disable comments that can be removed.
@@ -566,4 +571,7 @@ Style/HashSyntax:
566
571
  EnforcedStyle: no_mixed_keys
567
572
 
568
573
  Naming/VariableNumber:
574
+ Enabled: false
575
+
576
+ Gemspec/RequireMFA:
569
577
  Enabled: false
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '1.1.9'.freeze
2
+ VERSION = '1.2.0'.freeze
3
3
  end
@@ -42,12 +42,12 @@ class TessituraRest
42
42
  include WebLogins
43
43
 
44
44
  def initialize(options = {})
45
- @auth = { username: ENV['TESSITURA_USERNAME'],
46
- password: ENV['TESSITURA_PASSWORD'] }
45
+ @auth = { username: ENV.fetch('TESSITURA_USERNAME'),
46
+ password: ENV.fetch('TESSITURA_PASSWORD') }
47
47
  @headers = { 'Accept': 'application/json' }
48
48
  end
49
49
 
50
50
  def base_api_endpoint(end_point)
51
- "#{ENV['TESSITURA_URL']}#{end_point}"
51
+ "#{ENV.fetch('TESSITURA_URL')}#{end_point}"
52
52
  end
53
53
  end
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: 1.1.9
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brittany Martin, Danielle Greaves, Craig Donavin, Patrick FitzGerald
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-05-11 00:00:00.000000000 Z
11
+ date: 2022-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler