staticmatic2 2.0.2 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. data/Gemfile +6 -3
  2. data/Gemfile.lock +10 -6
  3. data/{README.markdown → README.md} +24 -5
  4. data/Rakefile +4 -4
  5. data/VERSION.yml +2 -2
  6. data/bin/staticmatic +6 -4
  7. data/lib/staticmatic/ambiguous_template_error.rb +19 -0
  8. data/lib/staticmatic/base.rb +77 -52
  9. data/lib/staticmatic/configuration.rb +32 -9
  10. data/lib/staticmatic/helpers/assets_helper.rb +6 -5
  11. data/lib/staticmatic/helpers/current_path_helper.rb +4 -4
  12. data/lib/staticmatic/helpers/render_helper.rb +1 -12
  13. data/lib/staticmatic/helpers/tag_helper.rb +1 -1
  14. data/lib/staticmatic/mixins/build.rb +25 -61
  15. data/lib/staticmatic/mixins/render.rb +61 -103
  16. data/lib/staticmatic/mixins/rescue.rb +1 -1
  17. data/lib/staticmatic/server.rb +10 -29
  18. data/lib/staticmatic/templates/rescues/default.haml +1 -1
  19. data/lib/staticmatic.rb +2 -5
  20. data/spec/base_spec.rb +2 -2
  21. data/spec/compass_integration_spec.rb +3 -2
  22. data/spec/helpers/asset_helper_spec.rb +1 -3
  23. data/spec/helpers/custom_helper_spec.rb +1 -2
  24. data/spec/render_spec.rb +4 -4
  25. data/spec/rescue_spec.rb +3 -3
  26. data/spec/sandbox/test_site/site/sub_folder/another_sub_folder/index.html +1 -0
  27. data/spec/sandbox/test_site/site/sub_folder/another_sub_folder/index.html.html +1 -0
  28. data/spec/sandbox/test_site/site/sub_folder/index.html +1 -0
  29. data/spec/sandbox/test_site/src/{helpers → _helpers}/application_helper.rb +0 -0
  30. data/spec/sandbox/test_site/src/{layouts → _layouts}/alternate_layout.haml +0 -0
  31. data/spec/sandbox/test_site/src/{layouts → _layouts}/default.haml +0 -0
  32. data/spec/sandbox/test_site/src/{layouts → _layouts}/projects.haml +0 -0
  33. data/spec/sandbox/test_site/src/{partials → _partials}/menu.haml +0 -0
  34. data/spec/sandbox/test_site/src/{partials → _partials}/partial_with_error.haml +0 -0
  35. data/spec/sandbox/test_site/src/{pages/hello_world.erb → hello_world.erb} +0 -0
  36. data/spec/sandbox/test_site/src/{pages/index.haml → index.haml} +0 -0
  37. data/spec/sandbox/test_site/src/{pages/layout_test.haml → layout_test.haml} +0 -0
  38. data/spec/sandbox/test_site/src/{pages/page_one.haml → page_one.haml} +0 -0
  39. data/spec/sandbox/test_site/src/{pages/page_two.haml → page_two.haml} +0 -0
  40. data/spec/sandbox/test_site/src/{pages/page_with_error.haml → page_with_error.haml} +0 -0
  41. data/spec/sandbox/test_site/src/{pages/page_with_partial_error.haml → page_with_partial_error.haml} +0 -0
  42. data/spec/server_spec.rb +1 -1
  43. data/spec/spec_helper.rb +1 -1
  44. data/spec/template_error_spec.rb +3 -3
  45. data/staticmatic2.gemspec +43 -54
  46. metadata +72 -62
  47. data/spec/setup_spec.rb +0 -22
data/staticmatic2.gemspec CHANGED
@@ -4,33 +4,29 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{staticmatic2}
8
- s.version = "2.0.2"
7
+ s.name = "staticmatic2"
8
+ s.version = "2.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Stephen Bartholomew", "Gilbert B Garza"]
12
- s.date = %q{2011-03-14}
13
- s.default_executable = %q{staticmatic}
14
- s.description = %q{ StaticMatic helps you quickly create maintainable static websites using
15
- tools such as Haml and Sass.
16
-
17
- Quickly deploy to services such as Amazon S3 in a single command.
18
- }
19
- s.email = %q{gilbertbgarza@gmail.com}
12
+ s.date = "2011-09-27"
13
+ s.description = " StaticMatic helps you quickly create maintainable Amazon S3 static websites using\n tools such as Haml and Sass.\n \n Quickly deploy to services such as Amazon S3 in a single command.\n"
14
+ s.email = "gilbertbgarza@gmail.com"
20
15
  s.executables = ["staticmatic"]
21
16
  s.extra_rdoc_files = [
22
17
  "LICENSE",
23
- "README.markdown"
18
+ "README.md"
24
19
  ]
25
20
  s.files = [
26
21
  "Gemfile",
27
22
  "Gemfile.lock",
28
23
  "LICENSE",
29
- "README.markdown",
24
+ "README.md",
30
25
  "Rakefile",
31
26
  "VERSION.yml",
32
27
  "bin/staticmatic",
33
28
  "lib/staticmatic.rb",
29
+ "lib/staticmatic/ambiguous_template_error.rb",
34
30
  "lib/staticmatic/base.rb",
35
31
  "lib/staticmatic/compass.rb",
36
32
  "lib/staticmatic/compass/app_integration.rb",
@@ -65,26 +61,28 @@ Gem::Specification.new do |s|
65
61
  "spec/rescue_spec.rb",
66
62
  "spec/sandbox/test_site/config/compass.rb",
67
63
  "spec/sandbox/test_site/config/site.rb",
68
- "spec/sandbox/test_site/src/helpers/application_helper.rb",
69
- "spec/sandbox/test_site/src/layouts/alternate_layout.haml",
70
- "spec/sandbox/test_site/src/layouts/default.haml",
71
- "spec/sandbox/test_site/src/layouts/projects.haml",
72
- "spec/sandbox/test_site/src/pages/hello_world.erb",
73
- "spec/sandbox/test_site/src/pages/index.haml",
74
- "spec/sandbox/test_site/src/pages/layout_test.haml",
75
- "spec/sandbox/test_site/src/pages/page_one.haml",
76
- "spec/sandbox/test_site/src/pages/page_two.haml",
77
- "spec/sandbox/test_site/src/pages/page_with_error.haml",
78
- "spec/sandbox/test_site/src/pages/page_with_partial_error.haml",
79
- "spec/sandbox/test_site/src/partials/menu.haml",
80
- "spec/sandbox/test_site/src/partials/partial_with_error.haml",
64
+ "spec/sandbox/test_site/site/sub_folder/another_sub_folder/index.html",
65
+ "spec/sandbox/test_site/site/sub_folder/another_sub_folder/index.html.html",
66
+ "spec/sandbox/test_site/site/sub_folder/index.html",
67
+ "spec/sandbox/test_site/src/_helpers/application_helper.rb",
68
+ "spec/sandbox/test_site/src/_layouts/alternate_layout.haml",
69
+ "spec/sandbox/test_site/src/_layouts/default.haml",
70
+ "spec/sandbox/test_site/src/_layouts/projects.haml",
71
+ "spec/sandbox/test_site/src/_partials/menu.haml",
72
+ "spec/sandbox/test_site/src/_partials/partial_with_error.haml",
73
+ "spec/sandbox/test_site/src/hello_world.erb",
74
+ "spec/sandbox/test_site/src/index.haml",
75
+ "spec/sandbox/test_site/src/layout_test.haml",
76
+ "spec/sandbox/test_site/src/page_one.haml",
77
+ "spec/sandbox/test_site/src/page_two.haml",
78
+ "spec/sandbox/test_site/src/page_with_error.haml",
79
+ "spec/sandbox/test_site/src/page_with_partial_error.haml",
81
80
  "spec/sandbox/test_site/src/stylesheets/application.sass",
82
81
  "spec/sandbox/test_site/src/stylesheets/css_with_error.sass",
83
82
  "spec/sandbox/test_site/src/stylesheets/nested/a_nested_stylesheet.sass",
84
83
  "spec/sandbox/test_site/src/stylesheets/partials/_forms.sass",
85
84
  "spec/sandbox/test_site/src/stylesheets/sassy.scss",
86
85
  "spec/server_spec.rb",
87
- "spec/setup_spec.rb",
88
86
  "spec/spec_helper.rb",
89
87
  "spec/template_error_spec.rb",
90
88
  "staticmatic.gemspec",
@@ -117,58 +115,49 @@ Gem::Specification.new do |s|
117
115
  "website/src/stylesheets/print.scss",
118
116
  "website/src/stylesheets/screen.scss"
119
117
  ]
120
- s.homepage = %q{http://github.com/mindeavor/staticmatic}
118
+ s.homepage = "http://github.com/mindeavor/staticmatic2"
121
119
  s.licenses = ["MIT"]
122
120
  s.require_paths = ["lib"]
123
- s.rubyforge_project = %q{staticmatic2}
124
- s.rubygems_version = %q{1.6.1}
125
- s.summary = %q{Build static websites using modern dynamic tools}
126
- s.test_files = [
127
- "spec/base_spec.rb",
128
- "spec/compass_integration_spec.rb",
129
- "spec/helpers/asset_helper_spec.rb",
130
- "spec/helpers/custom_helper_spec.rb",
131
- "spec/render_spec.rb",
132
- "spec/rescue_spec.rb",
133
- "spec/sandbox/test_site/config/compass.rb",
134
- "spec/sandbox/test_site/config/site.rb",
135
- "spec/sandbox/test_site/src/helpers/application_helper.rb",
136
- "spec/server_spec.rb",
137
- "spec/setup_spec.rb",
138
- "spec/spec_helper.rb",
139
- "spec/template_error_spec.rb"
140
- ]
121
+ s.rubyforge_project = "staticmatic2"
122
+ s.rubygems_version = "1.8.10"
123
+ s.summary = "Build Amazon S3 static websites using modern dynamic tools"
141
124
 
142
125
  if s.respond_to? :specification_version then
143
126
  s.specification_version = 3
144
127
 
145
128
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
146
- s.add_runtime_dependency(%q<haml>, [">= 2.0.0"])
129
+ s.add_runtime_dependency(%q<haml>, ["~> 3"])
130
+ s.add_runtime_dependency(%q<sass>, ["~> 3"])
131
+ s.add_runtime_dependency(%q<tilt>, [">= 1.3"])
147
132
  s.add_runtime_dependency(%q<compass>, [">= 0"])
148
133
  s.add_runtime_dependency(%q<rack>, [">= 1.0"])
149
134
  s.add_runtime_dependency(%q<thor>, [">= 0.14.6"])
150
135
  s.add_runtime_dependency(%q<aws-s3>, [">= 0"])
151
- s.add_development_dependency(%q<bundler>, [">= 1.0.10"])
152
- s.add_development_dependency(%q<jeweler>, [">= 1.5.2"])
136
+ s.add_development_dependency(%q<bundler>, ["~> 1.0"])
137
+ s.add_development_dependency(%q<jeweler>, ["~> 1.6"])
153
138
  s.add_development_dependency(%q<rspec>, ["~> 1.3.1"])
154
139
  else
155
- s.add_dependency(%q<haml>, [">= 2.0.0"])
140
+ s.add_dependency(%q<haml>, ["~> 3"])
141
+ s.add_dependency(%q<sass>, ["~> 3"])
142
+ s.add_dependency(%q<tilt>, [">= 1.3"])
156
143
  s.add_dependency(%q<compass>, [">= 0"])
157
144
  s.add_dependency(%q<rack>, [">= 1.0"])
158
145
  s.add_dependency(%q<thor>, [">= 0.14.6"])
159
146
  s.add_dependency(%q<aws-s3>, [">= 0"])
160
- s.add_dependency(%q<bundler>, [">= 1.0.10"])
161
- s.add_dependency(%q<jeweler>, [">= 1.5.2"])
147
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
148
+ s.add_dependency(%q<jeweler>, ["~> 1.6"])
162
149
  s.add_dependency(%q<rspec>, ["~> 1.3.1"])
163
150
  end
164
151
  else
165
- s.add_dependency(%q<haml>, [">= 2.0.0"])
152
+ s.add_dependency(%q<haml>, ["~> 3"])
153
+ s.add_dependency(%q<sass>, ["~> 3"])
154
+ s.add_dependency(%q<tilt>, [">= 1.3"])
166
155
  s.add_dependency(%q<compass>, [">= 0"])
167
156
  s.add_dependency(%q<rack>, [">= 1.0"])
168
157
  s.add_dependency(%q<thor>, [">= 0.14.6"])
169
158
  s.add_dependency(%q<aws-s3>, [">= 0"])
170
- s.add_dependency(%q<bundler>, [">= 1.0.10"])
171
- s.add_dependency(%q<jeweler>, [">= 1.5.2"])
159
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
160
+ s.add_dependency(%q<jeweler>, ["~> 1.6"])
172
161
  s.add_dependency(%q<rspec>, ["~> 1.3.1"])
173
162
  end
174
163
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: staticmatic2
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,23 +10,44 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-03-14 00:00:00.000000000 -05:00
14
- default_executable: staticmatic
13
+ date: 2011-09-27 00:00:00.000000000Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: haml
18
- requirement: &2151852600 !ruby/object:Gem::Requirement
17
+ requirement: &2157824440 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ~>
21
+ - !ruby/object:Gem::Version
22
+ version: '3'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: *2157824440
26
+ - !ruby/object:Gem::Dependency
27
+ name: sass
28
+ requirement: &2157816860 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '3'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: *2157816860
37
+ - !ruby/object:Gem::Dependency
38
+ name: tilt
39
+ requirement: &2157812260 !ruby/object:Gem::Requirement
19
40
  none: false
20
41
  requirements:
21
42
  - - ! '>='
22
43
  - !ruby/object:Gem::Version
23
- version: 2.0.0
44
+ version: '1.3'
24
45
  type: :runtime
25
46
  prerelease: false
26
- version_requirements: *2151852600
47
+ version_requirements: *2157812260
27
48
  - !ruby/object:Gem::Dependency
28
49
  name: compass
29
- requirement: &2151833420 !ruby/object:Gem::Requirement
50
+ requirement: &2157799240 !ruby/object:Gem::Requirement
30
51
  none: false
31
52
  requirements:
32
53
  - - ! '>='
@@ -34,10 +55,10 @@ dependencies:
34
55
  version: '0'
35
56
  type: :runtime
36
57
  prerelease: false
37
- version_requirements: *2151833420
58
+ version_requirements: *2157799240
38
59
  - !ruby/object:Gem::Dependency
39
60
  name: rack
40
- requirement: &2151831020 !ruby/object:Gem::Requirement
61
+ requirement: &2157795280 !ruby/object:Gem::Requirement
41
62
  none: false
42
63
  requirements:
43
64
  - - ! '>='
@@ -45,10 +66,10 @@ dependencies:
45
66
  version: '1.0'
46
67
  type: :runtime
47
68
  prerelease: false
48
- version_requirements: *2151831020
69
+ version_requirements: *2157795280
49
70
  - !ruby/object:Gem::Dependency
50
71
  name: thor
51
- requirement: &2151829180 !ruby/object:Gem::Requirement
72
+ requirement: &2157792060 !ruby/object:Gem::Requirement
52
73
  none: false
53
74
  requirements:
54
75
  - - ! '>='
@@ -56,10 +77,10 @@ dependencies:
56
77
  version: 0.14.6
57
78
  type: :runtime
58
79
  prerelease: false
59
- version_requirements: *2151829180
80
+ version_requirements: *2157792060
60
81
  - !ruby/object:Gem::Dependency
61
82
  name: aws-s3
62
- requirement: &2151825580 !ruby/object:Gem::Requirement
83
+ requirement: &2157788240 !ruby/object:Gem::Requirement
63
84
  none: false
64
85
  requirements:
65
86
  - - ! '>='
@@ -67,32 +88,32 @@ dependencies:
67
88
  version: '0'
68
89
  type: :runtime
69
90
  prerelease: false
70
- version_requirements: *2151825580
91
+ version_requirements: *2157788240
71
92
  - !ruby/object:Gem::Dependency
72
93
  name: bundler
73
- requirement: &2151817780 !ruby/object:Gem::Requirement
94
+ requirement: &2157785400 !ruby/object:Gem::Requirement
74
95
  none: false
75
96
  requirements:
76
- - - ! '>='
97
+ - - ~>
77
98
  - !ruby/object:Gem::Version
78
- version: 1.0.10
99
+ version: '1.0'
79
100
  type: :development
80
101
  prerelease: false
81
- version_requirements: *2151817780
102
+ version_requirements: *2157785400
82
103
  - !ruby/object:Gem::Dependency
83
104
  name: jeweler
84
- requirement: &2151813700 !ruby/object:Gem::Requirement
105
+ requirement: &2157780380 !ruby/object:Gem::Requirement
85
106
  none: false
86
107
  requirements:
87
- - - ! '>='
108
+ - - ~>
88
109
  - !ruby/object:Gem::Version
89
- version: 1.5.2
110
+ version: '1.6'
90
111
  type: :development
91
112
  prerelease: false
92
- version_requirements: *2151813700
113
+ version_requirements: *2157780380
93
114
  - !ruby/object:Gem::Dependency
94
115
  name: rspec
95
- requirement: &2151808920 !ruby/object:Gem::Requirement
116
+ requirement: &2157777680 !ruby/object:Gem::Requirement
96
117
  none: false
97
118
  requirements:
98
119
  - - ~>
@@ -100,26 +121,27 @@ dependencies:
100
121
  version: 1.3.1
101
122
  type: :development
102
123
  prerelease: false
103
- version_requirements: *2151808920
104
- description: ! " StaticMatic helps you quickly create maintainable static websites
105
- using\n tools such as Haml and Sass.\n \n Quickly deploy to services such
106
- as Amazon S3 in a single command.\n"
124
+ version_requirements: *2157777680
125
+ description: ! " StaticMatic helps you quickly create maintainable Amazon S3 static
126
+ websites using\n tools such as Haml and Sass.\n \n Quickly deploy to services
127
+ such as Amazon S3 in a single command.\n"
107
128
  email: gilbertbgarza@gmail.com
108
129
  executables:
109
130
  - staticmatic
110
131
  extensions: []
111
132
  extra_rdoc_files:
112
133
  - LICENSE
113
- - README.markdown
134
+ - README.md
114
135
  files:
115
136
  - Gemfile
116
137
  - Gemfile.lock
117
138
  - LICENSE
118
- - README.markdown
139
+ - README.md
119
140
  - Rakefile
120
141
  - VERSION.yml
121
142
  - bin/staticmatic
122
143
  - lib/staticmatic.rb
144
+ - lib/staticmatic/ambiguous_template_error.rb
123
145
  - lib/staticmatic/base.rb
124
146
  - lib/staticmatic/compass.rb
125
147
  - lib/staticmatic/compass/app_integration.rb
@@ -154,26 +176,28 @@ files:
154
176
  - spec/rescue_spec.rb
155
177
  - spec/sandbox/test_site/config/compass.rb
156
178
  - spec/sandbox/test_site/config/site.rb
157
- - spec/sandbox/test_site/src/helpers/application_helper.rb
158
- - spec/sandbox/test_site/src/layouts/alternate_layout.haml
159
- - spec/sandbox/test_site/src/layouts/default.haml
160
- - spec/sandbox/test_site/src/layouts/projects.haml
161
- - spec/sandbox/test_site/src/pages/hello_world.erb
162
- - spec/sandbox/test_site/src/pages/index.haml
163
- - spec/sandbox/test_site/src/pages/layout_test.haml
164
- - spec/sandbox/test_site/src/pages/page_one.haml
165
- - spec/sandbox/test_site/src/pages/page_two.haml
166
- - spec/sandbox/test_site/src/pages/page_with_error.haml
167
- - spec/sandbox/test_site/src/pages/page_with_partial_error.haml
168
- - spec/sandbox/test_site/src/partials/menu.haml
169
- - spec/sandbox/test_site/src/partials/partial_with_error.haml
179
+ - spec/sandbox/test_site/site/sub_folder/another_sub_folder/index.html
180
+ - spec/sandbox/test_site/site/sub_folder/another_sub_folder/index.html.html
181
+ - spec/sandbox/test_site/site/sub_folder/index.html
182
+ - spec/sandbox/test_site/src/_helpers/application_helper.rb
183
+ - spec/sandbox/test_site/src/_layouts/alternate_layout.haml
184
+ - spec/sandbox/test_site/src/_layouts/default.haml
185
+ - spec/sandbox/test_site/src/_layouts/projects.haml
186
+ - spec/sandbox/test_site/src/_partials/menu.haml
187
+ - spec/sandbox/test_site/src/_partials/partial_with_error.haml
188
+ - spec/sandbox/test_site/src/hello_world.erb
189
+ - spec/sandbox/test_site/src/index.haml
190
+ - spec/sandbox/test_site/src/layout_test.haml
191
+ - spec/sandbox/test_site/src/page_one.haml
192
+ - spec/sandbox/test_site/src/page_two.haml
193
+ - spec/sandbox/test_site/src/page_with_error.haml
194
+ - spec/sandbox/test_site/src/page_with_partial_error.haml
170
195
  - spec/sandbox/test_site/src/stylesheets/application.sass
171
196
  - spec/sandbox/test_site/src/stylesheets/css_with_error.sass
172
197
  - spec/sandbox/test_site/src/stylesheets/nested/a_nested_stylesheet.sass
173
198
  - spec/sandbox/test_site/src/stylesheets/partials/_forms.sass
174
199
  - spec/sandbox/test_site/src/stylesheets/sassy.scss
175
200
  - spec/server_spec.rb
176
- - spec/setup_spec.rb
177
201
  - spec/spec_helper.rb
178
202
  - spec/template_error_spec.rb
179
203
  - staticmatic.gemspec
@@ -205,8 +229,7 @@ files:
205
229
  - website/src/stylesheets/ie.scss
206
230
  - website/src/stylesheets/print.scss
207
231
  - website/src/stylesheets/screen.scss
208
- has_rdoc: true
209
- homepage: http://github.com/mindeavor/staticmatic
232
+ homepage: http://github.com/mindeavor/staticmatic2
210
233
  licenses:
211
234
  - MIT
212
235
  post_install_message:
@@ -221,7 +244,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
221
244
  version: '0'
222
245
  segments:
223
246
  - 0
224
- hash: -4211925824253261974
247
+ hash: 1689759599891313852
225
248
  required_rubygems_version: !ruby/object:Gem::Requirement
226
249
  none: false
227
250
  requirements:
@@ -230,21 +253,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
253
  version: '0'
231
254
  requirements: []
232
255
  rubyforge_project: staticmatic2
233
- rubygems_version: 1.6.1
256
+ rubygems_version: 1.8.10
234
257
  signing_key:
235
258
  specification_version: 3
236
- summary: Build static websites using modern dynamic tools
237
- test_files:
238
- - spec/base_spec.rb
239
- - spec/compass_integration_spec.rb
240
- - spec/helpers/asset_helper_spec.rb
241
- - spec/helpers/custom_helper_spec.rb
242
- - spec/render_spec.rb
243
- - spec/rescue_spec.rb
244
- - spec/sandbox/test_site/config/compass.rb
245
- - spec/sandbox/test_site/config/site.rb
246
- - spec/sandbox/test_site/src/helpers/application_helper.rb
247
- - spec/server_spec.rb
248
- - spec/setup_spec.rb
249
- - spec/spec_helper.rb
250
- - spec/template_error_spec.rb
259
+ summary: Build Amazon S3 static websites using modern dynamic tools
260
+ test_files: []
data/spec/setup_spec.rb DELETED
@@ -1,22 +0,0 @@
1
- require File.dirname(__FILE__) + "/spec_helper"
2
-
3
- describe "StaticMatic::Setup" do
4
- before do
5
- setup_staticmatic
6
- @tmp_dir = File.dirname(__FILE__) + '/sandbox/tmp'
7
- staticmatic = StaticMatic::Base.new(@tmp_dir)
8
- staticmatic.run('setup')
9
- end
10
-
11
- it "should set up project directory in given path" do
12
- %w(
13
- site/images
14
- site/javascripts
15
- site/stylesheets
16
- src/layouts/site.haml
17
- src/pages/index.haml
18
- src/stylesheets/screen.sass
19
- config/site.rb
20
- ).each {|path| File.exists?(File.join(@tmp_dir, path)).should(be_true, "#{path} expected to exist in #{@tmp_dir}") }
21
- end
22
- end