bloggy 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
data/bloggy.gemspec
CHANGED
@@ -5,8 +5,8 @@ require "bloggy/version"
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.authors = ["Zach Bruhnke"]
|
7
7
|
s.email = ["z@zbruhnke.com"]
|
8
|
-
s.description = %q{Jekyll blog
|
9
|
-
s.summary = %q{generate jekyll blog within a rails
|
8
|
+
s.description = %q{Add a Jekyll blog to an existing Rails application in seconds}
|
9
|
+
s.summary = %q{generate a jekyll blog within a rails application quickly and easily. No additonal nginx config required}
|
10
10
|
s.homepage = "http://github.com/zbruhnke/bloggy"
|
11
11
|
|
12
12
|
s.files = `git ls-files`.split($\)
|
data/lib/.DS_Store
ADDED
Binary file
|
data/lib/bloggy/version.rb
CHANGED
Binary file
|
@@ -11,6 +11,7 @@ class Jekyll::BlogGenerator < Rails::Generators::NamedBase
|
|
11
11
|
copy_file 'config/jekyll/_posts/2012-04-25-a-test-post.markdown.tt', 'config/jekyll/_posts/2012-04-25-a-test-post.markdown'
|
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
|
+
copy_file 'config/jekyll/tasks/new_post.rake', 'lib/tasks/new_post.rake'
|
14
15
|
end
|
15
16
|
|
16
17
|
def create_blog source = 'config/jekyll', destination = 'public/blog'
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'optparse'
|
3
|
+
require 'yaml'
|
4
|
+
|
5
|
+
desc "create new post with textmate"
|
6
|
+
task :np do
|
7
|
+
OptionParser.new.parse!
|
8
|
+
ARGV.shift
|
9
|
+
title = ARGV.join(' ')
|
10
|
+
|
11
|
+
path = "../config/jekyll/_posts/#{Date.today}-#{title.downcase.gsub(/[^[:alnum:]]+/, '-')}.markdown"
|
12
|
+
|
13
|
+
if File.exist?(path)
|
14
|
+
puts "[WARN] File exists - skipping create"
|
15
|
+
else
|
16
|
+
File.open(path, "w") do |file|
|
17
|
+
file.puts YAML.dump({'layout' => 'post', 'published' => false, 'title' => title})
|
18
|
+
file.puts "---"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
`mate #{path}`
|
22
|
+
|
23
|
+
exit 1
|
24
|
+
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.
|
4
|
+
version: 0.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -219,7 +219,7 @@ dependencies:
|
|
219
219
|
- - ~>
|
220
220
|
- !ruby/object:Gem::Version
|
221
221
|
version: '1.9'
|
222
|
-
description: Jekyll blog
|
222
|
+
description: Add a Jekyll blog to an existing Rails application in seconds
|
223
223
|
email:
|
224
224
|
- z@zbruhnke.com
|
225
225
|
executables: []
|
@@ -232,8 +232,10 @@ files:
|
|
232
232
|
- README.md
|
233
233
|
- Rakefile
|
234
234
|
- bloggy.gemspec
|
235
|
+
- lib/.DS_Store
|
235
236
|
- lib/bloggy.rb
|
236
237
|
- lib/bloggy/version.rb
|
238
|
+
- lib/generators/jekyll/.DS_Store
|
237
239
|
- lib/generators/jekyll/blog/USAGE
|
238
240
|
- lib/generators/jekyll/blog/blog_generator.rb
|
239
241
|
- lib/generators/jekyll/blog/templates/config/jekyll/_config.yml.tt
|
@@ -245,6 +247,7 @@ files:
|
|
245
247
|
- lib/generators/jekyll/blog/templates/config/jekyll/css/screen.css
|
246
248
|
- lib/generators/jekyll/blog/templates/config/jekyll/css/syntax.css
|
247
249
|
- lib/generators/jekyll/blog/templates/config/jekyll/index.html.tt
|
250
|
+
- lib/generators/jekyll/blog/templates/config/jekyll/tasks/new_post.rake
|
248
251
|
- test/helper.rb
|
249
252
|
- test/test_generate_blog.rb
|
250
253
|
homepage: http://github.com/zbruhnke/bloggy
|
@@ -270,7 +273,8 @@ rubyforge_project: bloggy
|
|
270
273
|
rubygems_version: 1.8.22
|
271
274
|
signing_key:
|
272
275
|
specification_version: 3
|
273
|
-
summary: generate jekyll blog within a rails
|
276
|
+
summary: generate a jekyll blog within a rails application quickly and easily. No
|
277
|
+
additonal nginx config required
|
274
278
|
test_files:
|
275
279
|
- test/helper.rb
|
276
280
|
- test/test_generate_blog.rb
|