ecm_courses 0.0.1 → 0.0.2.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. data/MIT-LICENSE +1 -1
  2. data/{lib/ecm/courses/active_admin → app/admin}/ecm_courses_course_categories.rb +0 -0
  3. data/{lib/ecm/courses/active_admin → app/admin}/ecm_courses_course_dates.rb +0 -0
  4. data/{lib/ecm/courses/active_admin → app/admin}/ecm_courses_courses.rb +0 -0
  5. data/app/controllers/ecm/courses/course_categories_controller.rb +5 -6
  6. data/app/controllers/ecm/courses/course_dates_controller.rb +1 -1
  7. data/app/controllers/ecm/courses/courses_controller.rb +1 -1
  8. data/app/models/ecm/courses/course.rb +19 -17
  9. data/app/models/ecm/courses/course_category.rb +23 -24
  10. data/app/models/ecm/courses/course_date.rb +1 -1
  11. data/app/views/ecm/courses/course_categories/_course_category.html.erb +1 -1
  12. data/config/locales/absence_validator.de.yml +5 -0
  13. data/config/locales/absence_validator.en.yml +5 -0
  14. data/config/locales/ecm.courses.course.de.yml +9 -10
  15. data/config/locales/ecm.courses.course.en.yml +9 -10
  16. data/config/locales/ecm.courses.course_category.de.yml +9 -10
  17. data/config/locales/ecm.courses.course_category.en.yml +10 -11
  18. data/config/locales/ecm.courses.course_date.de.yml +8 -9
  19. data/config/locales/ecm.courses.course_date.en.yml +11 -12
  20. data/config/locales/ecm.courses.de.yml +1 -5
  21. data/config/locales/ecm.courses.en.yml +1 -5
  22. data/config/locales/ecm.courses.routes.de.yml +3 -4
  23. data/config/locales/ecm.courses.routes.en.yml +3 -4
  24. data/lib/absence_validator.rb +5 -0
  25. data/lib/ecm/courses/engine.rb +9 -7
  26. data/lib/ecm/courses/version.rb +1 -1
  27. data/lib/ecm_courses.rb +10 -9
  28. metadata +201 -312
  29. checksums.yaml +0 -7
  30. data/lib/ecm/courses/configuration.rb +0 -17
  31. data/lib/generators/ecm/courses/install/install_generator.rb +0 -15
  32. data/lib/generators/ecm/courses/install/templates/ecm_courses.rb +0 -3
  33. data/lib/generators/ecm/courses/locales/locales_generator.rb +0 -29
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2013 Roberto Vasquez Angel
1
+ Copyright 2012 YOURNAME
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -1,17 +1,16 @@
1
- class Ecm::Courses::CourseCategoriesController < ApplicationController
1
+ class Ecm::Courses::CourseCategoriesController < ::FrontendController
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,4 +1,4 @@
1
- class Ecm::Courses::CourseDatesController < ApplicationController
1
+ class Ecm::Courses::CourseDatesController < ::FrontendController
2
2
  def index
3
3
  @course_dates = Ecm::Courses::CourseDate.includes(:ecm_courses_course => [ :ecm_courses_course_category ]).all
4
4
  end
@@ -1,4 +1,4 @@
1
- class Ecm::Courses::CoursesController < ApplicationController
1
+ class Ecm::Courses::CoursesController < ::FrontendController
2
2
  def calendar
3
3
  @year = params[:year] ||= Time.zone.now.year
4
4
  @month = params[:month] ||= Time.zone.now.month
@@ -1,45 +1,47 @@
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
24
27
 
25
28
  # friendly id
26
29
  extend FriendlyId
27
30
  friendly_id :name, :use => :slugged
28
-
29
- # validations
31
+
32
+ # validations
30
33
  validates :ecm_courses_course_category, :presence => true
31
34
  validates :locale, :inclusion => { :in => I18n.available_locales.map(&:to_s) }, :unless => Proc.new { |c| c.locale.blank? }
32
35
  validates :name, :presence => true
33
-
36
+
34
37
  # public methods
35
38
 
36
39
  def heading_name
37
40
  locale_prefix = (locale.blank?) ? "" : "[#{locale}] "
38
41
  "#{locale_prefix}#{name}"
39
42
  end
40
-
43
+
41
44
  def to_s
42
45
  "#{ecm_courses_course_category.name} - #{name}"
43
- end
46
+ end
44
47
  end
45
-
@@ -1,58 +1,57 @@
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
  "#{'&#160;&#160;&#160;&#160;' * self.level} |--&#160;#{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 + 1.day)))
41
+ where(:start_at => (date.beginning_of_month..date.end_of_month))
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, level| %>
9
+ <%= nested_li(course_category.descendants, {}) do |course_category| %>
10
10
  <%= link_to course_category.tree_name, course_category %>
11
11
  <% end %>
12
12
  </div>
@@ -0,0 +1,5 @@
1
+ de:
2
+ activerecord:
3
+ errors:
4
+ messages:
5
+ absence: "ist nicht leer"
@@ -0,0 +1,5 @@
1
+ en:
2
+ activerecord:
3
+ errors:
4
+ messages:
5
+ absence: "is not blank"
@@ -1,25 +1,24 @@
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
9
8
  ecm_courses_course_category: Kurs Kategorie
10
- ecm_courses_course_dates_count: Kurs Termine
11
9
  ecm_courses_course_dates: Kurs Termine
10
+ ecm_courses_course_dates_count: Kurs Termine
12
11
  locale: Sprache
13
12
  name: Name
14
13
  position: Position
15
14
  slug: Freundliche ID
16
15
  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,25 +1,24 @@
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
- ecm_courses_course_category_id: course category
10
- ecm_courses_course_dates_count: course dates
11
9
  ecm_courses_course_dates: course dates
10
+ ecm_courses_course_dates_count: course dates
12
11
  locale: language
13
12
  name: name
14
13
  position: position
15
14
  slug: friendly id
16
15
  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"
25
-
24
+ name: "i.e. Cooking for beginners"
@@ -1,25 +1,24 @@
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
11
10
  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
16
15
  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"
25
-
24
+ other: "Kurs Kategorien"
@@ -1,25 +1,24 @@
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
10
11
  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
16
15
  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"
25
-
24
+ other: "course_categories"
@@ -1,20 +1,19 @@
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
9
10
  ecm_courses_course_category: Kurs Kategorie
10
11
  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"
20
-
19
+ other: "Kurs Termine"
@@ -1,20 +1,19 @@
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
8
+ duration_in_minutes: duration
9
+ ecm_courses_course: course
9
10
  ecm_courses_course_category: course category
10
- ecm_courses_course: course
11
- ecm_courses_course_id: 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"
20
-
19
+ other: "course dates"
@@ -1,7 +1,4 @@
1
1
  de:
2
- date:
3
- formats:
4
- month_with_year: %B %Y
5
2
  ecm:
6
3
  courses:
7
4
  active_admin:
@@ -14,5 +11,4 @@ de:
14
11
  back_to_index: "Zurück zur Übersicht"
15
12
  messages:
16
13
  not_found: "Kurs Kategorie \"%{name}\" nicht gefunden."
17
- no_courses_available: "Keine Kurse in dieser Kategorie vorhanden."
18
-
14
+ no_courses_available: "Keine Kurse in dieser Kategorie vorhanden."
@@ -1,7 +1,4 @@
1
1
  en:
2
- date:
3
- formats:
4
- month_with_year: %B %Y
5
2
  ecm:
6
3
  courses:
7
4
  active_admin:
@@ -14,5 +11,4 @@ en:
14
11
  back_to_index: "Back to the index"
15
12
  messages:
16
13
  not_found: "Course category \"%{name}\" not found."
17
- no_courses_available: "There are now courses in this category."
18
-
14
+ no_courses_available: "There are now courses in this category."
@@ -1,6 +1,5 @@
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"
6
-
3
+ ecm_courses_courses: "kurse"
4
+ ecm_courses_course_categories: "kurs-kategorien"
5
+ ecm_courses_course_dates: "kurs-termine"
@@ -1,6 +1,5 @@
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"
6
-
3
+ ecm_courses_courses: "courses"
4
+ ecm_courses_course_categories: "course-categories"
5
+ ecm_courses_course_dates: "course-dates"
@@ -0,0 +1,5 @@
1
+ class AbsenceValidator < ActiveModel::EachValidator
2
+ def validate_each(record, attribute, value)
3
+ record.errors.add(attribute, options[:message] || :absence) unless value.blank?
4
+ end
5
+ end
@@ -1,13 +1,15 @@
1
1
  module Ecm
2
2
  module Courses
3
- class Engine < ::Rails::Engine
3
+ class Engine < Rails::Engine
4
4
  # active admin
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']
5
+ initializer :ecm_courses_engine do
6
+ ActiveAdmin.setup do |active_admin_config|
7
+ active_admin_config.load_paths += Dir[File.dirname(__FILE__) + '/../../../app/admin']
8
8
  end
9
- end if defined?(::ActiveAdmin)
9
+ end
10
+
11
+ # locales
12
+ paths["config/locales"] << File.dirname(__FILE__) + '/../../../config/locales'
10
13
  end
11
14
  end
12
- end
13
-
15
+ end
@@ -1,5 +1,5 @@
1
1
  module Ecm
2
2
  module Courses
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2.pre"
4
4
  end
5
5
  end
data/lib/ecm_courses.rb CHANGED
@@ -1,18 +1,19 @@
1
- require 'active_admin-acts_as_list'
1
+ require 'rubygems'
2
+
3
+ require 'absence_validator'
2
4
  require 'acts_as_list'
3
5
  require 'awesome_nested_set'
4
6
  require 'awesome_nested_set-tools'
5
- require 'ecm_calendar_helper'
6
7
  require 'friendly_id'
7
- require 'rails_tools-absence_validator'
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'
8
15
 
9
16
  require 'ecm/courses/engine'
10
- require 'ecm/courses/configuration'
11
17
  require 'ecm/courses/routing'
12
18
 
13
- module Ecm
14
- module Courses
15
- extend Configuration
16
- end
17
- end
18
19
 
metadata CHANGED
@@ -1,400 +1,289 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ecm_courses
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.1
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: 6
5
+ version: 0.0.2.pre
5
6
  platform: ruby
6
- authors:
7
+ authors:
7
8
  - Roberto Vasquez Angel
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2016-10-07 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
12
+
13
+ date: 2012-07-29 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
14
16
  name: rails
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: 3.2.12
20
- type: :runtime
21
17
  prerelease: false
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'
18
+ requirement: &id001 !ruby/object:Gem::Requirement
19
+ none: false
20
+ requirements:
21
+ - - ~>
22
+ - !ruby/object:Gem::Version
23
+ version: 3.2.6
34
24
  type: :runtime
25
+ version_requirements: *id001
26
+ - !ruby/object:Gem::Dependency
27
+ name: acts_as_list
35
28
  prerelease: false
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'
29
+ requirement: &id002 !ruby/object:Gem::Requirement
30
+ none: false
31
+ requirements:
32
+ - - ~>
33
+ - !ruby/object:Gem::Version
34
+ version: 0.1.6
48
35
  type: :runtime
36
+ version_requirements: *id002
37
+ - !ruby/object:Gem::Dependency
38
+ name: active_admin-acts_as_list
49
39
  prerelease: false
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:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
40
+ requirement: &id003 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 0.0.6
62
46
  type: :runtime
47
+ version_requirements: *id003
48
+ - !ruby/object:Gem::Dependency
49
+ name: active_admin-awesome_nested_set
63
50
  prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
51
+ requirement: &id004 !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
66
54
  - - ">="
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'
55
+ - !ruby/object:Gem::Version
56
+ version: "0"
76
57
  type: :runtime
58
+ version_requirements: *id004
59
+ - !ruby/object:Gem::Dependency
60
+ name: awesome_nested_set
77
61
  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: awesome_nested_set-tools
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
62
+ requirement: &id005 !ruby/object:Gem::Requirement
63
+ none: false
64
+ requirements:
65
+ - - ~>
66
+ - !ruby/object:Gem::Version
67
+ version: 2.1.3
90
68
  type: :runtime
69
+ version_requirements: *id005
70
+ - !ruby/object:Gem::Dependency
71
+ name: awesome_nested_set-tools
91
72
  prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
73
+ requirement: &id006 !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
94
76
  - - ">="
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'
77
+ - !ruby/object:Gem::Version
78
+ version: "0"
104
79
  type: :runtime
80
+ version_requirements: *id006
81
+ - !ruby/object:Gem::Dependency
82
+ name: ecm_calendar_helper
105
83
  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: friendly_id
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
84
+ requirement: &id007 !ruby/object:Gem::Requirement
85
+ none: false
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: 0.0.1.pre
118
90
  type: :runtime
91
+ version_requirements: *id007
92
+ - !ruby/object:Gem::Dependency
93
+ name: friendly_id
119
94
  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: rails_tools-absence_validator
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: '0'
95
+ requirement: &id008 !ruby/object:Gem::Requirement
96
+ none: false
97
+ requirements:
98
+ - - ~>
99
+ - !ruby/object:Gem::Version
100
+ version: 4.0.7
132
101
  type: :runtime
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
- - !ruby/object:Gem::Dependency
102
+ version_requirements: *id008
103
+ - !ruby/object:Gem::Dependency
140
104
  name: sqlite3
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- version: '0'
146
- type: :development
147
105
  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: thin
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
106
+ requirement: &id009 !ruby/object:Gem::Requirement
107
+ none: false
108
+ requirements:
157
109
  - - ">="
158
- - !ruby/object:Gem::Version
159
- version: '0'
110
+ - !ruby/object:Gem::Version
111
+ version: "0"
160
112
  type: :development
113
+ version_requirements: *id009
114
+ - !ruby/object:Gem::Dependency
115
+ name: thin
161
116
  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: yard
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
117
+ requirement: &id010 !ruby/object:Gem::Requirement
118
+ none: false
119
+ requirements:
171
120
  - - ">="
172
- - !ruby/object:Gem::Version
173
- version: '0'
121
+ - !ruby/object:Gem::Version
122
+ version: "0"
174
123
  type: :development
124
+ version_requirements: *id010
125
+ - !ruby/object:Gem::Dependency
126
+ name: yard
175
127
  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: sass-rails
183
- requirement: !ruby/object:Gem::Requirement
184
- requirements:
128
+ requirement: &id011 !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
185
131
  - - ">="
186
- - !ruby/object:Gem::Version
187
- version: '0'
132
+ - !ruby/object:Gem::Version
133
+ version: "0"
188
134
  type: :development
135
+ version_requirements: *id011
136
+ - !ruby/object:Gem::Dependency
137
+ name: sass-rails
189
138
  prerelease: false
190
- version_requirements: !ruby/object:Gem::Requirement
191
- requirements:
139
+ requirement: &id012 !ruby/object:Gem::Requirement
140
+ none: false
141
+ requirements:
192
142
  - - ">="
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'
143
+ - !ruby/object:Gem::Version
144
+ version: "0"
202
145
  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
146
+ version_requirements: *id012
147
+ - !ruby/object:Gem::Dependency
210
148
  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
217
149
  prerelease: false
218
- version_requirements: !ruby/object:Gem::Requirement
219
- requirements:
150
+ requirement: &id013 !ruby/object:Gem::Requirement
151
+ none: false
152
+ requirements:
220
153
  - - ">="
221
- - !ruby/object:Gem::Version
154
+ - !ruby/object:Gem::Version
222
155
  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'
230
156
  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
157
+ version_requirements: *id013
158
+ - !ruby/object:Gem::Dependency
238
159
  name: rspec-rails
239
- requirement: !ruby/object:Gem::Requirement
240
- requirements:
241
- - - ">="
242
- - !ruby/object:Gem::Version
243
- version: '0'
244
- type: :development
245
160
  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: shoulda-matchers
253
- requirement: !ruby/object:Gem::Requirement
254
- requirements:
255
- - - ">="
256
- - !ruby/object:Gem::Version
257
- version: '0'
161
+ requirement: &id014 !ruby/object:Gem::Requirement
162
+ none: false
163
+ requirements:
164
+ - - ~>
165
+ - !ruby/object:Gem::Version
166
+ version: "2.0"
258
167
  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
168
+ version_requirements: *id014
169
+ - !ruby/object:Gem::Dependency
266
170
  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
273
171
  prerelease: false
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
172
+ requirement: &id015 !ruby/object:Gem::Requirement
173
+ none: false
174
+ requirements:
175
+ - - ~>
176
+ - !ruby/object:Gem::Version
177
+ version: "3.0"
286
178
  type: :development
179
+ version_requirements: *id015
180
+ - !ruby/object:Gem::Dependency
181
+ name: shoulda-matchers
287
182
  prerelease: false
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:
183
+ requirement: &id016 !ruby/object:Gem::Requirement
184
+ none: false
185
+ requirements:
297
186
  - - ">="
298
- - !ruby/object:Gem::Version
299
- version: '0'
187
+ - !ruby/object:Gem::Version
188
+ version: "0"
300
189
  type: :development
190
+ version_requirements: *id016
191
+ - !ruby/object:Gem::Dependency
192
+ name: capybara
301
193
  prerelease: false
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:
194
+ requirement: &id017 !ruby/object:Gem::Requirement
195
+ none: false
196
+ requirements:
311
197
  - - ">="
312
- - !ruby/object:Gem::Version
313
- version: '0'
198
+ - !ruby/object:Gem::Version
199
+ version: "0"
314
200
  type: :development
315
- prerelease: false
316
- version_requirements: !ruby/object:Gem::Requirement
317
- requirements:
318
- - - ">="
319
- - !ruby/object:Gem::Version
320
- version: '0'
201
+ version_requirements: *id017
321
202
  description: Couse management module for active admin.
322
- email:
203
+ email:
323
204
  - roberto@vasquez-angel.de
324
205
  executables: []
206
+
325
207
  extensions: []
208
+
326
209
  extra_rdoc_files: []
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
210
+
211
+ files:
337
212
  - app/controllers/ecm/courses/course_dates_controller.rb
338
213
  - app/controllers/ecm/courses/courses_controller.rb
339
- - app/models/ecm/courses/course.rb
340
- - app/models/ecm/courses/course_category.rb
341
- - app/models/ecm/courses/course_date.rb
214
+ - app/controllers/ecm/courses/course_categories_controller.rb
342
215
  - app/views/ecm/courses/course_categories/_course_category.html.erb
343
216
  - app/views/ecm/courses/course_categories/index.de.html.erb
344
217
  - app/views/ecm/courses/course_categories/show.de.html.erb
345
- - app/views/ecm/courses/course_dates/_course_date.html.erb
346
218
  - app/views/ecm/courses/course_dates/index.de.html.erb
347
219
  - app/views/ecm/courses/course_dates/show.de.html.erb
220
+ - app/views/ecm/courses/course_dates/_course_date.html.erb
348
221
  - app/views/ecm/courses/courses/_course.html.erb
349
- - app/views/ecm/courses/courses/calendar.de.html.erb
350
222
  - app/views/ecm/courses/courses/index.de.html.erb
351
223
  - app/views/ecm/courses/courses/show.de.html.erb
352
- - config/locales/ecm.courses.course.de.yml
224
+ - app/views/ecm/courses/courses/calendar.de.html.erb
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
353
238
  - config/locales/ecm.courses.course.en.yml
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
357
- - config/locales/ecm.courses.course_date.en.yml
239
+ - config/locales/absence_validator.en.yml
358
240
  - config/locales/ecm.courses.de.yml
359
- - config/locales/ecm.courses.en.yml
241
+ - config/locales/ecm.courses.course_date.en.yml
242
+ - config/locales/ecm.courses.course.de.yml
360
243
  - 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
361
247
  - config/locales/ecm.courses.routes.en.yml
362
- - db/migrate/001_create_ecm_courses_course_categories.rb
363
- - db/migrate/002_create_ecm_courses_courses.rb
364
248
  - 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
369
- - lib/ecm/courses/engine.rb
370
- - lib/ecm/courses/routing.rb
371
- - lib/ecm/courses/version.rb
249
+ - db/migrate/002_create_ecm_courses_courses.rb
250
+ - db/migrate/001_create_ecm_courses_course_categories.rb
372
251
  - 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
252
  - lib/tasks/ecm_courses_tasks.rake
253
+ - lib/ecm/courses/engine.rb
254
+ - lib/ecm/courses/version.rb
255
+ - lib/ecm/courses/routing.rb
256
+ - lib/absence_validator.rb
257
+ - MIT-LICENSE
258
+ - Rakefile
259
+ - README.rdoc
377
260
  homepage: https://github.com/robotex82/ecm_courses
378
261
  licenses: []
379
- metadata: {}
262
+
380
263
  post_install_message:
381
264
  rdoc_options: []
382
- require_paths:
265
+
266
+ require_paths:
383
267
  - lib
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:
268
+ required_ruby_version: !ruby/object:Gem::Requirement
269
+ none: false
270
+ requirements:
391
271
  - - ">="
392
- - !ruby/object:Gem::Version
393
- version: '0'
272
+ - !ruby/object:Gem::Version
273
+ version: "0"
274
+ required_rubygems_version: !ruby/object:Gem::Requirement
275
+ none: false
276
+ requirements:
277
+ - - ">"
278
+ - !ruby/object:Gem::Version
279
+ version: 1.3.1
394
280
  requirements: []
281
+
395
282
  rubyforge_project:
396
- rubygems_version: 2.4.8
283
+ rubygems_version: 1.8.24
397
284
  signing_key:
398
- specification_version: 4
285
+ specification_version: 3
399
286
  summary: Course management module.
400
287
  test_files: []
288
+
289
+ has_rdoc:
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: d11ee3e4e1778bfe998ced01015d6f1f41c28b5a
4
- data.tar.gz: 7c3ad6e7e81db5cf8c0440c52ccae779e88d7993
5
- SHA512:
6
- metadata.gz: c7c8887f3bd37b1624996339786b7d27fa4275791d31fc7dd4486fe51d2d8fdd3709cc8755aba29be1a77a23408ba2aca2d66b239fd3bb824f61af6591e7426f
7
- data.tar.gz: a56e96ebf3b318cb808706b4d8c266812fd618218a9aeaf1493a2b522e1073c70781c5f0007e8998a8c221c3c9b92f64bcf0f588da0b589d662ea84de897ca57
@@ -1,17 +0,0 @@
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
-
@@ -1,15 +0,0 @@
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
@@ -1,3 +0,0 @@
1
- Ecm::Courses.configure do |config|
2
- # config.foo = :bar
3
- end
@@ -1,29 +0,0 @@
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
-