ruby-slippers 0.1.40 → 0.1.43

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +40 -28
  2. data/VERSION +1 -1
  3. metadata +1 -1
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
+ README
2
+ ======
3
+
1
4
  RubySlippers, the smartest blogging engine in all of Oz!
2
- ========================================================
5
+ --------------------------------------------------------
3
6
 
4
7
  [website](http://ruby-slippers.heroku.com)
5
8
 
@@ -54,19 +57,22 @@ RubySlippers comes with a basic default theme for you to mangle. I hope to relea
54
57
  Deployment
55
58
  ==========
56
59
 
57
- #### on heroku
60
+ #### On heroku
61
+
62
+ $ git add .
63
+ $ git commit -m 'updated blog'
64
+ $ git push heroku
65
+
66
+ #### On your own server or locally
67
+
68
+ Once you have created the remote git repo, and pushed your changes to it, you can run RubySlippers with any Rack compliant web server, such as **thin**, **mongrel** or **unicorn**.
58
69
 
59
- RubySlippers comes with a basic rackup file. To start it up locally do:
70
+ I like to use shotgun as it reloads while I work
60
71
 
61
72
  $ cd myblog
62
73
  $ bundle
63
74
  $ shotgun
64
- [2011-06-20 17:04:46] INFO WEBrick::HTTPServer#start: pid=61628 port=9393
65
-
66
- #### on your own server
67
-
68
- Once you have created the remote git repo, and pushed your changes to it, you can run RubySlippers with any Rack compliant web server, such as **thin**, **mongrel** or **unicorn**.
69
-
75
+
70
76
  With thin, you would do something like:
71
77
 
72
78
  $ thin start -R config.ru
@@ -81,25 +87,31 @@ With unicorn, you can just do:
81
87
  You can configure ruby-slippers, by modifying the _config.ru_ file. For example, if you want to set the blog author to 'John Galt',
82
88
  you could add `set :author, 'John Galt'` inside the `RubySlippers::Engine::App.new` block. Here are the defaults, to get you started:
83
89
 
84
- set :author, ENV['USER'] # blog author
85
- set :title, Dir.pwd.split('/').last # site title
86
- set :url, 'http://example.com' # site root URL
87
- set :prefix, '' # common path prefix for all pages
88
- set :root, "index" # page to load on /
89
- set :date, lambda {|now| now.strftime("%d/%m/%Y") } # date format for articles
90
- set :markdown, :smart # use markdown + smart-mode
91
- set :disqus, false # disqus id, or false
92
- set :summary, :max => 150, :delim => /~\n/ # length of article summary and delimiter
93
- set :ext, 'txt' # file extension for articles
94
- set :cache, 28800 # cache site for 8 hours
95
-
96
- set :to_html do |path, page, ctx| # returns an html, from a path & context
97
- ERB.new(File.read("#{path}/#{page}.html.erb")).result(ctx)
98
- end
99
-
100
- set :error do |code| # The HTML for your error page
101
- "<font style='font-size:300%'>A large house has landed on you. You cannot continue because you are dead. <a href='/'>try again</a> (#{code})</font>"
102
- end
90
+ #
91
+ # Add your settings here
92
+ # set [:setting], [value]
93
+ #
94
+ set :author, "Dreamr" # blog author
95
+ set :title, "RubySlippers, the smartest blog engine in all of Oz!" # site title
96
+ # set :root, "index" # page to load on /
97
+ set :date, lambda {|now| now.strftime("%m/%d/%Y") } # date format for articles
98
+ # set :markdown, :smart # use markdown + smart-mode
99
+ # set :disqus, false # disqus id, or false
100
+ set :summary, :max => 300, :delim => /~/ # length of article summary and delimiter
101
+ # set :ext, 'txt' # file extension for articles
102
+ # set :cache, 28800 # cache duration, in seconds
103
+ set :tag_separator, ', ' # tag separator for articles
104
+ set :date, lambda {|now| now.strftime("%B #{now.day.ordinal} %Y") }
105
+ # set this to your local port. I use shotgun, so 9393.
106
+ set :url, "http://localhost:9393" if ENV['RACK_ENV'] == 'development'
107
+
108
+ # to use haml, add the gem to your Gemfile and bundle, then uncomment this
109
+ # and redo your templates using haml and renamed to html.haml
110
+ # set :to_html, lambda { |path, page, binding|
111
+ # Haml::Engine.new(File.read("#{path}/#{page}.html.haml"),
112
+ # :attr_wrapper => '"',
113
+ # :filename => path ).render(binding)
114
+ # }
103
115
 
104
116
  Thanks
105
117
  ------
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.40
1
+ 0.1.43
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: ruby-slippers
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.40
5
+ version: 0.1.43
6
6
  platform: ruby
7
7
  authors:
8
8
  - dreamr