neverprint 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +16 -5
- data/bin/neverprint +3 -46
- data/lib/neverprint/commands/new.rb +40 -22
- data/lib/neverprint.rb +2 -50
- data/lib/neverprint_template/Compassfile +5 -0
- data/lib/neverprint_template/Gemfile +23 -0
- data/lib/neverprint_template/Guardfile +43 -0
- data/lib/neverprint_template/Rakefile +28 -0
- data/lib/neverprint_template/_assets/coffeescript/application.coffee +2 -0
- data/lib/neverprint_template/_assets/pages/index.haml +14 -0
- data/lib/neverprint_template/_assets/sass/layout.scss +7 -0
- data/lib/neverprint_template/_assets/sass/tools.scss +9 -0
- data/lib/neverprint_template/_assets/templates/default.haml +40 -0
- data/lib/neverprint_template/_assets/templates/post.haml +9 -0
- data/lib/neverprint_template/_includes/css/layout.css +4 -0
- data/lib/neverprint_template/_includes/css/tools.css +10 -0
- data/lib/neverprint_template/_layouts/default.html +48 -0
- data/lib/neverprint_template/_layouts/post.html +6 -0
- data/lib/neverprint_template/css/all.css +5 -0
- data/lib/neverprint_template/images/favicon.ico +0 -0
- data/lib/neverprint_template/index.html +15 -0
- data/lib/neverprint_template/js/application.js +6 -0
- data/neverprint.gemspec +23 -6
- metadata +56 -53
- data/lib/neverprint/command.rb +0 -27
data/Rakefile
CHANGED
@@ -46,6 +46,7 @@ end
|
|
46
46
|
#
|
47
47
|
#############################################################################
|
48
48
|
|
49
|
+
desc "Release #{gem_file} on rubygems.org."
|
49
50
|
task :release => :build do
|
50
51
|
unless `git branch` =~ /^\* master$/
|
51
52
|
puts "You must be on the master branch to release!"
|
@@ -58,6 +59,11 @@ task :release => :build do
|
|
58
59
|
sh "gem push pkg/#{name}-#{version}.gem"
|
59
60
|
end
|
60
61
|
|
62
|
+
desc "Install #{gem_file} for testing."
|
63
|
+
task :install => :build do
|
64
|
+
sh "gem install pkg/#{gem_file}"
|
65
|
+
end
|
66
|
+
|
61
67
|
task :build => :gemspec do
|
62
68
|
sh "mkdir -p pkg"
|
63
69
|
sh "gem build #{gemspec_file}"
|
@@ -65,18 +71,18 @@ task :build => :gemspec do
|
|
65
71
|
end
|
66
72
|
|
67
73
|
task :gemspec do
|
68
|
-
#
|
74
|
+
# Read spec file and split out manifest section
|
69
75
|
spec = File.read(gemspec_file)
|
70
76
|
head, manifest, tail = spec.split(" # = MANIFEST =\n")
|
71
77
|
|
72
|
-
#
|
78
|
+
# Replace name version and date
|
73
79
|
replace_header(head, :name)
|
74
80
|
replace_header(head, :version)
|
75
81
|
replace_header(head, :date)
|
76
|
-
#
|
82
|
+
# Comment this out if your rubyforge_project has a different name
|
77
83
|
replace_header(head, :rubyforge_project)
|
78
84
|
|
79
|
-
#
|
85
|
+
# Determine file list from git ls-files
|
80
86
|
files = `git ls-files`.
|
81
87
|
split("\n").
|
82
88
|
sort.
|
@@ -85,9 +91,14 @@ task :gemspec do
|
|
85
91
|
map { |file| " #{file}" }.
|
86
92
|
join("\n")
|
87
93
|
|
88
|
-
#
|
94
|
+
# Piece file back together and write
|
89
95
|
manifest = " s.files = %w[\n#{files}\n ]\n"
|
90
96
|
spec = [head, manifest, tail].join(" # = MANIFEST =\n")
|
91
97
|
File.open(gemspec_file, 'w') { |io| io.write(spec) }
|
92
98
|
puts "Updated #{gemspec_file}"
|
99
|
+
end
|
100
|
+
|
101
|
+
# List all available rake tasks
|
102
|
+
task :default do
|
103
|
+
system('rake -T')
|
93
104
|
end
|
data/bin/neverprint
CHANGED
@@ -3,10 +3,10 @@ STDOUT.sync = true
|
|
3
3
|
|
4
4
|
$:.unshift File.join(File.dirname(__FILE__), *%w{ .. lib })
|
5
5
|
|
6
|
+
require 'rubygems'
|
6
7
|
require 'commander/import'
|
7
8
|
require 'jekyll'
|
8
|
-
|
9
|
-
Jekyll::Deprecator.process(ARGV)
|
9
|
+
require 'neverprint'
|
10
10
|
|
11
11
|
program :name, 'neverprint'
|
12
12
|
program :version, Neverprint::VERSION
|
@@ -18,52 +18,9 @@ command :new do |c|
|
|
18
18
|
c.syntax = 'neverprint new PATH'
|
19
19
|
c.description = 'Adds neverprint files to an existing Jekyll site.'
|
20
20
|
|
21
|
-
c.option '--
|
21
|
+
c.option '--generate', 'Have Jekyll create the base site if absent.'
|
22
22
|
|
23
23
|
c.action do |args, options|
|
24
24
|
Neverprint::Commands::New.process(args, options.__hash__)
|
25
25
|
end
|
26
26
|
end
|
27
|
-
|
28
|
-
command :build do |c|
|
29
|
-
c.syntax = 'neverprint build [options]'
|
30
|
-
c.description = 'Build your site (same as "jekyll build")'
|
31
|
-
|
32
|
-
c.option '--config CONFIG_FILE[,CONFIG_FILE2,...]', Array, 'Custom configuration file'
|
33
|
-
c.option '--future', 'Publishes posts with a future date'
|
34
|
-
c.option '--limit_posts MAX_POSTS', Integer, 'Limits the number of posts to parse and publish'
|
35
|
-
c.option '-w', '--watch', 'Watch for changes and rebuild'
|
36
|
-
c.option '--lsi', 'Use LSI for improved related posts'
|
37
|
-
c.option '--drafts', 'Render posts in the _drafts folder'
|
38
|
-
|
39
|
-
c.action do |args, options|
|
40
|
-
options = normalize_options(options.__hash__)
|
41
|
-
options = Jekyll.configuration(options)
|
42
|
-
Jekyll::Commands::Build.process(options)
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
command :serve do |c|
|
47
|
-
c.syntax = 'neverprint serve [options]'
|
48
|
-
c.description = 'Serve your site locally (same as "jekyll serve")'
|
49
|
-
|
50
|
-
c.option '--config CONFIG_FILE[,CONFIG_FILE2,...]', Array, 'Custom configuration file'
|
51
|
-
c.option '--future', 'Publishes posts with a future date'
|
52
|
-
c.option '--limit_posts MAX_POSTS', Integer, 'Limits the number of posts to parse and publish'
|
53
|
-
c.option '-w', '--watch', 'Watch for changes and rebuild'
|
54
|
-
c.option '--lsi', 'Use LSI for improved related posts'
|
55
|
-
c.option '--drafts', 'Render posts in the _drafts folder'
|
56
|
-
|
57
|
-
c.option '-p', '--port [PORT]', 'Port to listen on'
|
58
|
-
c.option '-h', '--host [HOST]', 'Host to bind to'
|
59
|
-
c.option '-b', '--baseurl [URL]', 'Base URL'
|
60
|
-
|
61
|
-
c.action do |args, options|
|
62
|
-
options.default :serving => true
|
63
|
-
|
64
|
-
options = normalize_options(options.__hash__)
|
65
|
-
options = Jekyll.configuration(options)
|
66
|
-
Jekyll::Commands::Build.process(options)
|
67
|
-
Jekyll::Commands::Serve.process(options)
|
68
|
-
end
|
69
|
-
end
|
@@ -1,38 +1,56 @@
|
|
1
|
-
require 'erb'
|
2
|
-
|
3
1
|
module Neverprint
|
4
2
|
module Commands
|
5
|
-
class New
|
3
|
+
class New
|
6
4
|
def self.process(args, options = {})
|
5
|
+
|
7
6
|
raise ArgumentError.new('You must specify a path.') if args.empty?
|
8
7
|
|
9
|
-
|
10
|
-
FileUtils.mkdir_p new_blog_path
|
11
|
-
if preserve_source_location?(new_blog_path, options)
|
12
|
-
Jekyll::Stevenson.error "Conflict:", "#{new_blog_path} exists and is not empty."
|
13
|
-
exit(1)
|
14
|
-
end
|
8
|
+
new_site_path = File.expand_path(args.join(" "), Dir.pwd)
|
15
9
|
|
16
|
-
|
10
|
+
puts "\n- Checking if Jekyll site exists in"
|
11
|
+
puts " #{new_site_path}"
|
17
12
|
|
18
|
-
|
19
|
-
|
13
|
+
if !provided_path_is_a_jekyll_site?(new_site_path)
|
14
|
+
Jekyll.logger.error('Jekyll site', '[ Not present ]')
|
15
|
+
if options[:generate]
|
16
|
+
puts "\n- Calling Jekyll to generate it for you"
|
17
|
+
Jekyll::Commands::New.process(args)
|
18
|
+
Jekyll.logger.warn('Jekyll site', '[ Created ]')
|
19
|
+
puts "\n"
|
20
|
+
else
|
21
|
+
Jekyll.logger.warn('', 'Use --generate to have Jekyll generate it')
|
22
|
+
Jekyll.logger.warn('', 'Or use Jekyll directly and create it yourself')
|
23
|
+
puts "\n"
|
24
|
+
exit(1)
|
25
|
+
end
|
26
|
+
else
|
27
|
+
Jekyll.logger.warn('Jekyll site', '[ Present ]')
|
20
28
|
end
|
21
|
-
puts "Neverprint sauce added to your jekyll site in #{new_blog_path}."
|
22
|
-
end
|
23
29
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
30
|
+
puts "\n- Adding Neverprint files to site"
|
31
|
+
|
32
|
+
add_neverprint_files new_site_path
|
33
|
+
|
34
|
+
Jekyll.logger.warn('Neverprint files', '[ Added ]')
|
35
|
+
puts "\n"
|
36
|
+
|
29
37
|
end
|
30
38
|
|
31
39
|
private
|
32
40
|
|
33
|
-
def self.
|
34
|
-
|
41
|
+
def self.add_neverprint_files(path)
|
42
|
+
FileUtils.cp_r neverprint_template + '/.', path
|
43
|
+
#FileUtils.rm File.expand_path(scaffold_path, path)
|
44
|
+
end
|
45
|
+
|
46
|
+
def self.neverprint_template
|
47
|
+
File.expand_path("../../neverprint_template", File.dirname(__FILE__))
|
35
48
|
end
|
49
|
+
|
50
|
+
def self.provided_path_is_a_jekyll_site?(path)
|
51
|
+
!Dir["#{path}/_posts"].empty?
|
52
|
+
end
|
53
|
+
|
36
54
|
end
|
37
55
|
end
|
38
|
-
end
|
56
|
+
end
|
data/lib/neverprint.rb
CHANGED
@@ -1,53 +1,5 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
# path - The String relative path from here to the directory.
|
4
|
-
#
|
5
|
-
# Returns nothing.
|
6
|
-
def require_all(path)
|
7
|
-
glob = File.join(File.dirname(__FILE__), path, '*.rb')
|
8
|
-
Dir[glob].each do |f|
|
9
|
-
require f
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
# rubygems
|
14
|
-
require 'rubygems'
|
15
|
-
|
16
|
-
# stdlib
|
17
|
-
require 'fileutils'
|
18
|
-
require 'time'
|
19
|
-
# require 'safe_yaml'
|
20
|
-
# require 'English'
|
21
|
-
|
22
|
-
# leverage jekyll
|
23
|
-
|
24
|
-
require 'jekyll/stevenson'
|
25
|
-
require 'jekyll/configuration'
|
26
|
-
|
27
|
-
# extensions
|
28
|
-
require 'neverprint/command'
|
29
|
-
|
30
|
-
require_all 'neverprint/commands'
|
31
|
-
|
32
|
-
# SafeYAML::OPTIONS[:suppress_warnings] = true
|
1
|
+
require 'neverprint/commands/new'
|
33
2
|
|
34
3
|
module Neverprint
|
35
|
-
VERSION = '0.1.
|
36
|
-
|
37
|
-
def self.configuration(override)
|
38
|
-
config = Configuration[Configuration::DEFAULTS]
|
39
|
-
override = Configuration[override].stringify_keys
|
40
|
-
config = config.read_config_files(config.config_files(override))
|
41
|
-
|
42
|
-
# Merge DEFAULTS < _config.yml < override
|
43
|
-
config = config.deep_merge(override).stringify_keys
|
44
|
-
set_timezone(config['timezone']) if config['timezone']
|
45
|
-
|
46
|
-
config
|
47
|
-
end
|
48
|
-
|
49
|
-
def self.set_timezone(timezone)
|
50
|
-
ENV['TZ'] = timezone
|
51
|
-
end
|
52
|
-
|
4
|
+
VERSION = '0.1.2'
|
53
5
|
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
|
3
|
+
group :development do
|
4
|
+
|
5
|
+
gem 'jekyll'
|
6
|
+
gem 'compass'
|
7
|
+
gem 'coffee-script'
|
8
|
+
gem 'haml'
|
9
|
+
|
10
|
+
gem 'listen'
|
11
|
+
|
12
|
+
gem 'rb-inotify', :require => false
|
13
|
+
gem 'rb-fsevent', :require => false
|
14
|
+
gem 'rb-fchange', :require => false
|
15
|
+
|
16
|
+
gem 'guard'
|
17
|
+
gem 'guard-haml'
|
18
|
+
gem 'guard-compass'
|
19
|
+
gem 'guard-coffeescript'
|
20
|
+
|
21
|
+
gem 'therubyracer'
|
22
|
+
|
23
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# To setup notifications - https://github.com/guard/guard#notification
|
2
|
+
notification :off
|
3
|
+
interactor :off
|
4
|
+
|
5
|
+
group :coffeescript do
|
6
|
+
|
7
|
+
guard :coffeescript, :input => '_assets/coffeescript', :output => './js', :shallow => true
|
8
|
+
|
9
|
+
end
|
10
|
+
|
11
|
+
group :compass do
|
12
|
+
|
13
|
+
guard 'compass', :input => '_assets/sass', :output => './_includes/css', :configuration_file => 'Compassfile' do
|
14
|
+
watch %r{^.+(\.s[ac]ss)}
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
|
19
|
+
group :haml do
|
20
|
+
|
21
|
+
guard :haml, :input => '_assets/pages', :output => './' do
|
22
|
+
watch %r{^_assets/pages/.+(\.haml)}
|
23
|
+
end
|
24
|
+
|
25
|
+
# Support for either _assets/templates or _assets/layouts
|
26
|
+
guard :haml, :input => '_assets/templates', :output => './_layouts' do
|
27
|
+
watch %r{^_assets/templates/.+(\.haml)}
|
28
|
+
end
|
29
|
+
|
30
|
+
guard :haml, :input => '_assets/layouts', :output => './_layouts' do
|
31
|
+
watch %r{^_assets/layouts/.+(\.haml)}
|
32
|
+
end
|
33
|
+
|
34
|
+
# Support for either _assets/includes or _assets/partials
|
35
|
+
guard :haml, :input => '_assets/partials', :output => './_includes' do
|
36
|
+
watch %r{^_assets/partials/.+(\.haml)}
|
37
|
+
end
|
38
|
+
|
39
|
+
guard :haml, :input => '_assets/includes', :output => './_includes' do
|
40
|
+
watch %r{^_assets/includes/.+(\.haml)}
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
namespace :neverprint do
|
2
|
+
|
3
|
+
namespace :precompile do
|
4
|
+
desc "Start monitoring assets using Guard."
|
5
|
+
task :all do
|
6
|
+
puts "Starting Guard... "
|
7
|
+
system(%{
|
8
|
+
bundle exec guard --no-interactions
|
9
|
+
})
|
10
|
+
puts "Done."
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
desc "Start jekyll server with auto update enabled for when files change."
|
15
|
+
task :serve do
|
16
|
+
puts "Starting Jekyll..."
|
17
|
+
system(%{
|
18
|
+
jekyll serve --port 8888 --watch
|
19
|
+
})
|
20
|
+
puts "Done."
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
# List all available rake tasks
|
26
|
+
task :default do
|
27
|
+
system('rake -T')
|
28
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
:plain
|
2
|
+
---
|
3
|
+
layout: default
|
4
|
+
title: Your New Neverprint Site
|
5
|
+
---
|
6
|
+
|
7
|
+
#home
|
8
|
+
%h1='Blog Posts'
|
9
|
+
%ul.posts
|
10
|
+
= '{% for post in site.posts %}'
|
11
|
+
%li
|
12
|
+
%span='{{ post.date | date_to_string }} »'
|
13
|
+
%a{ :href => "{{ post.url }}" }= '{{ post.title }}'
|
14
|
+
='{% endfor %}'
|
@@ -0,0 +1,40 @@
|
|
1
|
+
!!! 5
|
2
|
+
%html
|
3
|
+
%head
|
4
|
+
%meta{ :charset => 'utf-8' }
|
5
|
+
%title= '{{ page.title }} | Neverprint'
|
6
|
+
|
7
|
+
%meta{ :name => 'viewport', :content => 'width=device-width' }
|
8
|
+
%meta{ :'http-equiv' => 'X-UA-Compatible', :content => 'IE=edge,chrome=1' }
|
9
|
+
|
10
|
+
%link{ :rel => 'shortcut icon', :href => '/images/favicon.ico', :type => 'image/x-icon'}
|
11
|
+
%link{ :rel => 'stylesheet', :href => '/css/all.css' }
|
12
|
+
%link{ :rel => 'stylesheet', :href => '/css/main.css' }
|
13
|
+
%link{ :rel => 'stylesheet', :href => '/css/syntax.css' }
|
14
|
+
%script{ :src => '//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js' }
|
15
|
+
%script{ :src => '/js/application.js' }
|
16
|
+
|
17
|
+
%body
|
18
|
+
.container
|
19
|
+
.site
|
20
|
+
.header
|
21
|
+
%h1.title
|
22
|
+
%a{ :href => '/' }= '{{ page.title }}'
|
23
|
+
%a.extra{ :href => '/'}= 'home'
|
24
|
+
|
25
|
+
{{ content }}
|
26
|
+
|
27
|
+
.footer
|
28
|
+
.contact
|
29
|
+
%p
|
30
|
+
%strong='Neverprint'
|
31
|
+
%br
|
32
|
+
A Jekyll based site generator
|
33
|
+
%br
|
34
|
+
info@neverprint.com
|
35
|
+
|
36
|
+
.contact
|
37
|
+
%p
|
38
|
+
%a{ :href => 'http://github.com/neverprint/' }= 'github.com/neverprint'
|
39
|
+
%br
|
40
|
+
%a{ :href => 'http://twitter.com//neverprint/' }= 'twitter.com/neverprint'
|
@@ -0,0 +1,48 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset='utf-8'>
|
5
|
+
<title>{{ page.title }} | Neverprint</title>
|
6
|
+
<meta content='width=device-width' name='viewport'>
|
7
|
+
<meta content='IE=edge,chrome=1' http-equiv='X-UA-Compatible'>
|
8
|
+
<link href='/images/favicon.ico' rel='shortcut icon' type='image/x-icon'>
|
9
|
+
<link href='/css/all.css' rel='stylesheet'>
|
10
|
+
<link href='/css/main.css' rel='stylesheet'>
|
11
|
+
<link href='/css/syntax.css' rel='stylesheet'>
|
12
|
+
<script src='//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js'></script>
|
13
|
+
<script src='/js/application.js'></script>
|
14
|
+
</head>
|
15
|
+
<body>
|
16
|
+
<div class='container'>
|
17
|
+
<div class='site'>
|
18
|
+
<div class='header'>
|
19
|
+
<h1 class='title'>
|
20
|
+
<a href='/'>{{ page.title }}</a>
|
21
|
+
<a class='extra' href='/'>home</a>
|
22
|
+
</h1>
|
23
|
+
</div>
|
24
|
+
{{ content }}
|
25
|
+
<div class='footer'>
|
26
|
+
<div class='contact'>
|
27
|
+
<p>
|
28
|
+
<strong>Neverprint</strong>
|
29
|
+
</p>
|
30
|
+
<br>
|
31
|
+
A Jekyll based site generator
|
32
|
+
</br>
|
33
|
+
<br>
|
34
|
+
info@neverprint.com
|
35
|
+
</br>
|
36
|
+
</div>
|
37
|
+
<div class='contact'>
|
38
|
+
<p>
|
39
|
+
<a href='http://github.com/neverprint/'>github.com/neverprint</a>
|
40
|
+
<br>
|
41
|
+
<a href='http://twitter.com//neverprint/'>twitter.com/neverprint</a>
|
42
|
+
</p>
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
</body>
|
48
|
+
</html>
|
Binary file
|
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
title: Your New Neverprint Site
|
4
|
+
---
|
5
|
+
<div id='home'>
|
6
|
+
<h1>Blog Posts</h1>
|
7
|
+
<ul class='posts'>
|
8
|
+
{% for post in site.posts %}
|
9
|
+
<li>
|
10
|
+
<span>{{ post.date | date_to_string }} »</span>
|
11
|
+
<a href='{{ post.url }}'>{{ post.title }}</a>
|
12
|
+
</li>
|
13
|
+
{% endfor %}
|
14
|
+
</ul>
|
15
|
+
</div>
|
data/neverprint.gemspec
CHANGED
@@ -5,13 +5,13 @@ Gem::Specification.new do |s|
|
|
5
5
|
s.rubygems_version = '1.3.5'
|
6
6
|
|
7
7
|
s.name = 'neverprint'
|
8
|
-
s.version = '0.1.
|
8
|
+
s.version = '0.1.2'
|
9
9
|
s.license = 'MIT'
|
10
|
-
s.date = '2013-
|
10
|
+
s.date = '2013-08-19'
|
11
11
|
s.rubyforge_project = 'neverprint'
|
12
12
|
|
13
|
-
s.summary = "
|
14
|
-
s.description = "
|
13
|
+
s.summary = "Jumpstart your Jekyll project."
|
14
|
+
s.description = "Setup your Jekyll project to support more advanced templating and preprocessing using HAML, Compass and Coffeescript. "
|
15
15
|
|
16
16
|
s.authors = ["Antoine Lafontaine"]
|
17
17
|
s.email = 'antoine.lafontaine@neverprint.com'
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
|
|
24
24
|
s.rdoc_options = ["--charset=UTF-8"]
|
25
25
|
s.extra_rdoc_files = %w[README.markdown LICENSE]
|
26
26
|
|
27
|
-
s.add_runtime_dependency('jekyll', "~> 1.
|
27
|
+
s.add_runtime_dependency('jekyll', "~> 1.1.2")
|
28
28
|
|
29
29
|
# = MANIFEST =
|
30
30
|
s.files = %w[
|
@@ -35,8 +35,25 @@ Gem::Specification.new do |s|
|
|
35
35
|
Rakefile
|
36
36
|
bin/neverprint
|
37
37
|
lib/neverprint.rb
|
38
|
-
lib/neverprint/command.rb
|
39
38
|
lib/neverprint/commands/new.rb
|
39
|
+
lib/neverprint_template/Compassfile
|
40
|
+
lib/neverprint_template/Gemfile
|
41
|
+
lib/neverprint_template/Guardfile
|
42
|
+
lib/neverprint_template/Rakefile
|
43
|
+
lib/neverprint_template/_assets/coffeescript/application.coffee
|
44
|
+
lib/neverprint_template/_assets/pages/index.haml
|
45
|
+
lib/neverprint_template/_assets/sass/layout.scss
|
46
|
+
lib/neverprint_template/_assets/sass/tools.scss
|
47
|
+
lib/neverprint_template/_assets/templates/default.haml
|
48
|
+
lib/neverprint_template/_assets/templates/post.haml
|
49
|
+
lib/neverprint_template/_includes/css/layout.css
|
50
|
+
lib/neverprint_template/_includes/css/tools.css
|
51
|
+
lib/neverprint_template/_layouts/default.html
|
52
|
+
lib/neverprint_template/_layouts/post.html
|
53
|
+
lib/neverprint_template/css/all.css
|
54
|
+
lib/neverprint_template/images/favicon.ico
|
55
|
+
lib/neverprint_template/index.html
|
56
|
+
lib/neverprint_template/js/application.js
|
40
57
|
neverprint.gemspec
|
41
58
|
]
|
42
59
|
# = MANIFEST =
|
metadata
CHANGED
@@ -1,48 +1,42 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: neverprint
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
- 0
|
10
|
-
version: 0.1.0
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Antoine Lafontaine
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2013-08-19 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: jekyll
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
18
|
+
requirements:
|
26
19
|
- - ~>
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
segments:
|
30
|
-
- 1
|
31
|
-
- 0
|
32
|
-
- 2
|
33
|
-
version: 1.0.2
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 1.1.2
|
34
22
|
type: :runtime
|
35
|
-
|
36
|
-
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 1.1.2
|
30
|
+
description: ! 'Setup your Jekyll project to support more advanced templating and
|
31
|
+
preprocessing using HAML, Compass and Coffeescript. '
|
37
32
|
email: antoine.lafontaine@neverprint.com
|
38
|
-
executables:
|
33
|
+
executables:
|
39
34
|
- neverprint
|
40
35
|
extensions: []
|
41
|
-
|
42
|
-
extra_rdoc_files:
|
36
|
+
extra_rdoc_files:
|
43
37
|
- README.markdown
|
44
38
|
- LICENSE
|
45
|
-
files:
|
39
|
+
files:
|
46
40
|
- Gemfile
|
47
41
|
- LICENSE
|
48
42
|
- README.markdown
|
@@ -50,41 +44,50 @@ files:
|
|
50
44
|
- Rakefile
|
51
45
|
- bin/neverprint
|
52
46
|
- lib/neverprint.rb
|
53
|
-
- lib/neverprint/command.rb
|
54
47
|
- lib/neverprint/commands/new.rb
|
48
|
+
- lib/neverprint_template/Compassfile
|
49
|
+
- lib/neverprint_template/Gemfile
|
50
|
+
- lib/neverprint_template/Guardfile
|
51
|
+
- lib/neverprint_template/Rakefile
|
52
|
+
- lib/neverprint_template/_assets/coffeescript/application.coffee
|
53
|
+
- lib/neverprint_template/_assets/pages/index.haml
|
54
|
+
- lib/neverprint_template/_assets/sass/layout.scss
|
55
|
+
- lib/neverprint_template/_assets/sass/tools.scss
|
56
|
+
- lib/neverprint_template/_assets/templates/default.haml
|
57
|
+
- lib/neverprint_template/_assets/templates/post.haml
|
58
|
+
- lib/neverprint_template/_includes/css/layout.css
|
59
|
+
- lib/neverprint_template/_includes/css/tools.css
|
60
|
+
- lib/neverprint_template/_layouts/default.html
|
61
|
+
- lib/neverprint_template/_layouts/post.html
|
62
|
+
- lib/neverprint_template/css/all.css
|
63
|
+
- lib/neverprint_template/images/favicon.ico
|
64
|
+
- lib/neverprint_template/index.html
|
65
|
+
- lib/neverprint_template/js/application.js
|
55
66
|
- neverprint.gemspec
|
56
67
|
homepage: http://github.com/neverprint/neverprint
|
57
|
-
licenses:
|
68
|
+
licenses:
|
58
69
|
- MIT
|
59
70
|
post_install_message:
|
60
|
-
rdoc_options:
|
71
|
+
rdoc_options:
|
61
72
|
- --charset=UTF-8
|
62
|
-
require_paths:
|
73
|
+
require_paths:
|
63
74
|
- lib
|
64
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
75
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
65
76
|
none: false
|
66
|
-
requirements:
|
67
|
-
- -
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
|
70
|
-
|
71
|
-
- 0
|
72
|
-
version: "0"
|
73
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - ! '>='
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0'
|
81
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
74
82
|
none: false
|
75
|
-
requirements:
|
76
|
-
- -
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
|
79
|
-
segments:
|
80
|
-
- 0
|
81
|
-
version: "0"
|
83
|
+
requirements:
|
84
|
+
- - ! '>='
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
82
87
|
requirements: []
|
83
|
-
|
84
88
|
rubyforge_project: neverprint
|
85
|
-
rubygems_version: 1.8.
|
89
|
+
rubygems_version: 1.8.23
|
86
90
|
signing_key:
|
87
91
|
specification_version: 2
|
88
|
-
summary:
|
92
|
+
summary: Jumpstart your Jekyll project.
|
89
93
|
test_files: []
|
90
|
-
|
data/lib/neverprint/command.rb
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
module Neverprint
|
2
|
-
class Command
|
3
|
-
def self.globs(source, destination)
|
4
|
-
Dir.chdir(source) do
|
5
|
-
dirs = Dir['*'].select { |x| File.directory?(x) }
|
6
|
-
dirs -= [destination, File.expand_path(destination), File.basename(destination)]
|
7
|
-
dirs = dirs.map { |x| "#{x}/**/*" }
|
8
|
-
dirs += ['*']
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
# Static: Run Site#process and catch errors
|
13
|
-
#
|
14
|
-
# site - the Jekyll::Site object
|
15
|
-
#
|
16
|
-
# Returns nothing
|
17
|
-
def self.process_site(site)
|
18
|
-
site.process
|
19
|
-
rescue Jekyll::FatalException => e
|
20
|
-
puts
|
21
|
-
Jekyll::Stevenson.error "ERROR:", "YOUR SITE COULD NOT BE BUILT:"
|
22
|
-
Jekyll::Stevenson.error "", "------------------------------------"
|
23
|
-
Jekyll::Stevenson.error "", e.message
|
24
|
-
exit(1)
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|