ecm_courses2 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +22 -0
- data/Rakefile +2 -0
- data/app/models/ecm/courses/course.rb +7 -9
- data/app/models/ecm/courses/course_category.rb +6 -15
- data/app/models/ecm/courses/course_date.rb +3 -10
- data/app/views/ecm/courses/course_categories/_course_category.haml +8 -1
- data/app/views/ecm/courses/course_categories/show.haml +9 -8
- data/app/views/ecm/courses/course_dates/show.haml +2 -2
- data/app/views/ecm/courses/courses/_course.haml +3 -3
- data/app/views/ecm/courses/courses/calendar.haml +2 -2
- data/config/locales/locales/ecm.courses.routes.de.yml +3 -3
- data/config/locales/locales/ecm.courses.routes.en.yml +3 -3
- data/config/routes.rb +5 -15
- data/lib/ecm/courses/version.rb +1 -1
- data/lib/ecm_courses2.rb +5 -0
- data/lib/generators/ecm/courses/install/install_generator.rb +21 -0
- data/lib/generators/ecm/courses/install/templates/ecm_courses.rb +7 -0
- data/lib/generators/ecm/courses/install/templates/routes.source +6 -0
- data/lib/generators/ecm/courses/locales/locales_generator.rb +29 -0
- data/spec/factories/ecm/courses/course_date_factories.rb +1 -1
- data/spec/factories/ecm/courses/course_factories.rb +1 -1
- metadata +245 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a2bd2bb0dd158d4fcd35a5ae96bbaab3a2d56fd
|
4
|
+
data.tar.gz: b0c89bfb6e2188e28f5b1b22d3885e625b9c1c24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f90a3ecc341fa54341a6bc41ade7986bb4b76415b76220d83e83885c2c2b3b6cd4744599ea832280e327ebc6c8234bbd31140c21124b9691f94f1a57f81e3ac5
|
7
|
+
data.tar.gz: 662027d927f382565cc6f88ea117650bfe6de8fd4d3828f9bac83cd30d340f40670f8133fb2689e045e4d1e3b3087799d215c0806b884c127a3ceb457e2fa821
|
data/README.rdoc
CHANGED
@@ -1,3 +1,25 @@
|
|
1
1
|
= Ecm::Courses
|
2
2
|
|
3
|
+
== Installation
|
4
|
+
|
5
|
+
Add it to your gemfile and bundle:
|
6
|
+
|
7
|
+
# Gemfile
|
8
|
+
gem 'ecm_courses2'
|
9
|
+
|
10
|
+
# console
|
11
|
+
bundle
|
12
|
+
|
13
|
+
Add migrations and migrate:
|
14
|
+
|
15
|
+
# console
|
16
|
+
rake ecm_courses:install:migrations && rake db:migrate
|
17
|
+
|
18
|
+
Install:
|
19
|
+
|
20
|
+
# console
|
21
|
+
rails g ecm:courses:install
|
22
|
+
|
23
|
+
== License
|
24
|
+
|
3
25
|
This project rocks and uses MIT-LICENSE.
|
data/Rakefile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Ecm::Courses
|
2
2
|
class Course < ApplicationRecord
|
3
3
|
# acts as list
|
4
|
-
acts_as_list scope: :
|
4
|
+
acts_as_list scope: :course_category
|
5
5
|
|
6
6
|
# associations
|
7
7
|
belongs_to :course_category
|
@@ -9,24 +9,22 @@ module Ecm::Courses
|
|
9
9
|
has_many :course_dates, ->() { order(:start_at) },
|
10
10
|
dependent: :destroy
|
11
11
|
|
12
|
-
# # attibutes
|
13
|
-
# attr_accessible :description,
|
14
|
-
# :ecm_courses_course_category_id,
|
15
|
-
# :locale,
|
16
|
-
# :name
|
17
|
-
|
18
12
|
# friendly id
|
19
13
|
extend FriendlyId
|
20
14
|
friendly_id :name, use: [:slugged]
|
21
15
|
|
16
|
+
# scopes
|
17
|
+
default_scope { includes(:course_category).order('ecm_courses_course_categories.name, ecm_courses_courses.position ASC') }
|
18
|
+
|
22
19
|
# validations
|
23
20
|
validates :course_category, presence: true
|
24
21
|
validates :locale, inclusion: { in: I18n.available_locales.map(&:to_s) }, allow_blank: true
|
25
22
|
validates :name, presence: true
|
26
23
|
|
27
24
|
def heading_name
|
28
|
-
locale_prefix = locale.blank? ? '' : "[#{locale}] "
|
29
|
-
"#{locale_prefix}#{name}"
|
25
|
+
# locale_prefix = locale.blank? ? '' : "[#{locale}] "
|
26
|
+
# "#{locale_prefix}#{name}"
|
27
|
+
name
|
30
28
|
end
|
31
29
|
|
32
30
|
def to_s
|
@@ -4,32 +4,23 @@ module Ecm::Courses
|
|
4
4
|
has_many :courses, ->() { order(:position) },
|
5
5
|
dependent: :destroy
|
6
6
|
|
7
|
-
# # attributes
|
8
|
-
# attr_accessible :description,
|
9
|
-
# :ecm_courses_courses_count,
|
10
|
-
# :locale,
|
11
|
-
# :name,
|
12
|
-
# :parent_id,
|
13
|
-
# :position,
|
14
|
-
# :slug
|
15
|
-
|
16
7
|
# awesome nested set
|
17
8
|
acts_as_nested_set
|
18
|
-
|
9
|
+
default_scope { order('lft ASC') }
|
19
10
|
|
20
11
|
# friendly id
|
21
12
|
extend FriendlyId
|
22
13
|
friendly_id :name, use: [:slugged]
|
23
14
|
|
24
15
|
# validations
|
25
|
-
validates :name,
|
16
|
+
validates :name, presence: true, uniqueness: { scope: [:parent_id] }
|
26
17
|
validates :locale, presence: true, if: :root?
|
27
18
|
validates :locale, inclusion: { in: I18n.available_locales.map(&:to_s) }, allow_blank: true
|
28
19
|
validates :locale, absence: true, unless: :root?
|
29
20
|
|
30
21
|
def index_name
|
31
22
|
if root?
|
32
|
-
"[#{locale}] #{name}"
|
23
|
+
#{ }"[#{locale}] #{name}"
|
33
24
|
else
|
34
25
|
"#{'    ' * level} |-- #{name}".html_safe
|
35
26
|
end
|
@@ -44,12 +35,12 @@ module Ecm::Courses
|
|
44
35
|
end
|
45
36
|
|
46
37
|
def tree_name
|
47
|
-
root_prefix = root? ? "[#{locale}] " : ''
|
38
|
+
# root_prefix = root? ? "[#{locale}] " : ''
|
48
39
|
|
49
40
|
if courses_count < 1
|
50
|
-
|
41
|
+
self
|
51
42
|
else
|
52
|
-
"#{
|
43
|
+
"#{self} (#{courses_count})"
|
53
44
|
end
|
54
45
|
end
|
55
46
|
end
|
@@ -6,20 +6,13 @@ module Ecm::Courses
|
|
6
6
|
has_one :course_category,
|
7
7
|
through: :course
|
8
8
|
|
9
|
-
# # attributes
|
10
|
-
# attr_accessible :description,
|
11
|
-
# :ecm_courses_course_id,
|
12
|
-
# :end_at,
|
13
|
-
# # :slug,
|
14
|
-
# :start_at
|
15
|
-
|
16
9
|
# callbacks
|
17
10
|
after_initialize :set_defaults, if: :new_record?
|
18
11
|
|
19
12
|
# validations
|
20
|
-
validates :
|
21
|
-
validates :end_at,
|
22
|
-
validates :start_at,
|
13
|
+
validates :course, presence: true
|
14
|
+
validates :end_at, presence: true
|
15
|
+
validates :start_at, presence: true
|
23
16
|
|
24
17
|
def self.for_month(date)
|
25
18
|
date ||= Time.zone.now.to_date
|
@@ -3,14 +3,21 @@
|
|
3
3
|
%h1.courses_category-name= course_category.name
|
4
4
|
- else
|
5
5
|
%h2.courses_category-name= course_category.name
|
6
|
+
|
7
|
+
- if action_name == 'show'
|
8
|
+
.course-calendar.bottom-margin-4
|
9
|
+
= month_calendar_pagination(date)
|
10
|
+
= month_calendar date, course_dates, display_method: :course, start_day: :monday
|
11
|
+
|
6
12
|
.course_categories-tree
|
7
13
|
= nested_li(course_category.descendants, {}) do |course_category, level|
|
8
14
|
= link_to course_category.tree_name, course_category
|
9
15
|
- unless course_category.description.blank?
|
10
16
|
.course_categories-description
|
11
17
|
%p= course_category.description
|
18
|
+
|
12
19
|
.course_category-courses
|
13
|
-
%h2= Ecm::Courses::CourseCategory.human_attribute_name(:courses)
|
20
|
+
/ %h2= Ecm::Courses::CourseCategory.human_attribute_name(:courses)
|
14
21
|
- if course_category.courses_count == 0
|
15
22
|
= t('ecm.courses.course_category.messages.no_courses_available')
|
16
23
|
%hr/
|
@@ -1,12 +1,13 @@
|
|
1
|
-
= render @course_category
|
1
|
+
= render partial: 'course_category', locals: { course_category: @course_category, date: @date, course_dates: @course_dates }
|
2
|
+
|
3
|
+
.course_category-calendar{ id: "course_category-#{@course_category.to_param}" }
|
4
|
+
- if @course_category.courses.any?
|
5
|
+
/ %h2= t('.calendar_heading', month: l(@date, format: :month_with_year))
|
6
|
+
/ = month_calendar_pagination(@date)
|
7
|
+
/ = month_calendar @date, @course_dates, display_method: :course, start_day: :monday
|
8
|
+
|
2
9
|
%p
|
3
10
|
- if @course_category.root?
|
4
11
|
= link_to(t('ecm.courses.course_category.actions.back_to_index'), course_categories_path) if respond_to?(:course_categories_path)
|
5
12
|
- else
|
6
|
-
= link_to(Ecm::Courses::CourseCategory.human_attribute_name(:parent), @course_category.parent)
|
7
|
-
.course_category-calendar{ id: "course_category-#{@course_category.to_param}" }
|
8
|
-
- if @course_category.courses.any?
|
9
|
-
%h2
|
10
|
-
= t('.calendar_heading', month: l(@date, format: :month_with_year))
|
11
|
-
= month_calendar_pagination(@date)
|
12
|
-
= month_calendar @date, @course_dates, display_method: :course, start_day: :monday
|
13
|
+
= link_to(Ecm::Courses::CourseCategory.human_attribute_name(:parent), @course_category.parent)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.course-date{:id => "course-date_#{@course_date.to_param}"}
|
2
|
-
%h1= link_to @course_date.
|
3
|
-
%h2= link_to @course_date.
|
2
|
+
%h1= link_to @course_date.course_category.to_s, @course_date.course_category
|
3
|
+
%h2= link_to @course_date.course.to_s, @course_date.course
|
4
4
|
%h3= @course_date
|
5
5
|
.course_date-description
|
6
6
|
= @course_date.description
|
@@ -1,8 +1,8 @@
|
|
1
1
|
.course{:id => "course-#{course.to_param}"}
|
2
|
-
%
|
2
|
+
%span.course-title
|
3
|
+
%h1= course.heading_name
|
3
4
|
- unless course.description.blank?
|
4
5
|
.course-description
|
5
6
|
%p= course.description
|
6
7
|
.course-dates
|
7
|
-
= render course.course_dates
|
8
|
-
%hr/
|
8
|
+
= render course.course_dates
|
@@ -1,5 +1,5 @@
|
|
1
1
|
%h1
|
2
2
|
Kurskalender für #{I18n.l(@date, :format => :month_with_year)}
|
3
|
-
= link_to "Zurück zu #{@course.
|
3
|
+
= link_to "Zurück zu #{@course.course_category}", @course.course_category
|
4
4
|
= month_calendar_pagination(@date)
|
5
|
-
= month_calendar
|
5
|
+
= month_calendar @date, @course_dates, display_method: :course, start_day: :monday
|
data/config/routes.rb
CHANGED
@@ -1,22 +1,12 @@
|
|
1
1
|
Ecm::Courses::Engine.routes.draw do
|
2
|
-
# options.reverse_merge!(
|
3
|
-
# {
|
4
|
-
# :course_category_actions => [:index, :show],
|
5
|
-
# :course_date_actions => [:index, :show],
|
6
|
-
# :course_actions => [:calendar, :index, :show]
|
7
|
-
# }
|
8
|
-
# )
|
9
2
|
localized do
|
10
|
-
resources :course_categories
|
11
|
-
resources :courses
|
3
|
+
resources :course_categories, only: [:index, :show]
|
4
|
+
resources :courses, only: [:show] do
|
12
5
|
member do
|
13
|
-
|
14
|
-
|
15
|
-
get "calendar/:year/:month", action: :calendar
|
16
|
-
# end
|
6
|
+
get "calendar", action: :calendar
|
7
|
+
get "calendar/:year/:month", action: :calendar
|
17
8
|
end
|
18
9
|
end
|
19
|
-
|
20
|
-
resources :course_dates # , only: options[:course_date_actions] #, controller: 'ecm/courses/course_dates'
|
10
|
+
resources :course_dates, only: [:show]
|
21
11
|
end
|
22
12
|
end
|
data/lib/ecm/courses/version.rb
CHANGED
data/lib/ecm_courses2.rb
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
require 'friendly_id'
|
2
|
+
require 'acts_as_list'
|
2
3
|
require 'awesome_nested_set'
|
4
|
+
require 'awesome_nested_set-tools'
|
3
5
|
require 'route_translator'
|
6
|
+
require 'icalendar'
|
7
|
+
require 'haml-rails'
|
8
|
+
require 'ecm_calendar_helper'
|
4
9
|
|
5
10
|
require 'ecm/courses'
|
6
11
|
require 'ecm/courses/engine'
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module Ecm
|
2
|
+
module Courses
|
3
|
+
module Generators
|
4
|
+
class InstallGenerator < Rails::Generators::Base
|
5
|
+
desc "Generates the initializer"
|
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
|
+
|
13
|
+
def generate_routes
|
14
|
+
inject_into_file 'config/routes.rb', before: "\nend" do
|
15
|
+
File.read(File.join(File.expand_path('../templates', __FILE__), 'routes.source'))
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
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,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecm_courses2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Vasquez Angel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: acts_as_list
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: awesome_nested_set
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,6 +66,20 @@ dependencies:
|
|
52
66
|
- - ">="
|
53
67
|
- !ruby/object:Gem::Version
|
54
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: awesome_nested_set-tools
|
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'
|
55
83
|
- !ruby/object:Gem::Dependency
|
56
84
|
name: route_translator
|
57
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,6 +94,216 @@ dependencies:
|
|
66
94
|
- - ">="
|
67
95
|
- !ruby/object:Gem::Version
|
68
96
|
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: icalendar
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
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
|
112
|
+
name: haml-rails
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
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: ecm_calendar_helper
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 0.0.1
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 0.0.1
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rspec-rails
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
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: guard-rails
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
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: guard-rspec
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
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
|
182
|
+
name: guard-bundler
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: rails-dummy
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :development
|
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
|
210
|
+
name: sqlite3
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: factory_girl_rails
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - ">="
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
230
|
+
type: :development
|
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
|
238
|
+
name: capybara
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - ">="
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: '0'
|
244
|
+
type: :development
|
245
|
+
prerelease: false
|
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: rails-i18n
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - ">="
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: '0'
|
258
|
+
type: :development
|
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
|
266
|
+
name: therubyracer
|
267
|
+
requirement: !ruby/object:Gem::Requirement
|
268
|
+
requirements:
|
269
|
+
- - ">="
|
270
|
+
- !ruby/object:Gem::Version
|
271
|
+
version: '0'
|
272
|
+
type: :development
|
273
|
+
prerelease: false
|
274
|
+
version_requirements: !ruby/object:Gem::Requirement
|
275
|
+
requirements:
|
276
|
+
- - ">="
|
277
|
+
- !ruby/object:Gem::Version
|
278
|
+
version: '0'
|
279
|
+
- !ruby/object:Gem::Dependency
|
280
|
+
name: less-rails
|
281
|
+
requirement: !ruby/object:Gem::Requirement
|
282
|
+
requirements:
|
283
|
+
- - ">="
|
284
|
+
- !ruby/object:Gem::Version
|
285
|
+
version: '0'
|
286
|
+
type: :development
|
287
|
+
prerelease: false
|
288
|
+
version_requirements: !ruby/object:Gem::Requirement
|
289
|
+
requirements:
|
290
|
+
- - ">="
|
291
|
+
- !ruby/object:Gem::Version
|
292
|
+
version: '0'
|
293
|
+
- !ruby/object:Gem::Dependency
|
294
|
+
name: twitter-bootstrap-rails
|
295
|
+
requirement: !ruby/object:Gem::Requirement
|
296
|
+
requirements:
|
297
|
+
- - ">="
|
298
|
+
- !ruby/object:Gem::Version
|
299
|
+
version: '0'
|
300
|
+
type: :development
|
301
|
+
prerelease: false
|
302
|
+
version_requirements: !ruby/object:Gem::Requirement
|
303
|
+
requirements:
|
304
|
+
- - ">="
|
305
|
+
- !ruby/object:Gem::Version
|
306
|
+
version: '0'
|
69
307
|
description: Ecm::Courses Module.
|
70
308
|
email:
|
71
309
|
- roberto@vasquez-angel.de
|
@@ -122,6 +360,10 @@ files:
|
|
122
360
|
- lib/ecm/courses/engine.rb
|
123
361
|
- lib/ecm/courses/version.rb
|
124
362
|
- lib/ecm_courses2.rb
|
363
|
+
- lib/generators/ecm/courses/install/install_generator.rb
|
364
|
+
- lib/generators/ecm/courses/install/templates/ecm_courses.rb
|
365
|
+
- lib/generators/ecm/courses/install/templates/routes.source
|
366
|
+
- lib/generators/ecm/courses/locales/locales_generator.rb
|
125
367
|
- lib/tasks/ecm/courses_tasks.rake
|
126
368
|
- spec/factories/ecm/courses/course_category_factories.rb
|
127
369
|
- spec/factories/ecm/courses/course_date_factories.rb
|
@@ -146,9 +388,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
388
|
version: '0'
|
147
389
|
requirements: []
|
148
390
|
rubyforge_project:
|
149
|
-
rubygems_version: 2.
|
391
|
+
rubygems_version: 2.5.1
|
150
392
|
signing_key:
|
151
393
|
specification_version: 4
|
152
394
|
summary: Ecm::Courses.
|
153
395
|
test_files: []
|
154
|
-
has_rdoc:
|