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.
Files changed (151) hide show
  1. data/{CHANGELOG → HISTORY.md} +6 -0
  2. data/Rakefile +2 -52
  3. data/bin/hyde +3 -23
  4. data/bin/hyde01 +7 -0
  5. data/data/new_site/README.md +1 -1
  6. data/data/new_site/hyde.conf +9 -6
  7. data/lib/hyde/cli/helpers.rb +40 -0
  8. data/lib/hyde/cli.rb +86 -0
  9. data/lib/hyde/config.rb +37 -0
  10. data/lib/hyde/helpers.rb +6 -47
  11. data/lib/hyde/layout.rb +17 -9
  12. data/lib/hyde/meta.rb +5 -21
  13. data/lib/hyde/page.rb +207 -159
  14. data/lib/hyde/partial.rb +10 -5
  15. data/lib/hyde/project.rb +58 -208
  16. data/lib/hyde/server.rb +57 -0
  17. data/lib/hyde.rb +28 -51
  18. data/test/fixture/extensions/extensions/a/a.rb +1 -0
  19. data/test/fixture/extensions/hyde.conf +8 -0
  20. data/test/fixture/extensions/site/index.haml +1 -0
  21. data/test/fixture/fail_type/control/about/index.html +2 -0
  22. data/test/fixture/fail_type/control/about/us.html +2 -0
  23. data/test/fixture/fail_type/control/index.html +1 -0
  24. data/test/fixture/fail_type/hyde.conf +8 -0
  25. data/test/fixture/fail_type/site/index.haml +4 -0
  26. data/test/fixture/nested_layout/control/index.html +2 -0
  27. data/test/fixture/nested_layout/hyde.conf +8 -0
  28. data/test/fixture/nested_layout/layouts/default.haml +2 -0
  29. data/test/{fixtures/content_for/site/default.html.haml → fixture/nested_layout/layouts/post.haml} +1 -0
  30. data/test/fixture/nested_layout/site/index.haml +4 -0
  31. data/test/fixture/one/control/about/index.css +2 -0
  32. data/test/fixture/one/control/cheers.html +5 -0
  33. data/test/fixture/one/control/css/style.css +2 -0
  34. data/test/fixture/one/control/hello.html +5 -0
  35. data/test/fixture/one/control/hi.html +1 -0
  36. data/test/fixture/one/control/index.html +7 -0
  37. data/test/fixture/one/hyde.conf +9 -0
  38. data/test/fixture/one/layouts/default.haml +4 -0
  39. data/test/fixture/one/partials/menu.haml +3 -0
  40. data/test/fixture/one/site/about/index.scss +1 -0
  41. data/test/fixture/one/site/cheers.html.haml +1 -0
  42. data/test/fixture/one/site/css/style.scss +2 -0
  43. data/test/fixture/one/site/hello.haml +1 -0
  44. data/test/fixture/one/site/hi.html +1 -0
  45. data/test/fixture/one/site/index.haml +7 -0
  46. data/test/fixture/parent/control/about/index.html +2 -0
  47. data/test/fixture/parent/control/about/us.html +2 -0
  48. data/test/fixture/parent/control/index.html +1 -0
  49. data/test/fixture/parent/hyde.conf +8 -0
  50. data/test/fixture/parent/site/about/index.haml +3 -0
  51. data/test/fixture/parent/site/about/us.haml +3 -0
  52. data/test/fixture/parent/site/index.haml +3 -0
  53. data/test/fixture/sort/hyde.conf +8 -0
  54. data/test/fixture/sort/site/about/hardy.haml +4 -0
  55. data/test/fixture/sort/site/about/intrepid.haml +4 -0
  56. data/test/fixture/sort/site/about.haml +3 -0
  57. data/test/fixture/subclass/control/index.html +1 -0
  58. data/test/fixture/subclass/extensions/a/a.rb +12 -0
  59. data/test/fixture/subclass/hyde.conf +8 -0
  60. data/test/fixture/subclass/layouts/default.haml +1 -0
  61. data/test/fixture/subclass/layouts/post.haml +1 -0
  62. data/test/fixture/subclass/site/index.haml +4 -0
  63. data/test/helper.rb +15 -21
  64. data/test/unit/extensions_test.rb +16 -0
  65. data/test/unit/fixture_test.rb +77 -0
  66. data/test/unit/hyde_test.rb +30 -0
  67. metadata +107 -153
  68. data/.yardopts +0 -5
  69. data/LICENSE +0 -20
  70. data/VERSION +0 -1
  71. data/data/new_site/.gitignore +0 -24
  72. data/data/pages/404.html +0 -3
  73. data/hydeweb.gemspec +0 -159
  74. data/lib/hyde/clicommand.rb +0 -60
  75. data/lib/hyde/clicommands.rb +0 -128
  76. data/lib/hyde/ostruct.rb +0 -13
  77. data/lib/hyde/page_factory.rb +0 -90
  78. data/lib/hyde/renderer.rb +0 -133
  79. data/lib/hyde/renderers.rb +0 -100
  80. data/lib/hyde/sinatra/init.rb +0 -64
  81. data/lib/hyde/utils.rb +0 -43
  82. data/lib/hyde_misc/console.rb +0 -4
  83. data/manual/Extending/ExtendingHyde.md +0 -118
  84. data/manual/Hyde.md +0 -63
  85. data/manual/Introduction/Configuration.md +0 -70
  86. data/manual/Introduction/GettingStarted.md +0 -64
  87. data/manual/Introduction/Installation.md +0 -16
  88. data/manual/Introduction/Layouts.md +0 -14
  89. data/manual/Introduction/Metadata.md +0 -94
  90. data/manual/Introduction/Partials.md +0 -73
  91. data/manual/Introduction/TemplateLanguages.md +0 -59
  92. data/manual/Tips/Tips.md +0 -42
  93. data/test/fixtures/content_for/_config.yml +0 -8
  94. data/test/fixtures/content_for/layouts/cf-args.haml +0 -2
  95. data/test/fixtures/content_for/layouts/cf.haml +0 -14
  96. data/test/fixtures/content_for/layouts/default.haml +0 -4
  97. data/test/fixtures/content_for/layouts/shared/test.haml +0 -4
  98. data/test/fixtures/content_for/site/cf-args-default.haml +0 -2
  99. data/test/fixtures/content_for/site/cf-args.haml +0 -5
  100. data/test/fixtures/content_for/site/cf.haml +0 -6
  101. data/test/fixtures/content_for/site/cf2.haml +0 -3
  102. data/test/fixtures/content_for/site/index.html.haml +0 -9
  103. data/test/fixtures/content_for/site/var.html.haml +0 -5
  104. data/test/fixtures/content_for/www_control/cf-args-default.html +0 -1
  105. data/test/fixtures/content_for/www_control/cf-args.html +0 -2
  106. data/test/fixtures/content_for/www_control/cf.html +0 -17
  107. data/test/fixtures/content_for/www_control/cf2.html +0 -19
  108. data/test/fixtures/content_for/www_control/default.html +0 -2
  109. data/test/fixtures/content_for/www_control/index.html +0 -10
  110. data/test/fixtures/content_for/www_control/var.html +0 -2
  111. data/test/fixtures/custom/_config.yml +0 -8
  112. data/test/fixtures/custom/extensions/custom/custom.rb +0 -9
  113. data/test/fixtures/custom/layouts/default.haml +0 -8
  114. data/test/fixtures/custom/layouts/erbtest.erb +0 -2
  115. data/test/fixtures/custom/layouts/shared/sidebar.haml +0 -4
  116. data/test/fixtures/custom/site/about/index.html +0 -1
  117. data/test/fixtures/custom/site/assets/common.css.less +0 -1
  118. data/test/fixtures/custom/site/assets/style.css.less +0 -3
  119. data/test/fixtures/custom/site/foo.html.haml +0 -3
  120. data/test/fixtures/custom/site/index.html.haml +0 -6
  121. data/test/fixtures/custom/site/layout_test.html.haml +0 -6
  122. data/test/fixtures/custom/site/lol.html.erb +0 -7
  123. data/test/fixtures/custom/site/markdown.html.md +0 -8
  124. data/test/fixtures/custom/site/yes.html +0 -2
  125. data/test/fixtures/custom/www_control/about/index.html +0 -1
  126. data/test/fixtures/custom/www_control/assets/common.css +0 -1
  127. data/test/fixtures/custom/www_control/assets/style.css +0 -6
  128. data/test/fixtures/custom/www_control/foo.html +0 -1
  129. data/test/fixtures/custom/www_control/index.html +0 -16
  130. data/test/fixtures/custom/www_control/layout_test.html +0 -16
  131. data/test/fixtures/custom/www_control/lol.html +0 -5
  132. data/test/fixtures/custom/www_control/markdown.html +0 -17
  133. data/test/fixtures/custom/www_control/yes.html +0 -2
  134. data/test/fixtures/default/_config.yml +0 -8
  135. data/test/fixtures/default/extensions/custom/custom.rb +0 -2
  136. data/test/fixtures/default/layouts/default.haml +0 -5
  137. data/test/fixtures/default/site/about/index.html +0 -1
  138. data/test/fixtures/default/site/foo.html.haml +0 -3
  139. data/test/fixtures/default/site/index.html.haml +0 -6
  140. data/test/fixtures/default/site/layout_test.html.haml +0 -6
  141. data/test/fixtures/default/site/yes.html +0 -2
  142. data/test/fixtures/default/www_control/about/index.html +0 -1
  143. data/test/fixtures/default/www_control/foo.html +0 -1
  144. data/test/fixtures/default/www_control/index.html +0 -9
  145. data/test/fixtures/default/www_control/layout_test.html +0 -9
  146. data/test/fixtures/default/www_control/yes.html +0 -2
  147. data/test/test_all_fixtures.rb +0 -51
  148. data/test/test_build.rb +0 -20
  149. data/test/test_hyde.rb +0 -75
  150. data/test/test_page.rb +0 -26
  151. data/test/test_utils.rb +0 -22
@@ -0,0 +1,8 @@
1
+ hyde_requirement: 0.1
2
+ site_path: site
3
+ extensions_path: extensions
4
+ output_path: public
5
+ ignore:
6
+ - **/*~
7
+ - **/compass/**/*
8
+ - **/_*.scss
@@ -0,0 +1 @@
1
+ Wrong!
@@ -0,0 +1 @@
1
+ #post!= yield
@@ -0,0 +1,4 @@
1
+ title: Hello there
2
+ type: post
3
+ --
4
+ %h1= page.css_class
data/test/helper.rb CHANGED
@@ -1,31 +1,25 @@
1
- require 'rubygems'
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
- class Test::Unit::TestCase
10
- include Hyde::Utils
11
- def assert_same_file(a, b)
12
- assert same_file?(a, b)
13
- end
6
+ # Unpack
7
+ Page = Hyde::Page
8
+ Project = Hyde::Project
14
9
 
15
- def get_project(site)
16
- Hyde::Project.new fixture(site)
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 fixture(site)
20
- File.join File.dirname(__FILE__), 'fixtures', site
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
- module Hyde
25
- class Project
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
- hash: -1876988223
5
- prerelease: true
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: 2010-12-30 00:00:00 +08:00
21
- default_executable: hyde
13
+ date: 2011-02-20 00:00:00 +08:00
14
+ default_executable:
22
15
  dependencies:
23
16
  - !ruby/object:Gem::Dependency
24
- name: sinatra
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
- hash: 23
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: less
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
- hash: 53
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
- hash: 47
64
- segments:
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
- description: Website preprocessor
72
- email: rico@sinefunc.com
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
- - LICENSE
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
- - data/new_site/.gitignore
90
- - data/new_site/README.md
91
- - data/new_site/hyde.conf
92
- - data/new_site/layouts/default.haml
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/renderer.rb
108
- - lib/hyde/renderers.rb
109
- - lib/hyde/sinatra/init.rb
110
- - lib/hyde/utils.rb
111
- - lib/hyde_misc/console.rb
112
- - manual/Extending/ExtendingHyde.md
113
- - manual/Hyde.md
114
- - manual/Introduction/Configuration.md
115
- - manual/Introduction/GettingStarted.md
116
- - manual/Introduction/Installation.md
117
- - manual/Introduction/Layouts.md
118
- - manual/Introduction/Metadata.md
119
- - manual/Introduction/Partials.md
120
- - manual/Introduction/TemplateLanguages.md
121
- - manual/Tips/Tips.md
122
- - test/fixtures/content_for/_config.yml
123
- - test/fixtures/content_for/layouts/cf-args.haml
124
- - test/fixtures/content_for/layouts/cf.haml
125
- - test/fixtures/content_for/layouts/default.haml
126
- - test/fixtures/content_for/layouts/shared/test.haml
127
- - test/fixtures/content_for/site/cf-args-default.haml
128
- - test/fixtures/content_for/site/cf-args.haml
129
- - test/fixtures/content_for/site/cf.haml
130
- - test/fixtures/content_for/site/cf2.haml
131
- - test/fixtures/content_for/site/default.html.haml
132
- - test/fixtures/content_for/site/index.html.haml
133
- - test/fixtures/content_for/site/var.html.haml
134
- - test/fixtures/content_for/www_control/cf-args-default.html
135
- - test/fixtures/content_for/www_control/cf-args.html
136
- - test/fixtures/content_for/www_control/cf.html
137
- - test/fixtures/content_for/www_control/cf2.html
138
- - test/fixtures/content_for/www_control/default.html
139
- - test/fixtures/content_for/www_control/index.html
140
- - test/fixtures/content_for/www_control/var.html
141
- - test/fixtures/custom/_config.yml
142
- - test/fixtures/custom/extensions/custom/custom.rb
143
- - test/fixtures/custom/layouts/default.haml
144
- - test/fixtures/custom/layouts/erbtest.erb
145
- - test/fixtures/custom/layouts/shared/sidebar.haml
146
- - test/fixtures/custom/site/about/index.html
147
- - test/fixtures/custom/site/assets/common.css.less
148
- - test/fixtures/custom/site/assets/style.css.less
149
- - test/fixtures/custom/site/foo.html.haml
150
- - test/fixtures/custom/site/index.html.haml
151
- - test/fixtures/custom/site/layout_test.html.haml
152
- - test/fixtures/custom/site/lol.html.erb
153
- - test/fixtures/custom/site/markdown.html.md
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/test_all_fixtures.rb
179
- - test/test_build.rb
180
- - test/test_hyde.rb
181
- - test/test_page.rb
182
- - test/test_utils.rb
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
- hash: 25
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.3.7
176
+ rubygems_version: 1.5.0
216
177
  signing_key:
217
178
  specification_version: 3
218
- summary: Website preprocessor
219
- test_files:
220
- - test/fixtures/custom/extensions/custom/custom.rb
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
@@ -1,5 +0,0 @@
1
- --files="manual/*/*"
2
- --files="AUTHORS"
3
- --files="LICENSE"
4
- --files="CHANGELOG"
5
- --main="manual/Hyde.md"
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
@@ -1,24 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
- *.swo
16
- *.swn
17
-
18
- ## PROJECT::GENERAL
19
- coverage
20
- rdoc
21
- pkg
22
-
23
- ## PROJECT::SPECIFIC
24
- public
data/data/pages/404.html DELETED
@@ -1,3 +0,0 @@
1
- <body style='text-align: center'>
2
- <h1>Not found.</h1>
3
- <a href='/-'>List of pages</a>