staticmatic2 2.0.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 (93) hide show
  1. data/Gemfile +12 -0
  2. data/Gemfile.lock +27 -0
  3. data/LICENSE +20 -0
  4. data/README.markdown +107 -0
  5. data/Rakefile +45 -0
  6. data/VERSION.yml +5 -0
  7. data/bin/staticmatic +140 -0
  8. data/lib/staticmatic.rb +25 -0
  9. data/lib/staticmatic/base.rb +123 -0
  10. data/lib/staticmatic/compass.rb +5 -0
  11. data/lib/staticmatic/compass/app_integration.rb +18 -0
  12. data/lib/staticmatic/compass/configuration_defaults.rb +44 -0
  13. data/lib/staticmatic/compass/installer.rb +15 -0
  14. data/lib/staticmatic/configuration.rb +20 -0
  15. data/lib/staticmatic/deployers/aws-s3.rb +71 -0
  16. data/lib/staticmatic/deployers/config/amazon.yml +7 -0
  17. data/lib/staticmatic/error.rb +17 -0
  18. data/lib/staticmatic/helpers.rb +12 -0
  19. data/lib/staticmatic/helpers/assets_helper.rb +116 -0
  20. data/lib/staticmatic/helpers/current_path_helper.rb +22 -0
  21. data/lib/staticmatic/helpers/form_helper.rb +23 -0
  22. data/lib/staticmatic/helpers/render_helper.rb +13 -0
  23. data/lib/staticmatic/helpers/tag_helper.rb +35 -0
  24. data/lib/staticmatic/helpers/url_helper.rb +59 -0
  25. data/lib/staticmatic/mixins/build.rb +77 -0
  26. data/lib/staticmatic/mixins/helpers.rb +15 -0
  27. data/lib/staticmatic/mixins/render.rb +153 -0
  28. data/lib/staticmatic/mixins/rescue.rb +12 -0
  29. data/lib/staticmatic/mixins/server.rb +7 -0
  30. data/lib/staticmatic/mixins/setup.rb +16 -0
  31. data/lib/staticmatic/server.rb +86 -0
  32. data/lib/staticmatic/template_error.rb +44 -0
  33. data/lib/staticmatic/templates/rescues/default.haml +7 -0
  34. data/lib/staticmatic/templates/rescues/template.haml +18 -0
  35. data/spec/base_spec.rb +13 -0
  36. data/spec/compass_integration_spec.rb +27 -0
  37. data/spec/helpers/asset_helper_spec.rb +43 -0
  38. data/spec/helpers/custom_helper_spec.rb +18 -0
  39. data/spec/render_spec.rb +44 -0
  40. data/spec/rescue_spec.rb +36 -0
  41. data/spec/sandbox/test_site/config/compass.rb +1 -0
  42. data/spec/sandbox/test_site/config/site.rb +0 -0
  43. data/spec/sandbox/test_site/src/helpers/application_helper.rb +5 -0
  44. data/spec/sandbox/test_site/src/layouts/alternate_layout.haml +3 -0
  45. data/spec/sandbox/test_site/src/layouts/default.haml +7 -0
  46. data/spec/sandbox/test_site/src/layouts/projects.haml +1 -0
  47. data/spec/sandbox/test_site/src/pages/hello_world.erb +1 -0
  48. data/spec/sandbox/test_site/src/pages/index.haml +5 -0
  49. data/spec/sandbox/test_site/src/pages/layout_test.haml +2 -0
  50. data/spec/sandbox/test_site/src/pages/page_one.haml +3 -0
  51. data/spec/sandbox/test_site/src/pages/page_two.haml +2 -0
  52. data/spec/sandbox/test_site/src/pages/page_with_error.haml +5 -0
  53. data/spec/sandbox/test_site/src/pages/page_with_partial_error.haml +3 -0
  54. data/spec/sandbox/test_site/src/partials/menu.haml +1 -0
  55. data/spec/sandbox/test_site/src/partials/partial_with_error.haml +1 -0
  56. data/spec/sandbox/test_site/src/stylesheets/application.sass +5 -0
  57. data/spec/sandbox/test_site/src/stylesheets/css_with_error.sass +5 -0
  58. data/spec/sandbox/test_site/src/stylesheets/nested/a_nested_stylesheet.sass +0 -0
  59. data/spec/sandbox/test_site/src/stylesheets/partials/_forms.sass +2 -0
  60. data/spec/sandbox/test_site/src/stylesheets/sassy.scss +12 -0
  61. data/spec/server_spec.rb +11 -0
  62. data/spec/setup_spec.rb +22 -0
  63. data/spec/spec_helper.rb +14 -0
  64. data/spec/template_error_spec.rb +23 -0
  65. data/staticmatic.gemspec +158 -0
  66. data/website/Gemfile +1 -0
  67. data/website/config/site.rb +17 -0
  68. data/website/site/docs/compass_integration.html +70 -0
  69. data/website/site/docs/getting_started.html +49 -0
  70. data/website/site/docs/helpers.html +22 -0
  71. data/website/site/images/bycurve21.gif +0 -0
  72. data/website/site/images/curve21.jpg +0 -0
  73. data/website/site/images/homepage-build.jpg +0 -0
  74. data/website/site/images/homepage-previewing.jpg +0 -0
  75. data/website/site/images/homepage-templating.jpg +0 -0
  76. data/website/site/stylesheets/ie.css +5 -0
  77. data/website/site/stylesheets/print.css +372 -0
  78. data/website/site/stylesheets/screen.css +488 -0
  79. data/website/src/helpers/content_helper.rb +10 -0
  80. data/website/src/layouts/default.haml +15 -0
  81. data/website/src/pages/development.haml +9 -0
  82. data/website/src/pages/docs/_menu.haml +4 -0
  83. data/website/src/pages/docs/_requires_prerelease.haml +4 -0
  84. data/website/src/pages/docs/compass_integration.haml +54 -0
  85. data/website/src/pages/docs/getting_started.haml +31 -0
  86. data/website/src/pages/docs/helpers.haml +1 -0
  87. data/website/src/pages/index.haml +27 -0
  88. data/website/src/stylesheets/_base.scss +43 -0
  89. data/website/src/stylesheets/_defaults.scss +260 -0
  90. data/website/src/stylesheets/ie.scss +10 -0
  91. data/website/src/stylesheets/print.scss +33 -0
  92. data/website/src/stylesheets/screen.scss +73 -0
  93. metadata +238 -0
@@ -0,0 +1,10 @@
1
+ /* Welcome to Susy. Use this file to write IE specific override styles.
2
+ * Import this file using the following HTML or equivalent:
3
+ * <!--[if IE]>
4
+ * <link href="/stylesheets/ie.css" media="screen, projection" rel="stylesheet" type="text/css" />
5
+ * <![endif]--> */
6
+
7
+ // Imports --------------------------------------------------------------*/
8
+
9
+ @import "base";
10
+
@@ -0,0 +1,33 @@
1
+ /* Welcome to Susy. Use this file to define print styles.
2
+ * Import this file using the following HTML or equivalent:
3
+ * <link href="/stylesheets/print.css" media="print" rel="stylesheet" type="text/css" /> */
4
+
5
+ // Imports --------------------------------------------------------------*/
6
+
7
+ @import "defaults";
8
+
9
+ /* Print Defaults --------------------------------------------------------------*/
10
+
11
+ @mixin print {
12
+ nav {
13
+ // no need to navigate on paper
14
+ display: none;
15
+ }
16
+ * {
17
+ // floated elements disappear when they overflow the page
18
+ float: none !important;
19
+ background: none;
20
+ }
21
+ body {
22
+ @include serif-family;
23
+ font-size: 12pt;
24
+ background: white;
25
+ color: black;
26
+ }
27
+ a:link:after, a:visited:after {
28
+ // print target URLs next to their links
29
+ content: " (" attr(href) ") ";
30
+ }
31
+ }
32
+
33
+ @include print;
@@ -0,0 +1,73 @@
1
+ @import "defaults";
2
+
3
+ @include susy;
4
+
5
+ body {
6
+ background-color: #222;
7
+ }
8
+
9
+ // change '#page' to match your HTML container element(s)
10
+ #page {
11
+ @include container;
12
+ background-color: #fff;
13
+
14
+ }
15
+
16
+ #header {
17
+
18
+ background-color: #550000;
19
+ @include container;
20
+ #logo {
21
+ @include columns(2);
22
+ @include alpha;
23
+ font-size: 2em;
24
+ padding: 1em 0.5em;
25
+ color: #fff;
26
+ @include serif-family;
27
+ }
28
+
29
+ @include box-shadow;
30
+ }
31
+
32
+ #menu {
33
+ @include columns(4);
34
+ @include omega;
35
+
36
+ @include border-radius(5px);
37
+ margin: 1em;
38
+
39
+ ul {
40
+ padding: 1em;
41
+ @include no-bullets;
42
+ @include inline-list;
43
+
44
+ li {
45
+ padding: 0;
46
+
47
+ a {
48
+ color: #fff;
49
+ }
50
+ }
51
+ }
52
+ }
53
+
54
+ #content {
55
+ padding: 2em;
56
+ @include columns(8);
57
+ @include alpha;
58
+ }
59
+ // show-grid loads a 64+16x24 grid image by default
60
+ // For other grid settings, run `compass grid-img 30+10x20`
61
+ // Where 30 is the column width, 10 is the gutter width,
62
+ // and 20 is the (optional) line-height.
63
+
64
+ /* Styles --------------------------------------------------------------*/
65
+
66
+ pre {
67
+ font-size: 0.9em;
68
+ background-color: #efefef;
69
+ border: 1px solid #aaa;
70
+ @include border-radius(5px);
71
+ padding: 1em;
72
+ margin-bottom: 0.5em
73
+ }
metadata ADDED
@@ -0,0 +1,238 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: staticmatic2
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Stephen Bartholomew
9
+ - Gilbert B Garza
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2011-03-06 00:00:00.000000000 -06:00
14
+ default_executable: staticmatic
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: haml
18
+ requirement: &2160125020 !ruby/object:Gem::Requirement
19
+ none: false
20
+ requirements:
21
+ - - ! '>='
22
+ - !ruby/object:Gem::Version
23
+ version: 2.0.0
24
+ type: :runtime
25
+ prerelease: false
26
+ version_requirements: *2160125020
27
+ - !ruby/object:Gem::Dependency
28
+ name: compass
29
+ requirement: &2160121640 !ruby/object:Gem::Requirement
30
+ none: false
31
+ requirements:
32
+ - - ! '>='
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: *2160121640
38
+ - !ruby/object:Gem::Dependency
39
+ name: rack
40
+ requirement: &2160119100 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '1.0'
46
+ type: :runtime
47
+ prerelease: false
48
+ version_requirements: *2160119100
49
+ - !ruby/object:Gem::Dependency
50
+ name: thor
51
+ requirement: &2160117440 !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ! '>='
55
+ - !ruby/object:Gem::Version
56
+ version: 0.14.6
57
+ type: :runtime
58
+ prerelease: false
59
+ version_requirements: *2160117440
60
+ - !ruby/object:Gem::Dependency
61
+ name: bundler
62
+ requirement: &2160116000 !ruby/object:Gem::Requirement
63
+ none: false
64
+ requirements:
65
+ - - ! '>='
66
+ - !ruby/object:Gem::Version
67
+ version: 1.0.10
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: *2160116000
71
+ - !ruby/object:Gem::Dependency
72
+ name: jeweler
73
+ requirement: &2160115020 !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ! '>='
77
+ - !ruby/object:Gem::Version
78
+ version: 1.5.2
79
+ type: :development
80
+ prerelease: false
81
+ version_requirements: *2160115020
82
+ - !ruby/object:Gem::Dependency
83
+ name: rspec
84
+ requirement: &2160113800 !ruby/object:Gem::Requirement
85
+ none: false
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: 1.3.1
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: *2160113800
93
+ description: ! " StaticMatic helps you quickly create maintainable static websites
94
+ using\n tools such as Haml and Sass.\n \n Quickly deploy to services such
95
+ as Amazon S3 in a single command.\n"
96
+ email: gilbertbgarza@gmail.com
97
+ executables:
98
+ - staticmatic
99
+ extensions: []
100
+ extra_rdoc_files:
101
+ - LICENSE
102
+ - README.markdown
103
+ files:
104
+ - Gemfile
105
+ - Gemfile.lock
106
+ - LICENSE
107
+ - README.markdown
108
+ - Rakefile
109
+ - VERSION.yml
110
+ - bin/staticmatic
111
+ - lib/staticmatic.rb
112
+ - lib/staticmatic/base.rb
113
+ - lib/staticmatic/compass.rb
114
+ - lib/staticmatic/compass/app_integration.rb
115
+ - lib/staticmatic/compass/configuration_defaults.rb
116
+ - lib/staticmatic/compass/installer.rb
117
+ - lib/staticmatic/configuration.rb
118
+ - lib/staticmatic/deployers/aws-s3.rb
119
+ - lib/staticmatic/deployers/config/amazon.yml
120
+ - lib/staticmatic/error.rb
121
+ - lib/staticmatic/helpers.rb
122
+ - lib/staticmatic/helpers/assets_helper.rb
123
+ - lib/staticmatic/helpers/current_path_helper.rb
124
+ - lib/staticmatic/helpers/form_helper.rb
125
+ - lib/staticmatic/helpers/render_helper.rb
126
+ - lib/staticmatic/helpers/tag_helper.rb
127
+ - lib/staticmatic/helpers/url_helper.rb
128
+ - lib/staticmatic/mixins/build.rb
129
+ - lib/staticmatic/mixins/helpers.rb
130
+ - lib/staticmatic/mixins/render.rb
131
+ - lib/staticmatic/mixins/rescue.rb
132
+ - lib/staticmatic/mixins/server.rb
133
+ - lib/staticmatic/mixins/setup.rb
134
+ - lib/staticmatic/server.rb
135
+ - lib/staticmatic/template_error.rb
136
+ - lib/staticmatic/templates/rescues/default.haml
137
+ - lib/staticmatic/templates/rescues/template.haml
138
+ - spec/base_spec.rb
139
+ - spec/compass_integration_spec.rb
140
+ - spec/helpers/asset_helper_spec.rb
141
+ - spec/helpers/custom_helper_spec.rb
142
+ - spec/render_spec.rb
143
+ - spec/rescue_spec.rb
144
+ - spec/sandbox/test_site/config/compass.rb
145
+ - spec/sandbox/test_site/config/site.rb
146
+ - spec/sandbox/test_site/src/helpers/application_helper.rb
147
+ - spec/sandbox/test_site/src/layouts/alternate_layout.haml
148
+ - spec/sandbox/test_site/src/layouts/default.haml
149
+ - spec/sandbox/test_site/src/layouts/projects.haml
150
+ - spec/sandbox/test_site/src/pages/hello_world.erb
151
+ - spec/sandbox/test_site/src/pages/index.haml
152
+ - spec/sandbox/test_site/src/pages/layout_test.haml
153
+ - spec/sandbox/test_site/src/pages/page_one.haml
154
+ - spec/sandbox/test_site/src/pages/page_two.haml
155
+ - spec/sandbox/test_site/src/pages/page_with_error.haml
156
+ - spec/sandbox/test_site/src/pages/page_with_partial_error.haml
157
+ - spec/sandbox/test_site/src/partials/menu.haml
158
+ - spec/sandbox/test_site/src/partials/partial_with_error.haml
159
+ - spec/sandbox/test_site/src/stylesheets/application.sass
160
+ - spec/sandbox/test_site/src/stylesheets/css_with_error.sass
161
+ - spec/sandbox/test_site/src/stylesheets/nested/a_nested_stylesheet.sass
162
+ - spec/sandbox/test_site/src/stylesheets/partials/_forms.sass
163
+ - spec/sandbox/test_site/src/stylesheets/sassy.scss
164
+ - spec/server_spec.rb
165
+ - spec/setup_spec.rb
166
+ - spec/spec_helper.rb
167
+ - spec/template_error_spec.rb
168
+ - staticmatic.gemspec
169
+ - website/Gemfile
170
+ - website/config/site.rb
171
+ - website/site/docs/compass_integration.html
172
+ - website/site/docs/getting_started.html
173
+ - website/site/docs/helpers.html
174
+ - website/site/images/bycurve21.gif
175
+ - website/site/images/curve21.jpg
176
+ - website/site/images/homepage-build.jpg
177
+ - website/site/images/homepage-previewing.jpg
178
+ - website/site/images/homepage-templating.jpg
179
+ - website/site/stylesheets/ie.css
180
+ - website/site/stylesheets/print.css
181
+ - website/site/stylesheets/screen.css
182
+ - website/src/helpers/content_helper.rb
183
+ - website/src/layouts/default.haml
184
+ - website/src/pages/development.haml
185
+ - website/src/pages/docs/_menu.haml
186
+ - website/src/pages/docs/_requires_prerelease.haml
187
+ - website/src/pages/docs/compass_integration.haml
188
+ - website/src/pages/docs/getting_started.haml
189
+ - website/src/pages/docs/helpers.haml
190
+ - website/src/pages/index.haml
191
+ - website/src/stylesheets/_base.scss
192
+ - website/src/stylesheets/_defaults.scss
193
+ - website/src/stylesheets/ie.scss
194
+ - website/src/stylesheets/print.scss
195
+ - website/src/stylesheets/screen.scss
196
+ has_rdoc: true
197
+ homepage: http://github.com/mindeavor/staticmatic
198
+ licenses:
199
+ - MIT
200
+ post_install_message:
201
+ rdoc_options: []
202
+ require_paths:
203
+ - lib
204
+ required_ruby_version: !ruby/object:Gem::Requirement
205
+ none: false
206
+ requirements:
207
+ - - ! '>='
208
+ - !ruby/object:Gem::Version
209
+ version: '0'
210
+ segments:
211
+ - 0
212
+ hash: 4411352117042165644
213
+ required_rubygems_version: !ruby/object:Gem::Requirement
214
+ none: false
215
+ requirements:
216
+ - - ! '>='
217
+ - !ruby/object:Gem::Version
218
+ version: '0'
219
+ requirements: []
220
+ rubyforge_project: staticmatic2
221
+ rubygems_version: 1.6.1
222
+ signing_key:
223
+ specification_version: 3
224
+ summary: Build static websites using modern dynamic tools
225
+ test_files:
226
+ - spec/base_spec.rb
227
+ - spec/compass_integration_spec.rb
228
+ - spec/helpers/asset_helper_spec.rb
229
+ - spec/helpers/custom_helper_spec.rb
230
+ - spec/render_spec.rb
231
+ - spec/rescue_spec.rb
232
+ - spec/sandbox/test_site/config/compass.rb
233
+ - spec/sandbox/test_site/config/site.rb
234
+ - spec/sandbox/test_site/src/helpers/application_helper.rb
235
+ - spec/server_spec.rb
236
+ - spec/setup_spec.rb
237
+ - spec/spec_helper.rb
238
+ - spec/template_error_spec.rb