tessitura_rest 1.1.9 → 1.2.0.1

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: 9c40488c47b4497e72d33d34168b7df274cd940e3fa9719b4d394aab301b221c
4
- data.tar.gz: 35d4f943fbc7372de657e3e1497f7f18e744a6ab4930ec58dcb00da28be4e32a
3
+ metadata.gz: d71548d95eba6935b52f70a4d8fdc42aa63b599ce528a7a22d1af5d8e57f83b3
4
+ data.tar.gz: 209cbb124e8c2a45595db46cd55151ff791fddab122aa76157a4f5795e6cecf7
5
5
  SHA512:
6
- metadata.gz: baa5f419a800dfeb948dc22c3619440571faa5a8a67e324532c032a7c9da0292cf57f59eb8b16878e0ee219630887b42a55081c096e92bf76748ca395db4473b
7
- data.tar.gz: ffbbdf5ac4a3dfcb6428e2d7ae79b92f60022290eacea2655bd215ff8262ba414694473f448768fe1dac8401cbf6ea92b0f14ad8f240c38afb3f36558b6df6cf
6
+ metadata.gz: 7eaff6fee174cc06e2173b2ed4d725fac09f22285980b0442a2b61c25ba30e93656a2f35cdaa413e786836b3c0623c7a1bde521bdd054589f13fcf05ef6b4c14
7
+ data.tar.gz: d18193b87ed5336e3242bbfa2b1b174098d4a1ae4c5675e3d223024b960363832621e6bb25184bc28957095fee8836e729cd468891f8b300a986b859d0037f1d
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
@@ -1,4 +1,17 @@
1
1
  version: "2"
2
+ checks:
3
+ argument-count:
4
+ enabled: false
5
+ file-lines:
6
+ enabled: false
7
+ method-count:
8
+ enabled: false
9
+ method-lines:
10
+ enabled: false
11
+ similar-code:
12
+ enabled: false
13
+ identical-code:
14
+ enabled: false
2
15
  plugins:
3
16
  brakeman:
4
17
  enabled: false
@@ -35,7 +48,7 @@ plugins:
35
48
  enabled: false
36
49
  rubocop:
37
50
  enabled: true
38
- channel: rubocop-1-21-0
51
+ channel: rubocop-1-30-0
39
52
  stylelint:
40
53
  enabled: false
41
54
  checks:
@@ -15,9 +15,9 @@ jobs:
15
15
  steps:
16
16
  - uses: actions/checkout@v2
17
17
  - name: Set up Ruby 2.6
18
- uses: actions/setup-ruby@v1
18
+ uses: ruby/setup-ruby@v1
19
19
  with:
20
- ruby-version: 2.6.x
20
+ ruby-version: '2.6'
21
21
 
22
22
  - name: Publish to RubyGems
23
23
  run: |
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.1'.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.1
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-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler