cardboard_cms 0.2.2 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +6 -0
- data/Gemfile +2 -2
- data/Gemfile.lock +47 -42
- data/README.md +12 -2
- data/app/assets/javascripts/cardboard/admin.js +1 -1
- data/app/controllers/pages_controller.rb +3 -35
- data/app/controllers/url_controller.rb +33 -0
- data/app/decorators/controllers/application_controller_decorator.rb +3 -1
- data/app/helpers/cardboard/public_helper.rb +1 -1
- data/app/helpers/cardboard/resource_helper.rb +6 -0
- data/app/models/cardboard/field.rb +2 -1
- data/app/models/cardboard/field/rich_text.rb +5 -5
- data/app/models/cardboard/page.rb +30 -72
- data/app/models/cardboard/setting.rb +0 -2
- data/app/models/cardboard/template.rb +5 -0
- data/app/models/cardboard/url.rb +91 -0
- data/app/views/cardboard/pages/_sidebar.html.slim +1 -1
- data/app/views/layouts/cardboard/_main_topbar.html.slim +1 -1
- data/cardboard.gemspec +4 -2
- data/config/routes.rb +3 -14
- data/db/migrate/1_create_cardboard.rb +13 -4
- data/lib/cardboard/concerns/url_concern.rb +29 -0
- data/lib/cardboard/constraints/page_constraint.rb +7 -0
- data/lib/cardboard/dynamic_router.rb +34 -0
- data/lib/cardboard/engine.rb +3 -1
- data/lib/cardboard/helpers/content_for_in_controllers.rb +23 -0
- data/lib/cardboard/helpers/seed.rb +17 -10
- data/lib/cardboard/version.rb +1 -1
- data/lib/generators/cardboard/resource/resource_generator.rb +2 -2
- data/lib/generators/cardboard/resource/templates/slim/edit.html.slim +1 -1
- data/lib/generators/cardboard/resource/templates/slim/new.html.slim +1 -1
- data/test/dummy/app/controllers/blog_controller.rb +2 -0
- data/test/dummy/app/views/blog/index.html.slim +1 -0
- data/test/dummy/app/views/layouts/application.html.slim +1 -0
- data/test/dummy/app/views/pages/about_us.html.slim +1 -0
- data/test/dummy/app/views/pages/history.html.slim +3 -0
- data/test/dummy/app/views/{templates → pages}/home.html.slim +0 -0
- data/test/dummy/config/cardboard.yml +6 -2
- data/test/dummy/db/migrate/20140312180204_create_cardboard.rb +72 -0
- data/test/dummy/db/schema.rb +19 -6
- data/test/models/url_test.rb +11 -0
- metadata +32 -28
- data/.ruby-gemset +0 -1
- data/.ruby-version +0 -1
- data/app/views/cardboard/pages/_error.html.slim +0 -7
- data/app/views/cardboard/pages/_seo.html.slim +0 -6
- data/app/views/cardboard/pages/show.html.slim +0 -9
- data/test/dummy/app/views/templates/about-us.html.slim +0 -1
- data/test/dummy/test/fixtures/admins.yml +0 -7
- data/test/dummy/test/functional/admins_controller_test.rb +0 -49
- data/test/dummy/test/unit/admin_test.rb +0 -7
- data/test/dummy/test/unit/helpers/admins_helper_test.rb +0 -4
@@ -0,0 +1,34 @@
|
|
1
|
+
module Cardboard
|
2
|
+
class DynamicRouter
|
3
|
+
|
4
|
+
def self.load
|
5
|
+
|
6
|
+
Rails.application.routes.draw do
|
7
|
+
return unless ActiveRecord::Base.connection.table_exists? :cardboard_urls
|
8
|
+
Cardboard::Url.where("slugs_backup IS NOT NULL").each do |url|
|
9
|
+
for link in url.slugs_backup
|
10
|
+
get link, to: redirect(url.to_s)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
return unless ActiveRecord::Base.connection.table_exists? :cardboard_pages
|
15
|
+
routes = @set.named_routes.routes
|
16
|
+
Cardboard::Page.includes(:url_object, :template).each do |page|
|
17
|
+
url = page.url_object
|
18
|
+
template = page.template
|
19
|
+
|
20
|
+
get url.to_s, :to => template.controller_action || "pages##{template.identifier}", defaults: { identifier: template.identifier }
|
21
|
+
|
22
|
+
if !routes[:root] && page.root?
|
23
|
+
root :to => template.controller_action || "pages##{template.identifier}"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
|
30
|
+
def self.reload
|
31
|
+
Rails.application.routes_reloader.reload!
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
data/lib/cardboard/engine.rb
CHANGED
@@ -21,7 +21,9 @@ require 'decorators'
|
|
21
21
|
require 'bootstrap-wysihtml5-rails'
|
22
22
|
require 'select2-rails'
|
23
23
|
require 'jquery-rails'
|
24
|
-
|
24
|
+
require 'cardboard/concerns/url_concern'
|
25
|
+
require 'cardboard/helpers/content_for_in_controllers'
|
26
|
+
require 'cardboard/dynamic_router'
|
25
27
|
|
26
28
|
module Cardboard
|
27
29
|
class Engine < ::Rails::Engine
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Cardboard
|
2
|
+
module ContentForInControllers
|
3
|
+
# https://gist.github.com/hiroshi/985457
|
4
|
+
def view_context
|
5
|
+
super.tap do |view|
|
6
|
+
(@_content_for || {}).each do |name,content|
|
7
|
+
view.content_for name, content
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
def content_for(name, content) # no blocks allowed yet
|
12
|
+
@_content_for ||= {}
|
13
|
+
if @_content_for[name].respond_to?(:<<)
|
14
|
+
@_content_for[name] << content
|
15
|
+
else
|
16
|
+
@_content_for[name] = content
|
17
|
+
end
|
18
|
+
end
|
19
|
+
def content_for?(name)
|
20
|
+
@_content_for[name].present?
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -5,11 +5,19 @@ module Cardboard
|
|
5
5
|
module Seed
|
6
6
|
extend ActiveSupport::Concern
|
7
7
|
|
8
|
+
def self.populate_template(id, template)
|
9
|
+
db_template = Cardboard::Template.where(identifier: id.to_s).first_or_initialize
|
10
|
+
db_template.update_attributes!(name: template[:title] || template[:name] || id.to_s,
|
11
|
+
fields: template[:parts],
|
12
|
+
controller_action: template[:controller_action],
|
13
|
+
is_page: template[:is_page])
|
14
|
+
db_template
|
15
|
+
end
|
16
|
+
|
8
17
|
def self.populate_templates(templates)
|
9
18
|
templates ||= {}
|
10
19
|
templates.each do |id, template|
|
11
|
-
db_template =
|
12
|
-
db_template.update_attributes!(name: template[:title] || template[:name] || id.to_s, fields: template[:parts], is_page: false)
|
20
|
+
db_template = populate_template(id, template.merge(is_page: false))
|
13
21
|
end
|
14
22
|
end
|
15
23
|
|
@@ -19,9 +27,8 @@ module Cardboard
|
|
19
27
|
# add the page
|
20
28
|
pages.each do |id, page|
|
21
29
|
# create the template
|
22
|
-
db_template =
|
23
|
-
|
24
|
-
|
30
|
+
db_template = populate_template(id, page.merge(is_page: true))
|
31
|
+
|
25
32
|
db_page = Cardboard::Page.where(identifier: id.to_s).first_or_initialize
|
26
33
|
db_page.position_position = page[:position] || :last
|
27
34
|
db_page.template = db_template
|
@@ -69,11 +76,11 @@ module Cardboard
|
|
69
76
|
end
|
70
77
|
|
71
78
|
def self.populate_settings(settings)
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
79
|
+
settings ||= {}
|
80
|
+
settings["company_name"] ||= {type: "string", default: Cardboard.application.site_title}
|
81
|
+
db_settings = Cardboard::Setting.first_or_create
|
82
|
+
db_settings.update_attributes!(template: settings)
|
83
|
+
self.populate_fields(settings, db_settings)
|
77
84
|
end
|
78
85
|
|
79
86
|
end
|
data/lib/cardboard/version.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Cardboard
|
2
2
|
module Generators
|
3
3
|
class ResourceGenerator < Rails::Generators::Base
|
4
|
-
desc "
|
4
|
+
desc "Scaffold a Cardboard resource"
|
5
5
|
argument :resource_name, :type => :string
|
6
6
|
#TODO: option for haml
|
7
7
|
class_option :markup, :type => :string, :default => "slim"
|
@@ -14,7 +14,7 @@ module Cardboard
|
|
14
14
|
begin
|
15
15
|
fields
|
16
16
|
rescue Exception => e
|
17
|
-
raise "Model #{singular_table_name.classify} does not exist. Try running `rails g model #{singular_table_name.classify}`"
|
17
|
+
raise "Model #{singular_table_name.classify} does not exist, or there's no database. Try running `rails g model #{singular_table_name.classify}`"
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
@@ -1,4 +1,4 @@
|
|
1
1
|
h1 Editing <%= singular_table_name %>
|
2
2
|
|
3
|
-
= simple_form_for @<%= singular_table_name %>, url: cardboard_<%= singular_table_name %>_path(@<%= singular_table_name %>) do |f|
|
3
|
+
= simple_form_for @<%= singular_table_name %>, url: cardboard_<%= singular_table_name %>_path(@<%= singular_table_name %>), wrapper: "bootstrap" do |f|
|
4
4
|
== render 'fields', f: f
|
@@ -1,4 +1,4 @@
|
|
1
1
|
h1 New <%= singular_table_name.titleize %>
|
2
2
|
|
3
|
-
= simple_form_for @<%= singular_table_name %>, url: cardboard_<%= plural_table_name %>_path do |f|
|
3
|
+
= simple_form_for @<%= singular_table_name %>, url: cardboard_<%= plural_table_name %>_path, wrapper: "bootstrap" do |f|
|
4
4
|
== render 'fields', f: f
|
@@ -0,0 +1 @@
|
|
1
|
+
h1 Blog index
|
@@ -0,0 +1 @@
|
|
1
|
+
h1 About Us Template
|
File without changes
|
@@ -1,5 +1,4 @@
|
|
1
|
-
|
2
|
-
templates:
|
1
|
+
pages:
|
3
2
|
#---
|
4
3
|
home:
|
5
4
|
title: Welcome
|
@@ -26,6 +25,11 @@ templates:
|
|
26
25
|
description:
|
27
26
|
hint: This will be visible on mouse over
|
28
27
|
type: string
|
28
|
+
blog:
|
29
|
+
title: ideas
|
30
|
+
controller_action: "blog#index"
|
31
|
+
|
32
|
+
templates:
|
29
33
|
#---
|
30
34
|
about_us:
|
31
35
|
title: About us
|
@@ -0,0 +1,72 @@
|
|
1
|
+
class CreateCardboard < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
#Fields
|
4
|
+
create_table :cardboard_fields do |t|
|
5
|
+
t.string :identifier
|
6
|
+
t.string :type
|
7
|
+
t.text :value_uid
|
8
|
+
t.integer :object_with_field_id
|
9
|
+
t.string :object_with_field_type
|
10
|
+
|
11
|
+
t.timestamps
|
12
|
+
end
|
13
|
+
add_index :cardboard_fields, :identifier
|
14
|
+
add_index :cardboard_fields, [:object_with_field_id, :object_with_field_type], :name => 'parent_object'
|
15
|
+
|
16
|
+
#Page Parts
|
17
|
+
create_table :cardboard_page_parts do |t|
|
18
|
+
t.string :identifier
|
19
|
+
t.integer :position
|
20
|
+
t.belongs_to :page
|
21
|
+
|
22
|
+
t.timestamps
|
23
|
+
end
|
24
|
+
add_index :cardboard_page_parts, :page_id
|
25
|
+
add_index :cardboard_page_parts, :identifier
|
26
|
+
|
27
|
+
#Pages
|
28
|
+
create_table :cardboard_pages do |t|
|
29
|
+
t.string :title
|
30
|
+
t.integer :position
|
31
|
+
t.text :meta_seo
|
32
|
+
t.boolean :in_menu, default: true
|
33
|
+
t.string :identifier, unique: true
|
34
|
+
t.belongs_to :template
|
35
|
+
|
36
|
+
t.timestamps
|
37
|
+
end
|
38
|
+
add_index :cardboard_pages, :identifier, :unique => true
|
39
|
+
|
40
|
+
#Settings
|
41
|
+
create_table :cardboard_settings do |t|
|
42
|
+
t.string :name
|
43
|
+
t.text :value
|
44
|
+
t.text :default_value
|
45
|
+
t.text :template
|
46
|
+
|
47
|
+
end
|
48
|
+
add_index :cardboard_settings, :name
|
49
|
+
|
50
|
+
#Templates
|
51
|
+
create_table :cardboard_templates do |t|
|
52
|
+
t.string :name
|
53
|
+
t.text :fields
|
54
|
+
t.string :identifier
|
55
|
+
t.boolean :is_page
|
56
|
+
t.string :controller_action
|
57
|
+
t.timestamps
|
58
|
+
end
|
59
|
+
add_index :cardboard_templates, :identifier, :unique => true
|
60
|
+
|
61
|
+
create_table :cardboard_urls do |t|
|
62
|
+
t.string :slug, index: true
|
63
|
+
t.string :path, index: true
|
64
|
+
t.text :slugs_backup
|
65
|
+
t.text :meta_tags
|
66
|
+
t.references :urlable, polymorphic: true
|
67
|
+
|
68
|
+
t.timestamps
|
69
|
+
end
|
70
|
+
add_index :cardboard_urls, [:path, :slug], :unique => true
|
71
|
+
end
|
72
|
+
end
|
data/test/dummy/db/schema.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
14
|
+
ActiveRecord::Schema.define(version: 20140312180204) do
|
15
15
|
|
16
16
|
create_table "admin_users", force: true do |t|
|
17
17
|
t.string "email", default: "", null: false
|
@@ -55,12 +55,9 @@ ActiveRecord::Schema.define(version: 20130417134832) do
|
|
55
55
|
|
56
56
|
create_table "cardboard_pages", force: true do |t|
|
57
57
|
t.string "title"
|
58
|
-
t.string "path"
|
59
|
-
t.string "slug"
|
60
|
-
t.text "slugs_backup"
|
61
58
|
t.integer "position"
|
62
59
|
t.text "meta_seo"
|
63
|
-
t.boolean "in_menu",
|
60
|
+
t.boolean "in_menu", default: true
|
64
61
|
t.string "identifier"
|
65
62
|
t.integer "template_id"
|
66
63
|
t.datetime "created_at"
|
@@ -68,7 +65,6 @@ ActiveRecord::Schema.define(version: 20130417134832) do
|
|
68
65
|
end
|
69
66
|
|
70
67
|
add_index "cardboard_pages", ["identifier"], name: "index_cardboard_pages_on_identifier", unique: true
|
71
|
-
add_index "cardboard_pages", ["path", "slug"], name: "index_cardboard_pages_on_path_and_slug", unique: true
|
72
68
|
|
73
69
|
create_table "cardboard_settings", force: true do |t|
|
74
70
|
t.string "name"
|
@@ -83,10 +79,27 @@ ActiveRecord::Schema.define(version: 20130417134832) do
|
|
83
79
|
t.string "name"
|
84
80
|
t.text "fields"
|
85
81
|
t.string "identifier"
|
82
|
+
t.boolean "is_page"
|
83
|
+
t.string "controller_action"
|
84
|
+
t.datetime "created_at"
|
85
|
+
t.datetime "updated_at"
|
86
|
+
end
|
87
|
+
|
88
|
+
add_index "cardboard_templates", ["identifier"], name: "index_cardboard_templates_on_identifier", unique: true
|
89
|
+
|
90
|
+
create_table "cardboard_urls", force: true do |t|
|
91
|
+
t.string "slug"
|
92
|
+
t.string "path"
|
93
|
+
t.text "slugs_backup"
|
94
|
+
t.text "meta_tags"
|
95
|
+
t.integer "urlable_id"
|
96
|
+
t.string "urlable_type"
|
86
97
|
t.datetime "created_at"
|
87
98
|
t.datetime "updated_at"
|
88
99
|
end
|
89
100
|
|
101
|
+
add_index "cardboard_urls", ["path", "slug"], name: "index_cardboard_urls_on_path_and_slug", unique: true
|
102
|
+
|
90
103
|
create_table "pianos", force: true do |t|
|
91
104
|
t.string "name"
|
92
105
|
t.string "image"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cardboard_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Elfassy
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-07-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -127,16 +127,16 @@ dependencies:
|
|
127
127
|
name: bootstrap-wysihtml5-rails
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
129
129
|
requirements:
|
130
|
-
- -
|
130
|
+
- - ~>
|
131
131
|
- !ruby/object:Gem::Version
|
132
|
-
version:
|
132
|
+
version: 0.3.1.24
|
133
133
|
type: :runtime
|
134
134
|
prerelease: false
|
135
135
|
version_requirements: !ruby/object:Gem::Requirement
|
136
136
|
requirements:
|
137
|
-
- -
|
137
|
+
- - ~>
|
138
138
|
- !ruby/object:Gem::Version
|
139
|
-
version:
|
139
|
+
version: 0.3.1.24
|
140
140
|
- !ruby/object:Gem::Dependency
|
141
141
|
name: kaminari-bootstrap
|
142
142
|
requirement: !ruby/object:Gem::Requirement
|
@@ -337,16 +337,16 @@ dependencies:
|
|
337
337
|
name: jquery-ui-rails
|
338
338
|
requirement: !ruby/object:Gem::Requirement
|
339
339
|
requirements:
|
340
|
-
- -
|
340
|
+
- - ~>
|
341
341
|
- !ruby/object:Gem::Version
|
342
|
-
version:
|
342
|
+
version: 5.0.0
|
343
343
|
type: :runtime
|
344
344
|
prerelease: false
|
345
345
|
version_requirements: !ruby/object:Gem::Requirement
|
346
346
|
requirements:
|
347
|
-
- -
|
347
|
+
- - ~>
|
348
348
|
- !ruby/object:Gem::Version
|
349
|
-
version:
|
349
|
+
version: 5.0.0
|
350
350
|
- !ruby/object:Gem::Dependency
|
351
351
|
name: select2-rails
|
352
352
|
requirement: !ruby/object:Gem::Requirement
|
@@ -480,8 +480,7 @@ executables: []
|
|
480
480
|
extensions: []
|
481
481
|
extra_rdoc_files: []
|
482
482
|
files:
|
483
|
-
- .
|
484
|
-
- .ruby-version
|
483
|
+
- .travis.yml
|
485
484
|
- Gemfile
|
486
485
|
- Gemfile.lock
|
487
486
|
- Guardfile
|
@@ -525,6 +524,7 @@ files:
|
|
525
524
|
- app/controllers/cardboard/settings_controller.rb
|
526
525
|
- app/controllers/cardboard/super_user_controller.rb
|
527
526
|
- app/controllers/pages_controller.rb
|
527
|
+
- app/controllers/url_controller.rb
|
528
528
|
- app/decorators/controllers/application_controller_decorator.rb
|
529
529
|
- app/decorators/lib/cardboard/user_class_decorator.rb
|
530
530
|
- app/helpers/cardboard/application_helper.rb
|
@@ -550,6 +550,7 @@ files:
|
|
550
550
|
- app/models/cardboard/page_part.rb
|
551
551
|
- app/models/cardboard/setting.rb
|
552
552
|
- app/models/cardboard/template.rb
|
553
|
+
- app/models/cardboard/url.rb
|
553
554
|
- app/views/cardboard/dashboard/index.html.slim
|
554
555
|
- app/views/cardboard/fields/_base_input.html.slim
|
555
556
|
- app/views/cardboard/fields/_boolean.html.slim
|
@@ -561,15 +562,12 @@ files:
|
|
561
562
|
- app/views/cardboard/fields/_rich_text.html.slim
|
562
563
|
- app/views/cardboard/fields/_string.html.slim
|
563
564
|
- app/views/cardboard/my_account/edit.html.slim
|
564
|
-
- app/views/cardboard/pages/_error.html.slim
|
565
565
|
- app/views/cardboard/pages/_part_fields.html.slim
|
566
|
-
- app/views/cardboard/pages/_seo.html.slim
|
567
566
|
- app/views/cardboard/pages/_sidebar.html.slim
|
568
567
|
- app/views/cardboard/pages/_url_field.html.slim
|
569
568
|
- app/views/cardboard/pages/edit.html.slim
|
570
569
|
- app/views/cardboard/pages/index.html.slim
|
571
570
|
- app/views/cardboard/pages/new.html.slim
|
572
|
-
- app/views/cardboard/pages/show.html.slim
|
573
571
|
- app/views/cardboard/resources/_advanced_search.html.slim
|
574
572
|
- app/views/cardboard/resources/_search_button.html.slim
|
575
573
|
- app/views/cardboard/resources/_search_helper.html.slim
|
@@ -673,7 +671,11 @@ files:
|
|
673
671
|
- doc/panel/links.html
|
674
672
|
- doc/panel/tree.js
|
675
673
|
- lib/cardboard/application.rb
|
674
|
+
- lib/cardboard/concerns/url_concern.rb
|
675
|
+
- lib/cardboard/constraints/page_constraint.rb
|
676
|
+
- lib/cardboard/dynamic_router.rb
|
676
677
|
- lib/cardboard/engine.rb
|
678
|
+
- lib/cardboard/helpers/content_for_in_controllers.rb
|
677
679
|
- lib/cardboard/helpers/seed.rb
|
678
680
|
- lib/cardboard/helpers/settings.rb
|
679
681
|
- lib/cardboard/version.rb
|
@@ -713,6 +715,7 @@ files:
|
|
713
715
|
- test/dummy/app/assets/stylesheets/pianos.css.scss
|
714
716
|
- test/dummy/app/assets/stylesheets/scaffolds.css.scss
|
715
717
|
- test/dummy/app/controllers/application_controller.rb
|
718
|
+
- test/dummy/app/controllers/blog_controller.rb
|
716
719
|
- test/dummy/app/controllers/cardboard/pianos_controller.rb
|
717
720
|
- test/dummy/app/controllers/pianos_controller.rb
|
718
721
|
- test/dummy/app/helpers/application_helper.rb
|
@@ -721,6 +724,7 @@ files:
|
|
721
724
|
- test/dummy/app/models/.gitkeep
|
722
725
|
- test/dummy/app/models/admin_user.rb
|
723
726
|
- test/dummy/app/models/piano.rb
|
727
|
+
- test/dummy/app/views/blog/index.html.slim
|
724
728
|
- test/dummy/app/views/cardboard/pianos/_fields.html.slim
|
725
729
|
- test/dummy/app/views/cardboard/pianos/edit.html.slim
|
726
730
|
- test/dummy/app/views/cardboard/pianos/index.html.slim
|
@@ -728,13 +732,14 @@ files:
|
|
728
732
|
- test/dummy/app/views/cardboard/pianos/show.html.slim
|
729
733
|
- test/dummy/app/views/layouts/application.html.slim
|
730
734
|
- test/dummy/app/views/main/index.html.slim
|
735
|
+
- test/dummy/app/views/pages/about_us.html.slim
|
736
|
+
- test/dummy/app/views/pages/history.html.slim
|
737
|
+
- test/dummy/app/views/pages/home.html.slim
|
731
738
|
- test/dummy/app/views/pianos/_form.html.erb
|
732
739
|
- test/dummy/app/views/pianos/edit.html.erb
|
733
740
|
- test/dummy/app/views/pianos/index.html.erb
|
734
741
|
- test/dummy/app/views/pianos/new.html.erb
|
735
742
|
- test/dummy/app/views/pianos/show.html.erb
|
736
|
-
- test/dummy/app/views/templates/about-us.html.slim
|
737
|
-
- test/dummy/app/views/templates/home.html.slim
|
738
743
|
- test/dummy/config.ru
|
739
744
|
- test/dummy/config/application.rb
|
740
745
|
- test/dummy/config/boot.rb
|
@@ -757,6 +762,7 @@ files:
|
|
757
762
|
- test/dummy/config/routes.rb
|
758
763
|
- test/dummy/db/migrate/20130403142235_create_pianos.rb
|
759
764
|
- test/dummy/db/migrate/20130417134832_add_devise_to_admin_users.rb
|
765
|
+
- test/dummy/db/migrate/20140312180204_create_cardboard.rb
|
760
766
|
- test/dummy/db/schema.rb
|
761
767
|
- test/dummy/db/seeds.rb
|
762
768
|
- test/dummy/lib/assets/.gitkeep
|
@@ -820,16 +826,13 @@ files:
|
|
820
826
|
- test/dummy/public/system/dragonfly/development/2013/04/19/09_54_45_450_hall3.jpg
|
821
827
|
- test/dummy/public/system/dragonfly/development/2013/04/19/09_54_45_450_hall3.jpg.meta
|
822
828
|
- test/dummy/script/rails
|
823
|
-
- test/dummy/test/fixtures/admins.yml
|
824
|
-
- test/dummy/test/functional/admins_controller_test.rb
|
825
|
-
- test/dummy/test/unit/admin_test.rb
|
826
|
-
- test/dummy/test/unit/helpers/admins_helper_test.rb
|
827
829
|
- test/factories.rb
|
828
830
|
- test/integration/page_editing_test.rb
|
829
831
|
- test/integration/seeding_test.rb
|
830
832
|
- test/models/field_test.rb
|
831
833
|
- test/models/page_test.rb
|
832
834
|
- test/models/template_test.rb
|
835
|
+
- test/models/url_test.rb
|
833
836
|
- test/test_helper.rb
|
834
837
|
- vendor/assets/javascripts/cardboard/bootstrap-select.js
|
835
838
|
- vendor/assets/javascripts/cardboard/jquery.livesearch.js
|
@@ -848,7 +851,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
848
851
|
requirements:
|
849
852
|
- - '>='
|
850
853
|
- !ruby/object:Gem::Version
|
851
|
-
version:
|
854
|
+
version: 1.9.3
|
852
855
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
853
856
|
requirements:
|
854
857
|
- - '>='
|
@@ -882,6 +885,7 @@ test_files:
|
|
882
885
|
- test/dummy/app/assets/stylesheets/pianos.css.scss
|
883
886
|
- test/dummy/app/assets/stylesheets/scaffolds.css.scss
|
884
887
|
- test/dummy/app/controllers/application_controller.rb
|
888
|
+
- test/dummy/app/controllers/blog_controller.rb
|
885
889
|
- test/dummy/app/controllers/cardboard/pianos_controller.rb
|
886
890
|
- test/dummy/app/controllers/pianos_controller.rb
|
887
891
|
- test/dummy/app/helpers/application_helper.rb
|
@@ -890,6 +894,7 @@ test_files:
|
|
890
894
|
- test/dummy/app/models/.gitkeep
|
891
895
|
- test/dummy/app/models/admin_user.rb
|
892
896
|
- test/dummy/app/models/piano.rb
|
897
|
+
- test/dummy/app/views/blog/index.html.slim
|
893
898
|
- test/dummy/app/views/cardboard/pianos/_fields.html.slim
|
894
899
|
- test/dummy/app/views/cardboard/pianos/edit.html.slim
|
895
900
|
- test/dummy/app/views/cardboard/pianos/index.html.slim
|
@@ -897,13 +902,14 @@ test_files:
|
|
897
902
|
- test/dummy/app/views/cardboard/pianos/show.html.slim
|
898
903
|
- test/dummy/app/views/layouts/application.html.slim
|
899
904
|
- test/dummy/app/views/main/index.html.slim
|
905
|
+
- test/dummy/app/views/pages/about_us.html.slim
|
906
|
+
- test/dummy/app/views/pages/history.html.slim
|
907
|
+
- test/dummy/app/views/pages/home.html.slim
|
900
908
|
- test/dummy/app/views/pianos/_form.html.erb
|
901
909
|
- test/dummy/app/views/pianos/edit.html.erb
|
902
910
|
- test/dummy/app/views/pianos/index.html.erb
|
903
911
|
- test/dummy/app/views/pianos/new.html.erb
|
904
912
|
- test/dummy/app/views/pianos/show.html.erb
|
905
|
-
- test/dummy/app/views/templates/about-us.html.slim
|
906
|
-
- test/dummy/app/views/templates/home.html.slim
|
907
913
|
- test/dummy/config.ru
|
908
914
|
- test/dummy/config/application.rb
|
909
915
|
- test/dummy/config/boot.rb
|
@@ -926,6 +932,7 @@ test_files:
|
|
926
932
|
- test/dummy/config/routes.rb
|
927
933
|
- test/dummy/db/migrate/20130403142235_create_pianos.rb
|
928
934
|
- test/dummy/db/migrate/20130417134832_add_devise_to_admin_users.rb
|
935
|
+
- test/dummy/db/migrate/20140312180204_create_cardboard.rb
|
929
936
|
- test/dummy/db/schema.rb
|
930
937
|
- test/dummy/db/seeds.rb
|
931
938
|
- test/dummy/lib/assets/.gitkeep
|
@@ -989,14 +996,11 @@ test_files:
|
|
989
996
|
- test/dummy/public/system/dragonfly/development/2013/04/19/09_54_45_450_hall3.jpg
|
990
997
|
- test/dummy/public/system/dragonfly/development/2013/04/19/09_54_45_450_hall3.jpg.meta
|
991
998
|
- test/dummy/script/rails
|
992
|
-
- test/dummy/test/fixtures/admins.yml
|
993
|
-
- test/dummy/test/functional/admins_controller_test.rb
|
994
|
-
- test/dummy/test/unit/admin_test.rb
|
995
|
-
- test/dummy/test/unit/helpers/admins_helper_test.rb
|
996
999
|
- test/factories.rb
|
997
1000
|
- test/integration/page_editing_test.rb
|
998
1001
|
- test/integration/seeding_test.rb
|
999
1002
|
- test/models/field_test.rb
|
1000
1003
|
- test/models/page_test.rb
|
1001
1004
|
- test/models/template_test.rb
|
1005
|
+
- test/models/url_test.rb
|
1002
1006
|
- test/test_helper.rb
|