gaku_core 0.2.4 → 0.3.0.pre.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +17 -0
- data/app/assets/images/elements/toolbar1.png +0 -0
- data/app/assets/images/icon-chair.png +0 -0
- data/app/models/application_record.rb +3 -0
- data/app/models/concerns/{enrollmentable.rb → enrollable.rb} +2 -2
- data/app/models/concerns/gradable.rb +2 -0
- data/app/models/gaku/address.rb +3 -3
- data/app/models/gaku/attachment.rb +4 -2
- data/app/models/gaku/attendance.rb +3 -3
- data/app/models/gaku/class_group.rb +1 -1
- data/app/models/gaku/contact.rb +2 -2
- data/app/models/gaku/course.rb +3 -3
- data/app/models/gaku/enrollment.rb +23 -19
- data/app/models/gaku/exam.rb +2 -2
- data/app/models/gaku/exam_portion.rb +1 -1
- data/app/models/gaku/exam_portion_score.rb +6 -2
- data/app/models/gaku/exam_session.rb +3 -3
- data/app/models/gaku/extracurricular_activity.rb +1 -1
- data/app/models/gaku/grading_method_connector.rb +3 -3
- data/app/models/gaku/guardian.rb +1 -1
- data/app/models/gaku/lesson_plan.rb +1 -1
- data/app/models/gaku/note.rb +1 -1
- data/app/models/gaku/program_specialty.rb +2 -2
- data/app/models/gaku/school_role.rb +1 -1
- data/app/models/gaku/semester.rb +1 -1
- data/app/models/gaku/semester_connector.rb +2 -2
- data/app/models/gaku/specialty.rb +1 -1
- data/app/models/gaku/student.rb +10 -12
- data/app/models/gaku/student_review.rb +3 -3
- data/app/models/gaku/student_specialty.rb +2 -2
- data/app/models/gaku/syllabus.rb +1 -1
- data/app/models/gaku/teacher.rb +1 -1
- data/config/initializers/redis.rb +6 -2
- data/db/default/gaku/attendance_types.rb +1 -1
- data/db/migrate/20120202111850_presets.rb +3 -4
- data/db/migrate/20131014065028_translations.rb +1 -1
- data/db/migrate/20131025073352_gaku_core.rb +1 -1
- data/db/migrate/20140128141752_change_grading_methods_arguments_field.rb +1 -1
- data/db/migrate/20140130182100_change_fields_external_school_record.rb +1 -1
- data/db/migrate/20140131113337_create_student_configs.rb +1 -1
- data/db/migrate/20140207093618_drop_student_configs.rb +1 -1
- data/db/migrate/20140213113405_create_grading_method_connectors_table.rb +1 -1
- data/db/migrate/20140304094422_create_gaku_exam_sessions_table.rb +1 -1
- data/db/migrate/20140325073941_add_time_format_24_to_presets_table.rb +1 -1
- data/db/migrate/20140408111314_remove_semester_join_tables.rb +1 -1
- data/db/migrate/20140408111358_create_semester_connectors_table.rb +1 -1
- data/db/migrate/20140423093155_create_enrollments_table.rb +1 -1
- data/db/migrate/20140423100114_clean_enrollments_join_models.rb +1 -1
- data/db/migrate/20140429112725_add_counters_to_enrollmentable.rb +3 -1
- data/db/migrate/20140604104210_rename_method_to_grading_method.rb +1 -1
- data/db/migrate/20140604113045_add_default_value_to_curved.rb +1 -1
- data/db/migrate/20140610091053_add_seat_number_to_enrollments.rb +1 -1
- data/db/migrate/20140701104700_change_hstore_to_string_criteria.rb +1 -1
- data/db/migrate/20140715135152_create_semester_attendance_table.rb +1 -1
- data/db/migrate/20140718105226_create_student_review_categories_table.rb +1 -1
- data/db/migrate/20140728121353_create_student_review_table.rb +1 -1
- data/db/migrate/20150213095508_improve_countries_and_states.rb +1 -1
- data/db/migrate/20160125194100_add_gradable_to_exam_portion_score.rb +5 -0
- data/db/migrate/20170509132020_change_enrollmentable_to_enrollable.rb +6 -0
- data/gaku_core.gemspec +37 -0
- data/lib/gaku/core.rb +1 -1
- data/lib/gaku/core/engine.rb +1 -1
- data/lib/gaku/grading/collection/base_method.rb +3 -2
- data/lib/gaku/grading/collection/calculations.rb +5 -3
- data/lib/gaku/grading/collection/interval.rb +2 -2
- data/lib/gaku/grading/collection/ordinal.rb +1 -1
- data/lib/gaku/grading/collection/percentage.rb +1 -1
- data/lib/gaku/grading/collection/score.rb +1 -1
- data/lib/gaku/grading/single/base_method.rb +3 -2
- data/lib/gaku/grading/single/calculations.rb +5 -4
- data/lib/gaku/grading/single/ordinal.rb +2 -3
- data/lib/gaku/grading/single/percentage.rb +2 -3
- data/lib/gaku/grading/single/score.rb +2 -3
- data/lib/gaku/testing/common_rake.rb +47 -6
- data/lib/gaku/testing/controller_helpers.rb +6 -4
- data/lib/gaku/testing/factories/address_factory.rb +3 -3
- data/lib/gaku/testing/factories/campus_factory.rb +1 -1
- data/lib/gaku/testing/factories/enrollment_factory.rb +1 -1
- data/lib/gaku/testing/factories/guardian_factory.rb +2 -2
- data/lib/gaku/testing/factories/program_factory.rb +1 -1
- data/lib/gaku/testing/factories/school_factory.rb +1 -1
- data/lib/gaku/testing/factories/student_factory.rb +7 -5
- data/lib/gaku/testing/factories/syllabus_factory.rb +1 -1
- data/lib/gaku/testing/factories/teacher_factory.rb +4 -4
- data/lib/gaku/testing/factories/user_factory.rb +2 -2
- data/lib/generators/gaku/docker/docker_generator.rb +58 -0
- data/lib/generators/gaku/docker/templates/app/assets/javascripts/gaku/admin/all.js +10 -0
- data/lib/generators/gaku/docker/templates/app/assets/javascripts/gaku/archive/all.js +10 -0
- data/lib/generators/gaku/docker/templates/app/assets/javascripts/gaku/frontend/all.js +10 -0
- data/lib/generators/gaku/docker/templates/app/assets/stylesheets/gaku/admin/all.css +9 -0
- data/lib/generators/gaku/docker/templates/app/assets/stylesheets/gaku/archive/all.css +9 -0
- data/lib/generators/gaku/docker/templates/app/assets/stylesheets/gaku/frontend/all.css +9 -0
- data/lib/generators/gaku/docker/templates/bin/check_postgres.sh +16 -0
- data/lib/generators/gaku/docker/templates/config/database.yml +2 -0
- data/lib/generators/gaku/dummy/dummy_generator.rb +0 -1
- data/lib/generators/gaku/dummy/templates/rails/application.rb +0 -1
- data/lib/generators/gaku/dummy/templates/rails/database.yml +11 -10
- data/lib/generators/gaku/install/install_generator.rb +17 -0
- data/lib/generators/gaku/install/templates/Procfile +3 -0
- data/lib/generators/gaku/install/templates/lib/grading/README.md +2 -0
- data/lib/generators/gaku/install/templates/lib/grading/bin/gaku_grading.coffee +13 -0
- data/lib/generators/gaku/install/templates/lib/grading/package.json +19 -0
- data/lib/tasks/core.rake +1 -1
- data/lib/tasks/grading.rake +10 -0
- metadata +69 -53
- data/db/migrate/20140304101025_create_gaku_student_exam_session_table.rb +0 -8
- data/lib/gaku/testing/factories/student_exam_session_factory.rb +0 -8