ecm_courses2 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 22e509ec5f4446d686670ccf8dd5c7694cf2302b
4
- data.tar.gz: a2e59c88b7537bd1889c6f478df08c9c0c15420b
3
+ metadata.gz: ee3a415bc76bbb1695f960dc78a43df0a47a4873
4
+ data.tar.gz: 69a1d8c7cbbab97bb6ae462bc0fe1ec258a50a1b
5
5
  SHA512:
6
- metadata.gz: 44718256c4e1931c42d8d12d3126f6b68ce0e3966ca552de5b46cff392622b955dbc829b309ab620938a9414440b4c8718a20042cf23c263ee06267c9095eacf
7
- data.tar.gz: ea2d0aea60502e045ffad01c5f69a27c3df337936d064f23a8e0e5bbcffd05a671faf0875f35451f868d80628a259d7021023faaa165f9d285bf4d104381c6ef
6
+ metadata.gz: 9a79d32f6305ce362943a0ed75c812814b0faeaa8169ca20ccfedd8b6f139d6c2535b5a8174343d7a767a5e3c967f5b865a0813756513eba939e9a14e55c2b5a
7
+ data.tar.gz: 1fe9e9cd79ab31de7e221dfaba7cfabd598e3022c2c121023a7c8131640bd585ab0e9e083d3eca2c895e9ff25ac8827a76ab40c65d2721dafae0dd9dd316d2ca
@@ -30,7 +30,8 @@ module Ecm::Courses
30
30
  friendly_id :name, use: [:slugged]
31
31
 
32
32
  # scopes
33
- default_scope { includes(:course_category).order('ecm_courses_course_categories.name, ecm_courses_courses.position ASC') }
33
+ # @todo check ordering
34
+ # default_scope { includes(:course_category).order('ecm_courses_course_categories.name, ecm_courses_courses.position ASC') }
34
35
 
35
36
  # validations
36
37
  validates :course_category, presence: true
@@ -10,7 +10,6 @@ module Ecm::Courses
10
10
  after_initialize :set_defaults, if: :new_record?
11
11
 
12
12
  # validations
13
- validates :course, presence: true
14
13
  validates :end_at, presence: true
15
14
  validates :start_at, presence: true
16
15
 
@@ -22,6 +22,7 @@ de:
22
22
  updated_at: Aktualisiert am
23
23
  ecm/courses/course_date:
24
24
  description: Beschreibung
25
+ course: Kurs
25
26
  course_id: Kurs
26
27
  end_at: Endet am
27
28
  start_at: Beginnt am
@@ -58,7 +59,7 @@ de:
58
59
  course_categories:
59
60
  index: Kurskategorien
60
61
  routes:
61
- ecm_courses: 'kurse'
62
+ ecm_courses_engine: 'kurse'
62
63
  courses: 'kurse'
63
64
  course_categories: 'kategorien'
64
65
  course_dates: 'termine'
data/config/routes.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  Ecm::Courses::Engine.routes.draw do
2
2
  localized do
3
- scope :ecm_courses do
3
+ scope :ecm_courses_engine do
4
4
  resources :course_categories, only: [:index, :show]
5
5
  resources :courses, only: [:show] do
6
6
  member do
@@ -1,4 +1,4 @@
1
- class CreateEcmCoursesCourseCategories < ActiveRecord::Migration
1
+ class CreateEcmCoursesCourseCategories < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  create_table :ecm_courses_course_categories do |t|
4
4
  t.string :name
@@ -1,4 +1,4 @@
1
- class CreateEcmCoursesCourses < ActiveRecord::Migration
1
+ class CreateEcmCoursesCourses < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  create_table :ecm_courses_courses do |t|
4
4
  t.string :name
@@ -1,4 +1,4 @@
1
- class CreateEcmCoursesCourseDates < ActiveRecord::Migration
1
+ class CreateEcmCoursesCourseDates < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  create_table :ecm_courses_course_dates do |t|
4
4
  t.timestamp :start_at
@@ -1,4 +1,4 @@
1
- class RemoveEcmCoursesCoursesCountFromEcmCoursesCourseCategories < ActiveRecord::Migration
1
+ class RemoveEcmCoursesCoursesCountFromEcmCoursesCourseCategories < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  remove_column :ecm_courses_course_categories, :ecm_courses_courses_count, :integer
4
4
  end
@@ -1,4 +1,4 @@
1
- class RemoveEcmCoursesCourseDatesCountFromEcmCoursesCourses < ActiveRecord::Migration
1
+ class RemoveEcmCoursesCourseDatesCountFromEcmCoursesCourses < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  remove_column :ecm_courses_courses, :ecm_courses_course_dates_count, :integer
4
4
  end
@@ -1,4 +1,4 @@
1
- class ChangeEcmCoursesCourseCategoryIdToCourseCategoryIdOnEcmCoursesCourses < ActiveRecord::Migration
1
+ class ChangeEcmCoursesCourseCategoryIdToCourseCategoryIdOnEcmCoursesCourses < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  rename_column :ecm_courses_courses, :ecm_courses_course_category_id, :course_category_id
4
4
  end
@@ -1,4 +1,4 @@
1
- class ChangeEcmCoursesCourseIdToCourseIdOnEcmCoursesCourseDate < ActiveRecord::Migration
1
+ class ChangeEcmCoursesCourseIdToCourseIdOnEcmCoursesCourseDate < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  rename_column :ecm_courses_course_dates, :ecm_courses_course_id, :course_id
4
4
  end
@@ -1,5 +1,5 @@
1
1
  module Ecm
2
2
  module Courses
3
- VERSION = '1.0.0'.freeze
3
+ VERSION = '1.0.1'.freeze
4
4
  end
5
5
  end
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: 1.0.0
4
+ version: 1.0.1
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: 2017-05-07 00:00:00.000000000 Z
11
+ date: 2017-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -337,15 +337,10 @@ files:
337
337
  - app/views/ecm/courses/courses/show.haml
338
338
  - app/views/layouts/ecm/courses/application.html.erb
339
339
  - config/locales/de.yml
340
- - config/locales/locales/ecm.courses.course.de.yml
341
340
  - config/locales/locales/ecm.courses.course.en.yml
342
- - config/locales/locales/ecm.courses.course_category.de.yml
343
341
  - config/locales/locales/ecm.courses.course_category.en.yml
344
- - config/locales/locales/ecm.courses.course_date.de.yml
345
342
  - config/locales/locales/ecm.courses.course_date.en.yml
346
- - config/locales/locales/ecm.courses.de.yml
347
343
  - config/locales/locales/ecm.courses.en.yml
348
- - config/locales/locales/ecm.courses.routes.de.yml
349
344
  - config/locales/locales/ecm.courses.routes.en.yml
350
345
  - config/routes.rb
351
346
  - db/migrate/001_create_ecm_courses_course_categories.rb
@@ -388,9 +383,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
388
383
  version: '0'
389
384
  requirements: []
390
385
  rubyforge_project:
391
- rubygems_version: 2.4.8
386
+ rubygems_version: 2.6.11
392
387
  signing_key:
393
388
  specification_version: 4
394
389
  summary: Ecm::Courses.
395
390
  test_files: []
396
- has_rdoc:
@@ -1,25 +0,0 @@
1
- ---
2
- de:
3
- activerecord:
4
- attributes:
5
- ecm/courses/course:
6
- created_at: Erstellt am
7
- description: Beschreibung
8
- ecm_courses_course_category_id: Kurs Kategorie
9
- ecm_courses_course_category: Kurs Kategorie
10
- ecm_courses_course_dates_count: Kurs Termine
11
- ecm_courses_course_dates: Kurs Termine
12
- locale: Sprache
13
- name: Name
14
- position: Position
15
- slug: Freundliche ID
16
- updated_at: Aktualisiert am
17
- models:
18
- ecm/courses/course:
19
- one: Kurs
20
- other: Kurse
21
- formtastic:
22
- hints:
23
- ecm/courses/course:
24
- name: "z.B. Kochen für Anfänger"
25
-
@@ -1,25 +0,0 @@
1
- ---
2
- de:
3
- activerecord:
4
- attributes:
5
- ecm/courses/course_category:
6
- children: "Unter Kategorien"
7
- created_at: Erstellt am
8
- depth: Tiefe
9
- description: Beschreibung
10
- ecm_courses_courses_count: Kurse
11
- ecm_courses_courses: Kurse
12
- lft: Links
13
- locale: Sprache
14
- name: Name
15
- parent_id: Über Kategorie
16
- parent: Über Kategorie
17
- position: Position
18
- rgt: Rechts
19
- slug: Freundliche ID
20
- updated_at: Aktualsiert am
21
- models:
22
- ecm/courses/course_category:
23
- one: "Kurs Kategorie"
24
- other: "Kurs Kategorien"
25
-
@@ -1,20 +0,0 @@
1
- ---
2
- de:
3
- activerecord:
4
- attributes:
5
- ecm/courses/course_date:
6
- created_at: Erstellt am
7
- description: Beschreibung
8
- duration_in_minutes: Dauer
9
- ecm_courses_course_category: Kurs Kategorie
10
- ecm_courses_course_id: Kurs
11
- ecm_courses_course: Kurs
12
- end_at: Endet um
13
- name: Name
14
- start_at: Beginnt um
15
- updated_at: Aktualisiert am
16
- models:
17
- ecm/courses/course_date:
18
- one: "Kurs Termin"
19
- other: "Kurs Termine"
20
-
@@ -1,18 +0,0 @@
1
- de:
2
- date:
3
- formats:
4
- month_with_year: %B %Y
5
- ecm:
6
- courses:
7
- active_admin:
8
- menu: "Kurse"
9
- course:
10
- messages:
11
- not_found: "Download \"%{name}\" nicht gefunden."
12
- course_category:
13
- actions:
14
- back_to_index: "Zurück zur Übersicht"
15
- messages:
16
- not_found: "Kurs Kategorie \"%{name}\" nicht gefunden."
17
- no_courses_available: "Keine Kurse in dieser Kategorie vorhanden."
18
-
@@ -1,6 +0,0 @@
1
- de:
2
- resources:
3
- courses: "kurse"
4
- course_categories: "kurs-kategorien"
5
- course_dates: "kurs-termine"
6
-