gaku_archive 0.1.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +29 -0
- data/app/controllers/concerns/trashable_controller.rb +2 -1
- data/app/controllers/gaku/admin/changes/student_address_changes_controller.rb +1 -1
- data/app/controllers/gaku/admin/changes/student_changes_controller.rb +1 -1
- data/app/controllers/gaku/admin/changes/student_contact_changes_controller.rb +1 -1
- data/app/controllers/gaku/admin/disposals_controller.rb +2 -2
- data/app/controllers/gaku/contacts_controller_injector.rb +2 -2
- data/app/models/concerns/trashable.rb +2 -2
- data/app/models/gaku/address_injector.rb +3 -3
- data/app/models/gaku/contact_injector.rb +5 -4
- data/app/models/gaku/disposal.rb +47 -0
- data/app/models/gaku/student_injector.rb +7 -8
- data/app/overrides/archive_menu.rb +6 -6
- data/config/routes.rb +10 -1
- data/lib/gaku/archive/engine.rb +1 -1
- data/lib/gaku_archive.rb +1 -1
- data/lib/generators/gaku_archive/install/install_generator.rb +48 -0
- metadata +90 -87
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d35afba85cd436f0bbd5fd3cd872b359dd8b3433
|
4
|
+
data.tar.gz: 41a691d20ac478681295f70019626f31cc283f91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa598db9af2ea730200631aa95115c598f1c321aeff59df0fc41c74593f0fc2061b61b7c0ace3c0cbee16c1011854ba4c1f53888d1ed4021254ae0408a599326
|
7
|
+
data.tar.gz: c4ecca57e13ab0100e07bbb85ee762168655373df89fb8c920c85106958ac1955e64c145403bf51217e473348c5b41d56aeb48b1fe93658d2fca56129a048d79
|
data/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
[![Build Status](https://travis-ci.org/GAKUEngine/gaku_archive.png)](https://travis-ci.org/GAKUEngine/gaku_archive)
|
2
|
+
[![Code Climate](https://codeclimate.com/github/GAKUEngine/gaku_archive.png)](https://codeclimate.com/github/GAKUEngine/gaku_archive)
|
3
|
+
|
4
|
+
gaku_archive
|
5
|
+
=========
|
6
|
+
|
7
|
+
Archive functionality for GAKUEngine
|
8
|
+
|
9
|
+
|
10
|
+
### Install
|
11
|
+
|
12
|
+
Add to your `Gemfile` :
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
gem 'gaku', github: 'GAKUEngine/gaku'
|
16
|
+
gem 'gaku_archive', github: 'GAKUEngine/gaku_archive'
|
17
|
+
```
|
18
|
+
|
19
|
+
Install dependencies:
|
20
|
+
|
21
|
+
$ bundle install
|
22
|
+
|
23
|
+
Run `gaku_archive` generator :
|
24
|
+
|
25
|
+
$ rails g gaku_archive:install
|
26
|
+
|
27
|
+
Run the server:
|
28
|
+
|
29
|
+
$ rails s
|
@@ -15,7 +15,8 @@ module TrashableController
|
|
15
15
|
|
16
16
|
def soft_delete
|
17
17
|
@resource.soft_delete
|
18
|
-
respond_with instance_variable_set("@#{class_name_underscored}", @resource),
|
18
|
+
respond_with instance_variable_set("@#{class_name_underscored}", @resource),
|
19
|
+
location: "/#{class_name_underscored_plural}"
|
19
20
|
end
|
20
21
|
|
21
22
|
private
|
@@ -47,8 +47,8 @@ module Gaku
|
|
47
47
|
private
|
48
48
|
|
49
49
|
def set_student_and_teacher_count(klass)
|
50
|
-
@students_count = klass.constantize.deleted.students.count
|
51
|
-
@teachers_count = klass.constantize.deleted.teachers.count
|
50
|
+
@students_count = klass.constantize.unscoped.deleted.students.count
|
51
|
+
@teachers_count = klass.constantize.unscoped.deleted.teachers.count
|
52
52
|
end
|
53
53
|
|
54
54
|
end
|
@@ -2,14 +2,14 @@ module Gaku
|
|
2
2
|
ContactsController.class_eval do
|
3
3
|
|
4
4
|
def recovery
|
5
|
-
@contact = Contact.deleted.find(params[:id])
|
5
|
+
@contact = Contact.unscoped.deleted.find(params[:id])
|
6
6
|
@contact.recover
|
7
7
|
respond_with @contact
|
8
8
|
end
|
9
9
|
|
10
10
|
def soft_delete
|
11
11
|
set_polymorphic_resource
|
12
|
-
@contact =Contact.find(params[:id])
|
12
|
+
@contact = Contact.find(params[:id])
|
13
13
|
@primary_contact = true if @contact.primary?
|
14
14
|
@contact.soft_delete
|
15
15
|
@polymorphic_resource.contacts.first.try(:make_primary) if @contact.primary?
|
@@ -3,7 +3,7 @@ module Trashable
|
|
3
3
|
|
4
4
|
included do
|
5
5
|
default_scope -> { where(deleted: false) }
|
6
|
-
scope :deleted, -> { where(deleted: true) }
|
6
|
+
scope :deleted, -> { unscoped.where(deleted: true) }
|
7
7
|
|
8
8
|
def soft_delete
|
9
9
|
update_attribute(:deleted, true)
|
@@ -14,4 +14,4 @@ module Trashable
|
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
17
|
-
end
|
17
|
+
end
|
@@ -3,10 +3,11 @@ Gaku::Address.class_eval do
|
|
3
3
|
has_paper_trail class_name: 'Gaku::Versioning::AddressVersion',
|
4
4
|
on: [:update, :destroy],
|
5
5
|
meta: {
|
6
|
-
|
7
|
-
|
6
|
+
join_model: :join_model_name,
|
7
|
+
joined_resource_id: :joined_resource_id
|
8
8
|
}
|
9
9
|
|
10
|
+
scope :deleted, -> { unscoped.where(deleted: true) }
|
10
11
|
default_scope -> { where(deleted: false) }
|
11
12
|
|
12
13
|
def soft_delete
|
@@ -27,5 +28,4 @@ Gaku::Address.class_eval do
|
|
27
28
|
addressable_id
|
28
29
|
end
|
29
30
|
|
30
|
-
|
31
31
|
end
|
@@ -1,13 +1,14 @@
|
|
1
1
|
Gaku::Contact.class_eval do
|
2
2
|
|
3
3
|
has_paper_trail class_name: 'Gaku::Versioning::ContactVersion',
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
4
|
+
on: [:update, :destroy],
|
5
|
+
meta: {
|
6
|
+
join_model: :join_model_name,
|
7
|
+
joined_resource_id: :joined_resource_id
|
8
8
|
}
|
9
9
|
|
10
10
|
default_scope -> { where(deleted: false) }
|
11
|
+
scope :deleted, -> { unscoped.where(deleted: true) }
|
11
12
|
|
12
13
|
def soft_delete
|
13
14
|
update_attributes(deleted: true, primary: false)
|
@@ -0,0 +1,47 @@
|
|
1
|
+
module Gaku
|
2
|
+
class Disposal
|
3
|
+
class << self
|
4
|
+
|
5
|
+
def students
|
6
|
+
Student.unscoped.deleted
|
7
|
+
end
|
8
|
+
|
9
|
+
def teachers
|
10
|
+
Teacher.unscoped.deleted
|
11
|
+
end
|
12
|
+
|
13
|
+
def guardians
|
14
|
+
Guardian.unscoped.deleted
|
15
|
+
end
|
16
|
+
|
17
|
+
def exams
|
18
|
+
Exam.unscoped.deleted
|
19
|
+
end
|
20
|
+
|
21
|
+
def course_groups
|
22
|
+
CourseGroup.unscoped.deleted
|
23
|
+
end
|
24
|
+
|
25
|
+
def attachments
|
26
|
+
Attachment.includes(:attachable).unscoped.deleted
|
27
|
+
end
|
28
|
+
|
29
|
+
def student_addresses
|
30
|
+
Address.includes(:addressable, :country).unscoped.deleted.students
|
31
|
+
end
|
32
|
+
|
33
|
+
def teacher_addresses
|
34
|
+
Address.includes(:addressable, :country).unscoped.deleted.teachers
|
35
|
+
end
|
36
|
+
|
37
|
+
def student_contacts
|
38
|
+
Contact.includes(:contactable, :contact_type).unscoped.deleted.students
|
39
|
+
end
|
40
|
+
|
41
|
+
def teacher_contacts
|
42
|
+
Contact.includes(:contactable, :contact_type).unscoped.deleted.teachers
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -3,14 +3,13 @@ Gaku::Student.class_eval do
|
|
3
3
|
include Trashable
|
4
4
|
|
5
5
|
has_paper_trail class_name: 'Gaku::Versioning::StudentVersion',
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
6
|
+
on: [:update, :destroy],
|
7
|
+
only: [
|
8
|
+
:name, :surname, :middle_name,
|
9
|
+
:foreign_id_code,
|
10
|
+
:scholarship_status_id,
|
11
|
+
:commute_method_type_id, :enrollment_status_code,
|
12
|
+
:deleted
|
13
13
|
]
|
14
14
|
|
15
|
-
|
16
15
|
end
|
@@ -1,6 +1,6 @@
|
|
1
|
-
Deface::Override.new(:
|
2
|
-
:
|
3
|
-
:
|
4
|
-
:
|
5
|
-
:
|
6
|
-
)
|
1
|
+
Deface::Override.new(virtual_path: 'gaku/shared/menu/_admin',
|
2
|
+
name: 'archive_menu',
|
3
|
+
insert_bottom: "[data-hook='admin_dropdown_menu']",
|
4
|
+
partial: 'gaku/shared/menu/archive',
|
5
|
+
disabled: false
|
6
|
+
)
|
data/config/routes.rb
CHANGED
@@ -13,8 +13,17 @@ Gaku::Core::Engine.routes.draw do
|
|
13
13
|
get :clear_search, on: :collection
|
14
14
|
get :advanced_search, on: :collection
|
15
15
|
get :chosen, on: :collection
|
16
|
-
resources :guardians,
|
16
|
+
resources :guardians, concerns: :soft_delete
|
17
17
|
end
|
18
|
+
|
19
|
+
resources :student_selection, only: :index do
|
20
|
+
collection do
|
21
|
+
get :clear
|
22
|
+
post :add
|
23
|
+
post :remove
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
18
27
|
resources :extracurricular_activities, concerns: :soft_delete
|
19
28
|
resources :class_groups, concerns: :soft_delete do
|
20
29
|
collection do
|
data/lib/gaku/archive/engine.rb
CHANGED
@@ -6,7 +6,7 @@ module Gaku
|
|
6
6
|
config.autoload_paths += %W(#{config.root}/lib)
|
7
7
|
|
8
8
|
def self.activate
|
9
|
-
Dir.glob(File.join(File.dirname(__FILE__),
|
9
|
+
Dir.glob(File.join(File.dirname(__FILE__), '../../../app/**/*_injector*.rb')) do |c|
|
10
10
|
Rails.configuration.cache_classes ? require(c) : load(c)
|
11
11
|
end
|
12
12
|
end
|
data/lib/gaku_archive.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
require 'gaku/archive'
|
1
|
+
require 'gaku/archive'
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
require 'highline/import'
|
3
|
+
require 'bundler'
|
4
|
+
require 'bundler/cli'
|
5
|
+
|
6
|
+
module GakuArchive
|
7
|
+
class InstallGenerator < Rails::Generators::Base
|
8
|
+
|
9
|
+
class_option :auto_accept, type: :boolean
|
10
|
+
class_option :lib_name, type: :string, default: 'gaku_archive'
|
11
|
+
class_option :env, type: :string, default: 'development'
|
12
|
+
|
13
|
+
def self.source_paths
|
14
|
+
paths = superclass.source_paths
|
15
|
+
paths << File.expand_path('../templates', "../../#{__FILE__}")
|
16
|
+
paths << File.expand_path('../templates', "../#{__FILE__}")
|
17
|
+
paths << File.expand_path('../templates', __FILE__)
|
18
|
+
paths.flatten
|
19
|
+
end
|
20
|
+
|
21
|
+
def prepare_options
|
22
|
+
@env = options[:env]
|
23
|
+
end
|
24
|
+
|
25
|
+
def add_migrations
|
26
|
+
run 'rake railties:install:migrations FROM=gaku_archive'
|
27
|
+
end
|
28
|
+
|
29
|
+
def run_migrations
|
30
|
+
run_migrations = options[:auto_run_migrations] || ['', 'y', 'Y'].include?(ask 'Would you like to run the migrations now? [Y/n]')
|
31
|
+
if run_migrations
|
32
|
+
run 'rake db:migrate'
|
33
|
+
else
|
34
|
+
puts "Skiping rake db:migrate, don't forget to run it!"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
def complete
|
39
|
+
unless options[:quiet]
|
40
|
+
puts '*' * 50
|
41
|
+
puts "GakuArchive has been installed successfully. You're all ready to go!"
|
42
|
+
puts ' '
|
43
|
+
puts 'Enjoy!'
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
48
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gaku_archive
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rei Kagetsuki
|
@@ -11,50 +11,50 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2015-02-24 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: gaku_core
|
18
18
|
requirement: !ruby/object:Gem::Requirement
|
19
19
|
requirements:
|
20
|
-
- -
|
20
|
+
- - "~>"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.
|
22
|
+
version: 0.2.2
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.2.2
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: gaku_admin
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
requirements:
|
34
|
-
- -
|
34
|
+
- - "~>"
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: 0.
|
36
|
+
version: 0.2.2
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
|
-
- -
|
41
|
+
- - "~>"
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: 0.
|
43
|
+
version: 0.2.2
|
44
44
|
- !ruby/object:Gem::Dependency
|
45
45
|
name: gaku_frontend
|
46
46
|
requirement: !ruby/object:Gem::Requirement
|
47
47
|
requirements:
|
48
|
-
- -
|
48
|
+
- - "~>"
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version: 0.
|
50
|
+
version: 0.2.2
|
51
51
|
type: :runtime
|
52
52
|
prerelease: false
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
54
54
|
requirements:
|
55
|
-
- -
|
55
|
+
- - "~>"
|
56
56
|
- !ruby/object:Gem::Version
|
57
|
-
version: 0.
|
57
|
+
version: 0.2.2
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: paper_trail
|
60
60
|
requirement: !ruby/object:Gem::Requirement
|
@@ -69,100 +69,103 @@ dependencies:
|
|
69
69
|
- - '='
|
70
70
|
- !ruby/object:Gem::Version
|
71
71
|
version: 3.0.0
|
72
|
-
description:
|
72
|
+
description: Adds archiving functionality to GAKU Engine
|
73
73
|
email: info@genshin.org
|
74
74
|
executables: []
|
75
75
|
extensions: []
|
76
76
|
extra_rdoc_files: []
|
77
77
|
files:
|
78
|
+
- README.md
|
78
79
|
- app/assets/javascripts/gaku/archive.js.coffee
|
79
80
|
- app/assets/stylesheets/gaku/archive.css
|
81
|
+
- app/controllers/concerns/trashable_controller.rb
|
82
|
+
- app/controllers/gaku/admin/changes/student_address_changes_controller.rb
|
83
|
+
- app/controllers/gaku/admin/changes/student_changes_controller.rb
|
84
|
+
- app/controllers/gaku/admin/changes/student_contact_changes_controller.rb
|
85
|
+
- app/controllers/gaku/admin/disposals_controller.rb
|
86
|
+
- app/controllers/gaku/admin/students_controller.rb
|
87
|
+
- app/controllers/gaku/class_groups_controller_injector.rb
|
88
|
+
- app/controllers/gaku/contacts_controller_injector.rb
|
89
|
+
- app/controllers/gaku/course_groups_controller_injector.rb
|
90
|
+
- app/controllers/gaku/courses_controller_injector.rb
|
91
|
+
- app/controllers/gaku/exams_controller_injector.rb
|
92
|
+
- app/controllers/gaku/extracurricular_activities_controller_injector.rb
|
93
|
+
- app/controllers/gaku/students_controller_injector.rb
|
94
|
+
- app/controllers/gaku/syllabuses_controller_injector.rb
|
95
|
+
- app/controllers/gaku/teachers_controller_injector.rb
|
96
|
+
- app/models/concerns/trashable.rb
|
97
|
+
- app/models/gaku/address_injector.rb
|
98
|
+
- app/models/gaku/attachment_injector.rb
|
99
|
+
- app/models/gaku/class_group_injector.rb
|
100
|
+
- app/models/gaku/contact_injector.rb
|
101
|
+
- app/models/gaku/course_group_injector.rb
|
102
|
+
- app/models/gaku/course_injector.rb
|
103
|
+
- app/models/gaku/disposal.rb
|
104
|
+
- app/models/gaku/exam_injector.rb
|
105
|
+
- app/models/gaku/extracurricular_activity_injector.rb
|
106
|
+
- app/models/gaku/guardian_injector.rb
|
107
|
+
- app/models/gaku/student_injector.rb
|
108
|
+
- app/models/gaku/syllabus_injector.rb
|
109
|
+
- app/models/gaku/teacher_injector.rb
|
110
|
+
- app/models/gaku/versioning/address_version.rb
|
111
|
+
- app/models/gaku/versioning/contact_version.rb
|
112
|
+
- app/models/gaku/versioning/student_version.rb
|
80
113
|
- app/overrides/archive_menu.rb
|
81
|
-
- app/views/gaku/students/recovery.js.erb
|
82
|
-
- app/views/gaku/teachers/recovery.js.erb
|
83
|
-
- app/views/gaku/shared/_delete_modal.html.slim
|
84
|
-
- app/views/gaku/shared/_delete_link.html.slim
|
85
|
-
- app/views/gaku/shared/menu/_archive.html.erb
|
86
|
-
- app/views/gaku/courses/recovery.js.erb
|
87
114
|
- app/views/gaku/addresses/_delete_link.html.slim
|
88
|
-
- app/views/gaku/admin/
|
89
|
-
- app/views/gaku/admin/
|
90
|
-
- app/views/gaku/admin/
|
91
|
-
- app/views/gaku/admin/
|
92
|
-
- app/views/gaku/admin/
|
93
|
-
- app/views/gaku/admin/
|
94
|
-
- app/views/gaku/admin/
|
115
|
+
- app/views/gaku/admin/changes/student_address_changes/_change.html.slim
|
116
|
+
- app/views/gaku/admin/changes/student_address_changes/_changes.html.slim
|
117
|
+
- app/views/gaku/admin/changes/student_address_changes/_deletion.html.slim
|
118
|
+
- app/views/gaku/admin/changes/student_address_changes/index.html.slim
|
119
|
+
- app/views/gaku/admin/changes/student_changes/_change.html.slim
|
120
|
+
- app/views/gaku/admin/changes/student_changes/_changes.html.slim
|
121
|
+
- app/views/gaku/admin/changes/student_changes/_deletion.html.slim
|
122
|
+
- app/views/gaku/admin/changes/student_changes/index.html.slim
|
123
|
+
- app/views/gaku/admin/changes/student_contact_changes/_change.html.slim
|
124
|
+
- app/views/gaku/admin/changes/student_contact_changes/_changes.html.slim
|
125
|
+
- app/views/gaku/admin/changes/student_contact_changes/_deletion.html.slim
|
126
|
+
- app/views/gaku/admin/changes/student_contact_changes/index.html.slim
|
95
127
|
- app/views/gaku/admin/disposals/_address.html.slim
|
128
|
+
- app/views/gaku/admin/disposals/_addresses.html.slim
|
129
|
+
- app/views/gaku/admin/disposals/_contact.html.slim
|
130
|
+
- app/views/gaku/admin/disposals/_contacts.html.slim
|
131
|
+
- app/views/gaku/admin/disposals/_course_group.html.slim
|
132
|
+
- app/views/gaku/admin/disposals/_course_groups.html.slim
|
96
133
|
- app/views/gaku/admin/disposals/_exam.html.slim
|
97
|
-
- app/views/gaku/admin/disposals/
|
134
|
+
- app/views/gaku/admin/disposals/_guardian.html.slim
|
135
|
+
- app/views/gaku/admin/disposals/_student.html.slim
|
98
136
|
- app/views/gaku/admin/disposals/_tabs.html.slim
|
99
|
-
- app/views/gaku/admin/disposals/contacts.html.slim
|
100
|
-
- app/views/gaku/admin/disposals/_contact.html.slim
|
101
137
|
- app/views/gaku/admin/disposals/_teacher.html.slim
|
102
|
-
- app/views/gaku/admin/disposals/_course_group.html.slim
|
103
|
-
- app/views/gaku/admin/disposals/_addresses.html.slim
|
104
138
|
- app/views/gaku/admin/disposals/addresses.html.slim
|
139
|
+
- app/views/gaku/admin/disposals/attachments.html.slim
|
140
|
+
- app/views/gaku/admin/disposals/contacts.html.slim
|
141
|
+
- app/views/gaku/admin/disposals/course_groups.html.slim
|
142
|
+
- app/views/gaku/admin/disposals/exams.html.slim
|
143
|
+
- app/views/gaku/admin/disposals/guardians.html.slim
|
144
|
+
- app/views/gaku/admin/disposals/index.html.slim
|
145
|
+
- app/views/gaku/admin/disposals/students.html.slim
|
105
146
|
- app/views/gaku/admin/disposals/tabs/_addresses_tabs.html.slim
|
106
147
|
- app/views/gaku/admin/disposals/tabs/_contacts_tabs.html.slim
|
107
|
-
- app/views/gaku/admin/disposals/
|
108
|
-
- app/views/gaku/
|
109
|
-
- app/views/gaku/admin/disposals/_student.html.slim
|
110
|
-
- app/views/gaku/admin/changes/student_changes/_deletion.html.slim
|
111
|
-
- app/views/gaku/admin/changes/student_changes/index.html.slim
|
112
|
-
- app/views/gaku/admin/changes/student_changes/_change.html.slim
|
113
|
-
- app/views/gaku/admin/changes/student_changes/_changes.html.slim
|
114
|
-
- app/views/gaku/admin/changes/student_address_changes/_deletion.html.slim
|
115
|
-
- app/views/gaku/admin/changes/student_address_changes/index.html.slim
|
116
|
-
- app/views/gaku/admin/changes/student_address_changes/_change.html.slim
|
117
|
-
- app/views/gaku/admin/changes/student_address_changes/_changes.html.slim
|
118
|
-
- app/views/gaku/admin/changes/student_contact_changes/_deletion.html.slim
|
119
|
-
- app/views/gaku/admin/changes/student_contact_changes/index.html.slim
|
120
|
-
- app/views/gaku/admin/changes/student_contact_changes/_change.html.slim
|
121
|
-
- app/views/gaku/admin/changes/student_contact_changes/_changes.html.slim
|
148
|
+
- app/views/gaku/admin/disposals/teachers.html.slim
|
149
|
+
- app/views/gaku/class_groups/recovery.js.erb
|
122
150
|
- app/views/gaku/contacts/_delete_link.html.slim
|
123
151
|
- app/views/gaku/course_groups/recovery.js.erb
|
152
|
+
- app/views/gaku/courses/recovery.js.erb
|
124
153
|
- app/views/gaku/exams/recovery.js.erb
|
125
154
|
- app/views/gaku/extracurricular_activities/recovery.js.erb
|
126
|
-
- app/views/gaku/
|
155
|
+
- app/views/gaku/shared/_delete_link.html.slim
|
156
|
+
- app/views/gaku/shared/_delete_modal.html.slim
|
157
|
+
- app/views/gaku/shared/menu/_archive.html.erb
|
158
|
+
- app/views/gaku/students/recovery.js.erb
|
127
159
|
- app/views/gaku/syllabuses/recovery.js.erb
|
128
|
-
- app/
|
129
|
-
- app/controllers/gaku/contacts_controller_injector.rb
|
130
|
-
- app/controllers/gaku/course_groups_controller_injector.rb
|
131
|
-
- app/controllers/gaku/courses_controller_injector.rb
|
132
|
-
- app/controllers/gaku/extracurricular_activities_controller_injector.rb
|
133
|
-
- app/controllers/gaku/syllabuses_controller_injector.rb
|
134
|
-
- app/controllers/gaku/class_groups_controller_injector.rb
|
135
|
-
- app/controllers/gaku/admin/students_controller.rb
|
136
|
-
- app/controllers/gaku/admin/changes/student_address_changes_controller.rb
|
137
|
-
- app/controllers/gaku/admin/changes/student_changes_controller.rb
|
138
|
-
- app/controllers/gaku/admin/changes/student_contact_changes_controller.rb
|
139
|
-
- app/controllers/gaku/admin/disposals_controller.rb
|
140
|
-
- app/controllers/gaku/exams_controller_injector.rb
|
141
|
-
- app/controllers/gaku/students_controller_injector.rb
|
142
|
-
- app/controllers/concerns/trashable_controller.rb
|
143
|
-
- app/models/gaku/guardian_injector.rb
|
144
|
-
- app/models/gaku/exam_injector.rb
|
145
|
-
- app/models/gaku/course_injector.rb
|
146
|
-
- app/models/gaku/course_group_injector.rb
|
147
|
-
- app/models/gaku/extracurricular_activity_injector.rb
|
148
|
-
- app/models/gaku/versioning/address_version.rb
|
149
|
-
- app/models/gaku/versioning/student_version.rb
|
150
|
-
- app/models/gaku/versioning/contact_version.rb
|
151
|
-
- app/models/gaku/attachment_injector.rb
|
152
|
-
- app/models/gaku/address_injector.rb
|
153
|
-
- app/models/gaku/contact_injector.rb
|
154
|
-
- app/models/gaku/student_injector.rb
|
155
|
-
- app/models/gaku/teacher_injector.rb
|
156
|
-
- app/models/gaku/syllabus_injector.rb
|
157
|
-
- app/models/gaku/class_group_injector.rb
|
158
|
-
- app/models/concerns/trashable.rb
|
159
|
-
- config/routes.rb
|
160
|
+
- app/views/gaku/teachers/recovery.js.erb
|
160
161
|
- config/initializers/paper_trail.rb
|
162
|
+
- config/routes.rb
|
163
|
+
- db/migrate/20131203160531_create_versioning_tables.rb
|
164
|
+
- db/migrate/20131203160607_add_deleted_fields.rb
|
161
165
|
- lib/gaku/archive.rb
|
162
166
|
- lib/gaku/archive/engine.rb
|
163
167
|
- lib/gaku_archive.rb
|
164
|
-
-
|
165
|
-
- db/migrate/20131203160607_add_deleted_fields.rb
|
168
|
+
- lib/generators/gaku_archive/install/install_generator.rb
|
166
169
|
homepage: http://github.com/Genshin/gaku
|
167
170
|
licenses: []
|
168
171
|
metadata: {}
|
@@ -172,19 +175,19 @@ require_paths:
|
|
172
175
|
- lib
|
173
176
|
required_ruby_version: !ruby/object:Gem::Requirement
|
174
177
|
requirements:
|
175
|
-
- - ~>
|
178
|
+
- - "~>"
|
176
179
|
- !ruby/object:Gem::Version
|
177
|
-
version: 2.
|
180
|
+
version: 2.1.3
|
178
181
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
179
182
|
requirements:
|
180
|
-
- -
|
183
|
+
- - ">="
|
181
184
|
- !ruby/object:Gem::Version
|
182
185
|
version: '0'
|
183
186
|
requirements:
|
184
187
|
- postgresql
|
185
188
|
- postgresql-contrib
|
186
189
|
rubyforge_project:
|
187
|
-
rubygems_version: 2.
|
190
|
+
rubygems_version: 2.4.5
|
188
191
|
signing_key:
|
189
192
|
specification_version: 4
|
190
193
|
summary: Archive engine for GAKU Engine
|