openagent 0.7.5 → 0.7.6

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.
@@ -1,3 +1,3 @@
1
1
  module OpenAgent
2
- VERSION = '0.7.5' unless defined?(OpenAgent::VERSION)
2
+ VERSION = '0.7.6' unless defined?(OpenAgent::VERSION)
3
3
  end
@@ -5,7 +5,7 @@ module SIF
5
5
  include Virtus.model
6
6
 
7
7
  attribute :term_info_ref_id
8
- attribute :override
8
+ attribute :override, Boolean
9
9
  attribute :meeting_times, Array[String]
10
10
  end
11
11
  end
@@ -5,7 +5,7 @@ module SIF
5
5
  require_relative 'contact_info'
6
6
  include Virtus.model
7
7
 
8
- attribute :publish_in_directory
8
+ attribute :publish_in_directory, Boolean
9
9
  attribute :contact_info, ContactInfo
10
10
  end
11
11
  end
@@ -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, String
22
- attribute :graduation_requirement, String
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
@@ -30,6 +30,6 @@ Gem::Specification.new do |gem|
30
30
  gem.add_development_dependency "pry"
31
31
 
32
32
  gem.add_dependency "uuid"
33
- gem.add_dependency "representable", "~> 1.7.2"
33
+ gem.add_dependency "representable", "~> 1.7.3"
34
34
  gem.add_dependency "virtus", "~> 1.0.0"
35
35
  end
@@ -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 == true
24
+ (course_info.instructional_level.include? '0571').should be_true
25
25
  course_info.course_credits == '2'
26
- course_info.core_academic_course.should == 'No'
27
- course_info.graduation_requirement.should == 'No'
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 == true
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 == 'Yes'
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 == true
39
- school_info.grade_levels.include?('10').should == true
40
- school_info.grade_levels.include?('11').should == true
41
- school_info.grade_levels.include?('12').should == true
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
- schedule_info.teachers[0].should == 'A8C3A2E35B359D75101D00AA001A0000'
18
- schedule_info.teachers[1].should == 'A8C45DC6B3359D75101D00A456BE9000'
19
- schedule_info.section_rooms[0].should == '94785736AB3671090BDD87593A264086'
20
- meeting_times = schedule_info.meeting_times
21
- meeting_times[0].timetable_day.should == 'M'
22
- meeting_times[0].timetable_period.should == '6'
23
- meeting_times[1].timetable_day.should == 'T'
24
- meeting_times[1].timetable_period.should == '6'
25
- meeting_times[2].timetable_day.should == 'W'
26
- meeting_times[2].timetable_period.should == '6'
27
- meeting_times[3].timetable_day.should == 'R'
28
- meeting_times[3].timetable_period.should == '6'
29
- meeting_times[4].timetable_day.should == 'F'
30
- meeting_times[4].timetable_period.should == '6'
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
- schedule_info.teachers[0].should == 'CC543E35B359D75101D00AA001A00703'
33
- schedule_info.section_rooms[0].should == '94785736AB3671090BDD87593A264086'
34
- meeting_times = schedule_info.meeting_times
35
- meeting_times[0].timetable_day.should == 'M'
36
- meeting_times[0].timetable_period.should == '4'
37
- meeting_times[1].timetable_day.should == 'T'
38
- meeting_times[1].timetable_period.should == '4'
39
- meeting_times[2].timetable_day.should == 'W'
40
- meeting_times[2].timetable_period.should == '4'
41
- meeting_times[3].timetable_day.should == 'R'
42
- meeting_times[3].timetable_period.should == '4'
43
- meeting_times[4].timetable_day.should == 'F'
44
- meeting_times[4].timetable_period.should == '4'
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 == true
48
- (section_info.location_of_instruction.include? 'Pennsylvania College of Technology').should == true
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
- override.override.should == 'Yes'
51
- override.course_code.should == 'CS101A'
52
- override.state_course_code.should == '08-001A'
53
- override.district_course_code.should == 'CS101A'
54
- area = override.subject_area
55
- (area.include? '05').should == true
56
- (area.include? 'Graphic Arts for Beginners').should == true
57
- override.course_title.should == 'Graphics Basics'
58
- override.instructional_level.strip.should == '0570'
59
- override.course_credits.should == '0.50'
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
- sched_override.override.should == 'Yes'
20
- sched_override.term_info_ref_id.should == '099BBC3227490063E97403434C5C2207'
21
- meeting_time = sched_override.meeting_times[0]
22
- meeting_time.timetable_day.should == 'M'
23
- meeting_time.timetable_period.should == '6'
24
- meeting_time = sched_override.meeting_times[1]
25
- meeting_time.timetable_day.should == 'W'
26
- meeting_time.timetable_period.should == '6'
27
- meeting_time = sched_override.meeting_times[2]
28
- meeting_time.timetable_day.should == 'F'
29
- meeting_time.timetable_period.should == '6'
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
- sched_override.override.should == 'Yes'
32
- sched_override.term_info_ref_id.should == 'A2334007263E97403434C5C220798765'
33
- meeting_time = sched_override.meeting_times[0]
34
- meeting_time.timetable_day.should == 'M'
35
- meeting_time.timetable_period.should == '4'
36
- meeting_time = sched_override.meeting_times[1]
37
- meeting_time.timetable_day.should == 'W'
38
- meeting_time.timetable_period.should == '4'
39
- meeting_time = sched_override.meeting_times[2]
40
- meeting_time.timetable_day.should == 'F'
41
- meeting_time.timetable_period.should == '4'
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.5
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-21 00:00:00.000000000 Z
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.2
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.2
143
+ version: 1.7.3
144
144
  - !ruby/object:Gem::Dependency
145
145
  name: virtus
146
146
  requirement: !ruby/object:Gem::Requirement