rethoth 0.4.1 → 0.4.2
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.
- checksums.yaml +4 -4
- data/bin/thoth +1 -0
- data/lib/proto/thoth.conf.sample +21 -21
- data/lib/thoth.rb +2 -0
- data/lib/thoth/config.rb +2 -2
- data/lib/thoth/migrate/001_create_schema.rb +14 -14
- data/lib/thoth/model/post.rb +2 -2
- data/lib/thoth/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37fb5bcf9923c8071e9f9057a2ed375c4f12f8fa
|
4
|
+
data.tar.gz: 1f45bd861069b92ad1ab4c70b4ee90fdab70b5bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 276741df83a545b47697bc12b4e2c5152380efc3cd266a4f38e8163b1c2c075f09928c62e33e9a9909ba949336f64d5f6979baa1dd99b33da9f588924d2446be
|
7
|
+
data.tar.gz: e63d52898216412a192c89dbf1b482147715ac1b388fdfdf13391acc3302e593de934b4106e4a0996c0118da4ac4793ddf1fce62bfcd34db11329f702b8414ff
|
data/bin/thoth
CHANGED
data/lib/proto/thoth.conf.sample
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
|
-
# thoth.conf -
|
2
|
+
# thoth.conf - Rethoth configuration file.
|
3
3
|
#
|
4
|
-
#
|
4
|
+
# Customise this file as desired. You must restart Rethoth before configuration
|
5
5
|
# changes will take effect.
|
6
6
|
#
|
7
7
|
# This file is YAML, but you may also use Erubis expressions to insert variables
|
@@ -25,17 +25,17 @@ live:
|
|
25
25
|
site:
|
26
26
|
# Name of your blog. This will be displayed as the title of your blog's
|
27
27
|
# index page and in your blog's feeds.
|
28
|
-
name: New
|
28
|
+
name: New Rethoth Blog
|
29
29
|
|
30
30
|
# A brief description or subtitle for your blog.
|
31
|
-
desc:
|
31
|
+
desc: Rethoth is awesome.
|
32
32
|
|
33
|
-
# Base URL of your site. This is necessary in order for
|
33
|
+
# Base URL of your site. This is necessary in order for Rethoth to know how
|
34
34
|
# to construct links. Be sure to set this correctly or links may not work.
|
35
35
|
url: http://localhost:7000/
|
36
36
|
|
37
|
-
# URLs of CSS files to load in addition to the default
|
38
|
-
# override
|
37
|
+
# URLs of CSS files to load in addition to the default Rethoth CSS. You can
|
38
|
+
# override Rethoth's default styles by specifying your own CSS files here.
|
39
39
|
# These can be relative or absolute URLs.
|
40
40
|
#
|
41
41
|
# Example:
|
@@ -45,8 +45,8 @@ live:
|
|
45
45
|
#
|
46
46
|
css: []
|
47
47
|
|
48
|
-
# URLs of JS files to load in addition to the default
|
49
|
-
# extend or override
|
48
|
+
# URLs of JS files to load in addition to the default Rethoth JS. You can
|
49
|
+
# extend or override Rethoth's JS or add functionality by specifying your own
|
50
50
|
# JS files here. These can be relative or absolute URLs.
|
51
51
|
#
|
52
52
|
# Example:
|
@@ -98,13 +98,13 @@ live:
|
|
98
98
|
admin:
|
99
99
|
# Your name. This will be displayed in the copyright notice at the bottom of
|
100
100
|
# the page, and will be used as the author name for your site's feeds.
|
101
|
-
name: John Doe
|
101
|
+
name: John Doe (in your thoth.config)
|
102
102
|
|
103
103
|
# Your email address. If you leave this blank or comment it out, it won't be
|
104
104
|
# displayed.
|
105
105
|
email: ''
|
106
106
|
|
107
|
-
# Administrator username. This is the name you'll use to log into
|
107
|
+
# Administrator username. This is the name you'll use to log into Rethoth.
|
108
108
|
user: thoth
|
109
109
|
|
110
110
|
# Administrator password. By default this is a random number, so you won't
|
@@ -115,7 +115,7 @@ live:
|
|
115
115
|
# hash. Just fill this with some made-up nonsense.
|
116
116
|
seed: 6d552ac197a862b82b85868d6c245feb
|
117
117
|
|
118
|
-
# Plugins that should be loaded when
|
118
|
+
# Plugins that should be loaded when Rethoth starts. Usually it's not
|
119
119
|
# necessary to load a plugin until the first time it's used, but some plugins
|
120
120
|
# alter core functionality and thus must be loaded at start time.
|
121
121
|
#
|
@@ -129,7 +129,7 @@ live:
|
|
129
129
|
|
130
130
|
# Absolute path to a directory where uploaded media files (images, videos,
|
131
131
|
# etc.) for your blog posts and pages should be stored. This directory needs
|
132
|
-
# to be readable and writeable by the user running the
|
132
|
+
# to be readable and writeable by the user running the Rethoth server.
|
133
133
|
media: <%= Thoth::HOME_DIR %>/media
|
134
134
|
|
135
135
|
# Server settings.
|
@@ -137,25 +137,25 @@ live:
|
|
137
137
|
# Server adapter to use. This can be any adapter Ramaze supports.
|
138
138
|
adapter: webrick
|
139
139
|
|
140
|
-
# IP address on which
|
141
|
-
# if you want
|
140
|
+
# IP address on which Rethoth should listen for connections. Specify 0.0.0.0
|
141
|
+
# if you want Rethoth to listen on all addresses.
|
142
142
|
address: 0.0.0.0
|
143
143
|
|
144
|
-
# Port on which the
|
144
|
+
# Port on which the Rethoth server should listen for connections.
|
145
145
|
port: 7000
|
146
146
|
|
147
147
|
# Whether or not to enable caching. Enabling caching will significantly
|
148
|
-
# improve
|
148
|
+
# improve Rethoth's performance under heavy traffic.
|
149
149
|
enable_cache: true
|
150
150
|
|
151
151
|
# Whether or not to enable automatic, on the fly minification of your blog's
|
152
152
|
# external CSS and JavaScript files. Enabling minification will reduce
|
153
153
|
# page weight and is a great way to improve performance, but you'll need to
|
154
|
-
# restart
|
154
|
+
# restart Rethoth in order for CSS and JS changes to take effect.
|
155
155
|
#
|
156
|
-
# Note: this setting will have no effect if you're running
|
156
|
+
# Note: this setting will have no effect if you're running Rethoth under
|
157
157
|
# Phusion Passenger or any other environment in which static file requests
|
158
|
-
# are handled by a
|
158
|
+
# are handled by a front-end server without passing through Ramaze.
|
159
159
|
enable_minify: true
|
160
160
|
|
161
161
|
# Filename to which errors should be logged when running in production mode,
|
@@ -165,7 +165,7 @@ live:
|
|
165
165
|
# Memcache settings.
|
166
166
|
memcache:
|
167
167
|
# Whether or not to enable memcache. When enabled along with the
|
168
|
-
# server.enable_cache setting above,
|
168
|
+
# server.enable_cache setting above, Rethoth will use memcache for all cache
|
169
169
|
# operations instead of the default per-process Hash-based cache.
|
170
170
|
#
|
171
171
|
# This may be beneficial if you have a very high-traffic blog and
|
data/lib/thoth.rb
CHANGED
data/lib/thoth/config.rb
CHANGED
@@ -50,8 +50,8 @@ module Thoth
|
|
50
50
|
'db' => "sqlite:///#{HOME_DIR}/db/live.db",
|
51
51
|
|
52
52
|
'site' => {
|
53
|
-
'name' => "New
|
54
|
-
'desc' => "
|
53
|
+
'name' => "New Rethoth Blog",
|
54
|
+
'desc' => "Rethoth is awesome.",
|
55
55
|
'url' => "http://localhost:7000/",
|
56
56
|
|
57
57
|
'core_js' => [
|
@@ -28,10 +28,23 @@
|
|
28
28
|
|
29
29
|
class CreateSchema < Sequel::Migration
|
30
30
|
def down
|
31
|
-
drop_table :comments, :media, :pages, :posts, :tags
|
31
|
+
drop_table :tags_posts_map, :comments, :media, :pages, :posts, :tags
|
32
32
|
end
|
33
33
|
|
34
34
|
def up
|
35
|
+
unless table_exists?(:posts)
|
36
|
+
create_table :posts do
|
37
|
+
primary_key :id
|
38
|
+
|
39
|
+
varchar :title, :null => false, :unique => true
|
40
|
+
varchar :name, :null => false, :unique => true
|
41
|
+
text :body, :null => false
|
42
|
+
text :body_rendered, :null => false
|
43
|
+
datetime :created_at, :null => false
|
44
|
+
datetime :updated_at, :null => false
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
35
48
|
unless table_exists?(:comments)
|
36
49
|
create_table :comments do
|
37
50
|
primary_key :id
|
@@ -74,19 +87,6 @@ class CreateSchema < Sequel::Migration
|
|
74
87
|
end
|
75
88
|
end
|
76
89
|
|
77
|
-
unless table_exists?(:posts)
|
78
|
-
create_table :posts do
|
79
|
-
primary_key :id
|
80
|
-
|
81
|
-
varchar :title, :null => false, :unique => true
|
82
|
-
varchar :name, :null => false, :unique => true
|
83
|
-
text :body, :null => false
|
84
|
-
text :body_rendered, :null => false
|
85
|
-
datetime :created_at, :null => false
|
86
|
-
datetime :updated_at, :null => false
|
87
|
-
end
|
88
|
-
end
|
89
|
-
|
90
90
|
unless table_exists?(:tags)
|
91
91
|
create_table :tags do
|
92
92
|
primary_key :id
|
data/lib/thoth/model/post.rb
CHANGED
@@ -249,9 +249,9 @@ module Thoth
|
|
249
249
|
|
250
250
|
unless Post.count > 0
|
251
251
|
Post.create(
|
252
|
-
:title => 'Welcome to your new
|
252
|
+
:title => 'Welcome to your new Rethoth blog',
|
253
253
|
:body => %[
|
254
|
-
If you're reading this, you've successfully installed
|
254
|
+
If you're reading this, you've successfully installed Rethoth. Congratulations!
|
255
255
|
|
256
256
|
Once you've <a href="txmt://open/?url=file://#{Thoth.trait[:config_file]}">edited the config file</a> to your liking, you can <a href="/admin">login</a> and begin creating blog posts and pages. You can also delete this post to make way for your own glorious words.
|
257
257
|
|
data/lib/thoth/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rethoth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Pagonis
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-09-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ramaze
|
@@ -252,7 +252,7 @@ dependencies:
|
|
252
252
|
- !ruby/object:Gem::Version
|
253
253
|
version: 12.0.0
|
254
254
|
description: " Rethoth is a simple to understand, run and maintain Ruby blogging
|
255
|
-
engine
|
255
|
+
engine.\n\n Rethoth is written in Ruby and is based on the Ramaze web framework
|
256
256
|
and the Sequel database toolkit. \n Rethoth is a modern port, to 2017, of the
|
257
257
|
original Thoth created by @ryangrove.\n \n Rethoth demonstrates how to easily
|
258
258
|
build a useful MVC-style app in Ruby without having to deal directly with meta-programming
|