milk 0.0.6 → 0.0.7

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 (67) hide show
  1. data/Rakefile +4 -0
  2. data/lib/milk.rb +1 -0
  3. data/lib/milk/application.rb +52 -12
  4. data/lib/milk/component.rb +30 -16
  5. data/lib/milk/component.rb.~1~ +141 -0
  6. data/lib/milk/fields/login.haml +36 -25
  7. data/lib/milk/fields/markdown_field.haml +1 -1
  8. data/lib/milk/fields/xhtml.haml +19 -30
  9. data/lib/milk/page.rb +10 -6
  10. data/lib/milk/page.rb.~1~ +118 -0
  11. data/lib/milk/tasks.rb +9 -12
  12. data/milk.gemspec +1 -1
  13. data/site_template/config.ru +2 -1
  14. data/site_template/config/foot.yaml +3 -5
  15. data/site_template/config/foot.yaml.~1~ +2 -0
  16. data/site_template/config/foot.yaml.~2~ +2 -0
  17. data/site_template/config/foot.yaml.~3~ +1 -0
  18. data/site_template/config/foot.yaml.~4~ +3 -0
  19. data/site_template/config/foot.yaml.~5~ +3 -0
  20. data/site_template/config/head.yaml +1 -10
  21. data/site_template/config/head.yaml.~1~ +2 -0
  22. data/site_template/config/head.yaml.~2~ +2 -0
  23. data/site_template/config/head.yaml.~3~ +1 -0
  24. data/site_template/config/head.yaml.~4~ +18 -0
  25. data/site_template/config/head.yaml.~5~ +18 -0
  26. data/site_template/design/{reset.sass → 0-reset.sass} +0 -0
  27. data/site_template/design/{text.sass → 1-text.sass} +0 -0
  28. data/site_template/design/body.haml +1 -3
  29. data/site_template/design/button.haml +1 -1
  30. data/site_template/design/button.rb +1 -1
  31. data/site_template/design/foot.haml +1 -3
  32. data/site_template/design/foot.sass +0 -1
  33. data/site_template/design/head.haml +3 -6
  34. data/site_template/design/head.sass +24 -22
  35. data/site_template/design/page.haml +1 -2
  36. data/site_template/pages/About.yaml +5 -6
  37. data/site_template/pages/Home.yaml +5 -6
  38. data/site_template/pages/Home.yaml.~1~ +14 -0
  39. data/site_template/pages/Home.yaml.~2~ +14 -0
  40. data/site_template/pages/Home.yaml.~3~ +14 -0
  41. data/site_template/pages/Home.yaml.~4~ +14 -0
  42. data/site_template/pages/Home.yaml.~5~ +14 -0
  43. data/site_template/pages/News.yaml +5 -6
  44. data/site_template/pages/NotFound.yaml +5 -6
  45. data/site_template/pages/Products.yaml +5 -6
  46. data/site_template/public/js/jquery-1.3.2.min.js +19 -0
  47. data/site_template/public/js/jquery-ui-1.7.2.custom.min.js +34 -0
  48. data/site_template/public/js/jquery.json-1.3.min.js +37 -0
  49. data/site_template/public/skin/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  50. data/site_template/public/skin/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  51. data/site_template/public/skin/images/ui-bg_flat_10_000000_40x100.png +0 -0
  52. data/site_template/public/skin/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  53. data/site_template/public/skin/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  54. data/site_template/public/skin/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  55. data/site_template/public/skin/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  56. data/site_template/public/skin/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  57. data/site_template/public/skin/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  58. data/site_template/public/skin/images/ui-icons_222222_256x240.png +0 -0
  59. data/site_template/public/skin/images/ui-icons_228ef1_256x240.png +0 -0
  60. data/site_template/public/skin/images/ui-icons_ef8c08_256x240.png +0 -0
  61. data/site_template/public/skin/images/ui-icons_ffd27a_256x240.png +0 -0
  62. data/site_template/public/skin/images/ui-icons_ffffff_256x240.png +0 -0
  63. data/site_template/public/skin/jquery-ui-1.7.2.custom.css +406 -0
  64. data/site_template/public/style/style.css +63 -61
  65. metadata +42 -6
  66. data/lib/milk/fields/component_view.haml +0 -2
  67. data/milk-0.0.5.gem +0 -0
@@ -1,7 +1,60 @@
1
- #head { padding-top: 20px; padding-bottom: 20px; }
2
- #head li a { display: block; color: inherit; text-decoration: none; border: 1px solid #999; text-align: center; font-size: 80%; font-weight: bold; background-color: #222; color: #08f; padding-top: 5px; padding-bottom: 5px; }
3
- #head li a:hover { background-color: #8af; color: #000; }
4
- #head li a.active { background-color: #8fa; color: #000; }.container_12 { margin-left: auto; margin-right: auto; width: 960px; }
1
+ html { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
2
+
3
+ body { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; line-height: 1; }
4
+
5
+ div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
6
+
7
+ blockquote { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; quotes: none; }
8
+ blockquote:before, blockquote:after { content: ''; content: none; }
9
+
10
+ pre, a, abbr, acronym, address, big, cite, code { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
11
+
12
+ del { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; text-decoration: line-through; }
13
+
14
+ dfn, em, font, img { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
15
+
16
+ ins { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; text-decoration: none; }
17
+
18
+ kbd { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
19
+
20
+ q { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; quotes: none; }
21
+ q:before, q:after { content: ''; content: none; }
22
+
23
+ s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
24
+
25
+ ol, ul { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; list-style: none; }
26
+
27
+ li, fieldset, form, label, legend { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
28
+
29
+ table { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; border-collapse: collapse; border-spacing: 0; }
30
+
31
+ caption, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
32
+
33
+ html :focus { outline: 0; }body { font: 13px/1.5 Helvetica,Arial,'Liberation Sans',FreeSans,sans-serif; }
34
+
35
+ a:focus { outline: 1px dotted invert; }
36
+
37
+ hr { border: 0 #ccc solid; border-top-width: 1px; clear: both; height: 0; margin-bottom: 20px; }
38
+
39
+ h1 { font-size: 25px; margin-bottom: 20px; }
40
+
41
+ h2 { font-size: 23px; margin-bottom: 20px; }
42
+
43
+ h3 { font-size: 21px; margin-bottom: 20px; }
44
+
45
+ h4 { font-size: 19px; margin-bottom: 20px; }
46
+
47
+ h5 { font-size: 17px; margin-bottom: 20px; }
48
+
49
+ h6 { font-size: 15px; margin-bottom: 20px; }
50
+
51
+ ol { list-style: decimal; margin-bottom: 20px; }
52
+
53
+ ul { list-style: disc; margin-bottom: 20px; }
54
+
55
+ li { margin-left: 30px; }
56
+
57
+ p, dl, pre, table, address, fieldset { margin-bottom: 20px; }.container_12 { margin-left: auto; margin-right: auto; width: 960px; }
5
58
  .container_12 .grid_3 { width: 220px; }
6
59
  .container_12 .grid_6 { width: 460px; }
7
60
  .container_12 .grid_9 { width: 700px; }
@@ -96,60 +149,9 @@
96
149
  .clearfix { display: inline-block; display: block; }
97
150
  .clearfix:after { clear: both; content: ' '; display: block; font-size: 0; line-height: 0; visibility: hidden; width: 0; height: 0; }
98
151
 
99
- * html .clearfix { height: 1%; }body { font: 13px/1.5 Helvetica,Arial,'Liberation Sans',FreeSans,sans-serif; }
100
-
101
- a:focus { outline: 1px dotted invert; }
102
-
103
- hr { border: 0 #ccc solid; border-top-width: 1px; clear: both; height: 0; margin-bottom: 20px; }
104
-
105
- h1 { font-size: 25px; margin-bottom: 20px; }
106
-
107
- h2 { font-size: 23px; margin-bottom: 20px; }
108
-
109
- h3 { font-size: 21px; margin-bottom: 20px; }
110
-
111
- h4 { font-size: 19px; margin-bottom: 20px; }
112
-
113
- h5 { font-size: 17px; margin-bottom: 20px; }
114
-
115
- h6 { font-size: 15px; margin-bottom: 20px; }
116
-
117
- ol { list-style: decimal; margin-bottom: 20px; }
118
-
119
- ul { list-style: disc; margin-bottom: 20px; }
120
-
121
- li { margin-left: 30px; }
122
-
123
- p, dl, pre, table, address, fieldset { margin-bottom: 20px; }#admin { color: #999; text-align: right; }#foot { text-align: center; font-size: 90%; color: #888; }html { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
124
-
125
- body { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; line-height: 1; }
126
-
127
- div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
128
-
129
- blockquote { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; quotes: none; }
130
- blockquote:before, blockquote:after { content: ''; content: none; }
131
-
132
- pre, a, abbr, acronym, address, big, cite, code { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
133
-
134
- del { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; text-decoration: line-through; }
135
-
136
- dfn, em, font, img { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
137
-
138
- ins { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; text-decoration: none; }
139
-
140
- kbd { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
141
-
142
- q { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; quotes: none; }
143
- q:before, q:after { content: ''; content: none; }
144
-
145
- s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
146
-
147
- ol, ul { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; list-style: none; }
148
-
149
- li, fieldset, form, label, legend { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
150
-
151
- table { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; border-collapse: collapse; border-spacing: 0; }
152
-
153
- caption, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
154
-
155
- html :focus { outline: 0; }
152
+ * html .clearfix { height: 1%; }#foot { font-size: 90%; color: #888; }#head { margin-top: 20px; margin-bottom: 20px; }
153
+ #head li { list-style-type: none; margin: 0; }
154
+ #head li a { color: #08f; text-decoration: none; border: 1px solid #999; text-align: center; font-weight: bold; background-color: #222; float: left; margin: 0 13px 0 0; padding: 8px 15px; -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; }
155
+ #head li a:hover { background-color: #8af; color: #000; }
156
+ #head li a.active { background-color: #8fa; color: #000; }#admin { color: #999; text-align: right; }
157
+ #admin a, #admin a:visited, #admin a:active, #admin a:link { color: #08f; }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: milk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Caswell
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-24 00:00:00 -05:00
12
+ date: 2009-06-25 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -53,9 +53,30 @@ extra_rdoc_files: []
53
53
  files:
54
54
  - site_template
55
55
  - site_template/public
56
+ - site_template/public/skin
57
+ - site_template/public/skin/images
58
+ - site_template/public/skin/images/ui-bg_diagonals-thick_20_666666_40x40.png
59
+ - site_template/public/skin/images/ui-icons_ffd27a_256x240.png
60
+ - site_template/public/skin/images/ui-bg_gloss-wave_35_f6a828_500x100.png
61
+ - site_template/public/skin/images/ui-bg_glass_100_f6f6f6_1x400.png
62
+ - site_template/public/skin/images/ui-bg_flat_10_000000_40x100.png
63
+ - site_template/public/skin/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
64
+ - site_template/public/skin/images/ui-icons_ffffff_256x240.png
65
+ - site_template/public/skin/images/ui-bg_glass_100_fdf5ce_1x400.png
66
+ - site_template/public/skin/images/ui-bg_diagonals-thick_18_b81900_40x40.png
67
+ - site_template/public/skin/images/ui-bg_glass_65_ffffff_1x400.png
68
+ - site_template/public/skin/images/ui-icons_228ef1_256x240.png
69
+ - site_template/public/skin/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
70
+ - site_template/public/skin/images/ui-icons_222222_256x240.png
71
+ - site_template/public/skin/images/ui-icons_ef8c08_256x240.png
72
+ - site_template/public/skin/jquery-ui-1.7.2.custom.css
56
73
  - site_template/public/robots.txt
57
74
  - site_template/public/style
58
75
  - site_template/public/style/style.css
76
+ - site_template/public/js
77
+ - site_template/public/js/jquery.json-1.3.min.js
78
+ - site_template/public/js/jquery-1.3.2.min.js
79
+ - site_template/public/js/jquery-ui-1.7.2.custom.min.js
59
80
  - site_template/public/images
60
81
  - site_template/public/images/README.txt
61
82
  - site_template/public/favicon.ico
@@ -67,8 +88,8 @@ files:
67
88
  - site_template/design/foot.haml
68
89
  - site_template/design/body.rb
69
90
  - site_template/design/head.rb
91
+ - site_template/design/1-text.sass
70
92
  - site_template/design/960.sass
71
- - site_template/design/text.sass
72
93
  - site_template/design/sprites.sass
73
94
  - site_template/design/head.haml
74
95
  - site_template/design/page.sass
@@ -77,20 +98,35 @@ files:
77
98
  - site_template/design/xhtml.haml
78
99
  - site_template/design/button.haml
79
100
  - site_template/design/foot.sass
80
- - site_template/design/reset.sass
101
+ - site_template/design/0-reset.sass
81
102
  - site_template/design/body.haml
82
103
  - site_template/design/button.rb
83
104
  - site_template/pages
105
+ - site_template/pages/Home.yaml.~5~
84
106
  - site_template/pages/News.yaml
107
+ - site_template/pages/Home.yaml.~1~
108
+ - site_template/pages/Home.yaml.~4~
85
109
  - site_template/pages/NotFound.yaml
110
+ - site_template/pages/Home.yaml.~3~
86
111
  - site_template/pages/Home.yaml
87
112
  - site_template/pages/Products.yaml
88
113
  - site_template/pages/About.yaml
114
+ - site_template/pages/Home.yaml.~2~
89
115
  - site_template/config
116
+ - site_template/config/foot.yaml.~5~
117
+ - site_template/config/foot.yaml.~4~
90
118
  - site_template/config/head.yaml
119
+ - site_template/config/head.yaml.~5~
120
+ - site_template/config/head.yaml.~1~
91
121
  - site_template/config/users.yaml
122
+ - site_template/config/head.yaml.~2~
92
123
  - site_template/config/config.yaml
124
+ - site_template/config/head.yaml.~4~
125
+ - site_template/config/foot.yaml.~1~
93
126
  - site_template/config/foot.yaml
127
+ - site_template/config/foot.yaml.~2~
128
+ - site_template/config/foot.yaml.~3~
129
+ - site_template/config/head.yaml.~3~
94
130
  - site_template/Rakefile
95
131
  - lib
96
132
  - lib/milk
@@ -113,13 +149,13 @@ files:
113
149
  - lib/milk/fields/sprite_chooser.haml
114
150
  - lib/milk/fields/markdown_field.rb
115
151
  - lib/milk/fields/component_array.haml
116
- - lib/milk/fields/component_view.haml
117
152
  - lib/milk/fields/component.haml
153
+ - lib/milk/component.rb.~1~
154
+ - lib/milk/page.rb.~1~
118
155
  - lib/milk/component.rb
119
156
  - lib/milk/application.rb
120
157
  - lib/milk.rb
121
158
  - LICENSE
122
- - milk-0.0.5.gem
123
159
  - Rakefile
124
160
  - milk.gemspec
125
161
  - bin
@@ -1,2 +0,0 @@
1
- %div{:class=>"component com_#{index}"}
2
- = yield
Binary file