bloggy 0.0.9 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -26,15 +26,15 @@ Once you run
26
26
 
27
27
  you will find the folders you are used to for creating jekyll blog posts inside of the config/jekyll directory. There you can add add the same commands you are used to provided at the <a href="https://github.com/mojombo/jekyll/wiki/Configuration">Jekyll configuration page</a>, so now just configure to your liking. (edit the default.html inside of _layouts for your main page and the post.html and page.html files for the corresponding results).
28
28
 
29
- Your posts will be served from the public/blog directory inside of your rails application. After you write a new blog post simply cd into the config/jekyll directory and then run
29
+ I have provided a rake task to name and open your file in textmate as default but feel free to change it to use the editor of your choice. To use it just run
30
30
 
31
- $ jekyll
31
+ $ rake np post-title
32
32
 
33
- The new static files will be generated and ready to be re-deployed and served as static assets by your server!
33
+ Your posts will be served from the public/blog directory inside of your rails application. After you write a new blog post simply run
34
34
 
35
- **I know this is not ideal and will probably make a rake task etc. for creating and generating the posts in a later version but this is an early push and should take care of most of the dirty work**
35
+ $ rake generate
36
36
 
37
- **Make sure to note that if you run the generator more than once it will attempt to overwrite any changes you have made in the config/jekyll directory. Do not run the generator again**
37
+ And the new static files will be generated and ready to be re-deployed and served as static assets by your server!
38
38
 
39
39
  Some changes are sure to come as I explore and use this on my own, but for now I feel it is a good start and a step in the right direction for quickly and easily adding a blog to your application while keeping costs low. If you have questions or would just like to get in touch you can do so by <a href="http://zachbruhnke.com/contact">contacting me here</a>. Thanks for trying out Bloggy and please feel free to fork and contribute!
40
40
 
@@ -1,3 +1,3 @@
1
1
  module Bloggy
2
- VERSION = "0.0.9"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -12,6 +12,7 @@ class Jekyll::BlogGenerator < Rails::Generators::NamedBase
12
12
  copy_file 'config/jekyll/css/screen.css', 'config/jekyll/css/screen.css'
13
13
  copy_file 'config/jekyll/css/syntax.css', 'config/jekyll/css/syntax.css'
14
14
  copy_file 'config/jekyll/tasks/new_post.rake', 'lib/tasks/new_post.rake'
15
+ copy_file 'config/jekyll/tasks/gen.rake', 'lib/tasks/gen.rake'
15
16
  end
16
17
 
17
18
  def create_blog source = 'config/jekyll', destination = 'public/blog'
@@ -0,0 +1,6 @@
1
+ desc 'Run Jekyll in config/jekyll directory without having to cd there'''
2
+ task :generate do
3
+ Dir.chdir("config/jekyll") do
4
+ system('jekyll')
5
+ end
6
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bloggy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
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: 2012-04-27 00:00:00.000000000 Z
12
+ date: 2012-04-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll
@@ -238,6 +238,7 @@ files:
238
238
  - lib/generators/jekyll/.DS_Store
239
239
  - lib/generators/jekyll/blog/USAGE
240
240
  - lib/generators/jekyll/blog/blog_generator.rb
241
+ - lib/generators/jekyll/blog/templates/.DS_Store
241
242
  - lib/generators/jekyll/blog/templates/config/jekyll/_config.yml.tt
242
243
  - lib/generators/jekyll/blog/templates/config/jekyll/_layouts/default.html.tt
243
244
  - lib/generators/jekyll/blog/templates/config/jekyll/_layouts/page.html.tt
@@ -247,6 +248,7 @@ files:
247
248
  - lib/generators/jekyll/blog/templates/config/jekyll/css/screen.css
248
249
  - lib/generators/jekyll/blog/templates/config/jekyll/css/syntax.css
249
250
  - lib/generators/jekyll/blog/templates/config/jekyll/index.html.tt
251
+ - lib/generators/jekyll/blog/templates/config/jekyll/tasks/gen.rake
250
252
  - lib/generators/jekyll/blog/templates/config/jekyll/tasks/new_post.rake
251
253
  - test/helper.rb
252
254
  - test/test_generate_blog.rb