openagent 0.7.5 → 0.7.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/openagent/version.rb +1 -1
- data/lib/sif/models/common/schedule_info_override.rb +1 -1
- data/lib/sif/models/common/school_contact.rb +1 -1
- data/lib/sif/models/groups/sis/school_course_info.rb +2 -2
- data/openagent.gemspec +1 -1
- data/spec/sif/representations/xml/school_course_info_spec.rb +3 -3
- data/spec/sif/representations/xml/school_info_spec.rb +8 -6
- data/spec/sif/representations/xml/section_info_spec.rb +44 -39
- data/spec/sif/representations/xml/student_section_enrollment_spec.rb +25 -22
- metadata +4 -4
data/lib/openagent/version.rb
CHANGED
@@ -18,8 +18,8 @@ module SIF
|
|
18
18
|
attribute :description, String
|
19
19
|
attribute :instructional_level, String
|
20
20
|
attribute :course_credits, String
|
21
|
-
attribute :core_academic_course,
|
22
|
-
attribute :graduation_requirement,
|
21
|
+
attribute :core_academic_course, Boolean
|
22
|
+
attribute :graduation_requirement, Boolean
|
23
23
|
attribute :department, String
|
24
24
|
attribute :sced_code, Common::SCEDCode
|
25
25
|
|
data/openagent.gemspec
CHANGED
@@ -21,9 +21,9 @@ describe SIF::Representation::Model::Group::SIS::SchoolCourseInfo do
|
|
21
21
|
area.other_codes[0].value.should == 'Graphic Arts'
|
22
22
|
course_info.course_title.should == "Gif, JPeg, or Png: What's the Difference?"
|
23
23
|
course_info.description.should == 'Explore the various types of files related to graphic arts.'
|
24
|
-
(course_info.instructional_level.include? '0571').should
|
24
|
+
(course_info.instructional_level.include? '0571').should be_true
|
25
25
|
course_info.course_credits == '2'
|
26
|
-
course_info.core_academic_course.
|
27
|
-
course_info.graduation_requirement.
|
26
|
+
course_info.core_academic_course.should_not be_true
|
27
|
+
course_info.graduation_requirement.should_not be_true
|
28
28
|
end
|
29
29
|
end
|
@@ -16,13 +16,14 @@ describe SIF::Representation::Model::Group::SIS::SchoolInfo do
|
|
16
16
|
school_info.school_name.should == 'Lincoln High School'
|
17
17
|
school_info.lea_info_ref_id.should == '73648462888624AA5294BC6380173276'
|
18
18
|
school_info.school_type.should == 'K12'
|
19
|
-
school_info.other_lea.include?('AA648462888624AA5294BC638017320B').should
|
19
|
+
school_info.other_lea.include?('AA648462888624AA5294BC638017320B').should be_true
|
20
20
|
school_info.school_focuses[0].should == 'Regular'
|
21
21
|
school_info.school_url.should == 'http://www.lincolnhs.edu'
|
22
22
|
school_info.principal_info.contact_name.should == 'Richard Knudson'
|
23
23
|
school_info.principal_info.contact_title.should == 'Dr.'
|
24
|
+
|
24
25
|
school_contact = school_info.school_contacts[0]
|
25
|
-
school_contact.publish_in_directory.should
|
26
|
+
school_contact.publish_in_directory.should be_true
|
26
27
|
contact_info = school_contact.contact_info
|
27
28
|
contact_info.name.type.should == '04'
|
28
29
|
contact_info.name.first_name.should == 'James'
|
@@ -32,13 +33,14 @@ describe SIF::Representation::Model::Group::SIS::SchoolInfo do
|
|
32
33
|
contact_info.emails[0].value.should == 'jmiller@lhs.k12.state.us'
|
33
34
|
contact_info.phone_numbers[0].type.should == '0096'
|
34
35
|
contact_info.phone_numbers[0].number.should == '(555) 555-1235'
|
36
|
+
|
35
37
|
school_info.phone_numbers[0].type.should == '0096'
|
36
38
|
school_info.phone_numbers[0].number.should == '(555) 555-1234'
|
37
39
|
school_info.session_type.should == '0830'
|
38
|
-
school_info.grade_levels.include?('09').should
|
39
|
-
school_info.grade_levels.include?('10').should
|
40
|
-
school_info.grade_levels.include?('11').should
|
41
|
-
school_info.grade_levels.include?('12').should
|
40
|
+
school_info.grade_levels.include?('09').should be_true
|
41
|
+
school_info.grade_levels.include?('10').should be_true
|
42
|
+
school_info.grade_levels.include?('11').should be_true
|
43
|
+
school_info.grade_levels.include?('12').should be_true
|
42
44
|
school_info.title_1_status.should == 'Targeted'
|
43
45
|
school_info.operational_status.should == '0820'
|
44
46
|
school_info.congressional_district.should == '3'
|
@@ -13,49 +13,54 @@ describe SIF::Representation::Model::Group::SIS::SectionInfo do
|
|
13
13
|
section_info.school_course_info_ref_id.should == 'A2E35B359D75101A8C3D00AA001A0000'
|
14
14
|
section_info.school_year.should == '2006'
|
15
15
|
section_info.local_id.should == '287-1'
|
16
|
+
|
16
17
|
schedule_info = section_info.schedule_infos[0]
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
18
|
+
schedule_info.teachers[0].should == 'A8C3A2E35B359D75101D00AA001A0000'
|
19
|
+
schedule_info.teachers[1].should == 'A8C45DC6B3359D75101D00A456BE9000'
|
20
|
+
schedule_info.section_rooms[0].should == '94785736AB3671090BDD87593A264086'
|
21
|
+
meeting_times = schedule_info.meeting_times
|
22
|
+
meeting_times[0].timetable_day.should == 'M'
|
23
|
+
meeting_times[0].timetable_period.should == '6'
|
24
|
+
meeting_times[1].timetable_day.should == 'T'
|
25
|
+
meeting_times[1].timetable_period.should == '6'
|
26
|
+
meeting_times[2].timetable_day.should == 'W'
|
27
|
+
meeting_times[2].timetable_period.should == '6'
|
28
|
+
meeting_times[3].timetable_day.should == 'R'
|
29
|
+
meeting_times[3].timetable_period.should == '6'
|
30
|
+
meeting_times[4].timetable_day.should == 'F'
|
31
|
+
meeting_times[4].timetable_period.should == '6'
|
32
|
+
|
31
33
|
schedule_info = section_info.schedule_infos[1]
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
34
|
+
schedule_info.teachers[0].should == 'CC543E35B359D75101D00AA001A00703'
|
35
|
+
schedule_info.section_rooms[0].should == '94785736AB3671090BDD87593A264086'
|
36
|
+
meeting_times = schedule_info.meeting_times
|
37
|
+
meeting_times[0].timetable_day.should == 'M'
|
38
|
+
meeting_times[0].timetable_period.should == '4'
|
39
|
+
meeting_times[1].timetable_day.should == 'T'
|
40
|
+
meeting_times[1].timetable_period.should == '4'
|
41
|
+
meeting_times[2].timetable_day.should == 'W'
|
42
|
+
meeting_times[2].timetable_period.should == '4'
|
43
|
+
meeting_times[3].timetable_day.should == 'R'
|
44
|
+
meeting_times[3].timetable_period.should == '4'
|
45
|
+
meeting_times[4].timetable_day.should == 'F'
|
46
|
+
meeting_times[4].timetable_period.should == '4'
|
47
|
+
|
45
48
|
section_info.medium_of_instruction.strip.should == '0605'
|
46
49
|
section_info.language_of_instruction.strip.should == 'eng'
|
47
|
-
(section_info.location_of_instruction.include? '0340').should
|
48
|
-
(section_info.location_of_instruction.include? 'Pennsylvania College of Technology').should
|
50
|
+
(section_info.location_of_instruction.include? '0340').should be_true
|
51
|
+
(section_info.location_of_instruction.include? 'Pennsylvania College of Technology').should be_true
|
52
|
+
|
49
53
|
override = section_info.school_course_info_override
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
54
|
+
override.override.should be_true
|
55
|
+
override.course_code.should == 'CS101A'
|
56
|
+
override.state_course_code.should == '08-001A'
|
57
|
+
override.district_course_code.should == 'CS101A'
|
58
|
+
|
59
|
+
area = override.subject_area
|
60
|
+
(area.include? '05').should be_true
|
61
|
+
(area.include? 'Graphic Arts for Beginners').should be_true
|
62
|
+
override.course_title.should == 'Graphics Basics'
|
63
|
+
override.instructional_level.strip.should == '0570'
|
64
|
+
override.course_credits.should == '0.50'
|
60
65
|
end
|
61
66
|
end
|
@@ -15,30 +15,33 @@ describe SIF::Representation::Model::Group::SIS::StudentSectionEnrollment do
|
|
15
15
|
student_se.school_year.should == '2002'
|
16
16
|
student_se.entry_date.to_s.should == '2001-09-05'
|
17
17
|
student_se.exit_date.to_s.should == '2002-03-01'
|
18
|
+
|
18
19
|
sched_override = student_se.schedule_info_overrides[0]
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
20
|
+
sched_override.override.should be_true
|
21
|
+
sched_override.term_info_ref_id.should == '099BBC3227490063E97403434C5C2207'
|
22
|
+
meeting_time = sched_override.meeting_times[0]
|
23
|
+
meeting_time.timetable_day.should == 'M'
|
24
|
+
meeting_time.timetable_period.should == '6'
|
25
|
+
meeting_time = sched_override.meeting_times[1]
|
26
|
+
meeting_time.timetable_day.should == 'W'
|
27
|
+
meeting_time.timetable_period.should == '6'
|
28
|
+
meeting_time = sched_override.meeting_times[2]
|
29
|
+
meeting_time.timetable_day.should == 'F'
|
30
|
+
meeting_time.timetable_period.should == '6'
|
31
|
+
|
30
32
|
sched_override = student_se.schedule_info_overrides[1]
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
33
|
+
sched_override.override.should be_true
|
34
|
+
sched_override.term_info_ref_id.should == 'A2334007263E97403434C5C220798765'
|
35
|
+
meeting_time = sched_override.meeting_times[0]
|
36
|
+
meeting_time.timetable_day.should == 'M'
|
37
|
+
meeting_time.timetable_period.should == '4'
|
38
|
+
meeting_time = sched_override.meeting_times[1]
|
39
|
+
meeting_time.timetable_day.should == 'W'
|
40
|
+
meeting_time.timetable_period.should == '4'
|
41
|
+
meeting_time = sched_override.meeting_times[2]
|
42
|
+
meeting_time.timetable_day.should == 'F'
|
43
|
+
meeting_time.timetable_period.should == '4'
|
44
|
+
|
42
45
|
student_se.credits_attempted.type.should == '0588'
|
43
46
|
student_se.credits_attempted.value.should == '1'
|
44
47
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openagent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-11-
|
14
|
+
date: 2013-11-26 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rake
|
@@ -132,7 +132,7 @@ dependencies:
|
|
132
132
|
requirements:
|
133
133
|
- - ~>
|
134
134
|
- !ruby/object:Gem::Version
|
135
|
-
version: 1.7.
|
135
|
+
version: 1.7.3
|
136
136
|
type: :runtime
|
137
137
|
prerelease: false
|
138
138
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -140,7 +140,7 @@ dependencies:
|
|
140
140
|
requirements:
|
141
141
|
- - ~>
|
142
142
|
- !ruby/object:Gem::Version
|
143
|
-
version: 1.7.
|
143
|
+
version: 1.7.3
|
144
144
|
- !ruby/object:Gem::Dependency
|
145
145
|
name: virtus
|
146
146
|
requirement: !ruby/object:Gem::Requirement
|