yodel_development_environment 0.0.4 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,7 @@ class RecordModelMigration < Migration
|
|
9
9
|
add_field :name, :string
|
10
10
|
add_field :show_in_search, :boolean, default: true, section: 'Options'
|
11
11
|
add_field :search_keywords, :array, of: :string, display: false
|
12
|
-
add_field :search_title, :
|
12
|
+
add_field :search_title, :alias, of: :name, display: false
|
13
13
|
|
14
14
|
# modelling
|
15
15
|
add_one :eigenmodel, model: :model, destroy: true, display: false
|
@@ -28,6 +28,11 @@ class PageModelMigration < Migration
|
|
28
28
|
pages.record_class_name = 'Page'
|
29
29
|
end
|
30
30
|
|
31
|
+
# glob pages are normal pages, but match paths with components at the end
|
32
|
+
# of the page's path, e.g /git/HEAD would match the glob page /git
|
33
|
+
site.pages.create_model :glob_pages do |glob_pages|
|
34
|
+
end
|
35
|
+
|
31
36
|
# default root page
|
32
37
|
page = site.pages.new
|
33
38
|
page.title = "Home"
|
@@ -8,6 +8,7 @@ class UserModelMigration < Migration
|
|
8
8
|
add_field :username, :string, index: true, validations: {required: {}, unique: {}}, searchable: false
|
9
9
|
add_field :password, :password, validations: {required: {}}, searchable: false
|
10
10
|
add_field :password_salt, :string, display: false, searchable: false
|
11
|
+
add_field :created_at, :time, display: false
|
11
12
|
add_many :groups, default: [site.groups['Users'].id]
|
12
13
|
add_field :owner, :self
|
13
14
|
|
@@ -2,6 +2,7 @@ class SnippetModelMigration < Migration
|
|
2
2
|
def self.up(site)
|
3
3
|
site.records.create_model :snippets do |snippets|
|
4
4
|
add_field :name, :string, validations: {required: {}}, index: true
|
5
|
+
add_field :show_in_search, :boolean, default: false, display: false
|
5
6
|
add_field :content, :text
|
6
7
|
snippets.searchable = false
|
7
8
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yodel_development_environment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2012-01-07 00:00:00.000000000Z
|
13
13
|
dependencies: []
|
14
14
|
description: Yodel Development Environment
|
15
15
|
email:
|