bloggy 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -15,3 +15,4 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ .DS_Store
data/README.md CHANGED
@@ -22,11 +22,11 @@ All config elements you are used to in your jekyll blog are still present (and t
22
22
 
23
23
  Once you run
24
24
 
25
- $ rails g jekyll:blog blog
25
+ $ rails g jekyll:blog
26
26
 
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).
27
+ you will find the file structure you are used to seeing for creating blog posts, editing default layout etc. inside of the config/jekyll directory. There you can add add the same commands you would from a normal jekyll installation (they are 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
- 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
29
+ I have provided a rake task to name and open your new blog post 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
31
  $ rake np post-title
32
32
 
@@ -1,3 +1,3 @@
1
1
  module Bloggy
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -4,6 +4,7 @@ Description:
4
4
 
5
5
  Example:
6
6
  rails generate jekyll:blog [NAME]
7
+ if you choose not to add a name your files will be automatically generated to the public/blog directory
7
8
 
8
9
  This will create:
9
10
  public/[NAME]
@@ -1,5 +1,6 @@
1
1
  class Jekyll::BlogGenerator < Rails::Generators::NamedBase
2
2
  source_root File.expand_path('../templates', __FILE__)
3
+ argument :name, :type => :string, :default => "blog"
3
4
 
4
5
  def copy_config_file
5
6
  copy_file 'config/jekyll/_config.yml.tt', 'config/jekyll/_config.yml'
@@ -9,10 +10,10 @@ class Jekyll::BlogGenerator < Rails::Generators::NamedBase
9
10
  copy_file 'config/jekyll/_layouts/page.html.tt', 'config/jekyll/_layouts/page.html'
10
11
  copy_file 'config/jekyll/_layouts/post.html.tt', 'config/jekyll/_layouts/post.html'
11
12
  copy_file 'config/jekyll/_posts/2012-04-25-a-test-post.markdown.tt', 'config/jekyll/_posts/2012-04-25-a-test-post.markdown'
12
- copy_file 'config/jekyll/css/screen.css', 'config/jekyll/css/screen.css'
13
- copy_file 'config/jekyll/css/syntax.css', 'config/jekyll/css/syntax.css'
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'
13
+ copy_file 'config/jekyll/css/screen.css.tt', 'config/jekyll/css/screen.css'
14
+ copy_file 'config/jekyll/css/syntax.css.tt', 'config/jekyll/css/syntax.css'
15
+ copy_file 'tasks/new_post.rake.tt', 'lib/tasks/new_post.rake'
16
+ copy_file 'tasks/gen.rake.tt', 'lib/tasks/gen.rake'
16
17
  end
17
18
 
18
19
  def create_blog source = 'config/jekyll', destination = 'public/blog'
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.1.0
4
+ version: 0.1.1
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-28 00:00:00.000000000 Z
12
+ date: 2012-05-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll
@@ -232,24 +232,21 @@ files:
232
232
  - README.md
233
233
  - Rakefile
234
234
  - bloggy.gemspec
235
- - lib/.DS_Store
236
235
  - lib/bloggy.rb
237
236
  - lib/bloggy/version.rb
238
- - lib/generators/jekyll/.DS_Store
239
237
  - lib/generators/jekyll/blog/USAGE
240
238
  - lib/generators/jekyll/blog/blog_generator.rb
241
- - lib/generators/jekyll/blog/templates/.DS_Store
242
239
  - lib/generators/jekyll/blog/templates/config/jekyll/_config.yml.tt
243
240
  - lib/generators/jekyll/blog/templates/config/jekyll/_layouts/default.html.tt
244
241
  - lib/generators/jekyll/blog/templates/config/jekyll/_layouts/page.html.tt
245
242
  - lib/generators/jekyll/blog/templates/config/jekyll/_layouts/post.html.tt
246
243
  - lib/generators/jekyll/blog/templates/config/jekyll/_posts/2012-04-25-a-test-post.markdown.tt
247
244
  - lib/generators/jekyll/blog/templates/config/jekyll/atom.xml.tt
248
- - lib/generators/jekyll/blog/templates/config/jekyll/css/screen.css
249
- - lib/generators/jekyll/blog/templates/config/jekyll/css/syntax.css
245
+ - lib/generators/jekyll/blog/templates/config/jekyll/css/screen.css.tt
246
+ - lib/generators/jekyll/blog/templates/config/jekyll/css/syntax.css.tt
250
247
  - lib/generators/jekyll/blog/templates/config/jekyll/index.html.tt
251
- - lib/generators/jekyll/blog/templates/config/jekyll/tasks/gen.rake
252
- - lib/generators/jekyll/blog/templates/config/jekyll/tasks/new_post.rake
248
+ - lib/generators/jekyll/blog/templates/tasks/gen.rake.tt
249
+ - lib/generators/jekyll/blog/templates/tasks/new_post.rake.tt
253
250
  - test/helper.rb
254
251
  - test/test_generate_blog.rb
255
252
  homepage: http://github.com/zbruhnke/bloggy
Binary file