lines-engine 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.gitignore +3 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +49 -52
- data/app/controllers/lines/admin/articles_controller.rb +3 -3
- data/app/controllers/lines/application_controller.rb +1 -1
- data/app/controllers/lines/sessions_controller.rb +1 -1
- data/app/helpers/lines/application_helper.rb +13 -14
- data/app/views/kaminari/lines/_next_page.html.erb +1 -1
- data/app/views/kaminari/lines/_prev_page.html.erb +1 -1
- data/app/views/layouts/lines/application.html.erb +2 -2
- data/app/views/lines/admin/articles/_form.html.erb +29 -17
- data/app/views/lines/admin/articles/_picture_box.html.erb +2 -30
- data/app/views/lines/admin/articles/edit.html.erb +0 -13
- data/app/views/lines/admin/articles/index.html.erb +10 -10
- data/app/views/lines/admin/articles/new.html.erb +1 -15
- data/app/views/lines/admin/authors/_form.html.erb +11 -11
- data/app/views/lines/admin/authors/index.html.erb +4 -4
- data/app/views/lines/admin/authors/show.html.erb +1 -1
- data/app/views/lines/sessions/new.html.erb +4 -4
- data/app/views/lines/shared/_footer.html.erb +1 -1
- data/app/views/lines/shared/_navigation.html.erb +1 -1
- data/config/locales/de.yml +210 -0
- data/config/locales/kaminari.de.yml +8 -0
- data/config/locales/lines.de.yml +66 -0
- data/config/locales/lines.en.yml +66 -0
- data/lib/generators/lines/install_generator.rb +4 -0
- data/lib/lines/engine.rb +17 -0
- data/lib/lines/version.rb +1 -1
- data/lines.gemspec +2 -2
- data/spec/dummy/config/application.rb +1 -1
- data/spec/features/article_spec.rb +2 -2
- data/spec/spec_helper.rb +8 -3
- metadata +26 -47
- metadata.gz.sig +0 -0
- data/config/initializers/simple_form.rb +0 -144
- data/spec/dummy/db/migrate/20140505122014_base_migration.rb +0 -84
- data/spec/dummy/db/migrate/20140702160602_acts_as_taggable_on_migration.acts_as_taggable_on_engine.rb +0 -31
- data/spec/dummy/db/migrate/20140702160603_add_missing_unique_indices.acts_as_taggable_on_engine.rb +0 -20
- data/spec/dummy/db/migrate/20140702160604_add_taggings_counter_cache_to_tags.acts_as_taggable_on_engine.rb +0 -15
- data/spec/dummy/db/migrate/20141027143656_add_teaser_to_article.rb +0 -5
- data/spec/dummy/db/migrate/20150421093311_add_reset_password_fields_to_users.rb +0 -6
@@ -1,84 +0,0 @@
|
|
1
|
-
class BaseMigration < ActiveRecord::Migration
|
2
|
-
# encoding: UTF-8
|
3
|
-
# This file is auto-generated from the current state of the database. Instead
|
4
|
-
# of editing this file, please use the migrations feature of Active Record to
|
5
|
-
# incrementally modify your database, and then regenerate this schema definition.
|
6
|
-
#
|
7
|
-
# Note that this schema.rb definition is the authoritative source for your
|
8
|
-
# database schema. If you need to create the application database on another
|
9
|
-
# system, you should be using db:schema:load, not running all the migrations
|
10
|
-
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
11
|
-
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
12
|
-
#
|
13
|
-
# It's strongly recommended that you check this file into your version control system.
|
14
|
-
|
15
|
-
def change
|
16
|
-
|
17
|
-
create_table "lines_articles", force: true do |t|
|
18
|
-
t.string "title"
|
19
|
-
t.string "sub_title"
|
20
|
-
t.text "content"
|
21
|
-
t.boolean "published", default: false
|
22
|
-
t.datetime "published_at"
|
23
|
-
t.string "hero_image"
|
24
|
-
t.datetime "created_at", null: false
|
25
|
-
t.datetime "updated_at", null: false
|
26
|
-
t.string "slug"
|
27
|
-
t.string "gplus_url"
|
28
|
-
t.boolean "featured", default: false
|
29
|
-
t.string "document"
|
30
|
-
t.string "short_hero_image"
|
31
|
-
end
|
32
|
-
|
33
|
-
add_index "lines_articles", ["slug"], name: "index_lines_articles_on_slug", unique: true, using: :btree
|
34
|
-
|
35
|
-
create_table "lines_authorables", force: true do |t|
|
36
|
-
t.integer "author_id"
|
37
|
-
t.integer "article_id"
|
38
|
-
t.datetime "created_at", null: false
|
39
|
-
t.datetime "updated_at", null: false
|
40
|
-
end
|
41
|
-
|
42
|
-
add_index "lines_authorables", ["article_id"], name: "index_lines_authorables_on_article_id", using: :btree
|
43
|
-
add_index "lines_authorables", ["author_id"], name: "index_lines_authorables_on_author_id", using: :btree
|
44
|
-
|
45
|
-
create_table "lines_authors", force: true do |t|
|
46
|
-
t.string "name"
|
47
|
-
t.string "email"
|
48
|
-
t.datetime "created_at", null: false
|
49
|
-
t.datetime "updated_at", null: false
|
50
|
-
t.text "description"
|
51
|
-
t.string "gplus_profile"
|
52
|
-
end
|
53
|
-
|
54
|
-
create_table "friendly_id_slugs", force: true do |t|
|
55
|
-
t.string "slug", null: false
|
56
|
-
t.integer "sluggable_id", null: false
|
57
|
-
t.string "sluggable_type", limit: 40
|
58
|
-
t.datetime "created_at"
|
59
|
-
end
|
60
|
-
|
61
|
-
add_index "friendly_id_slugs", ["slug", "sluggable_type"], name: "index_friendly_id_slugs_on_slug_and_sluggable_type", unique: true, using: :btree
|
62
|
-
add_index "friendly_id_slugs", ["sluggable_id"], name: "index_friendly_id_slugs_on_sluggable_id", using: :btree
|
63
|
-
add_index "friendly_id_slugs", ["sluggable_type"], name: "index_friendly_id_slugs_on_sluggable_type", using: :btree
|
64
|
-
|
65
|
-
create_table "lines_pictures", force: true do |t|
|
66
|
-
t.string "image"
|
67
|
-
t.string "name"
|
68
|
-
t.integer "article_id"
|
69
|
-
t.datetime "created_at", null: false
|
70
|
-
t.datetime "updated_at", null: false
|
71
|
-
end
|
72
|
-
|
73
|
-
add_index "lines_pictures", ["article_id"], name: "index_lines_pictures_on_article_id", using: :btree
|
74
|
-
|
75
|
-
|
76
|
-
create_table "lines_users", force: true do |t|
|
77
|
-
t.string "email"
|
78
|
-
t.string "password_digest"
|
79
|
-
t.datetime "created_at", null: false
|
80
|
-
t.datetime "updated_at", null: false
|
81
|
-
end
|
82
|
-
|
83
|
-
end
|
84
|
-
end
|
@@ -1,31 +0,0 @@
|
|
1
|
-
# This migration comes from acts_as_taggable_on_engine (originally 1)
|
2
|
-
class ActsAsTaggableOnMigration < ActiveRecord::Migration
|
3
|
-
def self.up
|
4
|
-
create_table :tags do |t|
|
5
|
-
t.string :name
|
6
|
-
end
|
7
|
-
|
8
|
-
create_table :taggings do |t|
|
9
|
-
t.references :tag
|
10
|
-
|
11
|
-
# You should make sure that the column created is
|
12
|
-
# long enough to store the required class names.
|
13
|
-
t.references :taggable, polymorphic: true
|
14
|
-
t.references :tagger, polymorphic: true
|
15
|
-
|
16
|
-
# Limit is created to prevent MySQL error on index
|
17
|
-
# length for MyISAM table type: http://bit.ly/vgW2Ql
|
18
|
-
t.string :context, limit: 128
|
19
|
-
|
20
|
-
t.datetime :created_at
|
21
|
-
end
|
22
|
-
|
23
|
-
add_index :taggings, :tag_id
|
24
|
-
add_index :taggings, [:taggable_id, :taggable_type, :context]
|
25
|
-
end
|
26
|
-
|
27
|
-
def self.down
|
28
|
-
drop_table :taggings
|
29
|
-
drop_table :tags
|
30
|
-
end
|
31
|
-
end
|
data/spec/dummy/db/migrate/20140702160603_add_missing_unique_indices.acts_as_taggable_on_engine.rb
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
# This migration comes from acts_as_taggable_on_engine (originally 2)
|
2
|
-
class AddMissingUniqueIndices < ActiveRecord::Migration
|
3
|
-
def self.up
|
4
|
-
add_index :tags, :name, unique: true
|
5
|
-
|
6
|
-
remove_index :taggings, :tag_id
|
7
|
-
remove_index :taggings, [:taggable_id, :taggable_type, :context]
|
8
|
-
add_index :taggings,
|
9
|
-
[:tag_id, :taggable_id, :taggable_type, :context, :tagger_id, :tagger_type],
|
10
|
-
unique: true, name: 'taggings_idx'
|
11
|
-
end
|
12
|
-
|
13
|
-
def self.down
|
14
|
-
remove_index :tags, :name
|
15
|
-
|
16
|
-
remove_index :taggings, name: 'taggings_idx'
|
17
|
-
add_index :taggings, :tag_id
|
18
|
-
add_index :taggings, [:taggable_id, :taggable_type, :context]
|
19
|
-
end
|
20
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# This migration comes from acts_as_taggable_on_engine (originally 3)
|
2
|
-
class AddTaggingsCounterCacheToTags < ActiveRecord::Migration
|
3
|
-
def self.up
|
4
|
-
add_column :tags, :taggings_count, :integer, default: 0
|
5
|
-
|
6
|
-
# ActsAsTaggableOn::Tag.reset_column_information
|
7
|
-
# ActsAsTaggableOn::Tag.find_each do |tag|
|
8
|
-
# ActsAsTaggableOn::Tag.reset_counters(tag.id, :taggings)
|
9
|
-
# end
|
10
|
-
end
|
11
|
-
|
12
|
-
def self.down
|
13
|
-
remove_column :tags, :taggings_count
|
14
|
-
end
|
15
|
-
end
|