bizarroids_slider 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +57 -0
- data/Rakefile +34 -0
- data/app/controllers/bizarroids/slider/application_controller.rb +4 -0
- data/app/controllers/bizarroids/slider/collections_controller.rb +13 -0
- data/app/controllers/bizarroids/slider/slides_controller.rb +76 -0
- data/app/helpers/bizarroids/slider/application_helper.rb +67 -0
- data/app/helpers/bizarroids/slider/collections_helper.rb +2 -0
- data/app/helpers/bizarroids/slider/slides_helper.rb +9 -0
- data/app/models/bizarroids/slider/collection.rb +38 -0
- data/app/models/bizarroids/slider/slide.rb +17 -0
- data/app/views/bizarroids/slider/collections/index.html.erb +23 -0
- data/app/views/bizarroids/slider/slides/_form.html.erb +11 -0
- data/app/views/bizarroids/slider/slides/edit.html.erb +9 -0
- data/app/views/bizarroids/slider/slides/index.html.erb +47 -0
- data/app/views/bizarroids/slider/slides/new.html.erb +9 -0
- data/config/routes.rb +11 -0
- data/lib/bizarroids/slider/config_error.rb +2 -0
- data/lib/bizarroids/slider/engine.rb +4 -0
- data/lib/bizarroids/slider/media_uploader.rb +35 -0
- data/lib/bizarroids/slider/version.rb +5 -0
- data/lib/bizarroids/slider.rb +93 -0
- data/lib/bizarroids.rb +4 -0
- data/lib/bizarroids_slider.rb +1 -0
- data/lib/generators/bizarroids/slider/install/USAGE +14 -0
- data/lib/generators/bizarroids/slider/install/install_generator.rb +23 -0
- data/lib/generators/bizarroids/slider/install/templates/bizarroids_slider.en.yml +28 -0
- data/lib/generators/bizarroids/slider/install/templates/bizarroids_slider.ru.yml +28 -0
- data/lib/generators/bizarroids/slider/install/templates/initializer.rb +5 -0
- data/lib/generators/bizarroids/slider/install/templates/migration.rb +18 -0
- data/lib/tasks/bizarroids_slider_tasks.rake +4 -0
- data/test/bizarroids_test.rb +7 -0
- data/test/controllers/bizarroids/slider/collections_controller_test.rb +7 -0
- data/test/controllers/bizarroids/slider/slides_controller_test.rb +7 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +11 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/models/ability.rb +10 -0
- data/test/dummy/app/views/layouts/application.html.erb +15 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config/application.rb +23 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +82 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config/initializers/assets.rb +8 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/bizarroids_slider.rb +5 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/bizarroids_slider.en.yml +25 -0
- data/test/dummy/config/locales/bizarroids_slider.ru.yml +25 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20140803134633_create_bizarroids_slider_tables.rb +18 -0
- data/test/dummy/db/schema.rb +36 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +11010 -0
- data/test/dummy/log/test.log +1624 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/generators/config/initializers/bizarroids_slider.rb +5 -0
- data/test/dummy/tmp/generators/config/locales/bizarroids_slider.en.yml +28 -0
- data/test/dummy/tmp/generators/config/locales/bizarroids_slider.ru.yml +28 -0
- data/test/dummy/tmp/generators/config/routes.rb +4 -0
- data/test/dummy/tmp/generators/db/migrate/20140807080544_create_bizarroids_slider_tables.rb +18 -0
- data/test/fixtures/bizarroids/slider/collections.yml +11 -0
- data/test/helpers/bizarroids/slider/collections_helper_test.rb +4 -0
- data/test/helpers/bizarroids/slider/slides_helper_test.rb +4 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/lib/bizarroids/slider_test.rb +57 -0
- data/test/lib/generators/bizarroids/slider/install_generator_test.rb +33 -0
- data/test/models/bizarroids/slider/collection_test.rb +7 -0
- data/test/test_helper.rb +30 -0
- metadata +303 -0
Binary file
|
@@ -0,0 +1,18 @@
|
|
1
|
+
class CreateBizarroidsSliderTables < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
create_table :bizarroids_slider_collections do |t|
|
4
|
+
t.string :key, :name, :description
|
5
|
+
t.integer :position
|
6
|
+
end
|
7
|
+
|
8
|
+
add_index :bizarroids_slider_collections, :key
|
9
|
+
|
10
|
+
create_table :bizarroids_slider_slides do |t|
|
11
|
+
t.references :collection
|
12
|
+
t.string :name, :description, :media, :link
|
13
|
+
t.integer :position
|
14
|
+
end
|
15
|
+
|
16
|
+
add_index :bizarroids_slider_slides, [:collection_id, :position]
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended that you check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(version: 20140803134633) do
|
15
|
+
|
16
|
+
create_table "bizarroids_slider_collections", force: true do |t|
|
17
|
+
t.string "key"
|
18
|
+
t.string "name"
|
19
|
+
t.string "description"
|
20
|
+
t.integer "position"
|
21
|
+
end
|
22
|
+
|
23
|
+
add_index "bizarroids_slider_collections", ["key"], name: "index_bizarroids_slider_collections_on_key"
|
24
|
+
|
25
|
+
create_table "bizarroids_slider_slides", force: true do |t|
|
26
|
+
t.integer "collection_id"
|
27
|
+
t.string "name"
|
28
|
+
t.string "description"
|
29
|
+
t.string "media"
|
30
|
+
t.string "link"
|
31
|
+
t.integer "position"
|
32
|
+
end
|
33
|
+
|
34
|
+
add_index "bizarroids_slider_slides", ["collection_id", "position"], name: "index_bizarroids_slider_slides_on_collection_id_and_position"
|
35
|
+
|
36
|
+
end
|
Binary file
|