staticmatic3 2.1.9

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 (98) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +16 -0
  3. data/Gemfile.lock +43 -0
  4. data/LICENSE +20 -0
  5. data/README.md +154 -0
  6. data/Rakefile +45 -0
  7. data/VERSION.yml +5 -0
  8. data/bin/staticmatic +142 -0
  9. data/lib/staticmatic.rb +22 -0
  10. data/lib/staticmatic/ambiguous_template_error.rb +19 -0
  11. data/lib/staticmatic/base.rb +149 -0
  12. data/lib/staticmatic/compass.rb +5 -0
  13. data/lib/staticmatic/compass/app_integration.rb +21 -0
  14. data/lib/staticmatic/compass/configuration_defaults.rb +44 -0
  15. data/lib/staticmatic/compass/installer.rb +15 -0
  16. data/lib/staticmatic/configuration.rb +56 -0
  17. data/lib/staticmatic/deployers/aws-s3.rb +108 -0
  18. data/lib/staticmatic/deployers/config/amazon.yml +7 -0
  19. data/lib/staticmatic/error.rb +17 -0
  20. data/lib/staticmatic/helpers.rb +12 -0
  21. data/lib/staticmatic/helpers/assets_helper.rb +116 -0
  22. data/lib/staticmatic/helpers/current_path_helper.rb +22 -0
  23. data/lib/staticmatic/helpers/form_helper.rb +23 -0
  24. data/lib/staticmatic/helpers/render_helper.rb +14 -0
  25. data/lib/staticmatic/helpers/tag_helper.rb +35 -0
  26. data/lib/staticmatic/helpers/url_helper.rb +59 -0
  27. data/lib/staticmatic/mixins/build.rb +41 -0
  28. data/lib/staticmatic/mixins/helpers.rb +15 -0
  29. data/lib/staticmatic/mixins/render.rb +110 -0
  30. data/lib/staticmatic/mixins/rescue.rb +12 -0
  31. data/lib/staticmatic/mixins/server.rb +7 -0
  32. data/lib/staticmatic/mixins/setup.rb +16 -0
  33. data/lib/staticmatic/server.rb +87 -0
  34. data/lib/staticmatic/template_error.rb +44 -0
  35. data/lib/staticmatic/templates/rescues/default.haml +7 -0
  36. data/lib/staticmatic/templates/rescues/template.haml +18 -0
  37. data/spec/base_spec.rb +13 -0
  38. data/spec/compass_integration_spec.rb +28 -0
  39. data/spec/helpers/asset_helper_spec.rb +41 -0
  40. data/spec/helpers/custom_helper_spec.rb +17 -0
  41. data/spec/render_spec.rb +44 -0
  42. data/spec/rescue_spec.rb +36 -0
  43. data/spec/sandbox/test_site/config/compass.rb +1 -0
  44. data/spec/sandbox/test_site/config/site.rb +0 -0
  45. data/spec/sandbox/test_site/site/sub_folder/another_sub_folder/index.html +1 -0
  46. data/spec/sandbox/test_site/site/sub_folder/another_sub_folder/index.html.html +1 -0
  47. data/spec/sandbox/test_site/site/sub_folder/index.html +1 -0
  48. data/spec/sandbox/test_site/src/_helpers/application_helper.rb +5 -0
  49. data/spec/sandbox/test_site/src/_layouts/alternate_layout.haml +3 -0
  50. data/spec/sandbox/test_site/src/_layouts/default.haml +7 -0
  51. data/spec/sandbox/test_site/src/_layouts/projects.haml +1 -0
  52. data/spec/sandbox/test_site/src/_partials/menu.haml +1 -0
  53. data/spec/sandbox/test_site/src/_partials/partial_with_error.haml +1 -0
  54. data/spec/sandbox/test_site/src/hello_world.erb +1 -0
  55. data/spec/sandbox/test_site/src/index.haml +5 -0
  56. data/spec/sandbox/test_site/src/layout_test.haml +2 -0
  57. data/spec/sandbox/test_site/src/page_one.haml +3 -0
  58. data/spec/sandbox/test_site/src/page_two.haml +2 -0
  59. data/spec/sandbox/test_site/src/page_with_error.haml +5 -0
  60. data/spec/sandbox/test_site/src/page_with_partial_error.haml +3 -0
  61. data/spec/sandbox/test_site/src/stylesheets/application.sass +5 -0
  62. data/spec/sandbox/test_site/src/stylesheets/css_with_error.sass +5 -0
  63. data/spec/sandbox/test_site/src/stylesheets/nested/a_nested_stylesheet.sass +0 -0
  64. data/spec/sandbox/test_site/src/stylesheets/partials/_forms.sass +2 -0
  65. data/spec/sandbox/test_site/src/stylesheets/sassy.scss +12 -0
  66. data/spec/server_spec.rb +11 -0
  67. data/spec/spec_helper.rb +14 -0
  68. data/spec/template_error_spec.rb +23 -0
  69. data/staticmatic.gemspec +158 -0
  70. data/staticmatic3.gemspec +164 -0
  71. data/website/Gemfile +1 -0
  72. data/website/config/site.rb +17 -0
  73. data/website/site/docs/compass_integration.html +70 -0
  74. data/website/site/docs/getting_started.html +49 -0
  75. data/website/site/docs/helpers.html +22 -0
  76. data/website/site/images/bycurve21.gif +0 -0
  77. data/website/site/images/curve21.jpg +0 -0
  78. data/website/site/images/homepage-build.jpg +0 -0
  79. data/website/site/images/homepage-previewing.jpg +0 -0
  80. data/website/site/images/homepage-templating.jpg +0 -0
  81. data/website/site/stylesheets/ie.css +5 -0
  82. data/website/site/stylesheets/print.css +372 -0
  83. data/website/site/stylesheets/screen.css +488 -0
  84. data/website/src/helpers/content_helper.rb +10 -0
  85. data/website/src/layouts/default.haml +15 -0
  86. data/website/src/pages/development.haml +9 -0
  87. data/website/src/pages/docs/_menu.haml +4 -0
  88. data/website/src/pages/docs/_requires_prerelease.haml +4 -0
  89. data/website/src/pages/docs/compass_integration.haml +54 -0
  90. data/website/src/pages/docs/getting_started.haml +31 -0
  91. data/website/src/pages/docs/helpers.haml +1 -0
  92. data/website/src/pages/index.haml +27 -0
  93. data/website/src/stylesheets/_base.scss +43 -0
  94. data/website/src/stylesheets/_defaults.scss +260 -0
  95. data/website/src/stylesheets/ie.scss +10 -0
  96. data/website/src/stylesheets/print.scss +33 -0
  97. data/website/src/stylesheets/screen.scss +73 -0
  98. metadata +285 -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,285 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: staticmatic3
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.1.9
5
+ platform: ruby
6
+ authors:
7
+ - Stephen Bartholomew
8
+ - Gilbert B Garza
9
+ - José Benavente
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2013-10-20 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: haml
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - "~>"
20
+ - !ruby/object:Gem::Version
21
+ version: '3.1'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - "~>"
27
+ - !ruby/object:Gem::Version
28
+ version: '3.1'
29
+ - !ruby/object:Gem::Dependency
30
+ name: sass
31
+ requirement: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - "~>"
34
+ - !ruby/object:Gem::Version
35
+ version: '3.1'
36
+ type: :runtime
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: '3.1'
43
+ - !ruby/object:Gem::Dependency
44
+ name: tilt
45
+ requirement: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: '1.3'
50
+ type: :runtime
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: '1.3'
57
+ - !ruby/object:Gem::Dependency
58
+ name: compass
59
+ requirement: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - "~>"
62
+ - !ruby/object:Gem::Version
63
+ version: 0.12.1
64
+ type: :runtime
65
+ prerelease: false
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - "~>"
69
+ - !ruby/object:Gem::Version
70
+ version: 0.12.1
71
+ - !ruby/object:Gem::Dependency
72
+ name: rack
73
+ requirement: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: '1.0'
78
+ type: :runtime
79
+ prerelease: false
80
+ version_requirements: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: '1.0'
85
+ - !ruby/object:Gem::Dependency
86
+ name: thor
87
+ requirement: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: 0.14.6
92
+ type: :runtime
93
+ prerelease: false
94
+ version_requirements: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ version: 0.14.6
99
+ - !ruby/object:Gem::Dependency
100
+ name: aws-s3
101
+ requirement: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - ">="
104
+ - !ruby/object:Gem::Version
105
+ version: '0'
106
+ type: :runtime
107
+ prerelease: false
108
+ version_requirements: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: '0'
113
+ - !ruby/object:Gem::Dependency
114
+ name: bundler
115
+ requirement: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - "~>"
118
+ - !ruby/object:Gem::Version
119
+ version: '1.0'
120
+ type: :development
121
+ prerelease: false
122
+ version_requirements: !ruby/object:Gem::Requirement
123
+ requirements:
124
+ - - "~>"
125
+ - !ruby/object:Gem::Version
126
+ version: '1.0'
127
+ - !ruby/object:Gem::Dependency
128
+ name: jeweler
129
+ requirement: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - "~>"
132
+ - !ruby/object:Gem::Version
133
+ version: '1.6'
134
+ type: :development
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ requirements:
138
+ - - "~>"
139
+ - !ruby/object:Gem::Version
140
+ version: '1.6'
141
+ - !ruby/object:Gem::Dependency
142
+ name: rspec
143
+ requirement: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ - - "~>"
146
+ - !ruby/object:Gem::Version
147
+ version: 1.3.1
148
+ type: :development
149
+ prerelease: false
150
+ version_requirements: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - "~>"
153
+ - !ruby/object:Gem::Version
154
+ version: 1.3.1
155
+ description: " StaticMatic helps you quickly create maintainable Amazon S3 static
156
+ websites using\n tools such as Haml and Sass.\n \n Quickly deploy to services
157
+ such as Amazon S3 in a single command.\n"
158
+ email: jose@bgmp.cl
159
+ executables:
160
+ - staticmatic
161
+ extensions: []
162
+ extra_rdoc_files:
163
+ - LICENSE
164
+ - README.md
165
+ files:
166
+ - Gemfile
167
+ - Gemfile.lock
168
+ - LICENSE
169
+ - README.md
170
+ - Rakefile
171
+ - VERSION.yml
172
+ - bin/staticmatic
173
+ - lib/staticmatic.rb
174
+ - lib/staticmatic/ambiguous_template_error.rb
175
+ - lib/staticmatic/base.rb
176
+ - lib/staticmatic/compass.rb
177
+ - lib/staticmatic/compass/app_integration.rb
178
+ - lib/staticmatic/compass/configuration_defaults.rb
179
+ - lib/staticmatic/compass/installer.rb
180
+ - lib/staticmatic/configuration.rb
181
+ - lib/staticmatic/deployers/aws-s3.rb
182
+ - lib/staticmatic/deployers/config/amazon.yml
183
+ - lib/staticmatic/error.rb
184
+ - lib/staticmatic/helpers.rb
185
+ - lib/staticmatic/helpers/assets_helper.rb
186
+ - lib/staticmatic/helpers/current_path_helper.rb
187
+ - lib/staticmatic/helpers/form_helper.rb
188
+ - lib/staticmatic/helpers/render_helper.rb
189
+ - lib/staticmatic/helpers/tag_helper.rb
190
+ - lib/staticmatic/helpers/url_helper.rb
191
+ - lib/staticmatic/mixins/build.rb
192
+ - lib/staticmatic/mixins/helpers.rb
193
+ - lib/staticmatic/mixins/render.rb
194
+ - lib/staticmatic/mixins/rescue.rb
195
+ - lib/staticmatic/mixins/server.rb
196
+ - lib/staticmatic/mixins/setup.rb
197
+ - lib/staticmatic/server.rb
198
+ - lib/staticmatic/template_error.rb
199
+ - lib/staticmatic/templates/rescues/default.haml
200
+ - lib/staticmatic/templates/rescues/template.haml
201
+ - spec/base_spec.rb
202
+ - spec/compass_integration_spec.rb
203
+ - spec/helpers/asset_helper_spec.rb
204
+ - spec/helpers/custom_helper_spec.rb
205
+ - spec/render_spec.rb
206
+ - spec/rescue_spec.rb
207
+ - spec/sandbox/test_site/config/compass.rb
208
+ - spec/sandbox/test_site/config/site.rb
209
+ - spec/sandbox/test_site/site/sub_folder/another_sub_folder/index.html
210
+ - spec/sandbox/test_site/site/sub_folder/another_sub_folder/index.html.html
211
+ - spec/sandbox/test_site/site/sub_folder/index.html
212
+ - spec/sandbox/test_site/src/_helpers/application_helper.rb
213
+ - spec/sandbox/test_site/src/_layouts/alternate_layout.haml
214
+ - spec/sandbox/test_site/src/_layouts/default.haml
215
+ - spec/sandbox/test_site/src/_layouts/projects.haml
216
+ - spec/sandbox/test_site/src/_partials/menu.haml
217
+ - spec/sandbox/test_site/src/_partials/partial_with_error.haml
218
+ - spec/sandbox/test_site/src/hello_world.erb
219
+ - spec/sandbox/test_site/src/index.haml
220
+ - spec/sandbox/test_site/src/layout_test.haml
221
+ - spec/sandbox/test_site/src/page_one.haml
222
+ - spec/sandbox/test_site/src/page_two.haml
223
+ - spec/sandbox/test_site/src/page_with_error.haml
224
+ - spec/sandbox/test_site/src/page_with_partial_error.haml
225
+ - spec/sandbox/test_site/src/stylesheets/application.sass
226
+ - spec/sandbox/test_site/src/stylesheets/css_with_error.sass
227
+ - spec/sandbox/test_site/src/stylesheets/nested/a_nested_stylesheet.sass
228
+ - spec/sandbox/test_site/src/stylesheets/partials/_forms.sass
229
+ - spec/sandbox/test_site/src/stylesheets/sassy.scss
230
+ - spec/server_spec.rb
231
+ - spec/spec_helper.rb
232
+ - spec/template_error_spec.rb
233
+ - staticmatic.gemspec
234
+ - staticmatic3.gemspec
235
+ - website/Gemfile
236
+ - website/config/site.rb
237
+ - website/site/docs/compass_integration.html
238
+ - website/site/docs/getting_started.html
239
+ - website/site/docs/helpers.html
240
+ - website/site/images/bycurve21.gif
241
+ - website/site/images/curve21.jpg
242
+ - website/site/images/homepage-build.jpg
243
+ - website/site/images/homepage-previewing.jpg
244
+ - website/site/images/homepage-templating.jpg
245
+ - website/site/stylesheets/ie.css
246
+ - website/site/stylesheets/print.css
247
+ - website/site/stylesheets/screen.css
248
+ - website/src/helpers/content_helper.rb
249
+ - website/src/layouts/default.haml
250
+ - website/src/pages/development.haml
251
+ - website/src/pages/docs/_menu.haml
252
+ - website/src/pages/docs/_requires_prerelease.haml
253
+ - website/src/pages/docs/compass_integration.haml
254
+ - website/src/pages/docs/getting_started.haml
255
+ - website/src/pages/docs/helpers.haml
256
+ - website/src/pages/index.haml
257
+ - website/src/stylesheets/_base.scss
258
+ - website/src/stylesheets/_defaults.scss
259
+ - website/src/stylesheets/ie.scss
260
+ - website/src/stylesheets/print.scss
261
+ - website/src/stylesheets/screen.scss
262
+ homepage: http://github.com/mindeavor/staticmatic2
263
+ licenses:
264
+ - MIT
265
+ metadata: {}
266
+ post_install_message:
267
+ rdoc_options: []
268
+ require_paths:
269
+ - lib
270
+ required_ruby_version: !ruby/object:Gem::Requirement
271
+ requirements:
272
+ - - ">="
273
+ - !ruby/object:Gem::Version
274
+ version: '0'
275
+ required_rubygems_version: !ruby/object:Gem::Requirement
276
+ requirements:
277
+ - - ">="
278
+ - !ruby/object:Gem::Version
279
+ version: '0'
280
+ requirements: []
281
+ rubygems_version: 3.0.3
282
+ signing_key:
283
+ specification_version: 3
284
+ summary: Build Amazon S3 static websites using modern dynamic tools
285
+ test_files: []