lusi_alma_course_loader 0.2.1 → 0.2.2

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
  SHA1:
3
- metadata.gz: 02fabca8faf537848a247b0e7fc9815852a399bb
4
- data.tar.gz: 398d40bd3c32a15c168b3373cabc1e9ffdaf8c01
3
+ metadata.gz: 1d46b54f34f78dc885448622e320b25686bef2dd
4
+ data.tar.gz: 02630d1b42db986f91185e52894eee75d55adb0a
5
5
  SHA512:
6
- metadata.gz: 470ec0dc424f7cab8eac2dfb6b64df748bb3da03336610804332b5573a0cbe6b1cf7d88a00910889858534e8cfe7a6aa3d34fb10c6eb34750170b69e78258aee
7
- data.tar.gz: 1e97c6018fcb09ec86e9e2f96e3a1c9e09e7acc2f8d812d1c1f94dcc3308df5efdd7c03b27c8096a754a9cd9f50f940447e78b1af44b5faa1cc1c293f15814d8
6
+ metadata.gz: 60be02723fe017351f5cafbea1635ec4bceee7fc2f6bbe01fff2f6217e93f6e7eff713780d76b9d33c79bcfef2fe5cd2b23168280869df1868cacbc36676ae9e
7
+ data.tar.gz: 3492a500e0bf7004946abe492002f3dc937a2e27584dc5fd065b36c6564068322fee720475ac493a4b9004c83f6c598e06f7a89052897f5d25411b28bca18483
data/exe/course_loader CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require 'bundler/setup'
4
- require 'lusi_alma_course_loader'
4
+ require 'lusi_alma_course_loader/cli/course_loader'
5
5
 
6
6
  dsn = ENV['SENTRY_DSN']
7
7
  unless dsn.nil? || dsn.empty?
@@ -118,8 +118,9 @@ module LUSIAlmaCourseLoader
118
118
  # Creates a LUSI API instance
119
119
  # @return [LUSI::API::Core::API] the LUSI API instance
120
120
  def lusi_api
121
- api_password = password || ENV['LUSI_API_PASSWORD']
122
- api_user = user || ENV['LUSI_API_USER']
121
+ api_password = password || ENV['LUSI_API_PASSWORD'] || \
122
+ ENV['LUSI_WS_PASSWORD']
123
+ api_user = user || ENV['LUSI_API_USER'] || ENV['LUSI_WS_USER']
123
124
  ::LUSI::API::Core::API.new(api_user: api_user,
124
125
  api_password: api_password,
125
126
  logger: logger)
@@ -1,3 +1,3 @@
1
1
  module LUSIAlmaCourseLoader
2
- VERSION = '0.2.1'.freeze
2
+ VERSION = '0.2.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lusi_alma_course_loader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lancaster University Library