sis_core 1.0.3 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/sis/core/application_controller.rb +10 -2
- data/app/controllers/sis/core/menus_controller.rb +22 -0
- data/app/controllers/sis/core/users_controller.rb +71 -0
- data/app/models/sis/core/academic_programme.rb +17 -0
- data/app/models/sis/core/academic_year.rb +1 -0
- data/app/models/sis/core/applicant.rb +18 -1
- data/app/models/sis/core/application.rb +50 -0
- data/app/models/sis/core/application_document.rb +12 -0
- data/app/models/sis/core/application_module.rb +8 -0
- data/app/models/sis/core/application_setup.rb +23 -0
- data/app/models/sis/core/document_requirement.rb +13 -0
- data/app/models/sis/core/{program_type.rb → document_type.rb} +1 -1
- data/app/models/sis/core/exam.rb +17 -0
- data/app/models/sis/core/exam_result.rb +25 -0
- data/app/models/sis/core/exam_setup.rb +15 -0
- data/app/models/sis/core/menu.rb +11 -0
- data/app/models/sis/core/programme.rb +7 -0
- data/app/models/sis/core/programme_level.rb +6 -0
- data/app/models/sis/core/programme_type.rb +6 -0
- data/app/models/sis/core/semester.rb +4 -0
- data/app/models/sis/core/user.rb +13 -0
- data/app/models/sis/core/user_role.rb +10 -0
- data/app/services/sis/core/user_service.rb +25 -0
- data/app/uploaders/sis/core/application_document_uploader.rb +51 -0
- data/app/uploaders/sis/core/photo_uploader.rb +51 -0
- data/config/routes.rb +6 -0
- data/db/migrate/{20200307072142_create_sis_core_academic_years.rb → 20200105072142_create_sis_core_academic_years.rb} +2 -1
- data/db/migrate/{20200307072246_create_sis_core_semesters.rb → 20200106072246_create_sis_core_semesters.rb} +0 -0
- data/db/migrate/20200106130428_create_sis_core_programmes.rb +10 -0
- data/db/migrate/20200106132035_create_sis_core_academic_programmes.rb +21 -0
- data/db/migrate/20200106132521_create_sis_core_application_setups.rb +19 -0
- data/db/migrate/20200106133034_create_sis_core_document_requirements.rb +19 -0
- data/db/migrate/20200106133937_create_sis_core_applicants.rb +14 -2
- data/db/migrate/20200107094449_create_sis_core_applications.rb +24 -0
- data/db/migrate/20200107101638_create_sis_core_application_documents.rb +16 -0
- data/db/migrate/20200107302251_create_sis_core_exam_setups.rb +15 -0
- data/db/migrate/20200107333411_create_sis_core_exams.rb +17 -0
- data/db/migrate/20200107434658_create_sis_core_exam_results.rb +18 -0
- data/db/migrate/20200307033100_create_sis_core_courses.rb +2 -2
- data/db/migrate/20200307072006_create_sis_core_students.rb +2 -2
- data/db/migrate/20200507114003_create_sis_core_users.rb +17 -0
- data/db/migrate/20200511165121_create_sis_core_application_modules.rb +15 -0
- data/db/migrate/20200511165241_create_sis_core_user_roles.rb +15 -0
- data/db/migrate/20200511165450_create_sis_core_menus.rb +18 -0
- data/lib/authorize_request.rb +18 -0
- data/lib/json_web_token.rb +12 -0
- data/lib/sis/core/engine.rb +2 -2
- data/lib/sis/core/version.rb +1 -1
- data/lib/sis_core.rb +5 -0
- data/spec/factories/sis/core/academic_programmes.rb +8 -0
- data/spec/factories/sis/core/academic_years.rb +3 -2
- data/spec/factories/sis/core/applicants.rb +9 -2
- data/spec/factories/sis/core/application_documents.rb +7 -0
- data/spec/factories/sis/core/application_modules.rb +6 -0
- data/spec/factories/sis/core/application_setups.rb +9 -0
- data/spec/factories/sis/core/applications.rb +11 -0
- data/spec/factories/sis/core/document_requirements.rb +9 -0
- data/spec/factories/sis/core/document_types.rb +5 -0
- data/spec/factories/sis/core/exam_results.rb +8 -0
- data/spec/factories/sis/core/exam_setups.rb +8 -0
- data/spec/factories/sis/core/exams.rb +10 -0
- data/spec/factories/sis/core/instructor_courses.rb +2 -2
- data/spec/factories/sis/core/instructors.rb +2 -2
- data/spec/factories/sis/core/menus.rb +9 -0
- data/spec/factories/sis/core/programme_levels.rb +5 -0
- data/spec/factories/sis/core/programme_types.rb +5 -0
- data/spec/factories/sis/core/programmes.rb +6 -0
- data/spec/factories/sis/core/semesters.rb +1 -1
- data/spec/factories/sis/core/students.rb +5 -5
- data/spec/factories/sis/core/user_roles.rb +6 -0
- data/spec/factories/sis/core/users.rb +9 -0
- metadata +150 -29
- data/app/models/sis/core/attached_document.rb +0 -8
- data/app/models/sis/core/enrollment_application.rb +0 -9
- data/app/models/sis/core/program.rb +0 -9
- data/app/models/sis/core/staff.rb +0 -21
- data/app/models/user.rb +0 -12
- data/config/initializers/devise_token_auth.rb +0 -55
- data/db/migrate/20200106001016_create_sis_core_field_of_studies.rb +0 -9
- data/db/migrate/20200106130428_create_sis_core_programs.rb +0 -10
- data/db/migrate/20200108092202_devise_token_auth_create_users.rb +0 -53
- data/db/migrate/20200108094449_create_sis_core_enrollment_applications.rb +0 -10
- data/db/migrate/20200108101638_create_sis_core_attached_documents.rb +0 -11
- data/db/migrate/20200316120805_create_sis_core_staffs.rb +0 -31
- data/db/migrate/20200319074334_modify_user.rb +0 -16
- data/spec/factories/sis/core/attached_documents.rb +0 -7
- data/spec/factories/sis/core/enrollment_applications.rb +0 -7
- data/spec/factories/sis/core/field_of_studies.rb +0 -6
- data/spec/factories/sis/core/program_types.rb +0 -5
- data/spec/factories/sis/core/programs.rb +0 -7
- data/spec/factories/sis/core/staffs.rb +0 -32
- data/spec/factories/users.rb +0 -11
data/lib/sis/core/engine.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
require 'devise_token_auth'
|
2
|
-
|
3
1
|
module Sis
|
4
2
|
module Core
|
5
3
|
class Engine < ::Rails::Engine
|
6
4
|
isolate_namespace Sis::Core
|
7
5
|
|
8
6
|
config.generators.api_only = true
|
7
|
+
config.eager_load_paths << Sis::Core::Engine.root.join('lib')
|
8
|
+
config.autoload_paths << Sis::Core::Engine.root.join('lib')
|
9
9
|
|
10
10
|
config.generators do |g|
|
11
11
|
g.test_framework :rspec
|
data/lib/sis/core/version.rb
CHANGED
data/lib/sis_core.rb
CHANGED
@@ -1,9 +1,16 @@
|
|
1
1
|
FactoryBot.define do
|
2
|
-
factory :applicant, class:
|
2
|
+
factory :applicant, class: Sis::Core::Applicant do
|
3
3
|
first_name { FFaker::Name.name }
|
4
4
|
middle_name { FFaker::Name.name }
|
5
5
|
last_name { FFaker::Name.name }
|
6
|
+
password { FFaker::Name.name }
|
6
7
|
email { FFaker::Internet.email }
|
7
|
-
|
8
|
+
primary_phone_number { FFaker::PhoneNumber.phone_number }
|
9
|
+
alternative_telephone_number { FFaker::PhoneNumber.phone_number }
|
10
|
+
date_of_birth { '2000-10-05' }
|
11
|
+
gender { FFaker::Gender.binary }
|
12
|
+
nationality { FFaker::Name.name }
|
13
|
+
address { FFaker::Address.city }
|
14
|
+
photo { FFaker::Name.name }
|
8
15
|
end
|
9
16
|
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
FactoryBot.define do
|
2
|
+
factory :application_setup, class: Sis::Core::ApplicationSetup do
|
3
|
+
association :academic_programme
|
4
|
+
association :target_semester, factory: :semester
|
5
|
+
start_date { Date.today - 15.days }
|
6
|
+
end_date { Date.today + 15.days }
|
7
|
+
status { 'Open' }
|
8
|
+
end
|
9
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
FactoryBot.define do
|
2
|
+
factory :application, class: Sis::Core::Application do
|
3
|
+
status { :draft }
|
4
|
+
payment_made { false }
|
5
|
+
payment_information { nil }
|
6
|
+
application_date { Date.today }
|
7
|
+
association :applicant
|
8
|
+
association :academic_programme
|
9
|
+
association :application_setup
|
10
|
+
end
|
11
|
+
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
FactoryBot.define do
|
2
2
|
factory :student, class: 'Sis::Core::Student' do
|
3
|
-
student_id { FFaker::Name.name }
|
4
|
-
full_name { FFaker::Name.name }
|
5
|
-
date_of_birth { Date.new(2000, 1, 1) }
|
6
|
-
nationality { FFaker::Name.name }
|
7
|
-
association :program
|
3
|
+
# student_id { FFaker::Name.name }
|
4
|
+
# full_name { FFaker::Name.name }
|
5
|
+
# date_of_birth { Date.new(2000, 1, 1) }
|
6
|
+
# nationality { FFaker::Name.name }
|
7
|
+
# association :program
|
8
8
|
end
|
9
9
|
end
|
metadata
CHANGED
@@ -1,17 +1,87 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sis_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henock L.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: aasm
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: active_model_serializers
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.10.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.10.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bcrypt
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 3.1.7
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 3.1.7
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: carrierwave
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2.0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '2.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: carrierwave-base64
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: jwt
|
15
85
|
requirement: !ruby/object:Gem::Requirement
|
16
86
|
requirements:
|
17
87
|
- - ">="
|
@@ -44,6 +114,20 @@ dependencies:
|
|
44
114
|
- - ">="
|
45
115
|
- !ruby/object:Gem::Version
|
46
116
|
version: 6.0.2.1
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: sqlite3
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
124
|
+
type: :runtime
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
47
131
|
- !ruby/object:Gem::Dependency
|
48
132
|
name: factory_bot_rails
|
49
133
|
requirement: !ruby/object:Gem::Requirement
|
@@ -115,19 +199,25 @@ dependencies:
|
|
115
199
|
- !ruby/object:Gem::Version
|
116
200
|
version: '0'
|
117
201
|
- !ruby/object:Gem::Dependency
|
118
|
-
name:
|
202
|
+
name: pg
|
119
203
|
requirement: !ruby/object:Gem::Requirement
|
120
204
|
requirements:
|
121
205
|
- - ">="
|
122
206
|
- !ruby/object:Gem::Version
|
123
|
-
version: '0'
|
207
|
+
version: '0.18'
|
208
|
+
- - "<"
|
209
|
+
- !ruby/object:Gem::Version
|
210
|
+
version: '2.0'
|
124
211
|
type: :development
|
125
212
|
prerelease: false
|
126
213
|
version_requirements: !ruby/object:Gem::Requirement
|
127
214
|
requirements:
|
128
215
|
- - ">="
|
129
216
|
- !ruby/object:Gem::Version
|
130
|
-
version: '0'
|
217
|
+
version: '0.18'
|
218
|
+
- - "<"
|
219
|
+
- !ruby/object:Gem::Version
|
220
|
+
version: '2.0'
|
131
221
|
description: An engine which contains the core of the student information system app
|
132
222
|
as a layer.
|
133
223
|
email:
|
@@ -140,63 +230,94 @@ files:
|
|
140
230
|
- README.md
|
141
231
|
- Rakefile
|
142
232
|
- app/controllers/sis/core/application_controller.rb
|
233
|
+
- app/controllers/sis/core/menus_controller.rb
|
234
|
+
- app/controllers/sis/core/users_controller.rb
|
235
|
+
- app/models/sis/core/academic_programme.rb
|
143
236
|
- app/models/sis/core/academic_year.rb
|
144
237
|
- app/models/sis/core/applicant.rb
|
238
|
+
- app/models/sis/core/application.rb
|
239
|
+
- app/models/sis/core/application_document.rb
|
240
|
+
- app/models/sis/core/application_module.rb
|
145
241
|
- app/models/sis/core/application_record.rb
|
146
|
-
- app/models/sis/core/
|
242
|
+
- app/models/sis/core/application_setup.rb
|
147
243
|
- app/models/sis/core/course.rb
|
148
244
|
- app/models/sis/core/course_registration.rb
|
149
|
-
- app/models/sis/core/
|
245
|
+
- app/models/sis/core/document_requirement.rb
|
246
|
+
- app/models/sis/core/document_type.rb
|
247
|
+
- app/models/sis/core/exam.rb
|
248
|
+
- app/models/sis/core/exam_result.rb
|
249
|
+
- app/models/sis/core/exam_setup.rb
|
150
250
|
- app/models/sis/core/field_of_study.rb
|
151
251
|
- app/models/sis/core/instructor.rb
|
152
252
|
- app/models/sis/core/instructor_course.rb
|
153
253
|
- app/models/sis/core/lookup.rb
|
154
|
-
- app/models/sis/core/
|
155
|
-
- app/models/sis/core/
|
254
|
+
- app/models/sis/core/menu.rb
|
255
|
+
- app/models/sis/core/programme.rb
|
256
|
+
- app/models/sis/core/programme_level.rb
|
257
|
+
- app/models/sis/core/programme_type.rb
|
156
258
|
- app/models/sis/core/semester.rb
|
157
|
-
- app/models/sis/core/staff.rb
|
158
259
|
- app/models/sis/core/student.rb
|
159
|
-
- app/models/user.rb
|
260
|
+
- app/models/sis/core/user.rb
|
261
|
+
- app/models/sis/core/user_role.rb
|
262
|
+
- app/services/sis/core/user_service.rb
|
263
|
+
- app/uploaders/sis/core/application_document_uploader.rb
|
264
|
+
- app/uploaders/sis/core/photo_uploader.rb
|
160
265
|
- config/database.ci.yml
|
161
|
-
- config/initializers/devise_token_auth.rb
|
162
266
|
- config/routes.rb
|
163
267
|
- db/migrate/20200105061717_create_sis_core_lookups.rb
|
164
|
-
- db/migrate/
|
165
|
-
- db/migrate/
|
268
|
+
- db/migrate/20200105072142_create_sis_core_academic_years.rb
|
269
|
+
- db/migrate/20200106072246_create_sis_core_semesters.rb
|
270
|
+
- db/migrate/20200106130428_create_sis_core_programmes.rb
|
271
|
+
- db/migrate/20200106132035_create_sis_core_academic_programmes.rb
|
272
|
+
- db/migrate/20200106132521_create_sis_core_application_setups.rb
|
273
|
+
- db/migrate/20200106133034_create_sis_core_document_requirements.rb
|
166
274
|
- db/migrate/20200106133937_create_sis_core_applicants.rb
|
167
|
-
- db/migrate/
|
168
|
-
- db/migrate/
|
169
|
-
- db/migrate/
|
275
|
+
- db/migrate/20200107094449_create_sis_core_applications.rb
|
276
|
+
- db/migrate/20200107101638_create_sis_core_application_documents.rb
|
277
|
+
- db/migrate/20200107302251_create_sis_core_exam_setups.rb
|
278
|
+
- db/migrate/20200107333411_create_sis_core_exams.rb
|
279
|
+
- db/migrate/20200107434658_create_sis_core_exam_results.rb
|
170
280
|
- db/migrate/20200307033100_create_sis_core_courses.rb
|
171
281
|
- db/migrate/20200307071511_create_sis_core_instructors.rb
|
172
282
|
- db/migrate/20200307071736_create_sis_core_instructor_courses.rb
|
173
283
|
- db/migrate/20200307072006_create_sis_core_students.rb
|
174
|
-
- db/migrate/20200307072142_create_sis_core_academic_years.rb
|
175
|
-
- db/migrate/20200307072246_create_sis_core_semesters.rb
|
176
284
|
- db/migrate/20200307072317_create_sis_core_course_registrations.rb
|
177
|
-
- db/migrate/
|
178
|
-
- db/migrate/
|
285
|
+
- db/migrate/20200507114003_create_sis_core_users.rb
|
286
|
+
- db/migrate/20200511165121_create_sis_core_application_modules.rb
|
287
|
+
- db/migrate/20200511165241_create_sis_core_user_roles.rb
|
288
|
+
- db/migrate/20200511165450_create_sis_core_menus.rb
|
289
|
+
- lib/authorize_request.rb
|
290
|
+
- lib/json_web_token.rb
|
179
291
|
- lib/sis/core.rb
|
180
292
|
- lib/sis/core/engine.rb
|
181
293
|
- lib/sis/core/version.rb
|
182
294
|
- lib/sis_core.rb
|
183
295
|
- lib/tasks/sis_core_tasks.rake
|
296
|
+
- spec/factories/sis/core/academic_programmes.rb
|
184
297
|
- spec/factories/sis/core/academic_years.rb
|
185
298
|
- spec/factories/sis/core/applicants.rb
|
186
|
-
- spec/factories/sis/core/
|
299
|
+
- spec/factories/sis/core/application_documents.rb
|
300
|
+
- spec/factories/sis/core/application_modules.rb
|
301
|
+
- spec/factories/sis/core/application_setups.rb
|
302
|
+
- spec/factories/sis/core/applications.rb
|
187
303
|
- spec/factories/sis/core/course_registrations.rb
|
188
304
|
- spec/factories/sis/core/courses.rb
|
189
|
-
- spec/factories/sis/core/
|
190
|
-
- spec/factories/sis/core/
|
305
|
+
- spec/factories/sis/core/document_requirements.rb
|
306
|
+
- spec/factories/sis/core/document_types.rb
|
307
|
+
- spec/factories/sis/core/exam_results.rb
|
308
|
+
- spec/factories/sis/core/exam_setups.rb
|
309
|
+
- spec/factories/sis/core/exams.rb
|
191
310
|
- spec/factories/sis/core/instructor_courses.rb
|
192
311
|
- spec/factories/sis/core/instructors.rb
|
193
312
|
- spec/factories/sis/core/lookups.rb
|
194
|
-
- spec/factories/sis/core/
|
195
|
-
- spec/factories/sis/core/
|
313
|
+
- spec/factories/sis/core/menus.rb
|
314
|
+
- spec/factories/sis/core/programme_levels.rb
|
315
|
+
- spec/factories/sis/core/programme_types.rb
|
316
|
+
- spec/factories/sis/core/programmes.rb
|
196
317
|
- spec/factories/sis/core/semesters.rb
|
197
|
-
- spec/factories/sis/core/staffs.rb
|
198
318
|
- spec/factories/sis/core/students.rb
|
199
|
-
- spec/factories/
|
319
|
+
- spec/factories/sis/core/user_roles.rb
|
320
|
+
- spec/factories/sis/core/users.rb
|
200
321
|
homepage: http://www.mks.com.et
|
201
322
|
licenses:
|
202
323
|
- MIT
|