hydeweb 0.0.1.pre1 → 0.0.1.pre2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +8 -4
- data/VERSION +1 -1
- data/bin/hyde +17 -6
- data/data/new_site/README.md +18 -0
- data/data/new_site/_config.yml +17 -0
- data/data/new_site/layouts/default.haml +10 -0
- data/data/new_site/site/index.html +5 -0
- data/lib/hyde/layout.rb +6 -2
- data/lib/hyde/page.rb +39 -23
- data/lib/hyde/project.rb +45 -31
- data/lib/hyde/renderer.rb +5 -3
- data/lib/hyde/utils.rb +6 -0
- data/test/fixtures/custom/_config.yml +8 -0
- data/test/fixtures/custom/layouts/default.haml +5 -0
- data/test/fixtures/custom/site/about/index.html +1 -0
- data/test/fixtures/custom/site/foo.html.haml +3 -0
- data/test/fixtures/custom/site/index.html.haml +6 -0
- data/test/fixtures/custom/site/layout_test.html.haml +6 -0
- data/test/fixtures/custom/site/yes.html +2 -0
- data/test/fixtures/custom/www/about/index.html +1 -0
- data/test/fixtures/custom/www/foo.html +1 -0
- data/test/fixtures/custom/www/index.html +9 -0
- data/test/fixtures/custom/www/layout_test.html +9 -0
- data/test/fixtures/custom/www/yes.html +2 -0
- data/test/fixtures/default/_config.yml +4 -0
- data/test/fixtures/default/_www/Users/rsc/Workdesk/hyde/hyde/test/fixtures/default/about/index.html +0 -0
- data/test/fixtures/default/_www/about/index.html +1 -0
- data/test/fixtures/default/_www/foo.html +1 -0
- data/test/fixtures/default/_www/index.html +9 -0
- data/test/fixtures/default/_www/layout_test.html +9 -0
- data/test/fixtures/default/_www/yes.html +2 -0
- data/test/helper.rb +0 -13
- data/test/test_build.rb +20 -0
- data/test/test_hyde.rb +12 -1
- data/test/test_utils.rb +22 -0
- metadata +29 -6
- data/hyde.gemspec +0 -80
- data/hydegen.gemspec +0 -58
- data/test/fixtures/default/hyde +0 -2
data/README.md
CHANGED
@@ -9,9 +9,10 @@ Installation
|
|
9
9
|
Usage
|
10
10
|
-----
|
11
11
|
|
12
|
-
hyde create <project_name>
|
12
|
+
hyde create <project_name>
|
13
13
|
cd <project_name>
|
14
|
-
hyde
|
14
|
+
hyde build # <= Build the HTML files, or
|
15
|
+
hyde start # <= Serve via a local web server
|
15
16
|
|
16
17
|
To do
|
17
18
|
-----
|
@@ -22,8 +23,11 @@ To do
|
|
22
23
|
- markdown
|
23
24
|
- textile
|
24
25
|
|
25
|
-
- hyde build
|
26
|
-
- hyde gen
|
27
26
|
- extensions support
|
28
27
|
|
29
28
|
- _meta.yml
|
29
|
+
|
30
|
+
Done:
|
31
|
+
|
32
|
+
- hyde build
|
33
|
+
- hyde gen
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.1.
|
1
|
+
0.0.1.pre2
|
data/bin/hyde
CHANGED
@@ -36,23 +36,34 @@ options[:action] = ARGV[0]
|
|
36
36
|
options[:params] = []
|
37
37
|
(1...ARGV.size).each { |i| options[:params] << ARGV[i] }
|
38
38
|
|
39
|
+
ostream = STDERR
|
40
|
+
|
39
41
|
if options[:action] == 'start'
|
40
42
|
system "ruby #{lib_path}/hyde/init.rb"
|
41
43
|
|
42
44
|
elsif options[:action] == 'build'
|
43
|
-
Hyde::Project.new.build
|
45
|
+
Hyde::Project.new.build ostream
|
44
46
|
|
45
47
|
elsif options[:action] == 'create'
|
46
48
|
unless options[:params].size == 1
|
47
49
|
puts opts
|
50
|
+
|
48
51
|
else
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
52
|
+
site_name = options[:params][0]
|
53
|
+
if Dir.exists? site_name
|
54
|
+
ostream << "This director already exists!\n"
|
55
|
+
exit
|
53
56
|
end
|
54
57
|
|
55
|
-
|
58
|
+
from = File.join(File.dirname(__FILE__), '..', 'data', 'new_site')
|
59
|
+
to = File.expand_path(File.join(Dir.pwd, site_name))
|
60
|
+
|
61
|
+
require 'fileutils'
|
62
|
+
FileUtils.cp_r from, to
|
63
|
+
|
64
|
+
Dir[File.join(to, '**/*')].each do |file|
|
65
|
+
ostream << " * " << file.gsub(Dir.pwd, '') << "\n"
|
66
|
+
end
|
56
67
|
end
|
57
68
|
|
58
69
|
else
|
@@ -0,0 +1,18 @@
|
|
1
|
+
#{sitename}
|
2
|
+
===========
|
3
|
+
|
4
|
+
This is my site.
|
5
|
+
|
6
|
+
|
7
|
+
Instructions
|
8
|
+
------------
|
9
|
+
|
10
|
+
1. Make sure Ruby (>= v1.8) is installed.
|
11
|
+
2. Install the hydeweb gem: `gem install hydeweb`
|
12
|
+
3. Build the site HTML files by typing: `hyde build`
|
13
|
+
|
14
|
+
You may also type `hyde serve` to serve the files in a local web server.
|
15
|
+
|
16
|
+
(If #2 fails, you may need to type `sudo gem install hydeweb` instead)
|
17
|
+
|
18
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# This is a Hyde site.
|
2
|
+
# Install the `hydeweb` Ruby gem and type `hyde` for help.
|
3
|
+
|
4
|
+
# Path options
|
5
|
+
# -------------
|
6
|
+
|
7
|
+
# The folder where the site's main files are kept. (you can set this to '.')
|
8
|
+
site_path: site
|
9
|
+
|
10
|
+
# The folder where the layout templates (and partials) are kept.
|
11
|
+
layouts_path: layouts
|
12
|
+
|
13
|
+
# The folder where the optional extensions are kept.
|
14
|
+
extensions_path: extensions
|
15
|
+
|
16
|
+
# The folder where the HTML files are to be built when typing `hyde build`.
|
17
|
+
output_path: output
|
data/lib/hyde/layout.rb
CHANGED
@@ -1,7 +1,11 @@
|
|
1
1
|
module Hyde
|
2
2
|
class Layout < Page
|
3
|
-
def
|
4
|
-
super project
|
3
|
+
def self.create(path, project, page_class = Layout)
|
4
|
+
super path, project, page_class
|
5
|
+
end
|
6
|
+
|
7
|
+
def self.get_filename(path, project)
|
8
|
+
project.root(:layouts, path)
|
5
9
|
end
|
6
10
|
end
|
7
11
|
end
|
data/lib/hyde/page.rb
CHANGED
@@ -3,32 +3,33 @@ module Hyde
|
|
3
3
|
attr :filename, :renderer, :meta,
|
4
4
|
:page, :layout, :project
|
5
5
|
|
6
|
+
# The filename of the source file.
|
7
|
+
# @example
|
8
|
+
# puts page.name
|
9
|
+
# puts page.filename
|
10
|
+
# # about/index.html
|
11
|
+
# # about/index.html.haml
|
6
12
|
attr_accessor :filename
|
13
|
+
|
14
|
+
# Metadata hash
|
7
15
|
attr_accessor :meta
|
8
|
-
|
16
|
+
|
17
|
+
# Path
|
18
|
+
# @see {#filename} for an example
|
9
19
|
attr_accessor :name
|
10
20
|
|
21
|
+
# A reference to the parent {Project} instance
|
11
22
|
attr_reader :project
|
12
23
|
|
13
|
-
#
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
def initialize( page, project )
|
18
|
-
@project = project
|
19
|
-
@name ||= page
|
20
|
-
@meta ||= {}
|
21
|
-
|
22
|
-
renderer = nil
|
23
|
-
|
24
|
-
info = get_page_info(self, @project)
|
25
|
-
@filename = info[:filename]
|
26
|
-
@renderer = info[:renderer]
|
24
|
+
# Factory
|
25
|
+
def self.create(path, project, page_class = Page)
|
26
|
+
info = get_page_info(path, project)
|
27
|
+
page = page_class.new(path, project, info[:renderer], info[:filename])
|
27
28
|
end
|
28
29
|
|
29
30
|
# Returns the rendered output.
|
30
31
|
def render( data = {} )
|
31
|
-
output = @renderer.render(@meta.merge
|
32
|
+
output = @renderer.render(@meta.merge(data))
|
32
33
|
unless @layout.nil?
|
33
34
|
hash = @meta.merge({ "content" => output })
|
34
35
|
output = @layout.render hash
|
@@ -43,27 +44,42 @@ module Hyde
|
|
43
44
|
#
|
44
45
|
# Called by Renderer::Base.
|
45
46
|
#
|
46
|
-
def set_meta(
|
47
|
+
def set_meta(meta)
|
47
48
|
# Merge
|
48
49
|
@meta ||= Hash.new
|
49
50
|
@meta.merge! meta
|
50
51
|
|
51
52
|
# Set the Layout
|
52
|
-
@layout =
|
53
|
+
@layout = @project.get_layout(@meta['layout']) if @meta['layout']
|
53
54
|
end
|
54
55
|
|
55
56
|
protected
|
56
|
-
|
57
|
+
# Constructor.
|
58
|
+
# The `page` argument is a page name
|
59
|
+
# Don't use me: use {Project#create}
|
60
|
+
def initialize(path, project, renderer, filename)
|
61
|
+
@project = project
|
62
|
+
@name ||= path
|
63
|
+
@meta ||= {}
|
64
|
+
@filename = filename
|
65
|
+
@renderer = renderer.new(self, filename)
|
66
|
+
end
|
67
|
+
|
68
|
+
def self.get_filename(path, project)
|
69
|
+
project.root(:site, path)
|
70
|
+
end
|
71
|
+
|
72
|
+
def self.get_page_info(path, project)
|
57
73
|
renderer = nil
|
58
|
-
filename =
|
74
|
+
filename = get_filename(path, project)
|
59
75
|
|
60
76
|
if File.exists? filename
|
61
77
|
renderer = Hyde::Renderer::Passthru
|
62
78
|
|
63
79
|
else
|
64
80
|
# Look for the file
|
65
|
-
matches = Dir["#{
|
66
|
-
raise NotFound.new("Can't find `#{
|
81
|
+
matches = Dir["#{filename}.*"]
|
82
|
+
raise NotFound.new("Can't find `#{path}{,.*}` -- #{filename}") \
|
67
83
|
if matches.empty?
|
68
84
|
|
69
85
|
# Check for a matching renderer
|
@@ -82,7 +98,7 @@ module Hyde
|
|
82
98
|
if renderer.nil?
|
83
99
|
end
|
84
100
|
|
85
|
-
{ :renderer => renderer
|
101
|
+
{ :renderer => renderer,
|
86
102
|
:filename => filename
|
87
103
|
}
|
88
104
|
end
|
data/lib/hyde/project.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
module Hyde
|
2
2
|
class Project
|
3
|
+
include Hyde::Utils
|
3
4
|
|
4
5
|
# The root path (String).
|
5
6
|
# root
|
@@ -9,7 +10,7 @@ module Hyde
|
|
9
10
|
where = ''
|
10
11
|
where = send("#{args.shift.to_s}_path") if args[0].class == Symbol
|
11
12
|
path = args
|
12
|
-
File.join [@root, where, path].reject(&:empty?)
|
13
|
+
File.expand_path(File.join [@root, where, path].reject(&:empty?))
|
13
14
|
end
|
14
15
|
|
15
16
|
# The filename of the configuration file, relative to the project root.
|
@@ -27,46 +28,44 @@ module Hyde
|
|
27
28
|
end
|
28
29
|
|
29
30
|
def method_missing(meth, *args, &blk)
|
30
|
-
@config.send meth
|
31
|
+
@config.send meth # SHOULD SEND AND ERROR!!
|
32
|
+
end
|
33
|
+
|
34
|
+
def get_page(path)
|
35
|
+
path = "index.html" if path.empty?
|
36
|
+
Page.create path, self
|
37
|
+
end
|
38
|
+
|
39
|
+
def get_layout(path)
|
40
|
+
Layout.create path, self
|
31
41
|
end
|
32
42
|
|
33
43
|
# Can throw a NotFound.
|
34
|
-
def render(
|
35
|
-
|
36
|
-
page = Page.new pathname, self
|
37
|
-
page.render
|
44
|
+
def render(path)
|
45
|
+
get_page(path).render
|
38
46
|
end
|
39
47
|
|
40
|
-
def build
|
41
|
-
|
42
|
-
Dir.mkdir
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
48
|
+
def build(ostream = nil)
|
49
|
+
raise Errno::EEXISTS if File.exists? root(:output) and not Dir.exists? root(:output)
|
50
|
+
Dir.mkdir root(:output) unless Dir.exists? root(:output)
|
51
|
+
|
52
|
+
files.each do |path|
|
53
|
+
ostream << " * #{output_path}/#{path}\n" if ostream
|
54
|
+
mfile = force_file_open(root(:output, path))
|
55
|
+
mfile << render(path)
|
56
|
+
mfile.close
|
47
57
|
end
|
48
58
|
end
|
49
59
|
|
50
60
|
# Returns a list of all URLs
|
51
61
|
def files
|
52
|
-
@file_list ||= Dir[File.join(root, '**', '*')].inject([]) do |a, match|
|
62
|
+
@file_list ||= Dir[File.join(root(:site), '**', '*')].inject([]) do |a, match|
|
53
63
|
# Make sure its the canonical name
|
54
64
|
path = File.expand_path(match)
|
55
|
-
file = path.gsub /^#{Regexp.escape root}\/?/, ''
|
65
|
+
file = path.gsub /^#{Regexp.escape root(:site)}\/?/, ''
|
56
66
|
ext = File.extname(file)[1..-1]
|
57
67
|
|
58
|
-
|
59
|
-
root(:layouts, '**/*'),
|
60
|
-
root(:extensions, '**/*'),
|
61
|
-
root(:output, '**/*'),
|
62
|
-
@config_file
|
63
|
-
]
|
64
|
-
|
65
|
-
ignore_files = ignore_list.inject([]) { |a, spec|
|
66
|
-
Dir[spec].each { |file| a << File.expand_path(file) }; a
|
67
|
-
}
|
68
|
-
|
69
|
-
if ignore_files.include?(path) or Dir.exists?(match)
|
68
|
+
if ignored_files.include?(path) or Dir.exists?(match)
|
70
69
|
# pass
|
71
70
|
elsif not get_renderer(ext).nil? # Has a renderer associated
|
72
71
|
a << file.chomp(".#{ext}")
|
@@ -77,12 +76,27 @@ module Hyde
|
|
77
76
|
end
|
78
77
|
end
|
79
78
|
|
79
|
+
def ignore_list
|
80
|
+
@ignote_list ||= [
|
81
|
+
root(:layouts, '**/*'),
|
82
|
+
root(:extensions, '**/*'),
|
83
|
+
root(:output, '**/*'),
|
84
|
+
@config_file
|
85
|
+
]
|
86
|
+
end
|
87
|
+
|
88
|
+
def ignored_files
|
89
|
+
@ignored_files ||= ignore_list.inject([]) { |a, spec|
|
90
|
+
Dir[spec].each { |file| a << File.expand_path(file) }; a
|
91
|
+
}
|
92
|
+
end
|
93
|
+
|
80
94
|
protected
|
81
95
|
def defaults
|
82
|
-
{ 'layouts_path' => '
|
83
|
-
'extensions_path' => '
|
84
|
-
'site_path' => '
|
85
|
-
'output_path' => '
|
96
|
+
{ 'layouts_path' => 'layouts',
|
97
|
+
'extensions_path' => 'extensions',
|
98
|
+
'site_path' => 'site',
|
99
|
+
'output_path' => 'output'
|
86
100
|
}
|
87
101
|
end
|
88
102
|
|
data/lib/hyde/renderer.rb
CHANGED
@@ -3,11 +3,13 @@ require "ostruct"
|
|
3
3
|
module Hyde
|
4
4
|
module Renderer
|
5
5
|
class Base
|
6
|
-
|
6
|
+
# Reference to {Page}
|
7
7
|
attr_reader :page
|
8
8
|
|
9
|
-
|
10
|
-
|
9
|
+
# The filename of the file to be parsed
|
10
|
+
attr_reader :filename
|
11
|
+
|
12
|
+
def initialize(page, filename)
|
11
13
|
@page = page
|
12
14
|
@filename = filename
|
13
15
|
end
|
data/lib/hyde/utils.rb
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
<h2>"Hellerrr"</h2>
|
data/test/fixtures/default/_www/Users/rsc/Workdesk/hyde/hyde/test/fixtures/default/about/index.html
ADDED
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
<h2>"Hellerrr"</h2>
|
data/test/helper.rb
CHANGED
@@ -8,19 +8,6 @@ require 'hyde'
|
|
8
8
|
|
9
9
|
class Test::Unit::TestCase
|
10
10
|
include Hyde::Utils
|
11
|
-
|
12
|
-
def setup(site = 'default')
|
13
|
-
@project = get_project site
|
14
|
-
end
|
15
|
-
|
16
|
-
def get_project(site)
|
17
|
-
Hyde::Project.new fixture(site)
|
18
|
-
end
|
19
|
-
|
20
|
-
def fixture(site)
|
21
|
-
File.join File.dirname(__FILE__), 'fixtures', site
|
22
|
-
end
|
23
|
-
|
24
11
|
def assert_same_file(a, b)
|
25
12
|
assert same_file?(a, b)
|
26
13
|
end
|
data/test/test_build.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'helper'
|
2
|
+
|
3
|
+
class TestBuild < Test::Unit::TestCase
|
4
|
+
def setup
|
5
|
+
@original_pwd = Dir.pwd
|
6
|
+
@pwd = File.join(@original_pwd, 'test','fixtures','default')
|
7
|
+
Dir.chdir @pwd
|
8
|
+
@project = Hyde::Project.new(@pwd)
|
9
|
+
end
|
10
|
+
|
11
|
+
def teardown
|
12
|
+
Dir.chdir @original_pwd
|
13
|
+
end
|
14
|
+
|
15
|
+
should "build" do
|
16
|
+
@project.build
|
17
|
+
# Test existence of files
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
data/test/test_hyde.rb
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
require 'helper'
|
2
2
|
|
3
3
|
class TestHyde < Test::Unit::TestCase
|
4
|
+
def setup(site = 'default')
|
5
|
+
@project = get_project site
|
6
|
+
end
|
7
|
+
|
8
|
+
def get_project(site)
|
9
|
+
Hyde::Project.new fixture(site)
|
10
|
+
end
|
11
|
+
|
12
|
+
def fixture(site)
|
13
|
+
File.join File.dirname(__FILE__), 'fixtures', site
|
14
|
+
end
|
15
|
+
|
4
16
|
should "return the right paths" do
|
5
17
|
root_path = fixture 'default'
|
6
18
|
assert_same_file root_path, @project.root
|
@@ -40,6 +52,5 @@ class TestHyde < Test::Unit::TestCase
|
|
40
52
|
assert !files.include?('layout/default')
|
41
53
|
assert !files.include?('layout/default.haml')
|
42
54
|
assert !files.include?('layout_test.html.haml')
|
43
|
-
puts files
|
44
55
|
end
|
45
56
|
end
|
data/test/test_utils.rb
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'helper'
|
2
|
+
|
3
|
+
class TestUtils < Test::Unit::TestCase
|
4
|
+
def setup
|
5
|
+
@original_pwd = Dir.pwd
|
6
|
+
@pwd = File.join(@original_pwd, 'test')
|
7
|
+
Dir.chdir @pwd
|
8
|
+
end
|
9
|
+
|
10
|
+
def teardown
|
11
|
+
system 'rm -rf aaa'
|
12
|
+
system 'rm -rf bbb'
|
13
|
+
Dir.chdir @original_pwd
|
14
|
+
end
|
15
|
+
|
16
|
+
should "force_file_open" do
|
17
|
+
f = force_file_open File.join(@pwd, 'bbb/ccc/test.txt')
|
18
|
+
assert Dir.exists? 'bbb'
|
19
|
+
assert Dir.exists? 'bbb/ccc'
|
20
|
+
assert File.exists? 'bbb/ccc/test.txt'
|
21
|
+
end
|
22
|
+
end
|
metadata
CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
|
|
6
6
|
- 0
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.0.1.
|
9
|
+
- pre2
|
10
|
+
version: 0.0.1.pre2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Rico Sta. Cruz
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-04-
|
19
|
+
date: 2010-04-28 00:00:00 +08:00
|
20
20
|
default_executable: hyde
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -78,8 +78,10 @@ files:
|
|
78
78
|
- Rakefile
|
79
79
|
- VERSION
|
80
80
|
- bin/hyde
|
81
|
-
-
|
82
|
-
-
|
81
|
+
- data/new_site/README.md
|
82
|
+
- data/new_site/_config.yml
|
83
|
+
- data/new_site/layouts/default.haml
|
84
|
+
- data/new_site/site/index.html
|
83
85
|
- lib/hyde.rb
|
84
86
|
- lib/hyde/init.rb
|
85
87
|
- lib/hyde/layout.rb
|
@@ -89,16 +91,35 @@ files:
|
|
89
91
|
- lib/hyde/renderer.rb
|
90
92
|
- lib/hyde/renderers.rb
|
91
93
|
- lib/hyde/utils.rb
|
94
|
+
- test/fixtures/custom/_config.yml
|
95
|
+
- test/fixtures/custom/layouts/default.haml
|
96
|
+
- test/fixtures/custom/site/about/index.html
|
97
|
+
- test/fixtures/custom/site/foo.html.haml
|
98
|
+
- test/fixtures/custom/site/index.html.haml
|
99
|
+
- test/fixtures/custom/site/layout_test.html.haml
|
100
|
+
- test/fixtures/custom/site/yes.html
|
101
|
+
- test/fixtures/custom/www/about/index.html
|
102
|
+
- test/fixtures/custom/www/foo.html
|
103
|
+
- test/fixtures/custom/www/index.html
|
104
|
+
- test/fixtures/custom/www/layout_test.html
|
105
|
+
- test/fixtures/custom/www/yes.html
|
92
106
|
- test/fixtures/default/_config.yml
|
93
107
|
- test/fixtures/default/_layouts/default.haml
|
108
|
+
- test/fixtures/default/_www/Users/rsc/Workdesk/hyde/hyde/test/fixtures/default/about/index.html
|
109
|
+
- test/fixtures/default/_www/about/index.html
|
110
|
+
- test/fixtures/default/_www/foo.html
|
111
|
+
- test/fixtures/default/_www/index.html
|
112
|
+
- test/fixtures/default/_www/layout_test.html
|
113
|
+
- test/fixtures/default/_www/yes.html
|
94
114
|
- test/fixtures/default/about/index.html
|
95
115
|
- test/fixtures/default/foo.html.haml
|
96
|
-
- test/fixtures/default/hyde
|
97
116
|
- test/fixtures/default/index.html.haml
|
98
117
|
- test/fixtures/default/layout_test.html.haml
|
99
118
|
- test/fixtures/default/yes.html
|
100
119
|
- test/helper.rb
|
120
|
+
- test/test_build.rb
|
101
121
|
- test/test_hyde.rb
|
122
|
+
- test/test_utils.rb
|
102
123
|
has_rdoc: true
|
103
124
|
homepage: http://github.com/sinefunc/hyde
|
104
125
|
licenses: []
|
@@ -133,4 +154,6 @@ specification_version: 3
|
|
133
154
|
summary: Website preprocessor
|
134
155
|
test_files:
|
135
156
|
- test/helper.rb
|
157
|
+
- test/test_build.rb
|
136
158
|
- test/test_hyde.rb
|
159
|
+
- test/test_utils.rb
|
data/hyde.gemspec
DELETED
@@ -1,80 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = %q{hyde}
|
8
|
-
s.version = "0.0.1.pre1"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["rstacruz"]
|
12
|
-
s.date = %q{2010-04-27}
|
13
|
-
s.default_executable = %q{hyde}
|
14
|
-
s.description = %q{Website preprocessor}
|
15
|
-
s.email = %q{rico@sinefunc.com}
|
16
|
-
s.executables = ["hyde"]
|
17
|
-
s.extra_rdoc_files = [
|
18
|
-
"LICENSE",
|
19
|
-
"README.md"
|
20
|
-
]
|
21
|
-
s.files = [
|
22
|
-
".gitignore",
|
23
|
-
".yardopts",
|
24
|
-
"LICENSE",
|
25
|
-
"README.md",
|
26
|
-
"Rakefile",
|
27
|
-
"VERSION",
|
28
|
-
"bin/hyde",
|
29
|
-
"hyde.gemspec",
|
30
|
-
"hydegen.gemspec",
|
31
|
-
"lib/hyde.rb",
|
32
|
-
"lib/hyde/init.rb",
|
33
|
-
"lib/hyde/layout.rb",
|
34
|
-
"lib/hyde/ostruct.rb",
|
35
|
-
"lib/hyde/page.rb",
|
36
|
-
"lib/hyde/project.rb",
|
37
|
-
"lib/hyde/renderer.rb",
|
38
|
-
"lib/hyde/renderers.rb",
|
39
|
-
"lib/hyde/utils.rb",
|
40
|
-
"test/fixtures/default/_config.yml",
|
41
|
-
"test/fixtures/default/_layouts/default.haml",
|
42
|
-
"test/fixtures/default/about/index.html",
|
43
|
-
"test/fixtures/default/foo.html.haml",
|
44
|
-
"test/fixtures/default/hyde",
|
45
|
-
"test/fixtures/default/index.html.haml",
|
46
|
-
"test/fixtures/default/layout_test.html.haml",
|
47
|
-
"test/fixtures/default/yes.html",
|
48
|
-
"test/helper.rb",
|
49
|
-
"test/test_hyde.rb"
|
50
|
-
]
|
51
|
-
s.homepage = %q{http://github.com/sinefunc/hyde}
|
52
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
53
|
-
s.require_paths = ["lib"]
|
54
|
-
s.rubygems_version = %q{1.3.6}
|
55
|
-
s.summary = %q{Website preprocessor}
|
56
|
-
s.test_files = [
|
57
|
-
"test/helper.rb",
|
58
|
-
"test/test_hyde.rb"
|
59
|
-
]
|
60
|
-
|
61
|
-
if s.respond_to? :specification_version then
|
62
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
63
|
-
s.specification_version = 3
|
64
|
-
|
65
|
-
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
66
|
-
s.add_runtime_dependency(%q<sinatra>, [">= 1.0.0"])
|
67
|
-
s.add_runtime_dependency(%q<less>, [">= 1.2.21"])
|
68
|
-
s.add_runtime_dependency(%q<haml>, [">= 2.2.20"])
|
69
|
-
else
|
70
|
-
s.add_dependency(%q<sinatra>, [">= 1.0.0"])
|
71
|
-
s.add_dependency(%q<less>, [">= 1.2.21"])
|
72
|
-
s.add_dependency(%q<haml>, [">= 2.2.20"])
|
73
|
-
end
|
74
|
-
else
|
75
|
-
s.add_dependency(%q<sinatra>, [">= 1.0.0"])
|
76
|
-
s.add_dependency(%q<less>, [">= 1.2.21"])
|
77
|
-
s.add_dependency(%q<haml>, [">= 2.2.20"])
|
78
|
-
end
|
79
|
-
end
|
80
|
-
|
data/hydegen.gemspec
DELETED
@@ -1,58 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = %q{hyde}
|
8
|
-
s.version = "0.0.1"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["rstacruz"]
|
12
|
-
s.date = %q{2010-04-26}
|
13
|
-
s.default_executable = %q{hyde}
|
14
|
-
s.description = %q{Website preprocessor}
|
15
|
-
s.email = %q{rico@sinefunc.com}
|
16
|
-
s.executables = ["hyde"]
|
17
|
-
s.extra_rdoc_files = [
|
18
|
-
"LICENSE",
|
19
|
-
"README.md"
|
20
|
-
]
|
21
|
-
s.files = [
|
22
|
-
".gitignore",
|
23
|
-
"LICENSE",
|
24
|
-
"README.md",
|
25
|
-
"Rakefile",
|
26
|
-
"VERSION",
|
27
|
-
"hyde.gemspec"
|
28
|
-
]
|
29
|
-
s.homepage = %q{http://github.com/sinefunc/hyde}
|
30
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
31
|
-
s.require_paths = ["lib"]
|
32
|
-
s.rubygems_version = %q{1.3.6}
|
33
|
-
s.summary = %q{Website preprocessor}
|
34
|
-
s.test_files = [
|
35
|
-
"test/helper.rb",
|
36
|
-
"test/test_hyde.rb"
|
37
|
-
]
|
38
|
-
|
39
|
-
if s.respond_to? :specification_version then
|
40
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
41
|
-
s.specification_version = 3
|
42
|
-
|
43
|
-
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
44
|
-
s.add_runtime_dependency(%q<sinatra>, [">= 1.0.0"])
|
45
|
-
s.add_runtime_dependency(%q<less>, [">= 1.2.21"])
|
46
|
-
s.add_runtime_dependency(%q<haml>, [">= 2.2.20"])
|
47
|
-
else
|
48
|
-
s.add_dependency(%q<sinatra>, [">= 1.0.0"])
|
49
|
-
s.add_dependency(%q<less>, [">= 1.2.21"])
|
50
|
-
s.add_dependency(%q<haml>, [">= 2.2.20"])
|
51
|
-
end
|
52
|
-
else
|
53
|
-
s.add_dependency(%q<sinatra>, [">= 1.0.0"])
|
54
|
-
s.add_dependency(%q<less>, [">= 1.2.21"])
|
55
|
-
s.add_dependency(%q<haml>, [">= 2.2.20"])
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
data/test/fixtures/default/hyde
DELETED