etda_utilities 0.17.0 → 0.18.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: e32d2539c0a8c63a5919e46b43d95e259495eaaae56c1979e28f8b423f325bd4
4
- data.tar.gz: 1040a84a4dcf29f4df15fae7c2b364bb186405673709e468b0ba8e60b36604a4
3
+ metadata.gz: b10b643a58edd0dc56a49380d919d0461dcee1fd9c0d3c3d3bdefe4fc2a2e9ed
4
+ data.tar.gz: cabba43f45679fa74735e9cf7c64c3a0c9554c40c8b08614d6c931f436606c63
5
5
  SHA512:
6
- metadata.gz: 7add9928c36e4845f85c9ed15d329d93dc0ab40d3a53068be3af012f1642172741e4bac96e2fe26bad00e3d3309ba231ea4ea79159d8882910aca5fe24c1f839
7
- data.tar.gz: 0eb9aef4bbf29a1463c1e4bc70c447664775867945b42ed7fea43b3c13ae54a5ed1b92f316d32f48cea1e28ddad4537e08168382bd1a002fcf93b49d464362fa
6
+ metadata.gz: 31ebedf24fc8a06e54ef52130e0e0c7f513871aa057c8b3972566e349edb5e405f0ee41118130146722c353e3a57adfa176244e3426dfe1f8a89b3198a4e3ba5
7
+ data.tar.gz: 926a4349ae7bb6856d425370115f7823baa47342796c663868d76cef8bf3a0c9e13d89b2adc01da5969ae01fe9186484e3ea600210e44e2920198e4083ce1f0c
data/.rubocop.yml CHANGED
@@ -12,6 +12,7 @@ Metrics/BlockLength:
12
12
  Exclude:
13
13
  - spec/lib/etda_utilities_etda_file_paths_spec.rb
14
14
  - spec/lib/etda_utilities_partner_spec.rb
15
+ - spec/lib/etda_utilities_hosts_spec.rb
15
16
 
16
17
  Metrics/MethodLength:
17
18
  Enabled: false
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- etda_utilities (0.17.0)
4
+ etda_utilities (0.18.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -2,6 +2,28 @@
2
2
 
3
3
  module EtdaUtilities
4
4
  class Hosts
5
+ class << self
6
+ def workflow_url(partner = nil, host = nil)
7
+ if ENV['WORKFLOW_HOST']
8
+ "https://#{ENV['WORKFLOW_HOST']}"
9
+ else
10
+ raise ArgumentError, "_partner and _host are required arguments" if partner.nil? || host.nil?
11
+
12
+ "https://" + new.workflow_submit_host(partner, host)
13
+ end
14
+ end
15
+
16
+ def explore_url(partner = nil, host = nil)
17
+ if ENV['EXPLORE_HOST']
18
+ "https://#{ENV['EXPLORE_HOST']}"
19
+ else
20
+ raise ArgumentError, "_partner and _host are required arguments" if partner.nil? || host.nil?
21
+
22
+ "https://" + new.explore_host(partner, host)
23
+ end
24
+ end
25
+ end
26
+
5
27
  def workflow_submit_host(partner, environment = 'prod')
6
28
  host_builder(partner, environment, true)
7
29
  end
@@ -46,6 +46,10 @@ module EtdaUtilities
46
46
  attributes['committee']['list']['label']
47
47
  end
48
48
 
49
+ def header_title
50
+ attributes['header_title']
51
+ end
52
+
49
53
  def graduate?
50
54
  id == 'graduate'
51
55
  end
@@ -1,6 +1,7 @@
1
1
  graduate:
2
2
  slug: eTD
3
3
  name: Graduate School
4
+ header_title: Electronic Theses and Dissertations for Graduate School
4
5
  email:
5
6
  address: gradthesis@psu.edu
6
7
  list: 'ul-etda-graduate-admin@pennstateoffice365.onmicrosoft.com'
@@ -14,6 +15,7 @@ graduate:
14
15
  honors:
15
16
  slug: eHT
16
17
  name: Schreyer Honors College
18
+ header_title: Electronic Theses for Schreyer Honors College
17
19
  email:
18
20
  address: SHCAcademics@psu.edu
19
21
  list: 'ul-etda-honors-admin@pennstateoffice365.onmicrosoft.com'
@@ -27,11 +29,12 @@ honors:
27
29
  milsch:
28
30
  slug: MSPT
29
31
  name: Millennium Scholars Program
32
+ header_title: Electronic Theses for Millennium Scholars Program
30
33
  email:
31
34
  address: millennium@psu.edu
32
35
  list: 'ul-etda-milsch-admin@pennstateoffice365.onmicrosoft.com'
33
36
  program:
34
- label: Millennium Scholars Program Name
37
+ label: Millennium Scholars Program
35
38
  committee:
36
39
  label: Thesis Supervisor
37
40
  list:
@@ -40,6 +43,13 @@ milsch:
40
43
  sset:
41
44
  slug: SSETT
42
45
  name: School of Science, Engineering, and Technology
46
+ header_title: Final Papers for the School of Science, Engineering, and Technology
43
47
  email:
44
48
  address: sset@psu.edu
45
- list: 'ul-etda-sset-admin@pennstateoffice365.onmicrosoft.com'
49
+ list: 'ul-etda-sset-admin@pennstateoffice365.onmicrosoft.com'
50
+ program:
51
+ label: Program
52
+ committee:
53
+ label: Committee Member
54
+ list:
55
+ label: Committee Members
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EtdaUtilities
4
- VERSION = "0.17.0"
4
+ VERSION = "0.18.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: etda_utilities
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ajk5603@psu.edu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-09 00:00:00.000000000 Z
11
+ date: 2022-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler