hydeweb 0.0.8.pre2 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/{CHANGELOG → HISTORY.md} +6 -0
- data/Rakefile +2 -52
- data/bin/hyde +3 -23
- data/bin/hyde01 +7 -0
- data/data/new_site/README.md +1 -1
- data/data/new_site/hyde.conf +9 -6
- data/lib/hyde/cli/helpers.rb +40 -0
- data/lib/hyde/cli.rb +86 -0
- data/lib/hyde/config.rb +37 -0
- data/lib/hyde/helpers.rb +6 -47
- data/lib/hyde/layout.rb +17 -9
- data/lib/hyde/meta.rb +5 -21
- data/lib/hyde/page.rb +207 -159
- data/lib/hyde/partial.rb +10 -5
- data/lib/hyde/project.rb +58 -208
- data/lib/hyde/server.rb +57 -0
- data/lib/hyde.rb +28 -51
- data/test/fixture/extensions/extensions/a/a.rb +1 -0
- data/test/fixture/extensions/hyde.conf +8 -0
- data/test/fixture/extensions/site/index.haml +1 -0
- data/test/fixture/fail_type/control/about/index.html +2 -0
- data/test/fixture/fail_type/control/about/us.html +2 -0
- data/test/fixture/fail_type/control/index.html +1 -0
- data/test/fixture/fail_type/hyde.conf +8 -0
- data/test/fixture/fail_type/site/index.haml +4 -0
- data/test/fixture/nested_layout/control/index.html +2 -0
- data/test/fixture/nested_layout/hyde.conf +8 -0
- data/test/fixture/nested_layout/layouts/default.haml +2 -0
- data/test/{fixtures/content_for/site/default.html.haml → fixture/nested_layout/layouts/post.haml} +1 -0
- data/test/fixture/nested_layout/site/index.haml +4 -0
- data/test/fixture/one/control/about/index.css +2 -0
- data/test/fixture/one/control/cheers.html +5 -0
- data/test/fixture/one/control/css/style.css +2 -0
- data/test/fixture/one/control/hello.html +5 -0
- data/test/fixture/one/control/hi.html +1 -0
- data/test/fixture/one/control/index.html +7 -0
- data/test/fixture/one/hyde.conf +9 -0
- data/test/fixture/one/layouts/default.haml +4 -0
- data/test/fixture/one/partials/menu.haml +3 -0
- data/test/fixture/one/site/about/index.scss +1 -0
- data/test/fixture/one/site/cheers.html.haml +1 -0
- data/test/fixture/one/site/css/style.scss +2 -0
- data/test/fixture/one/site/hello.haml +1 -0
- data/test/fixture/one/site/hi.html +1 -0
- data/test/fixture/one/site/index.haml +7 -0
- data/test/fixture/parent/control/about/index.html +2 -0
- data/test/fixture/parent/control/about/us.html +2 -0
- data/test/fixture/parent/control/index.html +1 -0
- data/test/fixture/parent/hyde.conf +8 -0
- data/test/fixture/parent/site/about/index.haml +3 -0
- data/test/fixture/parent/site/about/us.haml +3 -0
- data/test/fixture/parent/site/index.haml +3 -0
- data/test/fixture/sort/hyde.conf +8 -0
- data/test/fixture/sort/site/about/hardy.haml +4 -0
- data/test/fixture/sort/site/about/intrepid.haml +4 -0
- data/test/fixture/sort/site/about.haml +3 -0
- data/test/fixture/subclass/control/index.html +1 -0
- data/test/fixture/subclass/extensions/a/a.rb +12 -0
- data/test/fixture/subclass/hyde.conf +8 -0
- data/test/fixture/subclass/layouts/default.haml +1 -0
- data/test/fixture/subclass/layouts/post.haml +1 -0
- data/test/fixture/subclass/site/index.haml +4 -0
- data/test/helper.rb +15 -21
- data/test/unit/extensions_test.rb +16 -0
- data/test/unit/fixture_test.rb +77 -0
- data/test/unit/hyde_test.rb +30 -0
- metadata +107 -153
- data/.yardopts +0 -5
- data/LICENSE +0 -20
- data/VERSION +0 -1
- data/data/new_site/.gitignore +0 -24
- data/data/pages/404.html +0 -3
- data/hydeweb.gemspec +0 -159
- data/lib/hyde/clicommand.rb +0 -60
- data/lib/hyde/clicommands.rb +0 -128
- data/lib/hyde/ostruct.rb +0 -13
- data/lib/hyde/page_factory.rb +0 -90
- data/lib/hyde/renderer.rb +0 -133
- data/lib/hyde/renderers.rb +0 -100
- data/lib/hyde/sinatra/init.rb +0 -64
- data/lib/hyde/utils.rb +0 -43
- data/lib/hyde_misc/console.rb +0 -4
- data/manual/Extending/ExtendingHyde.md +0 -118
- data/manual/Hyde.md +0 -63
- data/manual/Introduction/Configuration.md +0 -70
- data/manual/Introduction/GettingStarted.md +0 -64
- data/manual/Introduction/Installation.md +0 -16
- data/manual/Introduction/Layouts.md +0 -14
- data/manual/Introduction/Metadata.md +0 -94
- data/manual/Introduction/Partials.md +0 -73
- data/manual/Introduction/TemplateLanguages.md +0 -59
- data/manual/Tips/Tips.md +0 -42
- data/test/fixtures/content_for/_config.yml +0 -8
- data/test/fixtures/content_for/layouts/cf-args.haml +0 -2
- data/test/fixtures/content_for/layouts/cf.haml +0 -14
- data/test/fixtures/content_for/layouts/default.haml +0 -4
- data/test/fixtures/content_for/layouts/shared/test.haml +0 -4
- data/test/fixtures/content_for/site/cf-args-default.haml +0 -2
- data/test/fixtures/content_for/site/cf-args.haml +0 -5
- data/test/fixtures/content_for/site/cf.haml +0 -6
- data/test/fixtures/content_for/site/cf2.haml +0 -3
- data/test/fixtures/content_for/site/index.html.haml +0 -9
- data/test/fixtures/content_for/site/var.html.haml +0 -5
- data/test/fixtures/content_for/www_control/cf-args-default.html +0 -1
- data/test/fixtures/content_for/www_control/cf-args.html +0 -2
- data/test/fixtures/content_for/www_control/cf.html +0 -17
- data/test/fixtures/content_for/www_control/cf2.html +0 -19
- data/test/fixtures/content_for/www_control/default.html +0 -2
- data/test/fixtures/content_for/www_control/index.html +0 -10
- data/test/fixtures/content_for/www_control/var.html +0 -2
- data/test/fixtures/custom/_config.yml +0 -8
- data/test/fixtures/custom/extensions/custom/custom.rb +0 -9
- data/test/fixtures/custom/layouts/default.haml +0 -8
- data/test/fixtures/custom/layouts/erbtest.erb +0 -2
- data/test/fixtures/custom/layouts/shared/sidebar.haml +0 -4
- data/test/fixtures/custom/site/about/index.html +0 -1
- data/test/fixtures/custom/site/assets/common.css.less +0 -1
- data/test/fixtures/custom/site/assets/style.css.less +0 -3
- data/test/fixtures/custom/site/foo.html.haml +0 -3
- data/test/fixtures/custom/site/index.html.haml +0 -6
- data/test/fixtures/custom/site/layout_test.html.haml +0 -6
- data/test/fixtures/custom/site/lol.html.erb +0 -7
- data/test/fixtures/custom/site/markdown.html.md +0 -8
- data/test/fixtures/custom/site/yes.html +0 -2
- data/test/fixtures/custom/www_control/about/index.html +0 -1
- data/test/fixtures/custom/www_control/assets/common.css +0 -1
- data/test/fixtures/custom/www_control/assets/style.css +0 -6
- data/test/fixtures/custom/www_control/foo.html +0 -1
- data/test/fixtures/custom/www_control/index.html +0 -16
- data/test/fixtures/custom/www_control/layout_test.html +0 -16
- data/test/fixtures/custom/www_control/lol.html +0 -5
- data/test/fixtures/custom/www_control/markdown.html +0 -17
- data/test/fixtures/custom/www_control/yes.html +0 -2
- data/test/fixtures/default/_config.yml +0 -8
- data/test/fixtures/default/extensions/custom/custom.rb +0 -2
- data/test/fixtures/default/layouts/default.haml +0 -5
- data/test/fixtures/default/site/about/index.html +0 -1
- data/test/fixtures/default/site/foo.html.haml +0 -3
- data/test/fixtures/default/site/index.html.haml +0 -6
- data/test/fixtures/default/site/layout_test.html.haml +0 -6
- data/test/fixtures/default/site/yes.html +0 -2
- data/test/fixtures/default/www_control/about/index.html +0 -1
- data/test/fixtures/default/www_control/foo.html +0 -1
- data/test/fixtures/default/www_control/index.html +0 -9
- data/test/fixtures/default/www_control/layout_test.html +0 -9
- data/test/fixtures/default/www_control/yes.html +0 -2
- data/test/test_all_fixtures.rb +0 -51
- data/test/test_build.rb +0 -20
- data/test/test_hyde.rb +0 -75
- data/test/test_page.rb +0 -26
- data/test/test_utils.rb +0 -22
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Wrong!
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#post!= yield
|
data/test/helper.rb
CHANGED
|
@@ -1,31 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
require 'test/unit'
|
|
3
|
-
require 'contest'
|
|
1
|
+
$:.push File.expand_path('../../lib', __FILE__)
|
|
4
2
|
|
|
5
|
-
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
|
6
|
-
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
|
7
3
|
require 'hyde'
|
|
4
|
+
require 'contest'
|
|
8
5
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
assert same_file?(a, b)
|
|
13
|
-
end
|
|
6
|
+
# Unpack
|
|
7
|
+
Page = Hyde::Page
|
|
8
|
+
Project = Hyde::Project
|
|
14
9
|
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
class TestCase < Test::Unit::TestCase
|
|
11
|
+
def fixture(*a)
|
|
12
|
+
path = File.expand_path('../fixture', __FILE__)
|
|
13
|
+
File.join path, *a
|
|
17
14
|
end
|
|
18
15
|
|
|
19
|
-
def
|
|
20
|
-
|
|
16
|
+
def build(path)
|
|
17
|
+
@project = Hyde::Project.new(path)
|
|
18
|
+
@project.pages.each { |p| p.write }
|
|
19
|
+
@project
|
|
21
20
|
end
|
|
22
|
-
end
|
|
23
21
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
# Can throw a NotFound. Get rid of this!
|
|
27
|
-
def render(path)
|
|
28
|
-
self[path].render
|
|
29
|
-
end
|
|
22
|
+
def unbuild(project=@project)
|
|
23
|
+
FileUtils.rm_rf project.path(:output)
|
|
30
24
|
end
|
|
31
25
|
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
require File.expand_path('../../helper', __FILE__)
|
|
2
|
+
|
|
3
|
+
class ExtensionsTest < TestCase
|
|
4
|
+
setup do
|
|
5
|
+
$extension_loaded = nil
|
|
6
|
+
@project = build fixture('extensions')
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
teardown do
|
|
10
|
+
unbuild @project
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
test "extensions" do
|
|
14
|
+
assert $extension_loaded == "aoeu"
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
require File.expand_path('../../helper', __FILE__)
|
|
2
|
+
|
|
3
|
+
class HydeTest < TestCase
|
|
4
|
+
def assert_fixture_works(path)
|
|
5
|
+
build_fixture(path) { |control, var|
|
|
6
|
+
assert File.exists?(var)
|
|
7
|
+
if read(control) != read(var)
|
|
8
|
+
flunk "Failed in #{var}\n" +
|
|
9
|
+
"Control:\n" +
|
|
10
|
+
read(control).gsub(/^/, '| ') + "\n\n" +
|
|
11
|
+
"Variable:\n" +
|
|
12
|
+
read(var).gsub(/^/, '| ')
|
|
13
|
+
end
|
|
14
|
+
}
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def assert_fixture_fails(path, error=Hyde::Error, &blk)
|
|
18
|
+
begin
|
|
19
|
+
build_fixture(path)
|
|
20
|
+
rescue error => e
|
|
21
|
+
yield e
|
|
22
|
+
else
|
|
23
|
+
flunk "Assertion failed"
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def build_fixture(path, &blk)
|
|
29
|
+
# Build
|
|
30
|
+
project = build path
|
|
31
|
+
|
|
32
|
+
Dir[project.root('control/**/*')].each do |control|
|
|
33
|
+
next unless File.file?(control)
|
|
34
|
+
var = control.sub('/control/', '/public/')
|
|
35
|
+
yield control, var
|
|
36
|
+
end if block_given?
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def read(file)
|
|
40
|
+
File.open(file) { |f| f.read }
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
teardown do
|
|
44
|
+
# Remove the generated
|
|
45
|
+
Dir[fixture('*', 'public')].each { |dir| FileUtils.rm_rf dir }
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
test "fixture one" do
|
|
49
|
+
assert_fixture_works fixture('one')
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
test "fixture subclass" do
|
|
53
|
+
assert_fixture_works fixture('subclass')
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
test "fixture extensions" do
|
|
57
|
+
assert_fixture_works fixture('extensions')
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
test "fixture parent" do
|
|
61
|
+
assert_fixture_works fixture('parent')
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
test "fixture sort" do
|
|
65
|
+
assert_fixture_works fixture('sort')
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
test "fixture nested_layout" do
|
|
69
|
+
assert_fixture_works fixture('nested_layout')
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
test "fixture fail_type" do
|
|
73
|
+
assert_fixture_fails(fixture('fail_type')) { |e|
|
|
74
|
+
assert e.message.include?('nonexistent')
|
|
75
|
+
}
|
|
76
|
+
end
|
|
77
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
require File.expand_path('../../helper', __FILE__)
|
|
2
|
+
|
|
3
|
+
class HydeTest < TestCase
|
|
4
|
+
setup do
|
|
5
|
+
@path = fixture('one')
|
|
6
|
+
@project = Project.new(@path)
|
|
7
|
+
Dir.chdir @path
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
test "hi" do
|
|
11
|
+
#y @project.pages.map { |page| y html: page.to_html, path: page.path, file: page.file }
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
test "build" do
|
|
15
|
+
@project.pages.each { |page| page.write }
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
test "accessible" do
|
|
19
|
+
site = lambda { |*a| File.join(@path, 'site', *a) }
|
|
20
|
+
|
|
21
|
+
# site/hi.html
|
|
22
|
+
assert_equal Page['/cheers.html'].file, site['cheers.html.haml']
|
|
23
|
+
assert_equal Page['/hi.html'].file, site['hi.html']
|
|
24
|
+
assert_equal Page['/hi.yo'].file, site['hi.html']
|
|
25
|
+
assert_equal Page['/css/style.css'].file, site['css/style.scss']
|
|
26
|
+
assert_equal Page['/css/style.css'].file, site['css/style.scss']
|
|
27
|
+
assert_equal Page['/about'].file, site['about/index.scss']
|
|
28
|
+
assert_equal Page['/'].file, site['/index.haml']
|
|
29
|
+
end
|
|
30
|
+
end
|
metadata
CHANGED
|
@@ -1,55 +1,38 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hydeweb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
segments:
|
|
7
|
-
- 0
|
|
8
|
-
- 0
|
|
9
|
-
- 8
|
|
10
|
-
- pre2
|
|
11
|
-
version: 0.0.8.pre2
|
|
4
|
+
prerelease:
|
|
5
|
+
version: 0.1.0
|
|
12
6
|
platform: ruby
|
|
13
7
|
authors:
|
|
14
8
|
- Rico Sta. Cruz
|
|
15
|
-
- Sinefunc, Inc.
|
|
16
9
|
autorequire:
|
|
17
10
|
bindir: bin
|
|
18
11
|
cert_chain: []
|
|
19
12
|
|
|
20
|
-
date:
|
|
21
|
-
default_executable:
|
|
13
|
+
date: 2011-02-20 00:00:00 +08:00
|
|
14
|
+
default_executable:
|
|
22
15
|
dependencies:
|
|
23
16
|
- !ruby/object:Gem::Dependency
|
|
24
|
-
name:
|
|
17
|
+
name: shake
|
|
25
18
|
prerelease: false
|
|
26
19
|
requirement: &id001 !ruby/object:Gem::Requirement
|
|
27
20
|
none: false
|
|
28
21
|
requirements:
|
|
29
|
-
- -
|
|
22
|
+
- - ~>
|
|
30
23
|
- !ruby/object:Gem::Version
|
|
31
|
-
|
|
32
|
-
segments:
|
|
33
|
-
- 1
|
|
34
|
-
- 0
|
|
35
|
-
- 0
|
|
36
|
-
version: 1.0.0
|
|
24
|
+
version: "0.1"
|
|
37
25
|
type: :runtime
|
|
38
26
|
version_requirements: *id001
|
|
39
27
|
- !ruby/object:Gem::Dependency
|
|
40
|
-
name:
|
|
28
|
+
name: tilt
|
|
41
29
|
prerelease: false
|
|
42
30
|
requirement: &id002 !ruby/object:Gem::Requirement
|
|
43
31
|
none: false
|
|
44
32
|
requirements:
|
|
45
33
|
- - ">="
|
|
46
34
|
- !ruby/object:Gem::Version
|
|
47
|
-
|
|
48
|
-
segments:
|
|
49
|
-
- 1
|
|
50
|
-
- 2
|
|
51
|
-
- 21
|
|
52
|
-
version: 1.2.21
|
|
35
|
+
version: 1.2.2
|
|
53
36
|
type: :runtime
|
|
54
37
|
version_requirements: *id002
|
|
55
38
|
- !ruby/object:Gem::Dependency
|
|
@@ -60,126 +43,112 @@ dependencies:
|
|
|
60
43
|
requirements:
|
|
61
44
|
- - ">="
|
|
62
45
|
- !ruby/object:Gem::Version
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
- 2
|
|
66
|
-
- 2
|
|
67
|
-
- 20
|
|
68
|
-
version: 2.2.20
|
|
69
|
-
type: :runtime
|
|
46
|
+
version: "0"
|
|
47
|
+
type: :development
|
|
70
48
|
version_requirements: *id003
|
|
71
|
-
|
|
72
|
-
|
|
49
|
+
- !ruby/object:Gem::Dependency
|
|
50
|
+
name: less
|
|
51
|
+
prerelease: false
|
|
52
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
|
53
|
+
none: false
|
|
54
|
+
requirements:
|
|
55
|
+
- - ">="
|
|
56
|
+
- !ruby/object:Gem::Version
|
|
57
|
+
version: "0"
|
|
58
|
+
type: :development
|
|
59
|
+
version_requirements: *id004
|
|
60
|
+
- !ruby/object:Gem::Dependency
|
|
61
|
+
name: maruku
|
|
62
|
+
prerelease: false
|
|
63
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
|
64
|
+
none: false
|
|
65
|
+
requirements:
|
|
66
|
+
- - ">="
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: "0"
|
|
69
|
+
type: :development
|
|
70
|
+
version_requirements: *id005
|
|
71
|
+
description: Hyde lets you create static websites from a bunch of files written in HAML, Textile, Sass, or any other.
|
|
72
|
+
email:
|
|
73
|
+
- rico@sinefunc.com
|
|
73
74
|
executables:
|
|
74
75
|
- hyde
|
|
76
|
+
- hyde01
|
|
75
77
|
extensions: []
|
|
76
78
|
|
|
77
|
-
extra_rdoc_files:
|
|
78
|
-
|
|
79
|
-
- README.md
|
|
79
|
+
extra_rdoc_files: []
|
|
80
|
+
|
|
80
81
|
files:
|
|
81
|
-
- .yardopts
|
|
82
|
-
- AUTHORS
|
|
83
|
-
- CHANGELOG
|
|
84
|
-
- LICENSE
|
|
85
|
-
- README.md
|
|
86
|
-
- Rakefile
|
|
87
|
-
- VERSION
|
|
88
82
|
- bin/hyde
|
|
89
|
-
-
|
|
90
|
-
-
|
|
91
|
-
-
|
|
92
|
-
-
|
|
93
|
-
- data/new_site/site/index.html.haml
|
|
94
|
-
- data/pages/404.html
|
|
95
|
-
- hydeweb.gemspec
|
|
96
|
-
- lib/hyde.rb
|
|
97
|
-
- lib/hyde/clicommand.rb
|
|
98
|
-
- lib/hyde/clicommands.rb
|
|
83
|
+
- bin/hyde01
|
|
84
|
+
- lib/hyde/cli/helpers.rb
|
|
85
|
+
- lib/hyde/cli.rb
|
|
86
|
+
- lib/hyde/config.rb
|
|
99
87
|
- lib/hyde/helpers.rb
|
|
100
88
|
- lib/hyde/layout.rb
|
|
101
89
|
- lib/hyde/meta.rb
|
|
102
|
-
- lib/hyde/ostruct.rb
|
|
103
90
|
- lib/hyde/page.rb
|
|
104
|
-
- lib/hyde/page_factory.rb
|
|
105
91
|
- lib/hyde/partial.rb
|
|
106
92
|
- lib/hyde/project.rb
|
|
107
|
-
- lib/hyde/
|
|
108
|
-
- lib/hyde
|
|
109
|
-
-
|
|
110
|
-
-
|
|
111
|
-
-
|
|
112
|
-
-
|
|
113
|
-
-
|
|
114
|
-
-
|
|
115
|
-
-
|
|
116
|
-
-
|
|
117
|
-
-
|
|
118
|
-
-
|
|
119
|
-
-
|
|
120
|
-
-
|
|
121
|
-
-
|
|
122
|
-
- test/
|
|
123
|
-
- test/
|
|
124
|
-
- test/
|
|
125
|
-
- test/
|
|
126
|
-
- test/
|
|
127
|
-
- test/
|
|
128
|
-
- test/
|
|
129
|
-
- test/
|
|
130
|
-
- test/
|
|
131
|
-
- test/
|
|
132
|
-
- test/
|
|
133
|
-
- test/
|
|
134
|
-
- test/
|
|
135
|
-
- test/
|
|
136
|
-
- test/
|
|
137
|
-
- test/
|
|
138
|
-
- test/
|
|
139
|
-
- test/
|
|
140
|
-
- test/
|
|
141
|
-
- test/
|
|
142
|
-
- test/
|
|
143
|
-
- test/
|
|
144
|
-
- test/
|
|
145
|
-
- test/
|
|
146
|
-
- test/
|
|
147
|
-
- test/
|
|
148
|
-
- test/
|
|
149
|
-
- test/
|
|
150
|
-
- test/
|
|
151
|
-
- test/
|
|
152
|
-
- test/
|
|
153
|
-
- test/
|
|
154
|
-
- test/fixtures/custom/site/yes.html
|
|
155
|
-
- test/fixtures/custom/www_control/about/index.html
|
|
156
|
-
- test/fixtures/custom/www_control/assets/common.css
|
|
157
|
-
- test/fixtures/custom/www_control/assets/style.css
|
|
158
|
-
- test/fixtures/custom/www_control/foo.html
|
|
159
|
-
- test/fixtures/custom/www_control/index.html
|
|
160
|
-
- test/fixtures/custom/www_control/layout_test.html
|
|
161
|
-
- test/fixtures/custom/www_control/lol.html
|
|
162
|
-
- test/fixtures/custom/www_control/markdown.html
|
|
163
|
-
- test/fixtures/custom/www_control/yes.html
|
|
164
|
-
- test/fixtures/default/_config.yml
|
|
165
|
-
- test/fixtures/default/extensions/custom/custom.rb
|
|
166
|
-
- test/fixtures/default/layouts/default.haml
|
|
167
|
-
- test/fixtures/default/site/about/index.html
|
|
168
|
-
- test/fixtures/default/site/foo.html.haml
|
|
169
|
-
- test/fixtures/default/site/index.html.haml
|
|
170
|
-
- test/fixtures/default/site/layout_test.html.haml
|
|
171
|
-
- test/fixtures/default/site/yes.html
|
|
172
|
-
- test/fixtures/default/www_control/about/index.html
|
|
173
|
-
- test/fixtures/default/www_control/foo.html
|
|
174
|
-
- test/fixtures/default/www_control/index.html
|
|
175
|
-
- test/fixtures/default/www_control/layout_test.html
|
|
176
|
-
- test/fixtures/default/www_control/yes.html
|
|
93
|
+
- lib/hyde/server.rb
|
|
94
|
+
- lib/hyde.rb
|
|
95
|
+
- test/fixture/extensions/extensions/a/a.rb
|
|
96
|
+
- test/fixture/extensions/hyde.conf
|
|
97
|
+
- test/fixture/extensions/site/index.haml
|
|
98
|
+
- test/fixture/fail_type/control/about/index.html
|
|
99
|
+
- test/fixture/fail_type/control/about/us.html
|
|
100
|
+
- test/fixture/fail_type/control/index.html
|
|
101
|
+
- test/fixture/fail_type/hyde.conf
|
|
102
|
+
- test/fixture/fail_type/site/index.haml
|
|
103
|
+
- test/fixture/nested_layout/control/index.html
|
|
104
|
+
- test/fixture/nested_layout/hyde.conf
|
|
105
|
+
- test/fixture/nested_layout/layouts/default.haml
|
|
106
|
+
- test/fixture/nested_layout/layouts/post.haml
|
|
107
|
+
- test/fixture/nested_layout/site/index.haml
|
|
108
|
+
- test/fixture/one/control/about/index.css
|
|
109
|
+
- test/fixture/one/control/cheers.html
|
|
110
|
+
- test/fixture/one/control/css/style.css
|
|
111
|
+
- test/fixture/one/control/hello.html
|
|
112
|
+
- test/fixture/one/control/hi.html
|
|
113
|
+
- test/fixture/one/control/index.html
|
|
114
|
+
- test/fixture/one/hyde.conf
|
|
115
|
+
- test/fixture/one/layouts/default.haml
|
|
116
|
+
- test/fixture/one/partials/menu.haml
|
|
117
|
+
- test/fixture/one/site/about/index.scss
|
|
118
|
+
- test/fixture/one/site/cheers.html.haml
|
|
119
|
+
- test/fixture/one/site/css/style.scss
|
|
120
|
+
- test/fixture/one/site/hello.haml
|
|
121
|
+
- test/fixture/one/site/hi.html
|
|
122
|
+
- test/fixture/one/site/index.haml
|
|
123
|
+
- test/fixture/parent/control/about/index.html
|
|
124
|
+
- test/fixture/parent/control/about/us.html
|
|
125
|
+
- test/fixture/parent/control/index.html
|
|
126
|
+
- test/fixture/parent/hyde.conf
|
|
127
|
+
- test/fixture/parent/site/about/index.haml
|
|
128
|
+
- test/fixture/parent/site/about/us.haml
|
|
129
|
+
- test/fixture/parent/site/index.haml
|
|
130
|
+
- test/fixture/sort/hyde.conf
|
|
131
|
+
- test/fixture/sort/site/about/hardy.haml
|
|
132
|
+
- test/fixture/sort/site/about/intrepid.haml
|
|
133
|
+
- test/fixture/sort/site/about.haml
|
|
134
|
+
- test/fixture/subclass/control/index.html
|
|
135
|
+
- test/fixture/subclass/extensions/a/a.rb
|
|
136
|
+
- test/fixture/subclass/hyde.conf
|
|
137
|
+
- test/fixture/subclass/layouts/default.haml
|
|
138
|
+
- test/fixture/subclass/layouts/post.haml
|
|
139
|
+
- test/fixture/subclass/site/index.haml
|
|
177
140
|
- test/helper.rb
|
|
178
|
-
- test/
|
|
179
|
-
- test/
|
|
180
|
-
- test/
|
|
181
|
-
-
|
|
182
|
-
-
|
|
141
|
+
- test/unit/extensions_test.rb
|
|
142
|
+
- test/unit/fixture_test.rb
|
|
143
|
+
- test/unit/hyde_test.rb
|
|
144
|
+
- data/new_site/hyde.conf
|
|
145
|
+
- data/new_site/layouts/default.haml
|
|
146
|
+
- data/new_site/README.md
|
|
147
|
+
- data/new_site/site/index.html.haml
|
|
148
|
+
- HISTORY.md
|
|
149
|
+
- README.md
|
|
150
|
+
- Rakefile
|
|
151
|
+
- AUTHORS
|
|
183
152
|
has_rdoc: true
|
|
184
153
|
homepage: http://github.com/sinefunc/hyde
|
|
185
154
|
licenses: []
|
|
@@ -194,34 +163,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
194
163
|
requirements:
|
|
195
164
|
- - ">="
|
|
196
165
|
- !ruby/object:Gem::Version
|
|
197
|
-
hash: 3
|
|
198
|
-
segments:
|
|
199
|
-
- 0
|
|
200
166
|
version: "0"
|
|
201
167
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
202
168
|
none: false
|
|
203
169
|
requirements:
|
|
204
|
-
- - "
|
|
170
|
+
- - ">="
|
|
205
171
|
- !ruby/object:Gem::Version
|
|
206
|
-
|
|
207
|
-
segments:
|
|
208
|
-
- 1
|
|
209
|
-
- 3
|
|
210
|
-
- 1
|
|
211
|
-
version: 1.3.1
|
|
172
|
+
version: "0"
|
|
212
173
|
requirements: []
|
|
213
174
|
|
|
214
175
|
rubyforge_project:
|
|
215
|
-
rubygems_version: 1.
|
|
176
|
+
rubygems_version: 1.5.0
|
|
216
177
|
signing_key:
|
|
217
178
|
specification_version: 3
|
|
218
|
-
summary: Website preprocessor
|
|
219
|
-
test_files:
|
|
220
|
-
|
|
221
|
-
- test/fixtures/default/extensions/custom/custom.rb
|
|
222
|
-
- test/helper.rb
|
|
223
|
-
- test/test_all_fixtures.rb
|
|
224
|
-
- test/test_build.rb
|
|
225
|
-
- test/test_hyde.rb
|
|
226
|
-
- test/test_page.rb
|
|
227
|
-
- test/test_utils.rb
|
|
179
|
+
summary: Website preprocessor.
|
|
180
|
+
test_files: []
|
|
181
|
+
|
data/.yardopts
DELETED
data/LICENSE
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2010 Rico Sta. Cruz and Sinefunc, Inc.
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
-
a copy of this software and associated documentation files (the
|
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
-
the following conditions:
|
|
10
|
-
|
|
11
|
-
The above copyright notice and this permission notice shall be
|
|
12
|
-
included in all copies or substantial portions of the Software.
|
|
13
|
-
|
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.0.8.pre2
|
data/data/new_site/.gitignore
DELETED
data/data/pages/404.html
DELETED