shakespeare 0.2.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +101 -88
- data/Rakefile +1 -1
- data/app/views/pages/show.html.erb +7 -3
- data/lib/shakespeare/settings.rb +37 -29
- data/shakespeare.gemspec +3 -3
- data/spec/debug.log +89 -0
- metadata +12 -5
data/README.md
CHANGED
@@ -1,89 +1,102 @@
|
|
1
|
-
Shakespeare
|
2
|
-
===========
|
3
|
-
|
4
|
-
Shakespeare is a Ruby on Rails content manager plugin.
|
5
|
-
|
6
|
-
Shakespeare allows:
|
7
|
-
|
8
|
-
- User-editable page titles, descriptions, meta info and content blocks for dynamic requests
|
9
|
-
- User editable content-only pages
|
10
|
-
|
11
|
-
Shakespeare is a super simple bolt-on CMS for any Rails app.
|
12
|
-
|
13
|
-
Installation
|
14
|
-
============
|
15
|
-
|
16
|
-
Shakespeare is easy to install.
|
17
|
-
|
18
|
-
As a plugin:
|
19
|
-
|
20
|
-
./script/plugin install git://github.com/paulca/shakespeare.git
|
21
|
-
|
22
|
-
Or as a gem. Add this to your environment.rb:
|
23
|
-
|
24
|
-
config.gem 'shakespeare'
|
25
|
-
|
26
|
-
Then generate the migration to create the pages table:
|
27
|
-
|
28
|
-
./script/generate shakespeare
|
29
|
-
|
30
|
-
And run the migration:
|
31
|
-
|
32
|
-
rake db:migrate
|
33
|
-
|
34
|
-
Basic Usage
|
35
|
-
===========
|
36
|
-
|
37
|
-
Once Shakespeare is installed, every controller action can now have its own content. You an access this content in the controller or the view with the `page_content` method.
|
38
|
-
|
39
|
-
View Helpers
|
40
|
-
============
|
41
|
-
|
42
|
-
In your views, you have access to a number of helpers for generating your page meta-data.
|
43
|
-
|
44
|
-
- `page_title` is the title of the page
|
45
|
-
- `keywords_meta_tag` generates a <meta> tag for the page keywords, or returns nil if it's left blank
|
46
|
-
- `description_meta_tag` generates a <meta> tag for the page description, or returns nil if it's left blank
|
47
|
-
- `robots_meta_tag` generates a <meta> tag for the robots no-index and/or nofollow meta tag options, or returns nil if it's left blank
|
48
|
-
- `canonical_link_tag` generates a <link> tag with the canonical URL for the page, if `enable_canonical` is set to true
|
49
|
-
|
50
|
-
You also get access to route helpers:
|
51
|
-
|
52
|
-
- `admin_pages_path` and `admin_pages_url` point to the pages admin interface
|
53
|
-
|
54
|
-
Web Interface
|
55
|
-
=============
|
56
|
-
|
57
|
-
Using Rails' Engines feature, Shakespeare comes with a web interface that is available to your app straight away at `http://localhost:3000/admin/pages`.
|
58
|
-
|
59
|
-
By default, this comes with no styling, but you can create a layout in `app/layouts/admin.html.erb`, or set a layout by setting `Shakespare::Settings.layout`
|
60
|
-
|
61
|
-
For example, to use your standard application layout, create a `config/initializers/shakespeare.rb` like this:
|
62
|
-
|
63
|
-
Shakespeare::Settings.layout = 'application'
|
64
|
-
|
65
|
-
You can also add before_filters to protect the controller from outsiders:
|
66
|
-
|
67
|
-
Shakespeare::Settings.before_filters << 'require_admin_user'
|
68
|
-
|
69
|
-
By default, in production, if `Shakespeare::Settings.before_filters` is empty, `/admin/pages` is protected. You can disable this protection by setting `Behavior::Settings.allow_anonymous` to true.
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
1
|
+
Shakespeare
|
2
|
+
===========
|
3
|
+
|
4
|
+
Shakespeare is a Ruby on Rails content manager plugin.
|
5
|
+
|
6
|
+
Shakespeare allows:
|
7
|
+
|
8
|
+
- User-editable page titles, descriptions, meta info and content blocks for dynamic requests
|
9
|
+
- User editable content-only pages
|
10
|
+
|
11
|
+
Shakespeare is a super simple bolt-on CMS for any Rails app.
|
12
|
+
|
13
|
+
Installation
|
14
|
+
============
|
15
|
+
|
16
|
+
Shakespeare is easy to install.
|
17
|
+
|
18
|
+
As a plugin:
|
19
|
+
|
20
|
+
./script/plugin install git://github.com/paulca/shakespeare.git
|
21
|
+
|
22
|
+
Or as a gem. Add this to your environment.rb:
|
23
|
+
|
24
|
+
config.gem 'shakespeare'
|
25
|
+
|
26
|
+
Then generate the migration to create the pages table:
|
27
|
+
|
28
|
+
./script/generate shakespeare
|
29
|
+
|
30
|
+
And run the migration:
|
31
|
+
|
32
|
+
rake db:migrate
|
33
|
+
|
34
|
+
Basic Usage
|
35
|
+
===========
|
36
|
+
|
37
|
+
Once Shakespeare is installed, every controller action can now have its own content. You an access this content in the controller or the view with the `page_content` method.
|
38
|
+
|
39
|
+
View Helpers
|
40
|
+
============
|
41
|
+
|
42
|
+
In your views, you have access to a number of helpers for generating your page meta-data.
|
43
|
+
|
44
|
+
- `page_title` is the title of the page
|
45
|
+
- `keywords_meta_tag` generates a <meta> tag for the page keywords, or returns nil if it's left blank
|
46
|
+
- `description_meta_tag` generates a <meta> tag for the page description, or returns nil if it's left blank
|
47
|
+
- `robots_meta_tag` generates a <meta> tag for the robots no-index and/or nofollow meta tag options, or returns nil if it's left blank
|
48
|
+
- `canonical_link_tag` generates a <link> tag with the canonical URL for the page, if `enable_canonical` is set to true
|
49
|
+
|
50
|
+
You also get access to route helpers:
|
51
|
+
|
52
|
+
- `admin_pages_path` and `admin_pages_url` point to the pages admin interface
|
53
|
+
|
54
|
+
Web Interface
|
55
|
+
=============
|
56
|
+
|
57
|
+
Using Rails' Engines feature, Shakespeare comes with a web interface that is available to your app straight away at `http://localhost:3000/admin/pages`.
|
58
|
+
|
59
|
+
By default, this comes with no styling, but you can create a layout in `app/layouts/admin.html.erb`, or set a layout by setting `Shakespare::Settings.layout`
|
60
|
+
|
61
|
+
For example, to use your standard application layout, create a `config/initializers/shakespeare.rb` like this:
|
62
|
+
|
63
|
+
Shakespeare::Settings.layout = 'application'
|
64
|
+
|
65
|
+
You can also add before_filters to protect the controller from outsiders:
|
66
|
+
|
67
|
+
Shakespeare::Settings.before_filters << 'require_admin_user'
|
68
|
+
|
69
|
+
By default, in production, if `Shakespeare::Settings.before_filters` is empty, `/admin/pages` is protected. You can disable this protection by setting `Behavior::Settings.allow_anonymous` to true.
|
70
|
+
|
71
|
+
Format Method
|
72
|
+
=============
|
73
|
+
|
74
|
+
By default, pages can be accessed at "http://localhost:3000/pages/URL" ... `@page.content` is formatted with Rails's `simple_format` helper.
|
75
|
+
|
76
|
+
You can choose not to format it with:
|
77
|
+
|
78
|
+
Shakespeare::Settings.format_method = nil
|
79
|
+
|
80
|
+
Or a choice of your own:
|
81
|
+
|
82
|
+
Shakespeare::Settings.format_method = 'textilize'
|
83
|
+
|
84
|
+
Running the tests
|
85
|
+
=================
|
86
|
+
|
87
|
+
You can run the tests by checking out the code into vendor/plugins of a Rails app and running:
|
88
|
+
|
89
|
+
rake
|
90
|
+
|
91
|
+
It also comes with a set of cucumber features:
|
92
|
+
|
93
|
+
cucumber
|
94
|
+
|
95
|
+
About me
|
96
|
+
========
|
97
|
+
|
98
|
+
I'm Paul Campbell. I'm an avid Ruby on Rails web developer. Follow my ramblings at [http://www.pabcas.com](http://www.pabcas.com)
|
99
|
+
|
100
|
+
Follow me on Twitter [http://twitter.com/paulca](http://twitter.com/paulca)
|
101
|
+
|
89
102
|
Copyright (c) 2009 Paul Campbell, released under the MIT license
|
data/Rakefile
CHANGED
data/lib/shakespeare/settings.rb
CHANGED
@@ -1,30 +1,38 @@
|
|
1
|
-
module Shakespeare
|
2
|
-
class Settings
|
3
|
-
class << self
|
4
|
-
def layout
|
5
|
-
@layout ||= 'admin'
|
6
|
-
end
|
7
|
-
|
8
|
-
def layout=(layout_choice)
|
9
|
-
@layout = layout_choice
|
10
|
-
end
|
11
|
-
|
12
|
-
def before_filters
|
13
|
-
@before_filters ||= []
|
14
|
-
end
|
15
|
-
|
16
|
-
def before_filters=(filters)
|
17
|
-
@before_filters ||= filters
|
18
|
-
end
|
19
|
-
|
20
|
-
def allow_anonymous
|
21
|
-
@allow_anonymous ||= false
|
22
|
-
end
|
23
|
-
|
24
|
-
def allow_anonymous=(boolean)
|
25
|
-
@allow_anonymous = boolean
|
26
|
-
end
|
27
|
-
|
28
|
-
|
29
|
-
|
1
|
+
module Shakespeare
|
2
|
+
class Settings
|
3
|
+
class << self
|
4
|
+
def layout
|
5
|
+
@layout ||= 'admin'
|
6
|
+
end
|
7
|
+
|
8
|
+
def layout=(layout_choice)
|
9
|
+
@layout = layout_choice
|
10
|
+
end
|
11
|
+
|
12
|
+
def before_filters
|
13
|
+
@before_filters ||= []
|
14
|
+
end
|
15
|
+
|
16
|
+
def before_filters=(filters)
|
17
|
+
@before_filters ||= filters
|
18
|
+
end
|
19
|
+
|
20
|
+
def allow_anonymous
|
21
|
+
@allow_anonymous ||= false
|
22
|
+
end
|
23
|
+
|
24
|
+
def allow_anonymous=(boolean)
|
25
|
+
@allow_anonymous = boolean
|
26
|
+
end
|
27
|
+
|
28
|
+
def format_method
|
29
|
+
@format_method ||= 'simple_format'
|
30
|
+
end
|
31
|
+
|
32
|
+
def format_method=(format_method_choice)
|
33
|
+
@format_method = format_method_choice
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
30
38
|
end
|
data/shakespeare.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{shakespeare}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.3.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Paul Campbell"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-03-09}
|
13
13
|
s.email = %q{paul@rslw.com}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"README.md"
|
@@ -64,7 +64,7 @@ Gem::Specification.new do |s|
|
|
64
64
|
s.homepage = %q{http://www.github.com/paulca/shakespeare}
|
65
65
|
s.rdoc_options = ["--charset=UTF-8"]
|
66
66
|
s.require_paths = ["lib"]
|
67
|
-
s.rubygems_version = %q{1.3.
|
67
|
+
s.rubygems_version = %q{1.3.6}
|
68
68
|
s.summary = %q{A Rails drop in CMS.}
|
69
69
|
s.test_files = [
|
70
70
|
"spec/blueprints.rb",
|
data/spec/debug.log
CHANGED
@@ -2446,3 +2446,92 @@
|
|
2446
2446
|
[4;36;1mPage Load (0.2ms)[0m [0;1mSELECT * FROM "pages" WHERE ("pages"."url" = '/') LIMIT 1[0m
|
2447
2447
|
[4;35;1mPage Load (0.2ms)[0m [0mSELECT * FROM "pages" [0m
|
2448
2448
|
[4;36;1mPage Create (0.5ms)[0m [0;1mINSERT INTO "pages" ("canonical", "created_at", "title", "updated_at", "url", "enable_canonical", "content", "nofollow", "description", "noindex", "enable_keywords", "keywords") VALUES(NULL, '2010-02-15 14:24:06', 'Harry B', '2010-02-15 14:24:06', 'harry-b', NULL, NULL, NULL, NULL, NULL, NULL, NULL)[0m
|
2449
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mselect sqlite_version(*)[0m
|
2450
|
+
[4;35;1mSQL (1.5ms)[0m [0m SELECT name
|
2451
|
+
FROM sqlite_master
|
2452
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
2453
|
+
[0m
|
2454
|
+
[4;36;1mSQL (26.9ms)[0m [0;1mDROP TABLE "pages"[0m
|
2455
|
+
[4;35;1mSQL (1.2ms)[0m [0mCREATE TABLE "pages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "url" varchar(255), "keywords" text, "description" text, "content" text, "created_at" datetime, "updated_at" datetime, "noindex" boolean, "nofollow" boolean, "canonical" varchar(255), "enable_canonical" boolean, "enable_keywords" boolean) [0m
|
2456
|
+
[4;36;1mSQL (0.3ms)[0m [0;1m SELECT name
|
2457
|
+
FROM sqlite_master
|
2458
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
2459
|
+
[0m
|
2460
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
2461
|
+
[4;36;1mPage Load (0.3ms)[0m [0;1mSELECT * FROM "pages" [0m
|
2462
|
+
[4;35;1mPage Load (0.2ms)[0m [0mSELECT * FROM "pages" [0m
|
2463
|
+
[4;36;1mPage Create (0.4ms)[0m [0;1mINSERT INTO "pages" ("canonical", "created_at", "title", "updated_at", "url", "enable_canonical", "content", "nofollow", "description", "noindex", "enable_keywords", "keywords") VALUES('http://hendersons.com', '2010-03-09 17:50:25', 'Harry and the Hendersons', '2010-03-09 17:50:25', '', 't', '', 't', '', 't', NULL, '80s, movie')[0m
|
2464
|
+
[4;35;1mPage Load (0.3ms)[0m [0mSELECT * FROM "pages" [0m
|
2465
|
+
[4;36;1mPage Create (0.4ms)[0m [0;1mINSERT INTO "pages" ("canonical", "created_at", "title", "updated_at", "url", "enable_canonical", "content", "nofollow", "description", "noindex", "enable_keywords", "keywords") VALUES(NULL, '2010-03-09 17:50:25', 'Harry and the Hendersons', '2010-03-09 17:50:25', 'kundesmith.co.uk', NULL, NULL, NULL, NULL, NULL, NULL, NULL)[0m
|
2466
|
+
[4;35;1mPage Load (0.3ms)[0m [0mSELECT * FROM "pages" WHERE ("pages"."id" = 1) [0m
|
2467
|
+
[4;36;1mPage Load (0.3ms)[0m [0;1mSELECT * FROM "pages" [0m
|
2468
|
+
[4;35;1mPage Load (0.3ms)[0m [0mSELECT * FROM "pages" WHERE ("pages"."url" = 'kundesmith.co.uk') LIMIT 1[0m
|
2469
|
+
[4;36;1mPage Load (0.4ms)[0m [0;1mSELECT * FROM "pages" WHERE ("pages"."url" = 'kundesmith.co.uk') LIMIT 1[0m
|
2470
|
+
[4;35;1mPage Update (0.1ms)[0m [0mUPDATE "pages" SET "keywords" = '', "updated_at" = '2010-03-09 17:50:25', "title" = 'Three Men and a Baby', "content" = '', "nofollow" = 'f', "canonical" = '', "description" = '', "noindex" = 'f', "enable_canonical" = 'f' WHERE "id" = 1[0m
|
2471
|
+
[4;36;1mPage Load (0.3ms)[0m [0;1mSELECT * FROM "pages" [0m
|
2472
|
+
[4;35;1mPage Create (0.4ms)[0m [0mINSERT INTO "pages" ("canonical", "created_at", "title", "updated_at", "url", "enable_canonical", "content", "nofollow", "description", "noindex", "enable_keywords", "keywords") VALUES(NULL, '2010-03-09 17:50:25', 'The Departed', '2010-03-09 17:50:25', 'kautzergoyette.name', NULL, NULL, NULL, NULL, NULL, NULL, NULL)[0m
|
2473
|
+
[4;36;1mPage Load (0.3ms)[0m [0;1mSELECT * FROM "pages" WHERE ("pages"."id" = 1) [0m
|
2474
|
+
[4;35;1mPage Load (0.4ms)[0m [0mSELECT * FROM "pages" [0m
|
2475
|
+
[4;36;1mPage Load (0.4ms)[0m [0;1mSELECT * FROM "pages" WHERE ("pages"."url" = 'kautzergoyette.name') LIMIT 1[0m
|
2476
|
+
[4;35;1mPage Destroy (0.1ms)[0m [0mDELETE FROM "pages" WHERE "id" = 1[0m
|
2477
|
+
[4;36;1mPage Load (0.2ms)[0m [0;1mSELECT * FROM "pages" [0m
|
2478
|
+
[4;35;1mPage Create (0.4ms)[0m [0mINSERT INTO "pages" ("canonical", "created_at", "title", "updated_at", "url", "enable_canonical", "content", "nofollow", "description", "noindex", "enable_keywords", "keywords") VALUES(NULL, '2010-03-09 17:50:25', 'Mr. MacAllister''s Christmas', '2010-03-09 17:50:25', 'gutmann.ca', NULL, NULL, NULL, NULL, NULL, NULL, NULL)[0m
|
2479
|
+
[4;36;1mPage Load (0.4ms)[0m [0;1mSELECT * FROM "pages" WHERE ("pages"."id" = 1) [0m
|
2480
|
+
[4;35;1mPage Load (0.3ms)[0m [0mSELECT * FROM "pages" WHERE ("pages"."title" = 'Mr. MacAllister''s Christmas') LIMIT 1[0m
|
2481
|
+
[4;36;1mPage Update (0.1ms)[0m [0;1mUPDATE "pages" SET "updated_at" = '2010-03-09 17:50:25', "content" = 'I was Home Alone' WHERE "id" = 1[0m
|
2482
|
+
[4;35;1mPage Load (2.1ms)[0m [0mSELECT * FROM "pages" WHERE ("pages"."title" = 'Mr. MacAllister''s Christmas') LIMIT 1[0m
|
2483
|
+
[4;36;1mPage Load (0.3ms)[0m [0;1mSELECT * FROM "pages" WHERE ("pages"."url" = 'gutmann.ca') LIMIT 1[0m
|
2484
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
2485
|
+
[4;35;1mSQL (0.5ms)[0m [0m SELECT name
|
2486
|
+
FROM sqlite_master
|
2487
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
2488
|
+
[0m
|
2489
|
+
[4;36;1mSQL (2.8ms)[0m [0;1mDROP TABLE "pages"[0m
|
2490
|
+
[4;35;1mSQL (1.5ms)[0m [0mCREATE TABLE "pages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "url" varchar(255), "keywords" text, "description" text, "content" text, "created_at" datetime, "updated_at" datetime, "noindex" boolean, "nofollow" boolean, "canonical" varchar(255), "enable_canonical" boolean, "enable_keywords" boolean) [0m
|
2491
|
+
[4;36;1mSQL (0.3ms)[0m [0;1m SELECT name
|
2492
|
+
FROM sqlite_master
|
2493
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
2494
|
+
[0m
|
2495
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
2496
|
+
[4;36;1mPage Load (0.2ms)[0m [0;1mSELECT * FROM "pages" [0m
|
2497
|
+
[4;35;1mPage Load (0.2ms)[0m [0mSELECT * FROM "pages" [0m
|
2498
|
+
[4;36;1mPage Create (3.2ms)[0m [0;1mINSERT INTO "pages" ("canonical", "created_at", "title", "updated_at", "url", "enable_canonical", "content", "nofollow", "description", "noindex", "enable_keywords", "keywords") VALUES('http://hendersons.com', '2010-03-09 17:53:13', 'Harry and the Hendersons', '2010-03-09 17:53:13', '', 't', '', 't', '', 't', NULL, '80s, movie')[0m
|
2499
|
+
[4;35;1mPage Load (0.4ms)[0m [0mSELECT * FROM "pages" [0m
|
2500
|
+
[4;36;1mPage Create (0.4ms)[0m [0;1mINSERT INTO "pages" ("canonical", "created_at", "title", "updated_at", "url", "enable_canonical", "content", "nofollow", "description", "noindex", "enable_keywords", "keywords") VALUES(NULL, '2010-03-09 17:53:13', 'Harry and the Hendersons', '2010-03-09 17:53:13', 'kundesmith.co.uk', NULL, NULL, NULL, NULL, NULL, NULL, NULL)[0m
|
2501
|
+
[4;35;1mPage Load (0.3ms)[0m [0mSELECT * FROM "pages" WHERE ("pages"."id" = 1) [0m
|
2502
|
+
[4;36;1mPage Load (0.4ms)[0m [0;1mSELECT * FROM "pages" [0m
|
2503
|
+
[4;35;1mPage Load (0.4ms)[0m [0mSELECT * FROM "pages" WHERE ("pages"."url" = 'kundesmith.co.uk') LIMIT 1[0m
|
2504
|
+
[4;36;1mPage Load (0.4ms)[0m [0;1mSELECT * FROM "pages" WHERE ("pages"."url" = 'kundesmith.co.uk') LIMIT 1[0m
|
2505
|
+
[4;35;1mPage Update (0.2ms)[0m [0mUPDATE "pages" SET "keywords" = '', "updated_at" = '2010-03-09 17:53:14', "title" = 'Three Men and a Baby', "content" = '', "nofollow" = 'f', "canonical" = '', "description" = '', "noindex" = 'f', "enable_canonical" = 'f' WHERE "id" = 1[0m
|
2506
|
+
[4;36;1mPage Load (0.4ms)[0m [0;1mSELECT * FROM "pages" [0m
|
2507
|
+
[4;35;1mPage Create (0.6ms)[0m [0mINSERT INTO "pages" ("canonical", "created_at", "title", "updated_at", "url", "enable_canonical", "content", "nofollow", "description", "noindex", "enable_keywords", "keywords") VALUES(NULL, '2010-03-09 17:53:14', 'The Departed', '2010-03-09 17:53:14', 'kautzergoyette.name', NULL, NULL, NULL, NULL, NULL, NULL, NULL)[0m
|
2508
|
+
[4;36;1mPage Load (0.4ms)[0m [0;1mSELECT * FROM "pages" WHERE ("pages"."id" = 1) [0m
|
2509
|
+
[4;35;1mPage Load (0.4ms)[0m [0mSELECT * FROM "pages" [0m
|
2510
|
+
[4;36;1mPage Load (0.4ms)[0m [0;1mSELECT * FROM "pages" WHERE ("pages"."url" = 'kautzergoyette.name') LIMIT 1[0m
|
2511
|
+
[4;35;1mPage Destroy (0.1ms)[0m [0mDELETE FROM "pages" WHERE "id" = 1[0m
|
2512
|
+
[4;36;1mPage Load (0.2ms)[0m [0;1mSELECT * FROM "pages" [0m
|
2513
|
+
[4;35;1mPage Create (0.6ms)[0m [0mINSERT INTO "pages" ("canonical", "created_at", "title", "updated_at", "url", "enable_canonical", "content", "nofollow", "description", "noindex", "enable_keywords", "keywords") VALUES(NULL, '2010-03-09 17:53:14', 'Mr. MacAllister''s Christmas', '2010-03-09 17:53:14', 'gutmann.ca', NULL, NULL, NULL, NULL, NULL, NULL, NULL)[0m
|
2514
|
+
[4;36;1mPage Load (0.4ms)[0m [0;1mSELECT * FROM "pages" WHERE ("pages"."id" = 1) [0m
|
2515
|
+
[4;35;1mPage Load (0.3ms)[0m [0mSELECT * FROM "pages" WHERE ("pages"."title" = 'Mr. MacAllister''s Christmas') LIMIT 1[0m
|
2516
|
+
[4;36;1mPage Update (0.2ms)[0m [0;1mUPDATE "pages" SET "updated_at" = '2010-03-09 17:53:14', "content" = 'I was Home Alone' WHERE "id" = 1[0m
|
2517
|
+
[4;35;1mPage Load (0.4ms)[0m [0mSELECT * FROM "pages" WHERE ("pages"."title" = 'Mr. MacAllister''s Christmas') LIMIT 1[0m
|
2518
|
+
[4;36;1mPage Load (0.4ms)[0m [0;1mSELECT * FROM "pages" WHERE ("pages"."url" = 'gutmann.ca') LIMIT 1[0m
|
2519
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
2520
|
+
[4;35;1mSQL (0.4ms)[0m [0m SELECT name
|
2521
|
+
FROM sqlite_master
|
2522
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
2523
|
+
[0m
|
2524
|
+
[4;36;1mSQL (1.7ms)[0m [0;1mDROP TABLE "pages"[0m
|
2525
|
+
[4;35;1mSQL (1.6ms)[0m [0mCREATE TABLE "pages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "url" varchar(255), "keywords" text, "description" text, "content" text, "created_at" datetime, "updated_at" datetime, "noindex" boolean, "nofollow" boolean, "canonical" varchar(255), "enable_canonical" boolean, "enable_keywords" boolean) [0m
|
2526
|
+
[4;36;1mSQL (0.3ms)[0m [0;1m SELECT name
|
2527
|
+
FROM sqlite_master
|
2528
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
2529
|
+
[0m
|
2530
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
2531
|
+
[4;36;1mPage Load (0.2ms)[0m [0;1mSELECT * FROM "pages" WHERE ("pages"."url" = '/') LIMIT 1[0m
|
2532
|
+
[4;35;1mPage Load (0.2ms)[0m [0mSELECT * FROM "pages" WHERE ("pages"."url" = '/') LIMIT 1[0m
|
2533
|
+
[4;36;1mPage Load (1.7ms)[0m [0;1mSELECT * FROM "pages" WHERE ("pages"."url" = '/') LIMIT 1[0m
|
2534
|
+
[4;35;1mPage Load (0.2ms)[0m [0mSELECT * FROM "pages" WHERE ("pages"."url" = '/') LIMIT 1[0m
|
2535
|
+
[4;36;1mPage Load (0.3ms)[0m [0;1mSELECT * FROM "pages" WHERE ("pages"."url" = '/') LIMIT 1[0m
|
2536
|
+
[4;35;1mPage Load (0.2ms)[0m [0mSELECT * FROM "pages" [0m
|
2537
|
+
[4;36;1mPage Create (2.0ms)[0m [0;1mINSERT INTO "pages" ("canonical", "created_at", "title", "updated_at", "url", "enable_canonical", "content", "nofollow", "description", "noindex", "enable_keywords", "keywords") VALUES(NULL, '2010-03-09 17:53:25', 'Harry B', '2010-03-09 17:53:25', 'harry-b', NULL, NULL, NULL, NULL, NULL, NULL, NULL)[0m
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shakespeare
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 3
|
8
|
+
- 0
|
9
|
+
version: 0.3.0
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Paul Campbell
|
@@ -9,7 +14,7 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date: 2010-
|
17
|
+
date: 2010-03-09 00:00:00 +00:00
|
13
18
|
default_executable:
|
14
19
|
dependencies: []
|
15
20
|
|
@@ -79,18 +84,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
79
84
|
requirements:
|
80
85
|
- - ">="
|
81
86
|
- !ruby/object:Gem::Version
|
87
|
+
segments:
|
88
|
+
- 0
|
82
89
|
version: "0"
|
83
|
-
version:
|
84
90
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
91
|
requirements:
|
86
92
|
- - ">="
|
87
93
|
- !ruby/object:Gem::Version
|
94
|
+
segments:
|
95
|
+
- 0
|
88
96
|
version: "0"
|
89
|
-
version:
|
90
97
|
requirements: []
|
91
98
|
|
92
99
|
rubyforge_project:
|
93
|
-
rubygems_version: 1.3.
|
100
|
+
rubygems_version: 1.3.6
|
94
101
|
signing_key:
|
95
102
|
specification_version: 3
|
96
103
|
summary: A Rails drop in CMS.
|