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 +4 -4
- data/.circleci/config.yml +15 -2
- data/.codeclimate.yml +1 -1
- data/.rubocop.yml +10 -2
- data/lib/tessitura_rest/version.rb +1 -1
- data/lib/tessitura_rest.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2812c2d529428c1cf0d14f6d3a939d8840c07f2da4760000f13d9021f53a0c7d
|
|
4
|
+
data.tar.gz: 101e006c9faa8374ce8e7296bc8360b708e713eba33bfb0319a3ead35fa1ae4e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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:
|
|
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
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:
|
|
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
|
data/lib/tessitura_rest.rb
CHANGED
|
@@ -42,12 +42,12 @@ class TessituraRest
|
|
|
42
42
|
include WebLogins
|
|
43
43
|
|
|
44
44
|
def initialize(options = {})
|
|
45
|
-
@auth = { username: ENV
|
|
46
|
-
password: ENV
|
|
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
|
|
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.
|
|
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-
|
|
11
|
+
date: 2022-06-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|