ecm_courses 0.0.1.pre → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +1 -1
- data/app/controllers/ecm/courses/course_categories_controller.rb +6 -5
- data/app/controllers/ecm/courses/course_dates_controller.rb +1 -1
- data/app/controllers/ecm/courses/courses_controller.rb +1 -1
- data/app/models/ecm/courses/course.rb +17 -19
- data/app/models/ecm/courses/course_category.rb +24 -23
- data/app/models/ecm/courses/course_date.rb +1 -1
- data/app/views/ecm/courses/course_categories/_course_category.html.erb +1 -1
- data/app/views/ecm/courses/course_categories/index.de.html.erb +1 -1
- data/config/locales/ecm.courses.course.de.yml +10 -9
- data/config/locales/ecm.courses.course.en.yml +10 -9
- data/config/locales/ecm.courses.course_category.de.yml +10 -9
- data/config/locales/ecm.courses.course_category.en.yml +11 -10
- data/config/locales/ecm.courses.course_date.de.yml +9 -8
- data/config/locales/ecm.courses.course_date.en.yml +12 -11
- data/config/locales/ecm.courses.de.yml +5 -1
- data/config/locales/ecm.courses.en.yml +5 -1
- data/config/locales/ecm.courses.routes.de.yml +4 -3
- data/config/locales/ecm.courses.routes.en.yml +4 -3
- data/{app/admin → lib/ecm/courses/active_admin}/ecm_courses_course_categories.rb +0 -0
- data/{app/admin → lib/ecm/courses/active_admin}/ecm_courses_course_dates.rb +0 -0
- data/{app/admin → lib/ecm/courses/active_admin}/ecm_courses_courses.rb +0 -0
- data/lib/ecm/courses/configuration.rb +17 -0
- data/lib/ecm/courses/engine.rb +7 -9
- data/lib/ecm/courses/version.rb +1 -1
- data/lib/ecm_courses.rb +9 -10
- data/lib/generators/ecm/courses/install/install_generator.rb +15 -0
- data/lib/generators/ecm/courses/install/templates/ecm_courses.rb +3 -0
- data/lib/generators/ecm/courses/locales/locales_generator.rb +29 -0
- metadata +312 -201
- data/config/locales/absence_validator.de.yml +0 -5
- data/config/locales/absence_validator.en.yml +0 -5
- data/lib/absence_validator.rb +0 -5
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d11ee3e4e1778bfe998ced01015d6f1f41c28b5a
|
4
|
+
data.tar.gz: 7c3ad6e7e81db5cf8c0440c52ccae779e88d7993
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c7c8887f3bd37b1624996339786b7d27fa4275791d31fc7dd4486fe51d2d8fdd3709cc8755aba29be1a77a23408ba2aca2d66b239fd3bb824f61af6591e7426f
|
7
|
+
data.tar.gz: a56e96ebf3b318cb808706b4d8c266812fd618218a9aeaf1493a2b522e1073c70781c5f0007e8998a8c221c3c9b92f64bcf0f588da0b589d662ea84de897ca57
|
data/MIT-LICENSE
CHANGED
@@ -1,16 +1,17 @@
|
|
1
|
-
class Ecm::Courses::CourseCategoriesController <
|
1
|
+
class Ecm::Courses::CourseCategoriesController < ApplicationController
|
2
2
|
def index
|
3
3
|
@course_categories = Ecm::Courses::CourseCategory.all
|
4
4
|
end
|
5
|
-
|
5
|
+
|
6
6
|
def show
|
7
7
|
@year = params[:year] ||= Time.zone.now.year
|
8
8
|
@month = params[:month] ||= Time.zone.now.month
|
9
9
|
|
10
10
|
@date = Date.strptime("#{@month}-#{@year}", "%m-%Y")
|
11
|
-
|
12
|
-
@course_category = Ecm::Courses::CourseCategory.includes(:ecm_courses_courses => [ :ecm_courses_course_dates ]).find(params[:id])
|
11
|
+
|
12
|
+
@course_category = ::Ecm::Courses::CourseCategory.includes(:ecm_courses_courses => [ :ecm_courses_course_dates ]).find(params[:id])
|
13
13
|
@courses = @course_category.ecm_courses_courses.all
|
14
|
-
@course_dates = @courses.reduce([]) { |cd, c| cd << c.ecm_courses_course_dates.for_month(@date).all }.flatten
|
14
|
+
@course_dates = @courses.reduce([]) { |cd, c| cd << c.ecm_courses_course_dates.for_month(@date).all }.flatten
|
15
15
|
end
|
16
16
|
end
|
17
|
+
|
@@ -1,47 +1,45 @@
|
|
1
1
|
class Ecm::Courses::Course < ActiveRecord::Base
|
2
2
|
# db settings
|
3
3
|
self.table_name = 'ecm_courses_courses'
|
4
|
-
|
4
|
+
|
5
5
|
# acts as list
|
6
6
|
acts_as_list :scope => :ecm_courses_course_category
|
7
|
-
|
7
|
+
|
8
8
|
# associations
|
9
|
-
belongs_to :ecm_courses_course_category,
|
10
|
-
:class_name => Ecm::Courses::CourseCategory,
|
9
|
+
belongs_to :ecm_courses_course_category,
|
10
|
+
:class_name => Ecm::Courses::CourseCategory,
|
11
11
|
:counter_cache => :ecm_courses_courses_count
|
12
|
-
|
13
|
-
has_many :ecm_courses_course_dates,
|
14
|
-
:class_name => Ecm::Courses::CourseDate,
|
12
|
+
|
13
|
+
has_many :ecm_courses_course_dates,
|
14
|
+
:class_name => Ecm::Courses::CourseDate,
|
15
15
|
:dependent => :destroy,
|
16
16
|
:foreign_key => :ecm_courses_course_id,
|
17
17
|
:order => 'start_at'
|
18
|
-
|
18
|
+
|
19
19
|
# attibutes
|
20
|
-
attr_accessible :description,
|
21
|
-
:ecm_courses_course_category_id,
|
22
|
-
:locale,
|
20
|
+
attr_accessible :description,
|
21
|
+
:ecm_courses_course_category_id,
|
22
|
+
:locale,
|
23
23
|
:name
|
24
|
-
# :name,
|
25
|
-
# :position,
|
26
|
-
# :slug
|
27
24
|
|
28
25
|
# friendly id
|
29
26
|
extend FriendlyId
|
30
27
|
friendly_id :name, :use => :slugged
|
31
|
-
|
32
|
-
# validations
|
28
|
+
|
29
|
+
# validations
|
33
30
|
validates :ecm_courses_course_category, :presence => true
|
34
31
|
validates :locale, :inclusion => { :in => I18n.available_locales.map(&:to_s) }, :unless => Proc.new { |c| c.locale.blank? }
|
35
32
|
validates :name, :presence => true
|
36
|
-
|
33
|
+
|
37
34
|
# public methods
|
38
35
|
|
39
36
|
def heading_name
|
40
37
|
locale_prefix = (locale.blank?) ? "" : "[#{locale}] "
|
41
38
|
"#{locale_prefix}#{name}"
|
42
39
|
end
|
43
|
-
|
40
|
+
|
44
41
|
def to_s
|
45
42
|
"#{ecm_courses_course_category.name} - #{name}"
|
46
|
-
end
|
43
|
+
end
|
47
44
|
end
|
45
|
+
|
@@ -1,57 +1,58 @@
|
|
1
1
|
class Ecm::Courses::CourseCategory < ActiveRecord::Base
|
2
2
|
# db settings
|
3
3
|
self.table_name = 'ecm_courses_course_categories'
|
4
|
-
|
4
|
+
|
5
5
|
# associations
|
6
|
-
has_many :ecm_courses_courses,
|
7
|
-
:class_name => Ecm::Courses::Course,
|
6
|
+
has_many :ecm_courses_courses,
|
7
|
+
:class_name => Ecm::Courses::Course,
|
8
8
|
:dependent => :destroy,
|
9
9
|
:foreign_key => :ecm_courses_course_category_id,
|
10
10
|
:order => 'position'
|
11
|
-
|
11
|
+
|
12
12
|
# attributes
|
13
|
-
attr_accessible :description,
|
14
|
-
:ecm_courses_courses_count,
|
15
|
-
:locale,
|
16
|
-
:name,
|
17
|
-
:parent_id,
|
18
|
-
:position,
|
13
|
+
attr_accessible :description,
|
14
|
+
:ecm_courses_courses_count,
|
15
|
+
:locale,
|
16
|
+
:name,
|
17
|
+
:parent_id,
|
18
|
+
:position,
|
19
19
|
:slug
|
20
|
-
|
20
|
+
|
21
21
|
# awesome nested set
|
22
22
|
acts_as_nested_set
|
23
23
|
default_scope :order => 'lft ASC'
|
24
|
-
|
24
|
+
|
25
25
|
# friendly id
|
26
26
|
extend FriendlyId
|
27
27
|
friendly_id :name, :use => :slugged
|
28
|
-
|
28
|
+
|
29
29
|
# validations
|
30
30
|
validates :name, :presence => true, :uniqueness => { :scope => [ :parent_id ] }
|
31
31
|
validates :locale, :presence => true, :if => :root?
|
32
32
|
validates :locale, :inclusion => { :in => I18n.available_locales.map(&:to_s) }, :unless => Proc.new { |cc| cc.locale.blank? }
|
33
|
-
validates :locale, :absence => true, :unless => :root?
|
34
|
-
|
33
|
+
validates :locale, :absence => true, :unless => :root?
|
34
|
+
|
35
35
|
# public methods
|
36
36
|
def index_name
|
37
37
|
if self.root?
|
38
38
|
"[#{self.locale}] #{self.name}"
|
39
39
|
else
|
40
40
|
"#{'    ' * self.level} |-- #{self.name}".html_safe
|
41
|
-
end
|
41
|
+
end
|
42
42
|
end
|
43
|
-
|
43
|
+
|
44
44
|
def to_s
|
45
45
|
name
|
46
|
-
end
|
46
|
+
end
|
47
47
|
|
48
48
|
def tree_name
|
49
49
|
root_prefix = (self.root?) ? "[#{self.locale}] " : ""
|
50
|
-
|
50
|
+
|
51
51
|
if ecm_courses_courses_count < 1
|
52
|
-
"#{root_prefix}#{to_s}"
|
53
|
-
else
|
54
|
-
"#{root_prefix}#{to_s} (#{ecm_courses_courses_count})"
|
52
|
+
"#{root_prefix}#{to_s}"
|
53
|
+
else
|
54
|
+
"#{root_prefix}#{to_s} (#{ecm_courses_courses_count})"
|
55
55
|
end
|
56
|
-
end
|
56
|
+
end
|
57
57
|
end
|
58
|
+
|
@@ -38,7 +38,7 @@ class Ecm::Courses::CourseDate < ActiveRecord::Base
|
|
38
38
|
# class methods
|
39
39
|
def self.for_month(date)
|
40
40
|
date ||= Time.zone.now.to_date
|
41
|
-
where(:start_at => (date.beginning_of_month..date.end_of_month))
|
41
|
+
where(:start_at => (date.beginning_of_month..(date.end_of_month + 1.day)))
|
42
42
|
end
|
43
43
|
|
44
44
|
# protected methods
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<% end %>
|
7
7
|
|
8
8
|
<div class="course_categories-tree">
|
9
|
-
<%= nested_li(course_category.descendants, {}) do |course_category| %>
|
9
|
+
<%= nested_li(course_category.descendants, {}) do |course_category, level| %>
|
10
10
|
<%= link_to course_category.tree_name, course_category %>
|
11
11
|
<% end %>
|
12
12
|
</div>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<h1><%= Ecm::Courses::CourseCategory.model_name.human(:count => :other) %></h1>
|
2
2
|
|
3
3
|
<div class="course_categories-tree">
|
4
|
-
<%= nested_li(@course_categories, {}) do |course_category| %>
|
4
|
+
<%= nested_li(@course_categories, {}) do |course_category, level| %>
|
5
5
|
<%= link_to course_category.tree_name, course_category %>
|
6
6
|
<% end %>
|
7
7
|
</div>
|
@@ -1,24 +1,25 @@
|
|
1
|
-
---
|
2
|
-
de:
|
3
|
-
activerecord:
|
4
|
-
attributes:
|
5
|
-
ecm/courses/course:
|
1
|
+
---
|
2
|
+
de:
|
3
|
+
activerecord:
|
4
|
+
attributes:
|
5
|
+
ecm/courses/course:
|
6
6
|
created_at: Erstellt am
|
7
7
|
description: Beschreibung
|
8
|
+
ecm_courses_course_category_id: Kurs Kategorie
|
8
9
|
ecm_courses_course_category: Kurs Kategorie
|
9
|
-
ecm_courses_course_dates: Kurs Termine
|
10
10
|
ecm_courses_course_dates_count: Kurs Termine
|
11
|
+
ecm_courses_course_dates: Kurs Termine
|
11
12
|
locale: Sprache
|
12
13
|
name: Name
|
13
14
|
position: Position
|
14
15
|
slug: Freundliche ID
|
15
16
|
updated_at: Aktualisiert am
|
16
|
-
ecm_courses_course_category_id: Kurs Kategorie
|
17
17
|
models:
|
18
|
-
ecm/courses/course:
|
18
|
+
ecm/courses/course:
|
19
19
|
one: Kurs
|
20
|
-
other: Kurse
|
20
|
+
other: Kurse
|
21
21
|
formtastic:
|
22
22
|
hints:
|
23
23
|
ecm/courses/course:
|
24
24
|
name: "z.B. Kochen für Anfänger"
|
25
|
+
|
@@ -1,24 +1,25 @@
|
|
1
|
-
---
|
2
|
-
en:
|
3
|
-
activerecord:
|
4
|
-
attributes:
|
5
|
-
ecm/courses/course:
|
1
|
+
---
|
2
|
+
en:
|
3
|
+
activerecord:
|
4
|
+
attributes:
|
5
|
+
ecm/courses/course:
|
6
6
|
created_at: created at
|
7
7
|
description: description
|
8
8
|
ecm_courses_course_category: course category
|
9
|
-
|
9
|
+
ecm_courses_course_category_id: course category
|
10
10
|
ecm_courses_course_dates_count: course dates
|
11
|
+
ecm_courses_course_dates: course dates
|
11
12
|
locale: language
|
12
13
|
name: name
|
13
14
|
position: position
|
14
15
|
slug: friendly id
|
15
16
|
updated_at: updated at
|
16
|
-
ecm_courses_course_category_id: course category
|
17
17
|
models:
|
18
|
-
ecm/courses/course:
|
18
|
+
ecm/courses/course:
|
19
19
|
one: "Course"
|
20
20
|
other: "Courses"
|
21
21
|
formtastic:
|
22
22
|
hints:
|
23
23
|
ecm/courses/course:
|
24
|
-
name: "i.e. Cooking for beginners"
|
24
|
+
name: "i.e. Cooking for beginners"
|
25
|
+
|
@@ -1,24 +1,25 @@
|
|
1
|
-
---
|
2
|
-
de:
|
3
|
-
activerecord:
|
4
|
-
attributes:
|
5
|
-
ecm/courses/course_category:
|
1
|
+
---
|
2
|
+
de:
|
3
|
+
activerecord:
|
4
|
+
attributes:
|
5
|
+
ecm/courses/course_category:
|
6
6
|
children: "Unter Kategorien"
|
7
7
|
created_at: Erstellt am
|
8
8
|
depth: Tiefe
|
9
9
|
description: Beschreibung
|
10
|
+
ecm_courses_courses_count: Kurse
|
10
11
|
ecm_courses_courses: Kurse
|
11
|
-
ecm_courses_courses_count: Kurse
|
12
12
|
lft: Links
|
13
13
|
locale: Sprache
|
14
14
|
name: Name
|
15
|
+
parent_id: Über Kategorie
|
15
16
|
parent: Über Kategorie
|
16
|
-
parent_id: Über Kategorie
|
17
17
|
position: Position
|
18
18
|
rgt: Rechts
|
19
19
|
slug: Freundliche ID
|
20
20
|
updated_at: Aktualsiert am
|
21
21
|
models:
|
22
|
-
ecm/courses/course_category:
|
22
|
+
ecm/courses/course_category:
|
23
23
|
one: "Kurs Kategorie"
|
24
|
-
other: "Kurs Kategorien"
|
24
|
+
other: "Kurs Kategorien"
|
25
|
+
|
@@ -1,24 +1,25 @@
|
|
1
|
-
---
|
2
|
-
en:
|
3
|
-
activerecord:
|
4
|
-
attributes:
|
5
|
-
ecm/courses/course_category:
|
6
|
-
children: "sub categories"
|
1
|
+
---
|
2
|
+
en:
|
3
|
+
activerecord:
|
4
|
+
attributes:
|
5
|
+
ecm/courses/course_category:
|
6
|
+
children: "sub categories"
|
7
7
|
created_at: created at
|
8
8
|
depth: depth
|
9
9
|
description: description
|
10
|
-
ecm_courses_courses: courses
|
11
10
|
ecm_courses_courses_count: courses
|
11
|
+
ecm_courses_courses: courses
|
12
12
|
lft: left
|
13
13
|
locale: language
|
14
14
|
name: name
|
15
|
+
parent_id: parent cateogory
|
15
16
|
parent: parent category
|
16
|
-
parent_id: parent cateogory
|
17
17
|
position: position
|
18
18
|
rgt: right
|
19
19
|
slug: friendly id
|
20
20
|
updated_at: updated at
|
21
21
|
models:
|
22
|
-
ecm/courses/course_category:
|
22
|
+
ecm/courses/course_category:
|
23
23
|
one: "course category"
|
24
|
-
other: "course_categories"
|
24
|
+
other: "course_categories"
|
25
|
+
|
@@ -1,19 +1,20 @@
|
|
1
|
-
---
|
2
|
-
de:
|
3
|
-
activerecord:
|
4
|
-
attributes:
|
5
|
-
ecm/courses/course_date:
|
1
|
+
---
|
2
|
+
de:
|
3
|
+
activerecord:
|
4
|
+
attributes:
|
5
|
+
ecm/courses/course_date:
|
6
6
|
created_at: Erstellt am
|
7
7
|
description: Beschreibung
|
8
8
|
duration_in_minutes: Dauer
|
9
|
-
ecm_courses_course: Kurs
|
10
9
|
ecm_courses_course_category: Kurs Kategorie
|
11
10
|
ecm_courses_course_id: Kurs
|
11
|
+
ecm_courses_course: Kurs
|
12
12
|
end_at: Endet um
|
13
13
|
name: Name
|
14
14
|
start_at: Beginnt um
|
15
15
|
updated_at: Aktualisiert am
|
16
16
|
models:
|
17
|
-
ecm/courses/course_date:
|
17
|
+
ecm/courses/course_date:
|
18
18
|
one: "Kurs Termin"
|
19
|
-
other: "Kurs Termine"
|
19
|
+
other: "Kurs Termine"
|
20
|
+
|
@@ -1,19 +1,20 @@
|
|
1
|
-
---
|
2
|
-
en:
|
3
|
-
activerecord:
|
4
|
-
attributes:
|
5
|
-
ecm/courses/course_date:
|
1
|
+
---
|
2
|
+
en:
|
3
|
+
activerecord:
|
4
|
+
attributes:
|
5
|
+
ecm/courses/course_date:
|
6
6
|
created_at: created at
|
7
7
|
description: description
|
8
|
-
duration_in_minutes: duration
|
9
|
-
ecm_courses_course: course
|
8
|
+
duration_in_minutes: duration
|
10
9
|
ecm_courses_course_category: course category
|
11
|
-
|
10
|
+
ecm_courses_course: course
|
11
|
+
ecm_courses_course_id: course
|
12
12
|
end_at: end at
|
13
|
-
name: name
|
13
|
+
name: name
|
14
14
|
start_at: begin at
|
15
15
|
updated_at: updated at
|
16
16
|
models:
|
17
|
-
ecm/courses/course_date:
|
17
|
+
ecm/courses/course_date:
|
18
18
|
one: "course date"
|
19
|
-
other: "course dates"
|
19
|
+
other: "course dates"
|
20
|
+
|
@@ -1,4 +1,7 @@
|
|
1
1
|
de:
|
2
|
+
date:
|
3
|
+
formats:
|
4
|
+
month_with_year: %B %Y
|
2
5
|
ecm:
|
3
6
|
courses:
|
4
7
|
active_admin:
|
@@ -11,4 +14,5 @@ de:
|
|
11
14
|
back_to_index: "Zurück zur Übersicht"
|
12
15
|
messages:
|
13
16
|
not_found: "Kurs Kategorie \"%{name}\" nicht gefunden."
|
14
|
-
no_courses_available: "Keine Kurse in dieser Kategorie vorhanden."
|
17
|
+
no_courses_available: "Keine Kurse in dieser Kategorie vorhanden."
|
18
|
+
|
@@ -1,4 +1,7 @@
|
|
1
1
|
en:
|
2
|
+
date:
|
3
|
+
formats:
|
4
|
+
month_with_year: %B %Y
|
2
5
|
ecm:
|
3
6
|
courses:
|
4
7
|
active_admin:
|
@@ -11,4 +14,5 @@ en:
|
|
11
14
|
back_to_index: "Back to the index"
|
12
15
|
messages:
|
13
16
|
not_found: "Course category \"%{name}\" not found."
|
14
|
-
no_courses_available: "There are now courses in this category."
|
17
|
+
no_courses_available: "There are now courses in this category."
|
18
|
+
|
@@ -1,5 +1,6 @@
|
|
1
1
|
de:
|
2
2
|
resources:
|
3
|
-
ecm_courses_courses: "kurse"
|
4
|
-
ecm_courses_course_categories: "kurs-kategorien"
|
5
|
-
ecm_courses_course_dates: "kurs-termine"
|
3
|
+
ecm_courses_courses: "kurse"
|
4
|
+
ecm_courses_course_categories: "kurs-kategorien"
|
5
|
+
ecm_courses_course_dates: "kurs-termine"
|
6
|
+
|
@@ -1,5 +1,6 @@
|
|
1
1
|
en:
|
2
2
|
resources:
|
3
|
-
ecm_courses_courses: "courses"
|
4
|
-
ecm_courses_course_categories: "course-categories"
|
5
|
-
ecm_courses_course_dates: "course-dates"
|
3
|
+
ecm_courses_courses: "courses"
|
4
|
+
ecm_courses_course_categories: "course-categories"
|
5
|
+
ecm_courses_course_dates: "course-dates"
|
6
|
+
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'active_support/core_ext/module/delegation'
|
2
|
+
require 'active_support/core_ext/module/attribute_accessors'
|
3
|
+
require 'active_support/hash_with_indifferent_access'
|
4
|
+
|
5
|
+
module Ecm
|
6
|
+
module Courses
|
7
|
+
module Configuration
|
8
|
+
def configure
|
9
|
+
yield self
|
10
|
+
end
|
11
|
+
|
12
|
+
# mattr_accessor :foo
|
13
|
+
# @@foo = nil
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
data/lib/ecm/courses/engine.rb
CHANGED
@@ -1,15 +1,13 @@
|
|
1
1
|
module Ecm
|
2
2
|
module Courses
|
3
|
-
class Engine < Rails::Engine
|
3
|
+
class Engine < ::Rails::Engine
|
4
4
|
# active admin
|
5
|
-
initializer :
|
6
|
-
ActiveAdmin.setup do |active_admin_config|
|
7
|
-
active_admin_config.load_paths += Dir[File.dirname(__FILE__) + '
|
5
|
+
initializer :ecm_links_engine do
|
6
|
+
::ActiveAdmin.setup do |active_admin_config|
|
7
|
+
active_admin_config.load_paths += Dir[File.dirname(__FILE__) + '/active_admin']
|
8
8
|
end
|
9
|
-
end
|
10
|
-
|
11
|
-
# locales
|
12
|
-
paths["config/locales"] << File.dirname(__FILE__) + '/../../../config/locales'
|
9
|
+
end if defined?(::ActiveAdmin)
|
13
10
|
end
|
14
11
|
end
|
15
|
-
end
|
12
|
+
end
|
13
|
+
|
data/lib/ecm/courses/version.rb
CHANGED
data/lib/ecm_courses.rb
CHANGED
@@ -1,19 +1,18 @@
|
|
1
|
-
require '
|
2
|
-
|
3
|
-
require 'absence_validator'
|
1
|
+
require 'active_admin-acts_as_list'
|
4
2
|
require 'acts_as_list'
|
5
3
|
require 'awesome_nested_set'
|
6
4
|
require 'awesome_nested_set-tools'
|
5
|
+
require 'ecm_calendar_helper'
|
7
6
|
require 'friendly_id'
|
8
|
-
|
9
|
-
require 'active_admin-acts_as_list'
|
10
|
-
|
11
|
-
# Ecm::Admin should do this!
|
12
|
-
require 'activeadmin'
|
13
|
-
require 'sass-rails'
|
14
|
-
require 'meta_search'
|
7
|
+
require 'rails_tools-absence_validator'
|
15
8
|
|
16
9
|
require 'ecm/courses/engine'
|
10
|
+
require 'ecm/courses/configuration'
|
17
11
|
require 'ecm/courses/routing'
|
18
12
|
|
13
|
+
module Ecm
|
14
|
+
module Courses
|
15
|
+
extend Configuration
|
16
|
+
end
|
17
|
+
end
|
19
18
|
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Ecm
|
2
|
+
module Courses
|
3
|
+
module Generators
|
4
|
+
class InstallGenerator < Rails::Generators::Base
|
5
|
+
desc "Generates the intializer"
|
6
|
+
|
7
|
+
source_root File.expand_path('../templates', __FILE__)
|
8
|
+
|
9
|
+
def generate_intializer
|
10
|
+
copy_file "ecm_courses.rb", "config/initializers/ecm_courses.rb"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module Ecm
|
2
|
+
module Courses
|
3
|
+
module Generators
|
4
|
+
class LocalesGenerator < Rails::Generators::Base
|
5
|
+
desc "Copies the locale files to your application"
|
6
|
+
|
7
|
+
source_root File.expand_path('../../../../../../config/locales', __FILE__)
|
8
|
+
|
9
|
+
def generate_locales
|
10
|
+
copy_file "ecm.courses.en.yml", "config/locales/ecm.courses.en.yml"
|
11
|
+
copy_file "ecm.courses.de.yml", "config/locales/ecm.courses.de.yml"
|
12
|
+
|
13
|
+
copy_file "ecm.courses.course.en.yml", "config/locales/ecm.courses.course.en.yml"
|
14
|
+
copy_file "ecm.courses.course.de.yml", "config/locales/ecm.courses.course.de.yml"
|
15
|
+
|
16
|
+
copy_file "ecm.courses.course_category.en.yml", "config/locales/ecm.courses.course_category.en.yml"
|
17
|
+
copy_file "ecm.courses.course_category.de.yml", "config/locales/ecm.courses.course_category.de.yml"
|
18
|
+
|
19
|
+
copy_file "ecm.courses.course_date.en.yml", "config/locales/ecm.courses.course_date.en.yml"
|
20
|
+
copy_file "ecm.courses.course_date.de.yml", "config/locales/ecm.courses.course_date.de.yml"
|
21
|
+
|
22
|
+
copy_file "ecm.courses.routes.en.yml", "config/locales/ecm.courses.routes.en.yml"
|
23
|
+
copy_file "ecm.courses.routes.de.yml", "config/locales/ecm.courses.routes.de.yml"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
metadata
CHANGED
@@ -1,289 +1,400 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecm_courses
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 0.0.1.pre
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
6
5
|
platform: ruby
|
7
|
-
authors:
|
6
|
+
authors:
|
8
7
|
- Roberto Vasquez Angel
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2016-10-07 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
16
14
|
name: rails
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 3.2.6
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.2.12
|
24
20
|
type: :runtime
|
25
|
-
version_requirements: *id001
|
26
|
-
- !ruby/object:Gem::Dependency
|
27
|
-
name: acts_as_list
|
28
21
|
prerelease: false
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.2.12
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: acts_as_list
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
35
34
|
type: :runtime
|
36
|
-
version_requirements: *id002
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: active_admin-acts_as_list
|
39
35
|
prerelease: false
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: active_admin-acts_as_list
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
46
48
|
type: :runtime
|
47
|
-
version_requirements: *id003
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: active_admin-awesome_nested_set
|
50
49
|
prerelease: false
|
51
|
-
|
52
|
-
|
53
|
-
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: active_admin-awesome_nested_set
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
54
59
|
- - ">="
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
version:
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
57
62
|
type: :runtime
|
58
|
-
version_requirements: *id004
|
59
|
-
- !ruby/object:Gem::Dependency
|
60
|
-
name: awesome_nested_set
|
61
63
|
prerelease: false
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: awesome_nested_set
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
68
76
|
type: :runtime
|
69
|
-
version_requirements: *id005
|
70
|
-
- !ruby/object:Gem::Dependency
|
71
|
-
name: awesome_nested_set-tools
|
72
77
|
prerelease: false
|
73
|
-
|
74
|
-
|
75
|
-
|
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: awesome_nested_set-tools
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
76
87
|
- - ">="
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
version:
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
79
90
|
type: :runtime
|
80
|
-
version_requirements: *id006
|
81
|
-
- !ruby/object:Gem::Dependency
|
82
|
-
name: ecm_calendar_helper
|
83
91
|
prerelease: false
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: ecm_calendar_helper
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
90
104
|
type: :runtime
|
91
|
-
|
92
|
-
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
93
112
|
name: friendly_id
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
94
119
|
prerelease: false
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rails_tools-absence_validator
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
101
132
|
type: :runtime
|
102
|
-
version_requirements: *id008
|
103
|
-
- !ruby/object:Gem::Dependency
|
104
|
-
name: sqlite3
|
105
133
|
prerelease: false
|
106
|
-
|
107
|
-
|
108
|
-
requirements:
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
109
136
|
- - ">="
|
110
|
-
- !ruby/object:Gem::Version
|
111
|
-
version:
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: sqlite3
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
112
146
|
type: :development
|
113
|
-
version_requirements: *id009
|
114
|
-
- !ruby/object:Gem::Dependency
|
115
|
-
name: thin
|
116
147
|
prerelease: false
|
117
|
-
|
118
|
-
|
119
|
-
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: thin
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
120
157
|
- - ">="
|
121
|
-
- !ruby/object:Gem::Version
|
122
|
-
version:
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
123
160
|
type: :development
|
124
|
-
version_requirements: *id010
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: yard
|
127
161
|
prerelease: false
|
128
|
-
|
129
|
-
|
130
|
-
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: yard
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
131
171
|
- - ">="
|
132
|
-
- !ruby/object:Gem::Version
|
133
|
-
version:
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
134
174
|
type: :development
|
135
|
-
|
136
|
-
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
137
182
|
name: sass-rails
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :development
|
138
189
|
prerelease: false
|
139
|
-
|
140
|
-
|
141
|
-
requirements:
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
142
192
|
- - ">="
|
143
|
-
- !ruby/object:Gem::Version
|
144
|
-
version:
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: coffee-rails
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
145
202
|
type: :development
|
146
|
-
|
147
|
-
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
148
210
|
name: meta_search
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: 1.1.0.pre
|
216
|
+
type: :development
|
149
217
|
prerelease: false
|
150
|
-
|
151
|
-
|
152
|
-
requirements:
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
153
220
|
- - ">="
|
154
|
-
- !ruby/object:Gem::Version
|
221
|
+
- !ruby/object:Gem::Version
|
155
222
|
version: 1.1.0.pre
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: capybara
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - ">="
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
156
230
|
type: :development
|
157
|
-
|
158
|
-
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - ">="
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '0'
|
237
|
+
- !ruby/object:Gem::Dependency
|
159
238
|
name: rspec-rails
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - ">="
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: '0'
|
244
|
+
type: :development
|
160
245
|
prerelease: false
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
246
|
+
version_requirements: !ruby/object:Gem::Requirement
|
247
|
+
requirements:
|
248
|
+
- - ">="
|
249
|
+
- !ruby/object:Gem::Version
|
250
|
+
version: '0'
|
251
|
+
- !ruby/object:Gem::Dependency
|
252
|
+
name: shoulda-matchers
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - ">="
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: '0'
|
167
258
|
type: :development
|
168
|
-
|
169
|
-
|
259
|
+
prerelease: false
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - ">="
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: '0'
|
265
|
+
- !ruby/object:Gem::Dependency
|
170
266
|
name: factory_girl_rails
|
267
|
+
requirement: !ruby/object:Gem::Requirement
|
268
|
+
requirements:
|
269
|
+
- - "~>"
|
270
|
+
- !ruby/object:Gem::Version
|
271
|
+
version: '1.0'
|
272
|
+
type: :development
|
171
273
|
prerelease: false
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
274
|
+
version_requirements: !ruby/object:Gem::Requirement
|
275
|
+
requirements:
|
276
|
+
- - "~>"
|
277
|
+
- !ruby/object:Gem::Version
|
278
|
+
version: '1.0'
|
279
|
+
- !ruby/object:Gem::Dependency
|
280
|
+
name: rb-inotify
|
281
|
+
requirement: !ruby/object:Gem::Requirement
|
282
|
+
requirements:
|
283
|
+
- - "~>"
|
284
|
+
- !ruby/object:Gem::Version
|
285
|
+
version: 0.8.8
|
178
286
|
type: :development
|
179
|
-
version_requirements: *id015
|
180
|
-
- !ruby/object:Gem::Dependency
|
181
|
-
name: shoulda-matchers
|
182
287
|
prerelease: false
|
183
|
-
|
184
|
-
|
185
|
-
|
288
|
+
version_requirements: !ruby/object:Gem::Requirement
|
289
|
+
requirements:
|
290
|
+
- - "~>"
|
291
|
+
- !ruby/object:Gem::Version
|
292
|
+
version: 0.8.8
|
293
|
+
- !ruby/object:Gem::Dependency
|
294
|
+
name: guard-rspec
|
295
|
+
requirement: !ruby/object:Gem::Requirement
|
296
|
+
requirements:
|
186
297
|
- - ">="
|
187
|
-
- !ruby/object:Gem::Version
|
188
|
-
version:
|
298
|
+
- !ruby/object:Gem::Version
|
299
|
+
version: '0'
|
189
300
|
type: :development
|
190
|
-
version_requirements: *id016
|
191
|
-
- !ruby/object:Gem::Dependency
|
192
|
-
name: capybara
|
193
301
|
prerelease: false
|
194
|
-
|
195
|
-
|
196
|
-
|
302
|
+
version_requirements: !ruby/object:Gem::Requirement
|
303
|
+
requirements:
|
304
|
+
- - ">="
|
305
|
+
- !ruby/object:Gem::Version
|
306
|
+
version: '0'
|
307
|
+
- !ruby/object:Gem::Dependency
|
308
|
+
name: guard-bundler
|
309
|
+
requirement: !ruby/object:Gem::Requirement
|
310
|
+
requirements:
|
197
311
|
- - ">="
|
198
|
-
- !ruby/object:Gem::Version
|
199
|
-
version:
|
312
|
+
- !ruby/object:Gem::Version
|
313
|
+
version: '0'
|
200
314
|
type: :development
|
201
|
-
|
315
|
+
prerelease: false
|
316
|
+
version_requirements: !ruby/object:Gem::Requirement
|
317
|
+
requirements:
|
318
|
+
- - ">="
|
319
|
+
- !ruby/object:Gem::Version
|
320
|
+
version: '0'
|
202
321
|
description: Couse management module for active admin.
|
203
|
-
email:
|
322
|
+
email:
|
204
323
|
- roberto@vasquez-angel.de
|
205
324
|
executables: []
|
206
|
-
|
207
325
|
extensions: []
|
208
|
-
|
209
326
|
extra_rdoc_files: []
|
210
|
-
|
211
|
-
|
327
|
+
files:
|
328
|
+
- MIT-LICENSE
|
329
|
+
- README.rdoc
|
330
|
+
- Rakefile
|
331
|
+
- app/assets/images/ecm_courses/course_categories/last_node.png
|
332
|
+
- app/assets/images/ecm_courses/course_categories/node.png
|
333
|
+
- app/assets/images/ecm_courses/course_categories/vertical_line.png
|
334
|
+
- app/assets/stylesheets/ecm_courses.css
|
335
|
+
- app/assets/stylesheets/ecm_courses/courses_categories.css.erb
|
336
|
+
- app/controllers/ecm/courses/course_categories_controller.rb
|
212
337
|
- app/controllers/ecm/courses/course_dates_controller.rb
|
213
338
|
- app/controllers/ecm/courses/courses_controller.rb
|
214
|
-
- app/
|
339
|
+
- app/models/ecm/courses/course.rb
|
340
|
+
- app/models/ecm/courses/course_category.rb
|
341
|
+
- app/models/ecm/courses/course_date.rb
|
215
342
|
- app/views/ecm/courses/course_categories/_course_category.html.erb
|
216
343
|
- app/views/ecm/courses/course_categories/index.de.html.erb
|
217
344
|
- app/views/ecm/courses/course_categories/show.de.html.erb
|
345
|
+
- app/views/ecm/courses/course_dates/_course_date.html.erb
|
218
346
|
- app/views/ecm/courses/course_dates/index.de.html.erb
|
219
347
|
- app/views/ecm/courses/course_dates/show.de.html.erb
|
220
|
-
- app/views/ecm/courses/course_dates/_course_date.html.erb
|
221
348
|
- app/views/ecm/courses/courses/_course.html.erb
|
349
|
+
- app/views/ecm/courses/courses/calendar.de.html.erb
|
222
350
|
- app/views/ecm/courses/courses/index.de.html.erb
|
223
351
|
- app/views/ecm/courses/courses/show.de.html.erb
|
224
|
-
-
|
225
|
-
- app/models/ecm/courses/course_category.rb
|
226
|
-
- app/models/ecm/courses/course_date.rb
|
227
|
-
- app/models/ecm/courses/course.rb
|
228
|
-
- app/admin/ecm_courses_courses.rb
|
229
|
-
- app/admin/ecm_courses_course_categories.rb
|
230
|
-
- app/admin/ecm_courses_course_dates.rb
|
231
|
-
- app/assets/images/ecm_courses/course_categories/last_node.png
|
232
|
-
- app/assets/images/ecm_courses/course_categories/node.png
|
233
|
-
- app/assets/images/ecm_courses/course_categories/vertical_line.png
|
234
|
-
- app/assets/stylesheets/ecm_courses/courses_categories.css.erb
|
235
|
-
- app/assets/stylesheets/ecm_courses.css
|
236
|
-
- config/locales/ecm.courses.en.yml
|
237
|
-
- config/locales/absence_validator.de.yml
|
352
|
+
- config/locales/ecm.courses.course.de.yml
|
238
353
|
- config/locales/ecm.courses.course.en.yml
|
239
|
-
- config/locales/
|
240
|
-
- config/locales/ecm.courses.
|
354
|
+
- config/locales/ecm.courses.course_category.de.yml
|
355
|
+
- config/locales/ecm.courses.course_category.en.yml
|
356
|
+
- config/locales/ecm.courses.course_date.de.yml
|
241
357
|
- config/locales/ecm.courses.course_date.en.yml
|
242
|
-
- config/locales/ecm.courses.
|
358
|
+
- config/locales/ecm.courses.de.yml
|
359
|
+
- config/locales/ecm.courses.en.yml
|
243
360
|
- config/locales/ecm.courses.routes.de.yml
|
244
|
-
- config/locales/ecm.courses.course_date.de.yml
|
245
|
-
- config/locales/ecm.courses.course_category.en.yml
|
246
|
-
- config/locales/ecm.courses.course_category.de.yml
|
247
361
|
- config/locales/ecm.courses.routes.en.yml
|
248
|
-
- db/migrate/003_create_ecm_courses_course_dates.rb
|
249
|
-
- db/migrate/002_create_ecm_courses_courses.rb
|
250
362
|
- db/migrate/001_create_ecm_courses_course_categories.rb
|
251
|
-
-
|
252
|
-
-
|
363
|
+
- db/migrate/002_create_ecm_courses_courses.rb
|
364
|
+
- db/migrate/003_create_ecm_courses_course_dates.rb
|
365
|
+
- lib/ecm/courses/active_admin/ecm_courses_course_categories.rb
|
366
|
+
- lib/ecm/courses/active_admin/ecm_courses_course_dates.rb
|
367
|
+
- lib/ecm/courses/active_admin/ecm_courses_courses.rb
|
368
|
+
- lib/ecm/courses/configuration.rb
|
253
369
|
- lib/ecm/courses/engine.rb
|
254
|
-
- lib/ecm/courses/version.rb
|
255
370
|
- lib/ecm/courses/routing.rb
|
256
|
-
- lib/
|
257
|
-
-
|
258
|
-
-
|
259
|
-
-
|
371
|
+
- lib/ecm/courses/version.rb
|
372
|
+
- lib/ecm_courses.rb
|
373
|
+
- lib/generators/ecm/courses/install/install_generator.rb
|
374
|
+
- lib/generators/ecm/courses/install/templates/ecm_courses.rb
|
375
|
+
- lib/generators/ecm/courses/locales/locales_generator.rb
|
376
|
+
- lib/tasks/ecm_courses_tasks.rake
|
260
377
|
homepage: https://github.com/robotex82/ecm_courses
|
261
378
|
licenses: []
|
262
|
-
|
379
|
+
metadata: {}
|
263
380
|
post_install_message:
|
264
381
|
rdoc_options: []
|
265
|
-
|
266
|
-
require_paths:
|
382
|
+
require_paths:
|
267
383
|
- lib
|
268
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
269
|
-
|
270
|
-
|
384
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
385
|
+
requirements:
|
386
|
+
- - ">="
|
387
|
+
- !ruby/object:Gem::Version
|
388
|
+
version: '0'
|
389
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
390
|
+
requirements:
|
271
391
|
- - ">="
|
272
|
-
- !ruby/object:Gem::Version
|
273
|
-
version:
|
274
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
275
|
-
none: false
|
276
|
-
requirements:
|
277
|
-
- - ">"
|
278
|
-
- !ruby/object:Gem::Version
|
279
|
-
version: 1.3.1
|
392
|
+
- !ruby/object:Gem::Version
|
393
|
+
version: '0'
|
280
394
|
requirements: []
|
281
|
-
|
282
395
|
rubyforge_project:
|
283
|
-
rubygems_version:
|
396
|
+
rubygems_version: 2.4.8
|
284
397
|
signing_key:
|
285
|
-
specification_version:
|
398
|
+
specification_version: 4
|
286
399
|
summary: Course management module.
|
287
400
|
test_files: []
|
288
|
-
|
289
|
-
has_rdoc:
|