rethoth 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af4011f591355af9450daa140d5acbd5ddb652e5
4
- data.tar.gz: bd93c7e0e0088b3ede574b49496ae1a62ed75a93
3
+ metadata.gz: 37fb5bcf9923c8071e9f9057a2ed375c4f12f8fa
4
+ data.tar.gz: 1f45bd861069b92ad1ab4c70b4ee90fdab70b5bf
5
5
  SHA512:
6
- metadata.gz: aa181bcfb70927ce5f5022106e39c4e272c195affc53d6c2a6a97241bde483df705a5f023d795b046a9834a99d6311bcb7555fbcaa7d7d70677ea90d7a8be05b
7
- data.tar.gz: 9f9f3e8f1b7d488150bd20f1d525b32d6113b424a15e0e5193b6e0faba6fa13c8b14e696e00f96ee069ab97fda1e82454c0360a22c9f6cb22480a7df26d11c83
6
+ metadata.gz: 276741df83a545b47697bc12b4e2c5152380efc3cd266a4f38e8163b1c2c075f09928c62e33e9a9909ba949336f64d5f6979baa1dd99b33da9f588924d2446be
7
+ data.tar.gz: e63d52898216412a192c89dbf1b482147715ac1b388fdfdf13391acc3302e593de934b4106e4a0996c0118da4ac4793ddf1fce62bfcd34db11329f702b8414ff
data/bin/thoth CHANGED
@@ -91,6 +91,7 @@ module Thoth
91
91
  require 'thoth'
92
92
 
93
93
  begin
94
+ puts "ABOUT TO CREATE: #{path}"
94
95
  create(path)
95
96
  rescue => e
96
97
  abort("Error: #{e}")
@@ -1,7 +1,7 @@
1
1
  #
2
- # thoth.conf - Thoth configuration file.
2
+ # thoth.conf - Rethoth configuration file.
3
3
  #
4
- # Customize this file as desired. You must restart Thoth before configuration
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 Thoth Blog
28
+ name: New Rethoth Blog
29
29
 
30
30
  # A brief description or subtitle for your blog.
31
- desc: Thoth is awesome.
31
+ desc: Rethoth is awesome.
32
32
 
33
- # Base URL of your site. This is necessary in order for Thoth to know how
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 Thoth CSS. You can
38
- # override Thoth's default styles by specifying your own CSS files here.
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 Thoth JS. You can
49
- # extend or override Thoth's JS or add functionality by specifying your own
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 Thoth.
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 Thoth starts. Usually it's not
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 Thoth server.
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 Thoth should listen for connections. Specify 0.0.0.0
141
- # if you want Thoth to listen on all addresses.
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 Thoth server should listen for connections.
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 Thoth's performance under heavy traffic.
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 Thoth in order for CSS and JS changes to take effect.
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 Thoth under
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 frontend server without passing through Ramaze.
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, Thoth will use memcache for all cache
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
@@ -158,6 +158,8 @@ module Thoth
158
158
  # specified path.
159
159
  def create(path)
160
160
  path = File.expand_path(path)
161
+
162
+ puts "PATH #{path}"
161
163
 
162
164
  if File.exist?(path)
163
165
  raise "specified path already exists: #{path}"
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 Thoth Blog",
54
- 'desc' => "Thoth is awesome.",
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, :tags_posts_map
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
@@ -249,9 +249,9 @@ module Thoth
249
249
 
250
250
  unless Post.count > 0
251
251
  Post.create(
252
- :title => 'Welcome to your new Thoth blog',
252
+ :title => 'Welcome to your new Rethoth blog',
253
253
  :body => %[
254
- If you're reading this, you've successfully installed Thoth. Congratulations!
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
@@ -29,7 +29,7 @@
29
29
 
30
30
  module Thoth
31
31
  APP_NAME = 'Rethoth'
32
- APP_VERSION = '0.4.1'
32
+ APP_VERSION = '0.4.2'
33
33
  APP_AUTHORS = ['John Pagonis' ,'Ryan Grove']
34
34
  APP_EMAIL = 'john@pagonis.org'
35
35
  APP_URL = 'https://github.com/pagojo/rethoth'
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.1
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-06-28 00:00:00.000000000 Z
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\n\n Rethoth is written in Ruby and is based on the Ramaze web framework
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