openagent 0.9.5 → 0.9.6
Sign up to get free protection for your applications and to get access to all the features.
data/lib/openagent/client.rb
CHANGED
@@ -88,9 +88,10 @@ module OpenAgent
|
|
88
88
|
|
89
89
|
def run_once
|
90
90
|
trigger(:each_loop)
|
91
|
-
|
91
|
+
msg = nil
|
92
92
|
begin
|
93
93
|
get_message do |message, outgoing, xml|
|
94
|
+
msg = message # capture msg for outside of block
|
94
95
|
if inner = message.inner_message
|
95
96
|
trigger(:receive_message, message, outgoing, xml)
|
96
97
|
|
@@ -100,7 +101,8 @@ module OpenAgent
|
|
100
101
|
end
|
101
102
|
end
|
102
103
|
end
|
103
|
-
|
104
|
+
# @log.warn "retval: #{retval.inspect} #{message.nil?.inspect} #{message ? message.status_code : '-'}"
|
105
|
+
end while msg && msg.status_code == ZIS_SUCCESS
|
104
106
|
end
|
105
107
|
|
106
108
|
def run_loop(wait_period=30)
|
data/lib/openagent/version.rb
CHANGED
@@ -6,7 +6,8 @@ module SIF
|
|
6
6
|
|
7
7
|
attribute :event_object, Common::EventObject
|
8
8
|
|
9
|
-
|
9
|
+
attribute :lea_infos,
|
10
|
+
Array[SIF::Model::Group::SIS::LEAInfo], :default => []
|
10
11
|
attribute :school_course_infos,
|
11
12
|
Array[SIF::Model::Group::SIS::SchoolCourseInfo], :default => []
|
12
13
|
attribute :school_infos,
|
@@ -22,6 +23,7 @@ module SIF
|
|
22
23
|
attribute :section_infos,
|
23
24
|
Array[SIF::Model::Group::SIS::SectionInfo], :default => []
|
24
25
|
def objects
|
26
|
+
lea_infos +
|
25
27
|
school_course_infos +
|
26
28
|
school_infos +
|
27
29
|
staff_personals +
|
@@ -32,13 +34,14 @@ module SIF
|
|
32
34
|
end
|
33
35
|
|
34
36
|
def datatype
|
35
|
-
return :
|
36
|
-
return :
|
37
|
-
return :
|
38
|
-
return :
|
37
|
+
return :lea_info unless lea_infos.empty?
|
38
|
+
return :school_course_info unless school_course_infos.empty?
|
39
|
+
return :school_info unless school_infos.empty?
|
40
|
+
return :staff_personal unless staff_personals.empty?
|
41
|
+
return :student_personal unless student_personals.empty?
|
39
42
|
return :student_section_enrollment unless student_section_enrollments.empty?
|
40
|
-
return :term_info
|
41
|
-
return :section_info
|
43
|
+
return :term_info unless term_infos.empty?
|
44
|
+
return :section_info unless section_infos.empty?
|
42
45
|
end
|
43
46
|
end
|
44
47
|
end
|
@@ -12,9 +12,9 @@ module SIF
|
|
12
12
|
:class => SIF::Infra::Common::EventObject,
|
13
13
|
:decorator => EventObject
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
|
15
|
+
collection :lea_infos, :as => 'LEAInfo',
|
16
|
+
:class => SIF::Model::Group::SIS::LEAInfo,
|
17
|
+
:decorator => Model::Group::SIS::LEAInfo
|
18
18
|
collection :school_course_infos, :as => 'SchoolCourseInfo',
|
19
19
|
:class => SIF::Model::Group::SIS::SchoolCourseInfo,
|
20
20
|
:decorator => Model::Group::SIS::SchoolCourseInfo
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require_relative 'sis_representer'
|
2
|
+
|
3
|
+
module SIF
|
4
|
+
module Representation
|
5
|
+
module Model
|
6
|
+
module Group
|
7
|
+
module SIS
|
8
|
+
class LEAInfo < SIF::Represent
|
9
|
+
include SISRepresenter
|
10
|
+
|
11
|
+
self.representation_wrap = 'LEAInfo'
|
12
|
+
|
13
|
+
property :local_id, :as => 'LocalId'
|
14
|
+
property :state_province_id, :as => 'StateProvinceId'
|
15
|
+
property :nces_id, :as => 'NCESId'
|
16
|
+
property :lea_name, :as => 'LEAName'
|
17
|
+
property :lea_url, :as => 'LEAURL'
|
18
|
+
property :education_agency_type, :as => 'EducationAgencyType'
|
19
|
+
collection :lea_contacts, :as => 'LEAContact', :wrap => 'LEAContactList'
|
20
|
+
collection :phone_numbers, :as => 'PhoneNumber', :wrap => 'PhoneNumberList',
|
21
|
+
:class => MODEL_COMMON::PhoneNumber,
|
22
|
+
:decorator => REPR_COMMON::PhoneNumber
|
23
|
+
property :grade_levels, :as => 'GradeLevels'
|
24
|
+
property :operational_status, :as => 'OperationalStatus'
|
25
|
+
property :congressional_district, :as => 'CongressionalDistrict'
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
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.9.
|
4
|
+
version: 0.9.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: 2014-02
|
14
|
+
date: 2014-04-02 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rake
|
@@ -379,6 +379,7 @@ files:
|
|
379
379
|
- lib/sif/representations/models/groups/grades/grading_assignment.rb
|
380
380
|
- lib/sif/representations/models/groups/grades/grading_assignment_score.rb
|
381
381
|
- lib/sif/representations/models/groups/grades/grading_category.rb
|
382
|
+
- lib/sif/representations/models/groups/sis/lea_info.rb
|
382
383
|
- lib/sif/representations/models/groups/sis/personal_representer.rb
|
383
384
|
- lib/sif/representations/models/groups/sis/school_course_info.rb
|
384
385
|
- lib/sif/representations/models/groups/sis/school_info.rb
|