proton 0.3.0.rc1
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/AUTHORS +6 -0
- data/HISTORY.md +200 -0
- data/README.md +75 -0
- data/Rakefile +5 -0
- data/TODO.md +6 -0
- data/bin/proton +7 -0
- data/data/new_site/Protonfile +12 -0
- data/data/new_site/README.md +10 -0
- data/data/new_site/_layouts/default.haml +28 -0
- data/data/new_site/index.haml +5 -0
- data/data/rack/Gemfile +2 -0
- data/data/rack/Gemfile.lock +40 -0
- data/data/rack/config.ru +24 -0
- data/lib/proton.rb +78 -0
- data/lib/proton/cli.rb +227 -0
- data/lib/proton/cli/helpers.rb +89 -0
- data/lib/proton/compass_support.rb +8 -0
- data/lib/proton/config.rb +116 -0
- data/lib/proton/helpers.rb +126 -0
- data/lib/proton/layout.rb +20 -0
- data/lib/proton/meta.rb +17 -0
- data/lib/proton/page.rb +431 -0
- data/lib/proton/partial.rb +12 -0
- data/lib/proton/project.rb +176 -0
- data/lib/proton/server.rb +99 -0
- data/lib/proton/set.rb +32 -0
- data/lib/proton/version.rb +13 -0
- data/test/fixture/build_options/control/page.html +0 -0
- data/test/fixture/build_options/control/style.css +1 -0
- data/test/fixture/build_options/hyde.conf +18 -0
- data/test/fixture/build_options/site/page.haml +0 -0
- data/test/fixture/build_options/site/style.scss +1 -0
- data/test/fixture/compass/hyde.conf +4 -0
- data/test/fixture/compass/site/style.scss +5 -0
- data/test/fixture/empty_config/hyde.conf +0 -0
- data/test/fixture/extensions/control/index.html +1 -0
- data/test/fixture/extensions/extensions/a/a.rb +1 -0
- data/test/fixture/extensions/extensions/hi.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/high_version/hyde.conf +1 -0
- data/test/fixture/high_version_2/hyde.conf +1 -0
- data/test/fixture/html/control/index.html +2 -0
- data/test/fixture/html/hyde.conf +8 -0
- data/test/fixture/html/site/index.html +2 -0
- data/test/fixture/ignores/control/about.html +1 -0
- data/test/fixture/ignores/hyde.conf +10 -0
- data/test/fixture/ignores/site/about.haml +1 -0
- data/test/fixture/ignores/site/hi.haml +1 -0
- data/test/fixture/metadata/control/index.html +4 -0
- data/test/fixture/metadata/hyde.conf +8 -0
- data/test/fixture/metadata/site/index.haml +8 -0
- data/test/fixture/nested_layout/control/index.html +2 -0
- data/test/fixture/nested_layout/hyde.conf +9 -0
- data/test/fixture/nested_layout/layouts/default.haml +2 -0
- data/test/fixture/nested_layout/layouts/post.haml +3 -0
- data/test/fixture/nested_layout/site/index.haml +4 -0
- data/test/fixture/one/control/about/index.css +1 -0
- data/test/fixture/one/control/about/us.html +1 -0
- data/test/fixture/one/control/cheers.html +5 -0
- data/test/fixture/one/control/css/bar.css +0 -0
- data/test/fixture/one/control/css/style.css +1 -0
- data/test/fixture/one/control/hello.html +5 -0
- data/test/fixture/one/control/hi.html +1 -0
- data/test/fixture/one/control/images/bar.gif +0 -0
- data/test/fixture/one/control/images/baz.png +0 -0
- data/test/fixture/one/control/images/foo.jpg +0 -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/public/about/index.css +1 -0
- data/test/fixture/one/public/about/us.html +1 -0
- data/test/fixture/one/public/cheers.html +5 -0
- data/test/fixture/one/public/css/bar.css +0 -0
- data/test/fixture/one/public/css/style.css +1 -0
- data/test/fixture/one/public/hello.html +5 -0
- data/test/fixture/one/public/hi.html +1 -0
- data/test/fixture/one/public/images/bar.gif +0 -0
- data/test/fixture/one/public/images/baz.png +0 -0
- data/test/fixture/one/public/images/foo.jpg +0 -0
- data/test/fixture/one/public/index.html +7 -0
- data/test/fixture/one/site/about/index.scss +1 -0
- data/test/fixture/one/site/about/us.haml +3 -0
- data/test/fixture/one/site/cheers.html.haml +1 -0
- data/test/fixture/one/site/css/bar.scss +0 -0
- data/test/fixture/one/site/css/style.scss +2 -0
- data/test/fixture/one/site/hello.haml +3 -0
- data/test/fixture/one/site/hi.html +3 -0
- data/test/fixture/one/site/images/bar.gif +0 -0
- data/test/fixture/one/site/images/baz.png +0 -0
- data/test/fixture/one/site/images/foo.jpg +0 -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/control/about.html +6 -0
- data/test/fixture/sort/control/about/hardy.html +1 -0
- data/test/fixture/sort/control/about/intrepid.html +1 -0
- data/test/fixture/sort/hyde.conf +8 -0
- data/test/fixture/sort/site/about.haml +3 -0
- data/test/fixture/sort/site/about/hardy.haml +4 -0
- data/test/fixture/sort/site/about/intrepid.haml +4 -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 +9 -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 +36 -0
- data/test/unit/build_options_test.rb +18 -0
- data/test/unit/extensions_test.rb +17 -0
- data/test/unit/fixture_test.rb +122 -0
- data/test/unit/page_test.rb +58 -0
- data/test/unit/proton_test.rb +27 -0
- data/test/unit/set_test.rb +26 -0
- metadata +301 -0
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
require File.expand_path('../../helper', __FILE__)
|
|
2
|
+
|
|
3
|
+
class FixtureTest < TestCase
|
|
4
|
+
def assert_fixture_works(path, options={})
|
|
5
|
+
build_fixture(path, options) { |control, var|
|
|
6
|
+
assert File.exists?(var), "#{var} doesn't exist"
|
|
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=Proton::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, options={}, &blk)
|
|
29
|
+
# Build
|
|
30
|
+
project = build path
|
|
31
|
+
|
|
32
|
+
options[:control_path] ||= '_control'
|
|
33
|
+
options[:public_path] ||= '_public'
|
|
34
|
+
|
|
35
|
+
control_path = project.root(options[:control_path])
|
|
36
|
+
public_path = project.root(options[:public_path])
|
|
37
|
+
|
|
38
|
+
from = Dir["#{control_path}/**/*"].map { |dir| dir.gsub(control_path, '') }.sort
|
|
39
|
+
to = Dir["#{public_path}/**/*"].map { |dir| dir.gsub(public_path, '') }.sort
|
|
40
|
+
|
|
41
|
+
assert_equal from, to, "The build happened to make less files"
|
|
42
|
+
|
|
43
|
+
Dir["#{control_path}/**/*"].each do |control|
|
|
44
|
+
next unless File.file?(control)
|
|
45
|
+
var = control.sub(control_path, public_path)
|
|
46
|
+
yield control, var
|
|
47
|
+
end if block_given?
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
def read(file)
|
|
51
|
+
File.open(file) { |f| f.read }
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
teardown do
|
|
55
|
+
# Remove the generated
|
|
56
|
+
( Dir[fixture('*', 'public')] +
|
|
57
|
+
Dir[fixture('*', '_public')]
|
|
58
|
+
).each { |dir| FileUtils.rm_rf dir }
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
test "fixture one" do
|
|
62
|
+
assert_fixture_works fixture('one')
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
test "fixture subclass" do
|
|
66
|
+
assert_fixture_works fixture('subclass')
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
test "fixture extensions" do
|
|
70
|
+
assert_fixture_works fixture('extensions')
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
test "fixture parent" do
|
|
74
|
+
assert_fixture_works fixture('parent')
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
test "fixture sort" do
|
|
78
|
+
assert_fixture_works fixture('sort')
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
test "fixture ignores" do
|
|
82
|
+
assert_fixture_works fixture('ignores')
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
test "fixture metadata" do
|
|
86
|
+
assert_fixture_works fixture('metadata')
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
test "fixture nested_layout" do
|
|
90
|
+
assert_fixture_works fixture('nested_layout')
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
test "fixture build_options" do
|
|
94
|
+
assert_fixture_works fixture('build_options')
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
test "compass support" do
|
|
98
|
+
assert_fixture_works fixture('compass')
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
test "fixture empty_config" do
|
|
102
|
+
assert_fixture_works fixture('empty_config'),
|
|
103
|
+
:control_path => '_control',
|
|
104
|
+
:public_path => '_output'
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
test "fixture high_version" do
|
|
108
|
+
assert_fixture_fails(fixture('high_version')) { |e|
|
|
109
|
+
assert e.message.include?('>= 9000')
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
assert_fixture_fails(fixture('high_version_2')) { |e|
|
|
113
|
+
assert e.message.include?('>= 9000')
|
|
114
|
+
}
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
test "fixture fail_type" do
|
|
118
|
+
assert_fixture_fails(fixture('fail_type')) { |e|
|
|
119
|
+
assert e.message.include?('nonexistent')
|
|
120
|
+
}
|
|
121
|
+
end
|
|
122
|
+
end
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
require File.expand_path('../../helper', __FILE__)
|
|
2
|
+
|
|
3
|
+
class PageTest < TestCase
|
|
4
|
+
setup do
|
|
5
|
+
@path = fixture('one')
|
|
6
|
+
@project = Project.new(@path)
|
|
7
|
+
Dir.chdir @path
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
test "root" do
|
|
11
|
+
@page = Page['/']
|
|
12
|
+
assert @page.index?
|
|
13
|
+
assert @page.root?
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
test "breadcrumbs" do
|
|
17
|
+
assert_equal %w(/index.html /about/index.css), Page['/about/index.css'].breadcrumbs.paths
|
|
18
|
+
assert_equal %w(/index.html /about/index.css /about/us.html), Page['/about/us.html'].breadcrumbs.paths
|
|
19
|
+
assert_equal %w(/index.html /css/style.css), Page['/css/style.css'].breadcrumbs.paths
|
|
20
|
+
assert_equal %w(/index.html), Page['/'].breadcrumbs.paths
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
test "parent" do
|
|
24
|
+
assert Page['/'].parent.nil?
|
|
25
|
+
assert Page['/css/style.css'].parent.path == '/index.html'
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
test "siblings" do
|
|
29
|
+
# Because it has no parent, technically
|
|
30
|
+
page = Page['/about/index.css']
|
|
31
|
+
assert page.siblings.empty?
|
|
32
|
+
|
|
33
|
+
page = Page['/hello.html']
|
|
34
|
+
assert_equal %w(/cheers.html /hello.html /hi.html), page.siblings.paths
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
test "mimes" do
|
|
38
|
+
assert !Page['/css/style.css'].html?
|
|
39
|
+
assert Page['/'].html?
|
|
40
|
+
assert_equal 'text/css', Page['/css/style.css'].mime_type
|
|
41
|
+
assert_equal 'text/html', Page['/about/us.html'].mime_type
|
|
42
|
+
assert_equal 'html', Page['/about/us.html'].default_ext
|
|
43
|
+
assert_equal 'css', Page['/css/style.css'].default_ext
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
test "no layout" do
|
|
47
|
+
page = Page['/hi.html']
|
|
48
|
+
assert_equal false, page.meta.layout
|
|
49
|
+
assert_equal nil, page.layout
|
|
50
|
+
assert_equal false, page.layout?
|
|
51
|
+
assert_equal page.to_html, page.content
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
test "html pages should be intact" do
|
|
55
|
+
page = Page['/hi']
|
|
56
|
+
assert_equal page.markup, page.content
|
|
57
|
+
end
|
|
58
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
require File.expand_path('../../helper', __FILE__)
|
|
2
|
+
|
|
3
|
+
class ProtonTest < TestCase
|
|
4
|
+
setup do
|
|
5
|
+
@path = fixture('one')
|
|
6
|
+
@project = Project.new(@path)
|
|
7
|
+
Dir.chdir @path
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
test "build" do
|
|
11
|
+
@project.pages.each { |page| page.write }
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
test "accessible" do
|
|
15
|
+
site = lambda { |*a| File.join(@path, 'site', *a) }
|
|
16
|
+
|
|
17
|
+
# site/hi.html
|
|
18
|
+
assert_equal Page['/cheers.html'].file, site['cheers.html.haml']
|
|
19
|
+
assert_equal Page['/hi.html'].file, site['hi.html']
|
|
20
|
+
assert_equal Page['/hi.yo'].file, site['hi.html']
|
|
21
|
+
assert_equal Page['/hi'].file, site['hi.html']
|
|
22
|
+
assert_equal Page['/css/style.css'].file, site['css/style.scss']
|
|
23
|
+
assert_equal Page['/css/style.css'].file, site['css/style.scss']
|
|
24
|
+
assert_equal Page['/about'].file, site['about/index.scss']
|
|
25
|
+
assert_equal Page['/'].file, site['/index.haml']
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
require File.expand_path('../../helper', __FILE__)
|
|
2
|
+
|
|
3
|
+
class SetTest < TestCase
|
|
4
|
+
setup do
|
|
5
|
+
@path = fixture('one')
|
|
6
|
+
@project = Project.new(@path)
|
|
7
|
+
Dir.chdir @path
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
test "breadcrumbs" do
|
|
11
|
+
assert Page['/about/index.css'].breadcrumbs.is_a?(Proton::Set)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
test "children" do
|
|
15
|
+
assert Page['/'].children.is_a?(Proton::Set)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
test "siblings" do
|
|
19
|
+
assert Page['/about'].siblings.is_a?(Proton::Set)
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
test "children" do
|
|
23
|
+
set = Page['/'].children.find(:hello => 'world')
|
|
24
|
+
assert set.paths == ['/hello.html']
|
|
25
|
+
end
|
|
26
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: proton
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
prerelease: 6
|
|
5
|
+
version: 0.3.0.rc1
|
|
6
|
+
platform: ruby
|
|
7
|
+
authors:
|
|
8
|
+
- Rico Sta. Cruz
|
|
9
|
+
autorequire:
|
|
10
|
+
bindir: bin
|
|
11
|
+
cert_chain: []
|
|
12
|
+
|
|
13
|
+
date: 2011-06-22 00:00:00 +08:00
|
|
14
|
+
default_executable:
|
|
15
|
+
dependencies:
|
|
16
|
+
- !ruby/object:Gem::Dependency
|
|
17
|
+
name: shake
|
|
18
|
+
prerelease: false
|
|
19
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
|
20
|
+
none: false
|
|
21
|
+
requirements:
|
|
22
|
+
- - ~>
|
|
23
|
+
- !ruby/object:Gem::Version
|
|
24
|
+
version: "0.1"
|
|
25
|
+
type: :runtime
|
|
26
|
+
version_requirements: *id001
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: tilt
|
|
29
|
+
prerelease: false
|
|
30
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
|
31
|
+
none: false
|
|
32
|
+
requirements:
|
|
33
|
+
- - ~>
|
|
34
|
+
- !ruby/object:Gem::Version
|
|
35
|
+
version: 1.2.2
|
|
36
|
+
type: :runtime
|
|
37
|
+
version_requirements: *id002
|
|
38
|
+
- !ruby/object:Gem::Dependency
|
|
39
|
+
name: cuba
|
|
40
|
+
prerelease: false
|
|
41
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
|
42
|
+
none: false
|
|
43
|
+
requirements:
|
|
44
|
+
- - ~>
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: 2.0.0
|
|
47
|
+
type: :runtime
|
|
48
|
+
version_requirements: *id003
|
|
49
|
+
- !ruby/object:Gem::Dependency
|
|
50
|
+
name: hashie
|
|
51
|
+
prerelease: false
|
|
52
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
|
53
|
+
none: false
|
|
54
|
+
requirements:
|
|
55
|
+
- - ~>
|
|
56
|
+
- !ruby/object:Gem::Version
|
|
57
|
+
version: 1.0.0
|
|
58
|
+
type: :runtime
|
|
59
|
+
version_requirements: *id004
|
|
60
|
+
- !ruby/object:Gem::Dependency
|
|
61
|
+
name: haml
|
|
62
|
+
prerelease: false
|
|
63
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
|
64
|
+
none: false
|
|
65
|
+
requirements:
|
|
66
|
+
- - ~>
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: 3.1.1
|
|
69
|
+
type: :runtime
|
|
70
|
+
version_requirements: *id005
|
|
71
|
+
- !ruby/object:Gem::Dependency
|
|
72
|
+
name: sass
|
|
73
|
+
prerelease: false
|
|
74
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
|
75
|
+
none: false
|
|
76
|
+
requirements:
|
|
77
|
+
- - ~>
|
|
78
|
+
- !ruby/object:Gem::Version
|
|
79
|
+
version: 3.1.1
|
|
80
|
+
type: :runtime
|
|
81
|
+
version_requirements: *id006
|
|
82
|
+
- !ruby/object:Gem::Dependency
|
|
83
|
+
name: compass
|
|
84
|
+
prerelease: false
|
|
85
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
|
86
|
+
none: false
|
|
87
|
+
requirements:
|
|
88
|
+
- - ~>
|
|
89
|
+
- !ruby/object:Gem::Version
|
|
90
|
+
version: 0.11.1
|
|
91
|
+
type: :runtime
|
|
92
|
+
version_requirements: *id007
|
|
93
|
+
- !ruby/object:Gem::Dependency
|
|
94
|
+
name: RedCloth
|
|
95
|
+
prerelease: false
|
|
96
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
|
97
|
+
none: false
|
|
98
|
+
requirements:
|
|
99
|
+
- - ~>
|
|
100
|
+
- !ruby/object:Gem::Version
|
|
101
|
+
version: 4.2.3
|
|
102
|
+
type: :runtime
|
|
103
|
+
version_requirements: *id008
|
|
104
|
+
- !ruby/object:Gem::Dependency
|
|
105
|
+
name: maruku
|
|
106
|
+
prerelease: false
|
|
107
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
|
108
|
+
none: false
|
|
109
|
+
requirements:
|
|
110
|
+
- - ~>
|
|
111
|
+
- !ruby/object:Gem::Version
|
|
112
|
+
version: 0.6.0
|
|
113
|
+
type: :runtime
|
|
114
|
+
version_requirements: *id009
|
|
115
|
+
- !ruby/object:Gem::Dependency
|
|
116
|
+
name: less
|
|
117
|
+
prerelease: false
|
|
118
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
|
119
|
+
none: false
|
|
120
|
+
requirements:
|
|
121
|
+
- - ">="
|
|
122
|
+
- !ruby/object:Gem::Version
|
|
123
|
+
version: "0"
|
|
124
|
+
type: :development
|
|
125
|
+
version_requirements: *id010
|
|
126
|
+
- !ruby/object:Gem::Dependency
|
|
127
|
+
name: maruku
|
|
128
|
+
prerelease: false
|
|
129
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
|
130
|
+
none: false
|
|
131
|
+
requirements:
|
|
132
|
+
- - ">="
|
|
133
|
+
- !ruby/object:Gem::Version
|
|
134
|
+
version: "0"
|
|
135
|
+
type: :development
|
|
136
|
+
version_requirements: *id011
|
|
137
|
+
description: Proton lets you create static websites from a bunch of files written in HAML, Textile, Sass, or any other templating language.
|
|
138
|
+
email:
|
|
139
|
+
- rico@sinefunc.com
|
|
140
|
+
executables:
|
|
141
|
+
- proton
|
|
142
|
+
extensions: []
|
|
143
|
+
|
|
144
|
+
extra_rdoc_files: []
|
|
145
|
+
|
|
146
|
+
files:
|
|
147
|
+
- bin/proton
|
|
148
|
+
- lib/proton/cli/helpers.rb
|
|
149
|
+
- lib/proton/cli.rb
|
|
150
|
+
- lib/proton/compass_support.rb
|
|
151
|
+
- lib/proton/config.rb
|
|
152
|
+
- lib/proton/helpers.rb
|
|
153
|
+
- lib/proton/layout.rb
|
|
154
|
+
- lib/proton/meta.rb
|
|
155
|
+
- lib/proton/page.rb
|
|
156
|
+
- lib/proton/partial.rb
|
|
157
|
+
- lib/proton/project.rb
|
|
158
|
+
- lib/proton/server.rb
|
|
159
|
+
- lib/proton/set.rb
|
|
160
|
+
- lib/proton/version.rb
|
|
161
|
+
- lib/proton.rb
|
|
162
|
+
- test/fixture/build_options/control/page.html
|
|
163
|
+
- test/fixture/build_options/control/style.css
|
|
164
|
+
- test/fixture/build_options/hyde.conf
|
|
165
|
+
- test/fixture/build_options/site/page.haml
|
|
166
|
+
- test/fixture/build_options/site/style.scss
|
|
167
|
+
- test/fixture/compass/hyde.conf
|
|
168
|
+
- test/fixture/compass/site/style.scss
|
|
169
|
+
- test/fixture/empty_config/hyde.conf
|
|
170
|
+
- test/fixture/extensions/control/index.html
|
|
171
|
+
- test/fixture/extensions/extensions/a/a.rb
|
|
172
|
+
- test/fixture/extensions/extensions/hi.rb
|
|
173
|
+
- test/fixture/extensions/hyde.conf
|
|
174
|
+
- test/fixture/extensions/site/index.haml
|
|
175
|
+
- test/fixture/fail_type/control/about/index.html
|
|
176
|
+
- test/fixture/fail_type/control/about/us.html
|
|
177
|
+
- test/fixture/fail_type/control/index.html
|
|
178
|
+
- test/fixture/fail_type/hyde.conf
|
|
179
|
+
- test/fixture/fail_type/site/index.haml
|
|
180
|
+
- test/fixture/high_version/hyde.conf
|
|
181
|
+
- test/fixture/high_version_2/hyde.conf
|
|
182
|
+
- test/fixture/html/control/index.html
|
|
183
|
+
- test/fixture/html/hyde.conf
|
|
184
|
+
- test/fixture/html/site/index.html
|
|
185
|
+
- test/fixture/ignores/control/about.html
|
|
186
|
+
- test/fixture/ignores/hyde.conf
|
|
187
|
+
- test/fixture/ignores/site/about.haml
|
|
188
|
+
- test/fixture/ignores/site/hi.haml
|
|
189
|
+
- test/fixture/metadata/control/index.html
|
|
190
|
+
- test/fixture/metadata/hyde.conf
|
|
191
|
+
- test/fixture/metadata/site/index.haml
|
|
192
|
+
- test/fixture/nested_layout/control/index.html
|
|
193
|
+
- test/fixture/nested_layout/hyde.conf
|
|
194
|
+
- test/fixture/nested_layout/layouts/default.haml
|
|
195
|
+
- test/fixture/nested_layout/layouts/post.haml
|
|
196
|
+
- test/fixture/nested_layout/site/index.haml
|
|
197
|
+
- test/fixture/one/control/about/index.css
|
|
198
|
+
- test/fixture/one/control/about/us.html
|
|
199
|
+
- test/fixture/one/control/cheers.html
|
|
200
|
+
- test/fixture/one/control/css/bar.css
|
|
201
|
+
- test/fixture/one/control/css/style.css
|
|
202
|
+
- test/fixture/one/control/hello.html
|
|
203
|
+
- test/fixture/one/control/hi.html
|
|
204
|
+
- test/fixture/one/control/images/bar.gif
|
|
205
|
+
- test/fixture/one/control/images/baz.png
|
|
206
|
+
- test/fixture/one/control/images/foo.jpg
|
|
207
|
+
- test/fixture/one/control/index.html
|
|
208
|
+
- test/fixture/one/hyde.conf
|
|
209
|
+
- test/fixture/one/layouts/default.haml
|
|
210
|
+
- test/fixture/one/partials/menu.haml
|
|
211
|
+
- test/fixture/one/public/about/index.css
|
|
212
|
+
- test/fixture/one/public/about/us.html
|
|
213
|
+
- test/fixture/one/public/cheers.html
|
|
214
|
+
- test/fixture/one/public/css/bar.css
|
|
215
|
+
- test/fixture/one/public/css/style.css
|
|
216
|
+
- test/fixture/one/public/hello.html
|
|
217
|
+
- test/fixture/one/public/hi.html
|
|
218
|
+
- test/fixture/one/public/images/bar.gif
|
|
219
|
+
- test/fixture/one/public/images/baz.png
|
|
220
|
+
- test/fixture/one/public/images/foo.jpg
|
|
221
|
+
- test/fixture/one/public/index.html
|
|
222
|
+
- test/fixture/one/site/about/index.scss
|
|
223
|
+
- test/fixture/one/site/about/us.haml
|
|
224
|
+
- test/fixture/one/site/cheers.html.haml
|
|
225
|
+
- test/fixture/one/site/css/bar.scss
|
|
226
|
+
- test/fixture/one/site/css/style.scss
|
|
227
|
+
- test/fixture/one/site/hello.haml
|
|
228
|
+
- test/fixture/one/site/hi.html
|
|
229
|
+
- test/fixture/one/site/images/bar.gif
|
|
230
|
+
- test/fixture/one/site/images/baz.png
|
|
231
|
+
- test/fixture/one/site/images/foo.jpg
|
|
232
|
+
- test/fixture/one/site/index.haml
|
|
233
|
+
- test/fixture/parent/control/about/index.html
|
|
234
|
+
- test/fixture/parent/control/about/us.html
|
|
235
|
+
- test/fixture/parent/control/index.html
|
|
236
|
+
- test/fixture/parent/hyde.conf
|
|
237
|
+
- test/fixture/parent/site/about/index.haml
|
|
238
|
+
- test/fixture/parent/site/about/us.haml
|
|
239
|
+
- test/fixture/parent/site/index.haml
|
|
240
|
+
- test/fixture/sort/control/about/hardy.html
|
|
241
|
+
- test/fixture/sort/control/about/intrepid.html
|
|
242
|
+
- test/fixture/sort/control/about.html
|
|
243
|
+
- test/fixture/sort/hyde.conf
|
|
244
|
+
- test/fixture/sort/site/about/hardy.haml
|
|
245
|
+
- test/fixture/sort/site/about/intrepid.haml
|
|
246
|
+
- test/fixture/sort/site/about.haml
|
|
247
|
+
- test/fixture/subclass/control/index.html
|
|
248
|
+
- test/fixture/subclass/extensions/a/a.rb
|
|
249
|
+
- test/fixture/subclass/hyde.conf
|
|
250
|
+
- test/fixture/subclass/layouts/default.haml
|
|
251
|
+
- test/fixture/subclass/layouts/post.haml
|
|
252
|
+
- test/fixture/subclass/site/index.haml
|
|
253
|
+
- test/helper.rb
|
|
254
|
+
- test/unit/build_options_test.rb
|
|
255
|
+
- test/unit/extensions_test.rb
|
|
256
|
+
- test/unit/fixture_test.rb
|
|
257
|
+
- test/unit/page_test.rb
|
|
258
|
+
- test/unit/proton_test.rb
|
|
259
|
+
- test/unit/set_test.rb
|
|
260
|
+
- data/new_site/_layouts/default.haml
|
|
261
|
+
- data/new_site/index.haml
|
|
262
|
+
- data/new_site/Protonfile
|
|
263
|
+
- data/new_site/README.md
|
|
264
|
+
- data/rack/config.ru
|
|
265
|
+
- data/rack/Gemfile
|
|
266
|
+
- data/rack/Gemfile.lock
|
|
267
|
+
- HISTORY.md
|
|
268
|
+
- README.md
|
|
269
|
+
- TODO.md
|
|
270
|
+
- Rakefile
|
|
271
|
+
- AUTHORS
|
|
272
|
+
has_rdoc: true
|
|
273
|
+
homepage: http://github.com/sinefunc/proton
|
|
274
|
+
licenses: []
|
|
275
|
+
|
|
276
|
+
post_install_message:
|
|
277
|
+
rdoc_options: []
|
|
278
|
+
|
|
279
|
+
require_paths:
|
|
280
|
+
- lib
|
|
281
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
282
|
+
none: false
|
|
283
|
+
requirements:
|
|
284
|
+
- - ">="
|
|
285
|
+
- !ruby/object:Gem::Version
|
|
286
|
+
version: "0"
|
|
287
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
288
|
+
none: false
|
|
289
|
+
requirements:
|
|
290
|
+
- - ">"
|
|
291
|
+
- !ruby/object:Gem::Version
|
|
292
|
+
version: 1.3.1
|
|
293
|
+
requirements: []
|
|
294
|
+
|
|
295
|
+
rubyforge_project:
|
|
296
|
+
rubygems_version: 1.6.2
|
|
297
|
+
signing_key:
|
|
298
|
+
specification_version: 3
|
|
299
|
+
summary: Prototyping tool / static site generator.
|
|
300
|
+
test_files: []
|
|
301
|
+
|