awestruct 0.4.8 → 0.5.0.cr

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) hide show
  1. data/lib/awestruct/astruct.rb +4 -0
  2. data/lib/awestruct/astruct_mixin.rb +3 -0
  3. data/lib/awestruct/cli/auto.rb +6 -6
  4. data/lib/awestruct/cli/deploy.rb +3 -3
  5. data/lib/awestruct/cli/generate.rb +5 -3
  6. data/lib/awestruct/cli/init.rb +1 -1
  7. data/lib/awestruct/cli/invoker.rb +10 -3
  8. data/lib/awestruct/cli/manifest.rb +18 -17
  9. data/lib/awestruct/cli/options.rb +7 -6
  10. data/lib/awestruct/cli/server.rb +7 -14
  11. data/lib/awestruct/config.rb +7 -1
  12. data/lib/awestruct/config/default-site.yml +30 -0
  13. data/lib/awestruct/context_helper.rb +7 -7
  14. data/lib/awestruct/dependencies.rb +14 -11
  15. data/lib/awestruct/deploy/base_deploy.rb +2 -2
  16. data/lib/awestruct/deploy/github_pages_deploy.rb +1 -1
  17. data/lib/awestruct/deploy/rsync_deploy.rb +11 -15
  18. data/lib/awestruct/deploy/s3_deploy.rb +9 -0
  19. data/lib/awestruct/engine.rb +72 -21
  20. data/lib/awestruct/extensions/minify.rb +21 -20
  21. data/lib/awestruct/extensions/paginator.rb +5 -5
  22. data/lib/awestruct/extensions/partial.rb +1 -1
  23. data/lib/awestruct/extensions/pipeline.rb +5 -1
  24. data/lib/awestruct/extensions/posts.rb +8 -4
  25. data/lib/awestruct/extensions/relative.rb +7 -2
  26. data/lib/awestruct/extensions/remotePartial.rb +1 -1
  27. data/lib/awestruct/extensions/sitemap.rb +1 -1
  28. data/lib/awestruct/frameworks/bootstrap/base_index.html.haml +1 -1
  29. data/lib/awestruct/frameworks/bootstrap/base_layout.html.haml +1 -1
  30. data/lib/awestruct/handler_chains.rb +8 -23
  31. data/lib/awestruct/handlers/asciidoctor_handler.rb +114 -0
  32. data/lib/awestruct/handlers/base_tilt_handler.rb +114 -0
  33. data/lib/awestruct/handlers/css_tilt_handler.rb +43 -0
  34. data/lib/awestruct/handlers/front_matter_handler.rb +1 -1
  35. data/lib/awestruct/handlers/interpolation_handler.rb +3 -3
  36. data/lib/awestruct/handlers/layout_handler.rb +6 -4
  37. data/lib/awestruct/handlers/restructuredtext_handler.rb +5 -5
  38. data/lib/awestruct/handlers/template/asciidoc.rb +41 -0
  39. data/lib/awestruct/handlers/template/mustache.rb +25 -0
  40. data/lib/awestruct/handlers/tilt_handler.rb +73 -0
  41. data/lib/awestruct/layouts.rb +1 -1
  42. data/lib/awestruct/logger.rb +59 -0
  43. data/lib/awestruct/page.rb +16 -3
  44. data/lib/awestruct/page_loader.rb +5 -5
  45. data/lib/awestruct/version.rb +1 -1
  46. data/man/awestruct.1 +163 -0
  47. data/spec/asciidoc_handler_spec.rb +75 -0
  48. data/spec/astruct_spec.rb +52 -0
  49. data/spec/coffeescript_handler_spec.rb +23 -0
  50. data/spec/config_spec.rb +22 -0
  51. data/spec/context_helper_spec.rb +115 -0
  52. data/spec/deploy_spec.rb +41 -0
  53. data/spec/disqus_spec.rb +43 -0
  54. data/spec/engine_spec.rb +115 -0
  55. data/spec/erb_handler_spec.rb +52 -0
  56. data/spec/file_handler_spec.rb +57 -0
  57. data/spec/front_matter_handler_spec.rb +42 -0
  58. data/spec/github_pages_deploy_spec.rb +56 -0
  59. data/spec/haml_handler_spec.rb +93 -0
  60. data/spec/handler_chain_spec.rb +44 -0
  61. data/spec/handler_chains_spec.rb +25 -0
  62. data/spec/interpolation_handler_spec.rb +35 -0
  63. data/spec/invoker_spec.rb +74 -0
  64. data/spec/javascript_handler_spec.rb +23 -0
  65. data/spec/layout_handler_spec.rb +77 -0
  66. data/spec/layouts_spec.rb +32 -0
  67. data/spec/less_handler_spec.rb +33 -0
  68. data/spec/markdown_handler_spec.rb +41 -0
  69. data/spec/minify_spec.rb +61 -0
  70. data/spec/mustache_handler_spec.rb +29 -0
  71. data/spec/options_spec.rb +97 -0
  72. data/spec/orgmode_handler_spec.rb +24 -0
  73. data/spec/page_delegating_handler_spec.rb +79 -0
  74. data/spec/page_loader_spec.rb +43 -0
  75. data/spec/page_loader_spec_for_layouts.rb +36 -0
  76. data/spec/page_spec.rb +65 -0
  77. data/spec/pipeline_spec.rb +12 -0
  78. data/spec/posts_archive_spec.rb +108 -0
  79. data/spec/redirect_handler_spec.rb +32 -0
  80. data/spec/restructuredtext_handler_spec.rb +22 -0
  81. data/spec/rsync_deploy_spec.rb +9 -0
  82. data/spec/sass_handler_spec.rb +23 -0
  83. data/spec/scss_handler_spec.rb +23 -0
  84. data/spec/server_spec.rb +45 -0
  85. data/spec/slim_handler_spec.rb +81 -0
  86. data/spec/spec_helper.rb +18 -0
  87. data/spec/support/nokogiri_matchers.rb +21 -0
  88. data/spec/support/shared_handler_example.rb +98 -0
  89. data/spec/test-data/engine/_config/arbitrary.yml +2 -0
  90. data/spec/test-data/engine/_config/other.yml +1 -0
  91. data/spec/test-data/engine/_config/site.yml +14 -0
  92. data/spec/test-data/front-matter-file-no-content.txt +2 -0
  93. data/spec/test-data/front-matter-file-no-front.txt +1 -0
  94. data/spec/test-data/front-matter-file.txt +4 -0
  95. data/spec/test-data/handlers/asciidoc-page.ad +3 -0
  96. data/spec/test-data/handlers/asciidoc-page.adoc +3 -0
  97. data/spec/test-data/handlers/asciidoc-page.asciidoc +3 -0
  98. data/spec/test-data/handlers/asciidoctor_with_front_matter.ad +6 -0
  99. data/spec/test-data/handlers/asciidoctor_with_headers.ad +8 -0
  100. data/spec/test-data/handlers/coffeescript-page.coffee +8 -0
  101. data/spec/test-data/handlers/erb-page.html.erb +6 -0
  102. data/spec/test-data/handlers/erb-page.xml.erb +2 -0
  103. data/spec/test-data/handlers/erb-utf-page.html.erb +2 -0
  104. data/spec/test-data/handlers/haml-layout-two.html.haml +7 -0
  105. data/spec/test-data/handlers/haml-layout.html.haml +4 -0
  106. data/spec/test-data/handlers/haml-page.atom.haml +4 -0
  107. data/spec/test-data/handlers/haml-page.html.haml +2 -0
  108. data/spec/test-data/handlers/haml-page.xml.haml +1 -0
  109. data/spec/test-data/handlers/haml-with-markdown-page.html.haml +6 -0
  110. data/spec/test-data/handlers/haml-with-textile-page.html.haml +6 -0
  111. data/spec/test-data/handlers/haml-with-utf.html.haml +2 -0
  112. data/spec/test-data/handlers/haml-with-variables.html.haml +2 -0
  113. data/spec/test-data/handlers/inner-page.html.haml +4 -0
  114. data/spec/test-data/handlers/javascript-page.js +1 -0
  115. data/spec/test-data/handlers/less-page-include.less +1 -0
  116. data/spec/test-data/handlers/less-page-with-import.less +4 -0
  117. data/spec/test-data/handlers/less-page.less +4 -0
  118. data/spec/test-data/handlers/markdown-page.markdown +2 -0
  119. data/spec/test-data/handlers/markdown-page.md +2 -0
  120. data/spec/test-data/handlers/markdown-page.mkd +2 -0
  121. data/spec/test-data/handlers/mustache-page.html.mustache +2 -0
  122. data/spec/test-data/handlers/mustache-page.xml.mustache +1 -0
  123. data/spec/test-data/handlers/orgmode-page.org +6 -0
  124. data/spec/test-data/handlers/outer-layout.html.haml +2 -0
  125. data/spec/test-data/handlers/outside_relative/git_keep +3 -0
  126. data/spec/test-data/handlers/redirect-page.redirect +1 -0
  127. data/spec/test-data/handlers/restructuredtext-page.rst +8 -0
  128. data/spec/test-data/handlers/sass-page-include.sass +1 -0
  129. data/spec/test-data/handlers/sass-page.sass +4 -0
  130. data/spec/test-data/handlers/scss-page-include.scss +1 -0
  131. data/spec/test-data/handlers/scss-page.scss +5 -0
  132. data/spec/test-data/handlers/simple-redirect-page.redirect +1 -0
  133. data/spec/test-data/handlers/slim-page.atom.slim +4 -0
  134. data/spec/test-data/handlers/slim-page.html.slim +1 -0
  135. data/spec/test-data/handlers/slim-page.xml.slim +1 -0
  136. data/spec/test-data/handlers/slim-with-markdown-page.html.slim +5 -0
  137. data/spec/test-data/handlers/slim-with-utf.html.slim +2 -0
  138. data/spec/test-data/handlers/slim-with-variables.html.slim +1 -0
  139. data/spec/test-data/handlers/textile-page.textile +1 -0
  140. data/spec/test-data/images/logo.png +0 -0
  141. data/spec/test-data/index.html +242 -0
  142. data/spec/test-data/javascript/bootstrap-dropdown.js +92 -0
  143. data/spec/test-data/out-of-site/page-three.html.haml +2 -0
  144. data/spec/test-data/page-loader/_layouts/layout-one.md +2 -0
  145. data/spec/test-data/page-loader/_layouts/layout-two.html.haml +2 -0
  146. data/spec/test-data/page-loader/page-draft.md +5 -0
  147. data/spec/test-data/page-loader/page-one.md +2 -0
  148. data/spec/test-data/page-loader/page-two.html.haml +2 -0
  149. data/spec/test-data/simple-data.yaml +1 -0
  150. data/spec/test-data/simple-file.txt +1 -0
  151. data/spec/test-data/stylesheets/screen.css +688 -0
  152. data/spec/textile_handler_spec.rb +22 -0
  153. data/spec/tilt_handler_spec.rb +81 -0
  154. data/spec/yaml_handler_spec.rb +21 -0
  155. metadata +243 -202
  156. data/lib/awestruct/handlers/asciidoc_handler.rb +0 -86
  157. data/lib/awestruct/handlers/base_sass_handler.rb +0 -42
  158. data/lib/awestruct/handlers/coffeescript_handler.rb +0 -48
  159. data/lib/awestruct/handlers/erb_handler.rb +0 -43
  160. data/lib/awestruct/handlers/haml_handler.rb +0 -54
  161. data/lib/awestruct/handlers/less_handler.rb +0 -37
  162. data/lib/awestruct/handlers/markdown_handler.rb +0 -50
  163. data/lib/awestruct/handlers/mustache_handler.rb +0 -44
  164. data/lib/awestruct/handlers/orgmode_handler.rb +0 -48
  165. data/lib/awestruct/handlers/sass_handler.rb +0 -21
  166. data/lib/awestruct/handlers/scss_handler.rb +0 -21
  167. data/lib/awestruct/handlers/textile_handler.rb +0 -58
@@ -0,0 +1,22 @@
1
+ require 'spec_helper'
2
+
3
+ verify = lambda { |output|
4
+ output.should == "<h3>Test</h3>"
5
+ }
6
+
7
+ theories =
8
+ [
9
+ {
10
+ :page => "textile-page.textile",
11
+ :simple_name => "textile-page",
12
+ :syntax => :textile,
13
+ :extension => '.html',
14
+ :matcher => verify
15
+ }
16
+ ]
17
+
18
+ describe Awestruct::Handlers::TiltHandler.to_s + "-Textile" do
19
+
20
+ it_should_behave_like "a handler", theories
21
+
22
+ end
@@ -0,0 +1,81 @@
1
+
2
+ require 'awestruct/config'
3
+ require 'awestruct/handlers/file_handler'
4
+ require 'awestruct/handlers/tilt_handler'
5
+
6
+ require 'hashery/open_cascade'
7
+
8
+ describe Awestruct::Handlers::TiltHandler do
9
+
10
+ before do
11
+ dir = Pathname.new( File.dirname(__FILE__) + '/test-data/handlers' )
12
+
13
+ @site = OpenCascade.new :encoding=>false,
14
+ :dir=>dir,
15
+ :config=>Awestruct::Config.new( dir )
16
+ end
17
+
18
+ def handler_file(path)
19
+ "#{@site.config.dir}/#{path}"
20
+ end
21
+
22
+ def create_context
23
+ OpenCascade.new :site=>@site
24
+ end
25
+
26
+ it "should provide default configuration options from site based on output_extension" do
27
+ @site.asciidoc.property = 'test'
28
+
29
+ file_handler = Awestruct::Handlers::FileHandler.new( @site, handler_file( "asciidoc-page.asciidoc" ) )
30
+ handler = Awestruct::Handlers::TiltHandler.new( @site, file_handler )
31
+
32
+ handler.options[:property].should == 'test'
33
+ end
34
+
35
+ it "should provide default configuration options from site based on engine" do
36
+ @site.asciidoctor.property = 'test'
37
+
38
+ file_handler = Awestruct::Handlers::FileHandler.new( @site, handler_file( "asciidoc-page.asciidoc" ) )
39
+ handler = Awestruct::Handlers::TiltHandler.new( @site, file_handler )
40
+
41
+ handler.options[:property].should == 'test'
42
+ end
43
+
44
+ it "should override engine configuration options over output_extension" do
45
+ @site.asciidoctor.property = 'test'
46
+ @site.asciidoc.property = 'test1'
47
+
48
+ file_handler = Awestruct::Handlers::FileHandler.new( @site, handler_file( "asciidoc-page.asciidoc" ) )
49
+ handler = Awestruct::Handlers::TiltHandler.new( @site, file_handler )
50
+
51
+ handler.options[:property].should == 'test1'
52
+ end
53
+
54
+ it "should handle pages with no relative_source_path" do
55
+ ## force relative_source_path.nil
56
+ @site.dir = Pathname.new( File.dirname(__FILE__) + '/test-data/handlers/outside_relative' )
57
+ file_handler = Awestruct::Handlers::FileHandler.new( @site, handler_file( "asciidoc-page.asciidoc" ) )
58
+ handler = Awestruct::Handlers::TiltHandler.new( @site, file_handler )
59
+
60
+ handler.relative_source_path.should be_nil
61
+ handler.simple_name.should == 'asciidoc-page'
62
+ handler.content_syntax.should == :asciidoc
63
+ handler.output_extension.should == '.html'
64
+ handler.input_extension.should == '.asciidoc'
65
+ handler.output_filename.should == 'asciidoc-page.html'
66
+ end
67
+
68
+ it "should handle non extension dots in source name" do
69
+ @site.dir = Pathname.new( File.dirname(__FILE__) + '/test-data/handlers/outside_relative' )
70
+ file_handler = Awestruct::Handlers::FileHandler.new( @site, handler_file( "warp-1.0.0.Alpha2.textile" ) )
71
+ handler = Awestruct::Handlers::TiltHandler.new( @site, file_handler )
72
+
73
+ handler.relative_source_path.should be_nil
74
+ handler.simple_name.should == 'warp-1.0.0.Alpha2'
75
+ handler.content_syntax.should == :textile
76
+ handler.output_extension.should == '.html'
77
+ handler.input_extension.should == '.textile'
78
+ handler.output_filename.should == 'warp-1.0.0.Alpha2.html'
79
+
80
+ end
81
+ end
@@ -0,0 +1,21 @@
1
+
2
+ require 'hashery/open_cascade'
3
+ require 'awestruct/handlers/file_handler'
4
+ require 'awestruct/handlers/yaml_handler'
5
+
6
+ describe Awestruct::Handlers::YamlHandler do
7
+
8
+ before :all do
9
+ @site = OpenCascade.new :encoding=>false
10
+ end
11
+
12
+ it "should provide access to the yaml as front-matter" do
13
+ filename = Pathname.new( File.dirname(__FILE__) + "/test-data/simple-data.yaml" )
14
+ file_handler = Awestruct::Handlers::FileHandler.new( @site, filename )
15
+ handler = Awestruct::Handlers::YamlHandler.new( @site, file_handler )
16
+ handler.raw_content.should be_nil
17
+ handler.front_matter['taco'].should == 'deluxe'
18
+ end
19
+
20
+ end
21
+
metadata CHANGED
@@ -1,258 +1,192 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awestruct
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.8
5
- prerelease:
4
+ version: 0.5.0.cr
5
+ prerelease: 6
6
6
  platform: ruby
7
7
  authors:
8
- - Bob McWhirter
8
+ - Bob McWhirter and other contributors
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-09 00:00:00.000000000Z
12
+ date: 2013-03-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: hpricot
16
- requirement: &70126311958440 !ruby/object:Gem::Requirement
15
+ name: nokogiri
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 0.8.6
21
+ version: 1.5.6
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70126311958440
25
- - !ruby/object:Gem::Dependency
26
- name: asciidoctor
27
- requirement: &70126311957660 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
28
25
  none: false
29
26
  requirements:
30
- - - ! '>='
27
+ - - ~>
31
28
  - !ruby/object:Gem::Version
32
- version: 0.0.7
33
- type: :runtime
34
- prerelease: false
35
- version_requirements: *70126311957660
29
+ version: 1.5.6
36
30
  - !ruby/object:Gem::Dependency
37
- name: haml
38
- requirement: &70126311956440 !ruby/object:Gem::Requirement
31
+ name: tilt
32
+ requirement: !ruby/object:Gem::Requirement
39
33
  none: false
40
34
  requirements:
41
35
  - - ~>
42
36
  - !ruby/object:Gem::Version
43
- version: 3.1.4
37
+ version: 1.3.4
44
38
  type: :runtime
45
39
  prerelease: false
46
- version_requirements: *70126311956440
47
- - !ruby/object:Gem::Dependency
48
- name: sass
49
- requirement: &70126311955400 !ruby/object:Gem::Requirement
40
+ version_requirements: !ruby/object:Gem::Requirement
50
41
  none: false
51
42
  requirements:
52
43
  - - ~>
53
44
  - !ruby/object:Gem::Version
54
- version: 3.1.15
55
- type: :runtime
56
- prerelease: false
57
- version_requirements: *70126311955400
45
+ version: 1.3.4
58
46
  - !ruby/object:Gem::Dependency
59
- name: less
60
- requirement: &70126311954680 !ruby/object:Gem::Requirement
47
+ name: compass
48
+ requirement: !ruby/object:Gem::Requirement
61
49
  none: false
62
50
  requirements:
63
51
  - - ~>
64
52
  - !ruby/object:Gem::Version
65
- version: 2.2.2
53
+ version: 0.12.1
66
54
  type: :runtime
67
55
  prerelease: false
68
- version_requirements: *70126311954680
69
- - !ruby/object:Gem::Dependency
70
- name: mustache
71
- requirement: &70126311953820 !ruby/object:Gem::Requirement
56
+ version_requirements: !ruby/object:Gem::Requirement
72
57
  none: false
73
58
  requirements:
74
59
  - - ~>
75
60
  - !ruby/object:Gem::Version
76
- version: 0.99.4
77
- type: :runtime
78
- prerelease: false
79
- version_requirements: *70126311953820
61
+ version: 0.12.1
80
62
  - !ruby/object:Gem::Dependency
81
- name: rdiscount
82
- requirement: &70126311946460 !ruby/object:Gem::Requirement
63
+ name: compass-960-plugin
64
+ requirement: !ruby/object:Gem::Requirement
83
65
  none: false
84
66
  requirements:
85
67
  - - ~>
86
68
  - !ruby/object:Gem::Version
87
- version: 1.6.8
69
+ version: 0.10.4
88
70
  type: :runtime
89
71
  prerelease: false
90
- version_requirements: *70126311946460
91
- - !ruby/object:Gem::Dependency
92
- name: RedCloth
93
- requirement: &70126311945620 !ruby/object:Gem::Requirement
72
+ version_requirements: !ruby/object:Gem::Requirement
94
73
  none: false
95
74
  requirements:
96
75
  - - ~>
97
76
  - !ruby/object:Gem::Version
98
- version: 4.2.9
99
- type: :runtime
100
- prerelease: false
101
- version_requirements: *70126311945620
77
+ version: 0.10.4
102
78
  - !ruby/object:Gem::Dependency
103
- name: coffee-script
104
- requirement: &70126311944660 !ruby/object:Gem::Requirement
79
+ name: bootstrap-sass
80
+ requirement: !ruby/object:Gem::Requirement
105
81
  none: false
106
82
  requirements:
107
83
  - - ~>
108
84
  - !ruby/object:Gem::Version
109
- version: 2.2.0
85
+ version: 2.3.0.1
110
86
  type: :runtime
111
87
  prerelease: false
112
- version_requirements: *70126311944660
113
- - !ruby/object:Gem::Dependency
114
- name: nokogiri
115
- requirement: &70126311943280 !ruby/object:Gem::Requirement
88
+ version_requirements: !ruby/object:Gem::Requirement
116
89
  none: false
117
90
  requirements:
118
91
  - - ~>
119
92
  - !ruby/object:Gem::Version
120
- version: 1.5.2
121
- type: :runtime
122
- prerelease: false
123
- version_requirements: *70126311943280
93
+ version: 2.3.0.1
124
94
  - !ruby/object:Gem::Dependency
125
- name: compass
126
- requirement: &70126311942440 !ruby/object:Gem::Requirement
95
+ name: json
96
+ requirement: !ruby/object:Gem::Requirement
127
97
  none: false
128
98
  requirements:
129
99
  - - ~>
130
100
  - !ruby/object:Gem::Version
131
- version: 0.12.1
101
+ version: 1.7.7
132
102
  type: :runtime
133
103
  prerelease: false
134
- version_requirements: *70126311942440
135
- - !ruby/object:Gem::Dependency
136
- name: compass-960-plugin
137
- requirement: &70126311941400 !ruby/object:Gem::Requirement
104
+ version_requirements: !ruby/object:Gem::Requirement
138
105
  none: false
139
106
  requirements:
140
107
  - - ~>
141
108
  - !ruby/object:Gem::Version
142
- version: 0.10.4
143
- type: :runtime
144
- prerelease: false
145
- version_requirements: *70126311941400
109
+ version: 1.7.7
146
110
  - !ruby/object:Gem::Dependency
147
- name: bootstrap-sass
148
- requirement: &70126311940720 !ruby/object:Gem::Requirement
111
+ name: rest-client
112
+ requirement: !ruby/object:Gem::Requirement
149
113
  none: false
150
114
  requirements:
151
115
  - - ~>
152
116
  - !ruby/object:Gem::Version
153
- version: 2.1.0.0
117
+ version: 1.6.7
154
118
  type: :runtime
155
119
  prerelease: false
156
- version_requirements: *70126311940720
157
- - !ruby/object:Gem::Dependency
158
- name: org-ruby
159
- requirement: &70126311939820 !ruby/object:Gem::Requirement
120
+ version_requirements: !ruby/object:Gem::Requirement
160
121
  none: false
161
122
  requirements:
162
123
  - - ~>
163
124
  - !ruby/object:Gem::Version
164
- version: 0.5.3
165
- type: :runtime
166
- prerelease: false
167
- version_requirements: *70126311939820
125
+ version: 1.6.7
168
126
  - !ruby/object:Gem::Dependency
169
- name: json
170
- requirement: &70126311939200 !ruby/object:Gem::Requirement
127
+ name: git
128
+ requirement: !ruby/object:Gem::Requirement
171
129
  none: false
172
130
  requirements:
173
131
  - - ~>
174
132
  - !ruby/object:Gem::Version
175
- version: 1.6.6
133
+ version: 1.2.5
176
134
  type: :runtime
177
135
  prerelease: false
178
- version_requirements: *70126311939200
179
- - !ruby/object:Gem::Dependency
180
- name: rest-client
181
- requirement: &70126311938400 !ruby/object:Gem::Requirement
136
+ version_requirements: !ruby/object:Gem::Requirement
182
137
  none: false
183
138
  requirements:
184
139
  - - ~>
185
140
  - !ruby/object:Gem::Version
186
- version: 1.6.7
187
- type: :runtime
188
- prerelease: false
189
- version_requirements: *70126311938400
141
+ version: 1.2.5
190
142
  - !ruby/object:Gem::Dependency
191
- name: git
192
- requirement: &70126311937000 !ruby/object:Gem::Requirement
143
+ name: ruby-s3cmd
144
+ requirement: !ruby/object:Gem::Requirement
193
145
  none: false
194
146
  requirements:
195
147
  - - ~>
196
148
  - !ruby/object:Gem::Version
197
- version: 1.2.5
149
+ version: 0.1.5
198
150
  type: :runtime
199
151
  prerelease: false
200
- version_requirements: *70126311937000
201
- - !ruby/object:Gem::Dependency
202
- name: htmlcompressor
203
- requirement: &70126311936220 !ruby/object:Gem::Requirement
152
+ version_requirements: !ruby/object:Gem::Requirement
204
153
  none: false
205
154
  requirements:
206
155
  - - ~>
207
156
  - !ruby/object:Gem::Version
208
- version: 0.0.3
209
- type: :runtime
210
- prerelease: false
211
- version_requirements: *70126311936220
157
+ version: 0.1.5
212
158
  - !ruby/object:Gem::Dependency
213
- name: yui-compressor
214
- requirement: &70126311935360 !ruby/object:Gem::Requirement
159
+ name: listen
160
+ requirement: !ruby/object:Gem::Requirement
215
161
  none: false
216
162
  requirements:
217
163
  - - ~>
218
164
  - !ruby/object:Gem::Version
219
- version: 0.9.4
165
+ version: 0.5.0
220
166
  type: :runtime
221
167
  prerelease: false
222
- version_requirements: *70126311935360
223
- - !ruby/object:Gem::Dependency
224
- name: listen
225
- requirement: &70126311934460 !ruby/object:Gem::Requirement
168
+ version_requirements: !ruby/object:Gem::Requirement
226
169
  none: false
227
170
  requirements:
228
171
  - - ~>
229
172
  - !ruby/object:Gem::Version
230
173
  version: 0.5.0
231
- type: :runtime
232
- prerelease: false
233
- version_requirements: *70126311934460
234
174
  - !ruby/object:Gem::Dependency
235
- name: thin
236
- requirement: &70126311933840 !ruby/object:Gem::Requirement
175
+ name: rack
176
+ requirement: !ruby/object:Gem::Requirement
237
177
  none: false
238
178
  requirements:
239
179
  - - ~>
240
180
  - !ruby/object:Gem::Version
241
- version: 1.4.1
181
+ version: 1.5.2
242
182
  type: :runtime
243
183
  prerelease: false
244
- version_requirements: *70126311933840
245
- - !ruby/object:Gem::Dependency
246
- name: eventmachine
247
- requirement: &70126311933260 !ruby/object:Gem::Requirement
184
+ version_requirements: !ruby/object:Gem::Requirement
248
185
  none: false
249
186
  requirements:
250
187
  - - ~>
251
188
  - !ruby/object:Gem::Version
252
- version: 1.0.0.rc.4
253
- type: :runtime
254
- prerelease: false
255
- version_requirements: *70126311933260
189
+ version: 1.5.2
256
190
  description: Awestruct is a framework for creating static HTML sites.
257
191
  email: bob@mcwhirter.org
258
192
  executables:
@@ -260,93 +194,198 @@ executables:
260
194
  extensions: []
261
195
  extra_rdoc_files: []
262
196
  files:
263
- - lib/awestruct/astruct.rb
264
- - lib/awestruct/astruct_mixin.rb
265
- - lib/awestruct/cli/auto.rb
266
- - lib/awestruct/cli/deploy.rb
267
- - lib/awestruct/cli/generate.rb
268
- - lib/awestruct/cli/init.rb
269
- - lib/awestruct/cli/invoker.rb
270
- - lib/awestruct/cli/manifest.rb
271
- - lib/awestruct/cli/options.rb
272
- - lib/awestruct/cli/server.rb
197
+ - lib/awestruct/layouts.rb
273
198
  - lib/awestruct/config.rb
199
+ - lib/awestruct/handler_chains.rb
274
200
  - lib/awestruct/context.rb
275
- - lib/awestruct/context_helper.rb
276
- - lib/awestruct/dependencies.rb
201
+ - lib/awestruct/frameworks/base_pipeline.rb
202
+ - lib/awestruct/rack/app.rb
203
+ - lib/awestruct/astruct.rb
204
+ - lib/awestruct/pipeline.rb
277
205
  - lib/awestruct/deploy/base_deploy.rb
206
+ - lib/awestruct/deploy/s3_deploy.rb
278
207
  - lib/awestruct/deploy/github_pages_deploy.rb
279
208
  - lib/awestruct/deploy/rsync_deploy.rb
280
- - lib/awestruct/deploy/s3_deploy.rb
209
+ - lib/awestruct/context_helper.rb
210
+ - lib/awestruct/handlers/base_handler.rb
211
+ - lib/awestruct/handlers/page_delegating_handler.rb
212
+ - lib/awestruct/handlers/string_handler.rb
213
+ - lib/awestruct/handlers/interpolation_handler.rb
214
+ - lib/awestruct/handlers/restructuredtext_handler.rb
215
+ - lib/awestruct/handlers/no_op_handler.rb
216
+ - lib/awestruct/handlers/tilt_handler.rb
217
+ - lib/awestruct/handlers/javascript_handler.rb
218
+ - lib/awestruct/handlers/layout_handler.rb
219
+ - lib/awestruct/handlers/asciidoctor_handler.rb
220
+ - lib/awestruct/handlers/template/mustache.rb
221
+ - lib/awestruct/handlers/template/asciidoc.rb
222
+ - lib/awestruct/handlers/front_matter_handler.rb
223
+ - lib/awestruct/handlers/yaml_handler.rb
224
+ - lib/awestruct/handlers/css_tilt_handler.rb
225
+ - lib/awestruct/handlers/file_handler.rb
226
+ - lib/awestruct/handlers/redirect_handler.rb
227
+ - lib/awestruct/handlers/base_tilt_handler.rb
228
+ - lib/awestruct/util/default_inflections.rb
229
+ - lib/awestruct/util/inflector.rb
230
+ - lib/awestruct/site.rb
281
231
  - lib/awestruct/deployers.rb
282
- - lib/awestruct/engine.rb
283
- - lib/awestruct/extensions/assets.rb
232
+ - lib/awestruct/astruct_mixin.rb
233
+ - lib/awestruct/version.rb
234
+ - lib/awestruct/page_loader.rb
235
+ - lib/awestruct/handler_chain.rb
236
+ - lib/awestruct/cli/options.rb
237
+ - lib/awestruct/cli/auto.rb
238
+ - lib/awestruct/cli/invoker.rb
239
+ - lib/awestruct/cli/generate.rb
240
+ - lib/awestruct/cli/init.rb
241
+ - lib/awestruct/cli/server.rb
242
+ - lib/awestruct/cli/deploy.rb
243
+ - lib/awestruct/cli/manifest.rb
244
+ - lib/awestruct/extensions/posts.rb
245
+ - lib/awestruct/extensions/google_analytics.rb
284
246
  - lib/awestruct/extensions/atomizer.rb
247
+ - lib/awestruct/extensions/pipeline.rb
248
+ - lib/awestruct/extensions/indexifier.rb
249
+ - lib/awestruct/extensions/data_dir.rb
250
+ - lib/awestruct/extensions/tag_cloud.rb
285
251
  - lib/awestruct/extensions/cachebuster.rb
252
+ - lib/awestruct/extensions/relative.rb
253
+ - lib/awestruct/extensions/flattr.rb
286
254
  - lib/awestruct/extensions/coffeescripttransform.rb
287
- - lib/awestruct/extensions/data_dir.rb
288
- - lib/awestruct/extensions/disqus.rb
289
255
  - lib/awestruct/extensions/extend_string.rb
290
- - lib/awestruct/extensions/flattr.rb
291
- - lib/awestruct/extensions/google_analytics.rb
256
+ - lib/awestruct/extensions/assets.rb
257
+ - lib/awestruct/extensions/paginator.rb
292
258
  - lib/awestruct/extensions/gsub.rb
293
- - lib/awestruct/extensions/indexifier.rb
294
259
  - lib/awestruct/extensions/intense_debate.rb
295
- - lib/awestruct/extensions/minify.rb
296
- - lib/awestruct/extensions/obfuscate.rb
297
- - lib/awestruct/extensions/paginator.rb
260
+ - lib/awestruct/extensions/tagger.rb
261
+ - lib/awestruct/extensions/disqus.rb
298
262
  - lib/awestruct/extensions/partial.rb
299
- - lib/awestruct/extensions/pipeline.rb
300
- - lib/awestruct/extensions/posts.rb
301
- - lib/awestruct/extensions/relative.rb
302
- - lib/awestruct/extensions/remotePartial.rb
303
263
  - lib/awestruct/extensions/sitemap.rb
304
- - lib/awestruct/extensions/tag_cloud.rb
305
- - lib/awestruct/extensions/tagger.rb
306
- - lib/awestruct/frameworks/base_pipeline.rb
307
- - lib/awestruct/handler_chain.rb
308
- - lib/awestruct/handler_chains.rb
309
- - lib/awestruct/handlers/asciidoc_handler.rb
310
- - lib/awestruct/handlers/base_handler.rb
311
- - lib/awestruct/handlers/base_sass_handler.rb
312
- - lib/awestruct/handlers/coffeescript_handler.rb
313
- - lib/awestruct/handlers/erb_handler.rb
314
- - lib/awestruct/handlers/file_handler.rb
315
- - lib/awestruct/handlers/front_matter_handler.rb
316
- - lib/awestruct/handlers/haml_handler.rb
317
- - lib/awestruct/handlers/interpolation_handler.rb
318
- - lib/awestruct/handlers/javascript_handler.rb
319
- - lib/awestruct/handlers/layout_handler.rb
320
- - lib/awestruct/handlers/less_handler.rb
321
- - lib/awestruct/handlers/markdown_handler.rb
322
- - lib/awestruct/handlers/mustache_handler.rb
323
- - lib/awestruct/handlers/no_op_handler.rb
324
- - lib/awestruct/handlers/orgmode_handler.rb
325
- - lib/awestruct/handlers/page_delegating_handler.rb
326
- - lib/awestruct/handlers/redirect_handler.rb
327
- - lib/awestruct/handlers/restructuredtext_handler.rb
328
- - lib/awestruct/handlers/sass_handler.rb
329
- - lib/awestruct/handlers/scss_handler.rb
330
- - lib/awestruct/handlers/string_handler.rb
331
- - lib/awestruct/handlers/textile_handler.rb
332
- - lib/awestruct/handlers/yaml_handler.rb
333
- - lib/awestruct/layouts.rb
264
+ - lib/awestruct/extensions/obfuscate.rb
265
+ - lib/awestruct/extensions/remotePartial.rb
266
+ - lib/awestruct/extensions/minify.rb
334
267
  - lib/awestruct/page.rb
335
- - lib/awestruct/page_loader.rb
336
- - lib/awestruct/pipeline.rb
337
- - lib/awestruct/rack/app.rb
338
- - lib/awestruct/site.rb
339
- - lib/awestruct/util/default_inflections.rb
340
- - lib/awestruct/util/inflector.rb
341
- - lib/awestruct/version.rb
342
- - lib/awestruct/extensions/sitemap.xml.haml
343
- - lib/awestruct/extensions/tag_cloud.html.haml
344
- - lib/awestruct/extensions/template.atom.haml
268
+ - lib/awestruct/dependencies.rb
269
+ - lib/awestruct/logger.rb
270
+ - lib/awestruct/engine.rb
345
271
  - lib/awestruct/frameworks/960/base_layout.html.haml
346
272
  - lib/awestruct/frameworks/base_index.html.haml
347
- - lib/awestruct/frameworks/blueprint/base_layout.html.haml
348
- - lib/awestruct/frameworks/bootstrap/base_index.html.haml
349
273
  - lib/awestruct/frameworks/bootstrap/base_layout.html.haml
274
+ - lib/awestruct/frameworks/bootstrap/base_index.html.haml
275
+ - lib/awestruct/frameworks/blueprint/base_layout.html.haml
276
+ - lib/awestruct/extensions/tag_cloud.html.haml
277
+ - lib/awestruct/extensions/template.atom.haml
278
+ - lib/awestruct/extensions/sitemap.xml.haml
279
+ - lib/awestruct/config/default-site.yml
280
+ - spec/yaml_handler_spec.rb
281
+ - spec/mustache_handler_spec.rb
282
+ - spec/options_spec.rb
283
+ - spec/posts_archive_spec.rb
284
+ - spec/front_matter_handler_spec.rb
285
+ - spec/orgmode_handler_spec.rb
286
+ - spec/support/shared_handler_example.rb
287
+ - spec/support/nokogiri_matchers.rb
288
+ - spec/astruct_spec.rb
289
+ - spec/engine_spec.rb
290
+ - spec/restructuredtext_handler_spec.rb
291
+ - spec/rsync_deploy_spec.rb
292
+ - spec/coffeescript_handler_spec.rb
293
+ - spec/pipeline_spec.rb
294
+ - spec/page_loader_spec.rb
295
+ - spec/tilt_handler_spec.rb
296
+ - spec/config_spec.rb
297
+ - spec/scss_handler_spec.rb
298
+ - spec/page_delegating_handler_spec.rb
299
+ - spec/test-data/page-loader/page-two.html.haml
300
+ - spec/test-data/page-loader/page-one.md
301
+ - spec/test-data/page-loader/page-draft.md
302
+ - spec/test-data/page-loader/_layouts/layout-one.md
303
+ - spec/test-data/page-loader/_layouts/layout-two.html.haml
304
+ - spec/test-data/engine/_config/site.yml
305
+ - spec/test-data/engine/_config/other.yml
306
+ - spec/test-data/engine/_config/arbitrary.yml
307
+ - spec/test-data/front-matter-file-no-front.txt
308
+ - spec/test-data/stylesheets/screen.css
309
+ - spec/test-data/out-of-site/page-three.html.haml
310
+ - spec/test-data/handlers/scss-page-include.scss
311
+ - spec/test-data/handlers/haml-layout-two.html.haml
312
+ - spec/test-data/handlers/haml-page.xml.haml
313
+ - spec/test-data/handlers/markdown-page.mkd
314
+ - spec/test-data/handlers/outside_relative/git_keep
315
+ - spec/test-data/handlers/asciidoctor_with_front_matter.ad
316
+ - spec/test-data/handlers/slim-page.html.slim
317
+ - spec/test-data/handlers/mustache-page.html.mustache
318
+ - spec/test-data/handlers/haml-page.atom.haml
319
+ - spec/test-data/handlers/scss-page.scss
320
+ - spec/test-data/handlers/markdown-page.markdown
321
+ - spec/test-data/handlers/less-page-with-import.less
322
+ - spec/test-data/handlers/asciidoc-page.adoc
323
+ - spec/test-data/handlers/slim-page.xml.slim
324
+ - spec/test-data/handlers/asciidoc-page.ad
325
+ - spec/test-data/handlers/haml-with-textile-page.html.haml
326
+ - spec/test-data/handlers/inner-page.html.haml
327
+ - spec/test-data/handlers/mustache-page.xml.mustache
328
+ - spec/test-data/handlers/haml-with-variables.html.haml
329
+ - spec/test-data/handlers/asciidoc-page.asciidoc
330
+ - spec/test-data/handlers/sass-page-include.sass
331
+ - spec/test-data/handlers/haml-page.html.haml
332
+ - spec/test-data/handlers/slim-page.atom.slim
333
+ - spec/test-data/handlers/haml-with-markdown-page.html.haml
334
+ - spec/test-data/handlers/asciidoctor_with_headers.ad
335
+ - spec/test-data/handlers/restructuredtext-page.rst
336
+ - spec/test-data/handlers/javascript-page.js
337
+ - spec/test-data/handlers/slim-with-variables.html.slim
338
+ - spec/test-data/handlers/slim-with-markdown-page.html.slim
339
+ - spec/test-data/handlers/haml-with-utf.html.haml
340
+ - spec/test-data/handlers/less-page-include.less
341
+ - spec/test-data/handlers/slim-with-utf.html.slim
342
+ - spec/test-data/handlers/less-page.less
343
+ - spec/test-data/handlers/redirect-page.redirect
344
+ - spec/test-data/handlers/markdown-page.md
345
+ - spec/test-data/handlers/erb-page.html.erb
346
+ - spec/test-data/handlers/orgmode-page.org
347
+ - spec/test-data/handlers/outer-layout.html.haml
348
+ - spec/test-data/handlers/textile-page.textile
349
+ - spec/test-data/handlers/coffeescript-page.coffee
350
+ - spec/test-data/handlers/erb-utf-page.html.erb
351
+ - spec/test-data/handlers/simple-redirect-page.redirect
352
+ - spec/test-data/handlers/erb-page.xml.erb
353
+ - spec/test-data/handlers/haml-layout.html.haml
354
+ - spec/test-data/handlers/sass-page.sass
355
+ - spec/test-data/images/logo.png
356
+ - spec/test-data/front-matter-file-no-content.txt
357
+ - spec/test-data/simple-file.txt
358
+ - spec/test-data/index.html
359
+ - spec/test-data/simple-data.yaml
360
+ - spec/test-data/front-matter-file.txt
361
+ - spec/test-data/javascript/bootstrap-dropdown.js
362
+ - spec/file_handler_spec.rb
363
+ - spec/interpolation_handler_spec.rb
364
+ - spec/page_loader_spec_for_layouts.rb
365
+ - spec/github_pages_deploy_spec.rb
366
+ - spec/context_helper_spec.rb
367
+ - spec/minify_spec.rb
368
+ - spec/sass_handler_spec.rb
369
+ - spec/disqus_spec.rb
370
+ - spec/textile_handler_spec.rb
371
+ - spec/redirect_handler_spec.rb
372
+ - spec/asciidoc_handler_spec.rb
373
+ - spec/handler_chains_spec.rb
374
+ - spec/slim_handler_spec.rb
375
+ - spec/handler_chain_spec.rb
376
+ - spec/javascript_handler_spec.rb
377
+ - spec/server_spec.rb
378
+ - spec/spec_helper.rb
379
+ - spec/erb_handler_spec.rb
380
+ - spec/page_spec.rb
381
+ - spec/less_handler_spec.rb
382
+ - spec/layout_handler_spec.rb
383
+ - spec/haml_handler_spec.rb
384
+ - spec/markdown_handler_spec.rb
385
+ - spec/layouts_spec.rb
386
+ - spec/invoker_spec.rb
387
+ - spec/deploy_spec.rb
388
+ - man/awestruct.1
350
389
  - bin/awestruct
351
390
  homepage: http://awestruct.org
352
391
  licenses: []
@@ -362,19 +401,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
362
401
  version: '0'
363
402
  segments:
364
403
  - 0
365
- hash: 319718676061817780
404
+ hash: 219941319770704534
366
405
  required_rubygems_version: !ruby/object:Gem::Requirement
367
406
  none: false
368
407
  requirements:
369
- - - ! '>='
408
+ - - ! '>'
370
409
  - !ruby/object:Gem::Version
371
- version: '0'
372
- segments:
373
- - 0
374
- hash: 319718676061817780
375
- requirements: []
410
+ version: 1.3.1
411
+ requirements:
412
+ - Any markup languages you are using and it's dependencies
413
+ - If LESS is used, or some other fixes within tilt, it is required to use Bundler
414
+ and the :git ref for the tilt gem
415
+ - Haml and markdown filters are touchy things. Rdiscount works well if you're running
416
+ on mri. jRuby should be using haml 4.0.0 with kramdown
376
417
  rubyforge_project:
377
- rubygems_version: 1.8.10
418
+ rubygems_version: 1.8.25
378
419
  signing_key:
379
420
  specification_version: 3
380
421
  summary: Static site-baking utility