comfy_carousel 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -0
- data/Gemfile.lock +7 -0
- data/LICENSE +20 -0
- data/README.md +35 -2
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/app/assets/javascripts/slides.jquery.js +555 -0
- data/app/assets/javascripts/slides.min.jquery.js +20 -0
- data/app/controllers/admin/carousel/base_controller.rb +10 -0
- data/app/controllers/admin/carousel/carousels_controller.rb +50 -0
- data/app/controllers/admin/carousel/slides_controller.rb +12 -4
- data/app/helpers/carousel/application_helper.rb +12 -0
- data/app/models/carousel/carousel.rb +25 -0
- data/app/models/carousel/slide.rb +21 -17
- data/app/views/admin/carousel/_navigation.html.erb +1 -0
- data/app/views/admin/carousel/carousels/_form.html.erb +4 -0
- data/app/views/admin/carousel/carousels/edit.html.erb +5 -0
- data/app/views/admin/carousel/carousels/index.html.erb +20 -0
- data/app/views/admin/carousel/carousels/new.html.erb +5 -0
- data/app/views/admin/carousel/slides/_form.html.erb +12 -14
- data/app/views/admin/carousel/slides/edit.html.erb +4 -3
- data/app/views/admin/carousel/slides/index.html.erb +20 -21
- data/app/views/admin/carousel/slides/new.html.erb +4 -3
- data/comfy_carousel.gemspec +112 -0
- data/config/application.rb +3 -0
- data/config/environments/development.rb +1 -1
- data/config/environments/test.rb +1 -1
- data/config/initializers/comfy_carousel.rb +12 -0
- data/config/routes.rb +9 -1
- data/db/migrate/01_create_comfy_carousel.rb +17 -2
- data/db/schema.rb +40 -0
- data/lib/comfy_carousel.rb +25 -0
- data/lib/comfy_carousel/configuration.rb +22 -0
- data/lib/comfy_carousel/engine.rb +19 -0
- data/lib/comfy_carousel/form_builder.rb +50 -0
- data/lib/generators/comfy/carousel/README +11 -0
- data/lib/generators/comfy/carousel/carousel_generator.rb +35 -0
- data/lib/tasks/comfy_carousel.rake +4 -0
- data/test/fixtures/carousel/carousels.yml +3 -0
- data/test/fixtures/carousel/slides.yml +9 -0
- data/test/fixtures/files/image.jpg +0 -0
- data/test/functional/admin/carousel/carousels_controller_test.rb +92 -0
- data/test/functional/admin/carousel/slides_controller_test.rb +59 -30
- data/test/test_helper.rb +30 -5
- data/test/unit/carousel_test.rb +30 -0
- data/test/unit/configuration_test.rb +17 -0
- data/test/unit/slide_test.rb +29 -0
- metadata +49 -21
- data/app/assets/images/rails.png +0 -0
- data/app/assets/javascripts/application.js +0 -15
- data/app/assets/stylesheets/application.css +0 -13
- data/app/helpers/application_helper.rb +0 -2
- data/config/environments/production.rb +0 -67
- data/config/initializers/backtrace_silencers.rb +0 -7
- data/config/initializers/inflections.rb +0 -15
- data/config/initializers/mime_types.rb +0 -5
- data/config/initializers/secret_token.rb +0 -7
- data/config/initializers/session_store.rb +0 -8
- data/config/initializers/wrap_parameters.rb +0 -14
- data/db/seeds.rb +0 -7
- data/lib/assets/.gitkeep +0 -0
data/db/seeds.rb
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
# This file should contain all the record creation needed to seed the database with its default values.
|
2
|
-
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
|
3
|
-
#
|
4
|
-
# Examples:
|
5
|
-
#
|
6
|
-
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
|
7
|
-
# Mayor.create(name: 'Emanuel', city: cities.first)
|
data/lib/assets/.gitkeep
DELETED
File without changes
|