cohortservice 0.0.6 → 0.0.7
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/cohortservice-0.0.6.gem +0 -0
- data/lib/cohortservice.rb +20 -6
- data/lib/cohortservice/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80181b832ca612b278191024ce03e0dd49fd5532
|
4
|
+
data.tar.gz: 0c30a9360d11aafc1a4529a2051f7edc5214c280
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 08709a672593bbf7827441e5d607801b685255d09eaba0467277174745ba492c07703dab05dbd6b12c7ac050f8fae66fc127f57f5a26d5402ad364d6fb8a6314
|
7
|
+
data.tar.gz: 51b0dac52f69f8a161f64d511f3f8ff1f08f6ca86dc9171e3af5c61f79700de102c90064627826629ca393fca93e2074a1c06f36435fe044147a0f9bf2a6d2e8
|
Binary file
|
data/lib/cohortservice.rb
CHANGED
@@ -34,14 +34,16 @@ module Cohortservice
|
|
34
34
|
date = Date.parse("01-#{cohort[1]}-20#{cohort[0]}")
|
35
35
|
end_date = date+183
|
36
36
|
|
37
|
-
|
37
|
+
education_type = define_education_type cohort[2]
|
38
|
+
program = define_program cohort[2]
|
38
39
|
campus = define_campus cohort[3]
|
39
40
|
|
40
41
|
cohort_info[:start_date_full] = date
|
41
42
|
cohort_info[:start_date] = "#{date.mon} #{date.year}"
|
42
43
|
cohort_info[:end_date_full] = end_date
|
43
44
|
cohort_info[:end_date] = "#{end_date.mon} #{end_date.year}"
|
44
|
-
cohort_info[:
|
45
|
+
cohort_info[:education_type] = education_type
|
46
|
+
cohort_info[:program] = program
|
45
47
|
cohort_info[:campus] = campus
|
46
48
|
cohort_info[:campus_info] = @data[:campuses][campus.to_sym]
|
47
49
|
|
@@ -50,14 +52,26 @@ module Cohortservice
|
|
50
52
|
|
51
53
|
private
|
52
54
|
|
53
|
-
def self.
|
55
|
+
def self.define_program(education_code)
|
54
56
|
case education_code
|
55
57
|
when 'DS'
|
56
|
-
|
58
|
+
program = 'Data Science Immersive'
|
57
59
|
when 'FS', 'WD'
|
58
|
-
|
60
|
+
program = 'Web Development Immersive'
|
59
61
|
when 'GU'
|
60
|
-
|
62
|
+
program = 'Galvanize University'
|
63
|
+
else
|
64
|
+
program = ''
|
65
|
+
end
|
66
|
+
program
|
67
|
+
end
|
68
|
+
|
69
|
+
def self.define_education_type(education_code)
|
70
|
+
case education_code
|
71
|
+
when 'DS', 'GU'
|
72
|
+
education = 'Data Science'
|
73
|
+
when 'FS', 'WD'
|
74
|
+
education = 'Full Stack'
|
61
75
|
else
|
62
76
|
education = ''
|
63
77
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cohortservice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derik Linch
|
@@ -73,6 +73,7 @@ files:
|
|
73
73
|
- cohortservice-0.0.3.gem
|
74
74
|
- cohortservice-0.0.4.gem
|
75
75
|
- cohortservice-0.0.5.gem
|
76
|
+
- cohortservice-0.0.6.gem
|
76
77
|
- cohortservice.gemspec
|
77
78
|
- lib/cohortservice.rb
|
78
79
|
- lib/cohortservice/version.rb
|