milk 0.0.0 → 0.0.1

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 (170) hide show
  1. data/INSTALL +8 -0
  2. data/LICENSE +24 -17
  3. data/README +3 -0
  4. data/Rakefile +21 -56
  5. data/bin/milk +2 -19
  6. data/doc/classes/Milk.html +198 -0
  7. data/doc/classes/Milk.src/M000005.html +17 -0
  8. data/doc/classes/Milk/Application.html +209 -0
  9. data/doc/classes/Milk/Application.src/M000007.html +69 -0
  10. data/doc/classes/Milk/Application.src/M000008.html +38 -0
  11. data/doc/classes/Milk/Component.html +397 -0
  12. data/doc/classes/Milk/Component.src/M000014.html +19 -0
  13. data/doc/classes/Milk/Component.src/M000015.html +16 -0
  14. data/doc/classes/Milk/Component.src/M000016.html +15 -0
  15. data/doc/classes/Milk/Component.src/M000017.html +15 -0
  16. data/doc/classes/Milk/Component.src/M000018.html +15 -0
  17. data/doc/classes/Milk/Component.src/M000019.html +15 -0
  18. data/doc/classes/Milk/Component.src/M000020.html +15 -0
  19. data/doc/classes/Milk/Component.src/M000021.html +15 -0
  20. data/doc/classes/Milk/Component.src/M000022.html +18 -0
  21. data/doc/classes/Milk/Component.src/M000023.html +21 -0
  22. data/doc/classes/Milk/Component.src/M000024.html +15 -0
  23. data/doc/classes/Milk/Component.src/M000025.html +22 -0
  24. data/doc/classes/Milk/ExternalCompilerError.html +117 -0
  25. data/doc/classes/Milk/Field.html +114 -0
  26. data/doc/classes/Milk/Fields.html +173 -0
  27. data/doc/classes/Milk/Fields/ComponentArray.html +114 -0
  28. data/doc/classes/Milk/Fields/ImageChooser.html +114 -0
  29. data/doc/classes/Milk/Fields/MarkdownField.html +114 -0
  30. data/doc/classes/Milk/Fields/PageChooser.html +114 -0
  31. data/doc/classes/Milk/Fields/SpriteChooser.html +114 -0
  32. data/doc/classes/Milk/Fields/TextField.html +114 -0
  33. data/doc/classes/Milk/Haxe.html +208 -0
  34. data/doc/classes/Milk/Haxe.src/M000005.html +40 -0
  35. data/doc/classes/Milk/Haxe.src/M000006.html +15 -0
  36. data/doc/classes/Milk/Page.html +243 -0
  37. data/doc/classes/Milk/Page.src/M000009.html +17 -0
  38. data/doc/classes/Milk/Page.src/M000010.html +17 -0
  39. data/doc/classes/Milk/Page.src/M000011.html +18 -0
  40. data/doc/classes/Milk/Page.src/M000012.html +20 -0
  41. data/doc/classes/Milk/Page.src/M000013.html +21 -0
  42. data/doc/classes/Milk/PageNotFoundError.html +110 -0
  43. data/doc/classes/Object.html +237 -0
  44. data/doc/classes/Object.src/M000001.html +13 -0
  45. data/doc/classes/Object.src/M000002.html +13 -0
  46. data/doc/classes/Object.src/M000003.html +15 -0
  47. data/doc/classes/Object.src/M000004.html +15 -0
  48. data/doc/created.rid +1 -0
  49. data/doc/files/INSTALL.html +106 -0
  50. data/doc/files/LICENSE.html +126 -0
  51. data/doc/files/README.html +100 -0
  52. data/doc/files/Rakefile.html +121 -0
  53. data/doc/files/bin/milk.html +100 -0
  54. data/doc/files/doc/classes/Milk/Application_html.html +302 -0
  55. data/doc/files/doc/classes/Milk/Application_src/M000007_html.html +173 -0
  56. data/doc/files/doc/classes/Milk/Application_src/M000008_html.html +142 -0
  57. data/doc/files/doc/classes/Milk/Component_html.html +477 -0
  58. data/doc/files/doc/classes/Milk/Component_src/M000014_html.html +123 -0
  59. data/doc/files/doc/classes/Milk/Component_src/M000015_html.html +120 -0
  60. data/doc/files/doc/classes/Milk/Component_src/M000016_html.html +119 -0
  61. data/doc/files/doc/classes/Milk/Component_src/M000017_html.html +119 -0
  62. data/doc/files/doc/classes/Milk/Component_src/M000018_html.html +119 -0
  63. data/doc/files/doc/classes/Milk/Component_src/M000019_html.html +119 -0
  64. data/doc/files/doc/classes/Milk/Component_src/M000020_html.html +119 -0
  65. data/doc/files/doc/classes/Milk/Component_src/M000021_html.html +119 -0
  66. data/doc/files/doc/classes/Milk/Component_src/M000022_html.html +122 -0
  67. data/doc/files/doc/classes/Milk/Component_src/M000023_html.html +125 -0
  68. data/doc/files/doc/classes/Milk/Component_src/M000024_html.html +119 -0
  69. data/doc/files/doc/classes/Milk/Component_src/M000025_html.html +126 -0
  70. data/doc/files/doc/classes/Milk/ExternalCompilerError_html.html +214 -0
  71. data/doc/files/doc/classes/Milk/Field_html.html +209 -0
  72. data/doc/files/doc/classes/Milk/Fields/ComponentArray_html.html +209 -0
  73. data/doc/files/doc/classes/Milk/Fields/ImageChooser_html.html +209 -0
  74. data/doc/files/doc/classes/Milk/Fields/MarkdownField_html.html +209 -0
  75. data/doc/files/doc/classes/Milk/Fields/PageChooser_html.html +209 -0
  76. data/doc/files/doc/classes/Milk/Fields/SpriteChooser_html.html +209 -0
  77. data/doc/files/doc/classes/Milk/Fields/TextField_html.html +209 -0
  78. data/doc/files/doc/classes/Milk/Fields_html.html +264 -0
  79. data/doc/files/doc/classes/Milk/Haxe_html.html +298 -0
  80. data/doc/files/doc/classes/Milk/Haxe_src/M000005_html.html +144 -0
  81. data/doc/files/doc/classes/Milk/Haxe_src/M000006_html.html +119 -0
  82. data/doc/files/doc/classes/Milk/PageNotFoundError_html.html +205 -0
  83. data/doc/files/doc/classes/Milk/Page_html.html +330 -0
  84. data/doc/files/doc/classes/Milk/Page_src/M000009_html.html +121 -0
  85. data/doc/files/doc/classes/Milk/Page_src/M000010_html.html +121 -0
  86. data/doc/files/doc/classes/Milk/Page_src/M000011_html.html +122 -0
  87. data/doc/files/doc/classes/Milk/Page_src/M000012_html.html +124 -0
  88. data/doc/files/doc/classes/Milk/Page_src/M000013_html.html +125 -0
  89. data/doc/files/doc/classes/Milk_html.html +321 -0
  90. data/doc/files/doc/classes/Object_html.html +334 -0
  91. data/doc/files/doc/classes/Object_src/M000001_html.html +117 -0
  92. data/doc/files/doc/classes/Object_src/M000002_html.html +117 -0
  93. data/doc/files/doc/classes/Object_src/M000003_html.html +119 -0
  94. data/doc/files/doc/classes/Object_src/M000004_html.html +119 -0
  95. data/doc/files/doc/created_rid.html +97 -0
  96. data/doc/files/doc/files/INSTALL_html.html +206 -0
  97. data/doc/files/doc/files/LICENSE_html.html +226 -0
  98. data/doc/files/doc/files/README_html.html +201 -0
  99. data/doc/files/doc/files/Rakefile_html.html +221 -0
  100. data/doc/files/doc/files/bin/milk_html.html +198 -0
  101. data/doc/files/doc/files/lib/milk/application_rb_html.html +188 -0
  102. data/doc/files/doc/files/lib/milk/component_rb_html.html +188 -0
  103. data/doc/files/doc/files/lib/milk/field_rb_html.html +188 -0
  104. data/doc/files/doc/files/lib/milk/fields/component_array_rb_html.html +188 -0
  105. data/doc/files/doc/files/lib/milk/fields/image_chooser_rb_html.html +188 -0
  106. data/doc/files/doc/files/lib/milk/fields/markdown_field_rb_html.html +188 -0
  107. data/doc/files/doc/files/lib/milk/fields/page_chooser_rb_html.html +188 -0
  108. data/doc/files/doc/files/lib/milk/fields/sprite_chooser_rb_html.html +188 -0
  109. data/doc/files/doc/files/lib/milk/fields/text_field_rb_html.html +188 -0
  110. data/doc/files/doc/files/lib/milk/fields/xhtml_haml_html.html +211 -0
  111. data/doc/files/doc/files/lib/milk/haxe_rb_html.html +188 -0
  112. data/doc/files/doc/files/lib/milk/page_rb_html.html +188 -0
  113. data/doc/files/doc/files/lib/milk/tasks_rb_html.html +202 -0
  114. data/doc/files/doc/files/lib/milk/templates/bzrignore_html.html +197 -0
  115. data/doc/files/doc/files/lib/milk/templates/rackup_html.html +217 -0
  116. data/doc/files/doc/files/lib/milk/templates/rakefile_html.html +198 -0
  117. data/doc/files/doc/files/lib/milk/templates/restart_html.html +197 -0
  118. data/doc/files/doc/files/lib/milk_rb_html.html +197 -0
  119. data/doc/files/doc/fr_class_index_html.html +160 -0
  120. data/doc/files/doc/fr_file_index_html.html +174 -0
  121. data/doc/files/doc/fr_method_index_html.html +178 -0
  122. data/doc/files/doc/index_html.html +128 -0
  123. data/doc/files/doc/rdoc-style_css.html +665 -0
  124. data/doc/files/lib/milk/application_rb.html +90 -0
  125. data/doc/files/lib/milk/component_rb.html +90 -0
  126. data/doc/files/lib/milk/field_rb.html +90 -0
  127. data/doc/files/lib/milk/fields/component_array_rb.html +90 -0
  128. data/doc/files/lib/milk/fields/image_chooser_rb.html +90 -0
  129. data/doc/files/lib/milk/fields/markdown_field_rb.html +90 -0
  130. data/doc/files/lib/milk/fields/page_chooser_rb.html +90 -0
  131. data/doc/files/lib/milk/fields/sprite_chooser_rb.html +90 -0
  132. data/doc/files/lib/milk/fields/text_field_rb.html +90 -0
  133. data/doc/files/lib/milk/fields/xhtml_haml.html +107 -0
  134. data/doc/files/lib/milk/haxe_rb.html +90 -0
  135. data/doc/files/lib/milk/page_rb.html +90 -0
  136. data/doc/files/lib/milk/tasks_rb.html +104 -0
  137. data/doc/files/lib/milk/templates/bzrignore.html +97 -0
  138. data/doc/files/lib/milk/templates/rackup.html +119 -0
  139. data/doc/files/lib/milk/templates/rakefile.html +98 -0
  140. data/doc/files/lib/milk/templates/restart.html +97 -0
  141. data/doc/files/lib/milk_rb.html +97 -0
  142. data/doc/fr_class_index.html +27 -0
  143. data/doc/fr_file_index.html +169 -0
  144. data/doc/fr_method_index.html +33 -0
  145. data/doc/index.html +21 -0
  146. data/doc/rdoc-style.css +299 -0
  147. data/lib/milk.rb +58 -0
  148. data/lib/milk/application.rb +98 -0
  149. data/lib/milk/component.rb +73 -0
  150. data/lib/milk/field.rb +16 -0
  151. data/lib/milk/fields/component_array.rb +4 -0
  152. data/lib/milk/fields/image_chooser.rb +4 -0
  153. data/lib/milk/fields/markdown_field.rb +4 -0
  154. data/lib/milk/fields/page_chooser.rb +4 -0
  155. data/lib/milk/fields/sprite_chooser.rb +4 -0
  156. data/lib/milk/fields/text_field.rb +4 -0
  157. data/lib/milk/fields/xhtml.haml +10 -0
  158. data/lib/milk/haxe.rb +139 -0
  159. data/lib/milk/page.rb +45 -0
  160. data/lib/milk/tasks.rb +89 -0
  161. data/lib/milk/templates/bzrignore +3 -0
  162. data/lib/milk/templates/rackup +16 -0
  163. data/lib/milk/templates/rakefile +4 -0
  164. data/lib/milk/templates/restart +1 -0
  165. metadata +246 -26
  166. data/.document +0 -5
  167. data/.gitignore +0 -5
  168. data/README.rdoc +0 -7
  169. data/test/milk_test.rb +0 -7
  170. data/test/test_helper.rb +0 -10
data/INSTALL ADDED
@@ -0,0 +1,8 @@
1
+ To install:
2
+
3
+ rake gem
4
+
5
+ sudo gem install pkg/milk-0.0.1.gem
6
+
7
+ This should install milk, all it's dependencies and the `milk` command line tool
8
+ to generate new sites.
data/LICENSE CHANGED
@@ -1,20 +1,27 @@
1
- Copyright (c) 2009 Tim Caswell
1
+ Copyright (c) 2009, Creationix
2
+ All rights reserved.
2
3
 
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
4
+ Redistribution and use in source and binary forms, with or without modification,
5
+ are permitted provided that the following conditions are met:
10
6
 
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
7
+ * Redistributions of source code must retain the above copyright notice,
8
+ this list of conditions and the following disclaimer.
9
+
10
+ * Redistributions in binary form must reproduce the above copyright notice,
11
+ this list of conditions and the following disclaimer in the documentation
12
+ and/or other materials provided with the distribution.
13
+
14
+ * Neither the name of Creationix nor the names of its contributors may be
15
+ used to endorse or promote products derived from this software without
16
+ specific prior written permission.
13
17
 
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
22
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
25
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
data/README ADDED
@@ -0,0 +1,3 @@
1
+ Milk is a rack based cms system built for ease of use and simplicity. Milk
2
+ tastes great with and without cookies. The public facing aspect is static html
3
+ files, and the admin side is super easy to use.
data/Rakefile CHANGED
@@ -1,58 +1,23 @@
1
- require 'rubygems'
2
- require 'rake'
3
-
4
- begin
5
- require 'jeweler'
6
- Jeweler::Tasks.new do |gem|
7
- gem.name = "milk"
8
- gem.summary = %Q{TODO}
9
- gem.email = "tim@creationix.com"
10
- gem.homepage = "http://github.com/creationix/milk"
11
- gem.authors = ["Tim Caswell"]
12
- gem.rubyforge_project = "milk"
13
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
14
- end
15
-
16
- Jeweler::RubyforgeTasks.new
17
- rescue LoadError
18
- puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
19
- end
20
-
21
- require 'rake/testtask'
22
- Rake::TestTask.new(:test) do |test|
23
- test.libs << 'lib' << 'test'
24
- test.pattern = 'test/**/*_test.rb'
25
- test.verbose = true
26
- end
27
-
28
- begin
29
- require 'rcov/rcovtask'
30
- Rcov::RcovTask.new do |test|
31
- test.libs << 'test'
32
- test.pattern = 'test/**/*_test.rb'
33
- test.verbose = true
34
- end
35
- rescue LoadError
36
- task :rcov do
37
- abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
38
- end
39
- end
40
-
41
-
42
- task :default => :test
43
-
44
- require 'rake/rdoctask'
45
- Rake::RDocTask.new do |rdoc|
46
- if File.exist?('VERSION.yml')
47
- config = YAML.load(File.read('VERSION.yml'))
48
- version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
49
- else
50
- version = ""
51
- end
52
-
53
- rdoc.rdoc_dir = 'rdoc'
54
- rdoc.title = "milk #{version}"
55
- rdoc.rdoc_files.include('README*')
56
- rdoc.rdoc_files.include('lib/**/*.rb')
1
+ require 'rake/gempackagetask'
2
+ spec = Gem::Specification.new do |s|
3
+ s.rubyforge_project = "milk"
4
+ s.name = "milk"
5
+ s.summary = "Milk is a rack based content management system built for ease of use and simplicity. Milk tastes great with and without cookies."
6
+ s.description= File.read(File.join(File.dirname(__FILE__), 'README'))
7
+ s.requirements << 'none'
8
+ s.version = "0.0.1"
9
+ s.author = "Tim Caswell"
10
+ s.email = "tim@creationix.com"
11
+ s.homepage = "http://milk.rubyforge.org"
12
+ s.platform = Gem::Platform::RUBY
13
+ s.required_ruby_version = '>=1.9'
14
+ s.files = Dir['**/**']
15
+ s.executables = [ 'milk' ]
16
+ s.add_dependency('rack', '>= 1.0.0')
17
+ s.add_dependency('maruku', '>= 0.6.0')
18
+ s.add_dependency('haml', '>= 2.0.9')
19
+ s.test_files = Dir["test/test*.rb"]
20
+ s.has_rdoc = false
57
21
  end
22
+ Rake::GemPackageTask.new(spec).define
58
23
 
data/bin/milk CHANGED
@@ -1,22 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'fileutils'
4
-
5
- if ARGV.length != 1
6
- puts "\nMilk site generator\n"
7
- puts "\nUsage:\n\tmilk [target project]\n\n"
8
- exit 1
9
- end
10
-
11
- target_path = File.absolute_path(ARGV[0])
12
- if File.directory?(target_path)
13
- puts "\nERROR: there already exists a folder #{target_path}\n"
14
- exit 1
15
- end
16
-
17
- puts "\nCreating milk site at #{target_path}\n"
18
- FileUtils.mkdir_p(target_path, :verbose => true)
19
- MILK_ROOT = target_path
20
3
  require 'milk'
21
- FileUtils.cp_r(Milk::TEMPLATE_DIR+"/.", target_path, :verbose => true)
22
- puts "\nDone!\n\n"
4
+
5
+ p MILK
@@ -0,0 +1,198 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <title>Module: Milk [RDoc Documentation]</title>
6
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
8
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
9
+ <script type="text/javascript">
10
+ // <![CDATA[
11
+
12
+ function popupCode( url ) {
13
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
14
+ }
15
+
16
+ function toggleCode( id ) {
17
+ if ( document.getElementById )
18
+ elem = document.getElementById( id );
19
+ else if ( document.all )
20
+ elem = eval( "document.all." + id );
21
+ else
22
+ return false;
23
+
24
+ elemStyle = elem.style;
25
+
26
+ if ( elemStyle.display != "block" ) {
27
+ elemStyle.display = "block"
28
+ } else {
29
+ elemStyle.display = "none"
30
+ }
31
+
32
+ return true;
33
+ }
34
+
35
+ // Make codeblocks hidden by default
36
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )
37
+
38
+ // ]]>
39
+ </script>
40
+
41
+ </head>
42
+ <body>
43
+
44
+
45
+ <div id="classHeader">
46
+ <table class="header-table">
47
+ <tr class="top-aligned-row">
48
+ <td><strong>Module</strong></td>
49
+ <td class="class-name-in-header">Milk</td>
50
+ </tr>
51
+ <tr class="top-aligned-row">
52
+ <td><strong>In:</strong></td>
53
+ <td>
54
+
55
+
56
+ <a href="../files/lib/milk_rb.html">
57
+
58
+ lib/milk.rb
59
+
60
+ </a>
61
+
62
+
63
+ <br />
64
+
65
+ </td>
66
+ </tr>
67
+
68
+
69
+ </table>
70
+ </div>
71
+ <!-- banner header -->
72
+
73
+ <div id="bodyContent">
74
+
75
+ <div id="contextContent">
76
+
77
+ <div id="description">
78
+ <p>
79
+ Set up our main namespace with autoloaded parts
80
+ </p>
81
+
82
+ </div>
83
+
84
+ </div>
85
+
86
+
87
+ <div id="method-list">
88
+ <h3 class="section-bar">Methods</h3>
89
+
90
+ <div class="name-list">
91
+
92
+ <a href="#M000005">get_milk_root</a>&nbsp;&nbsp;
93
+
94
+ </div>
95
+ </div>
96
+
97
+ </div>
98
+
99
+ <!-- if includes -->
100
+
101
+ <div id="section">
102
+
103
+ <div id="constants-list">
104
+ <h3 class="section-bar">Constants</h3>
105
+
106
+ <div class="name-list">
107
+ <table summary="Constants">
108
+
109
+ <tr class="top-aligned-row context-row">
110
+ <td class="context-item-name">VERSION</td>
111
+ <td>=</td>
112
+ <td class="context-item-value">'0.0.1'</td>
113
+
114
+ </tr>
115
+
116
+ <tr class="top-aligned-row context-row">
117
+ <td class="context-item-name">LIB_DIR</td>
118
+ <td>=</td>
119
+ <td class="context-item-value">File.dirname(__FILE__)</td>
120
+
121
+ </tr>
122
+
123
+ <tr class="top-aligned-row context-row">
124
+ <td class="context-item-name">BIN_DIR</td>
125
+ <td>=</td>
126
+ <td class="context-item-value">File.absolute_path(File.dirname(__FILE__)+&quot;/../../local/bin&quot;)</td>
127
+
128
+ </tr>
129
+
130
+ <tr class="top-aligned-row context-row">
131
+ <td class="context-item-name">COMPONENTS_DIR</td>
132
+ <td>=</td>
133
+ <td class="context-item-value">MILK_ROOT + &quot;/design&quot;</td>
134
+
135
+ </tr>
136
+
137
+ <tr class="top-aligned-row context-row">
138
+ <td class="context-item-name">PAGES_DIR</td>
139
+ <td>=</td>
140
+ <td class="context-item-value">MILK_ROOT + &quot;/pages&quot;</td>
141
+
142
+ </tr>
143
+
144
+ <tr class="top-aligned-row context-row">
145
+ <td class="context-item-name">PUBLIC_DIR</td>
146
+ <td>=</td>
147
+ <td class="context-item-value">MILK_ROOT + &quot;/public&quot;</td>
148
+
149
+ </tr>
150
+
151
+ </table>
152
+ </div>
153
+ </div>
154
+
155
+
156
+
157
+
158
+ <!-- if method_list -->
159
+
160
+ <div id="methods">
161
+
162
+ <h3 class="section-bar">Public Class methods</h3>
163
+
164
+
165
+ <div id="method-M000005" class="method-detail">
166
+ <a name="M000005"></a>
167
+
168
+ <div class="method-heading">
169
+
170
+ <a href="Milk.src/M000005.html" target="Code" class="method-signature"
171
+ onclick="popupCode('Milk.src/M000005.html');return false;">
172
+
173
+ <span class="method-name">get_milk_root</span><span class="method-args">()</span>
174
+
175
+ </a>
176
+
177
+ </div>
178
+
179
+ <div class="method-description">
180
+
181
+ </div>
182
+ </div>
183
+
184
+
185
+
186
+ </div>
187
+
188
+
189
+
190
+
191
+ </div>
192
+
193
+ <div id="validator-badges">
194
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
195
+ </div>
196
+
197
+ </body>
198
+ </html>
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <title>get_milk_root (Milk)</title>
6
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
8
+ </head>
9
+ <body class="standalone-code">
10
+ <pre><span class="ruby-comment cmt"># File lib/milk.rb, line 14</span>
11
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">get_milk_root</span>
12
+ <span class="ruby-identifier">c</span> = <span class="ruby-identifier">caller</span>(<span class="ruby-value">1</span>).<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span> <span class="ruby-identifier">line</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">':'</span>).<span class="ruby-identifier">first</span> }
13
+ <span class="ruby-identifier">c</span> = <span class="ruby-identifier">c</span>.<span class="ruby-identifier">select</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span> <span class="ruby-identifier">line</span> <span class="ruby-operator">!~</span> <span class="ruby-regexp re">/\/gems\//</span> }
14
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">absolute_path</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-identifier">c</span>.<span class="ruby-identifier">first</span>))
15
+ <span class="ruby-keyword kw">end</span></pre>
16
+ </body>
17
+ </html>
@@ -0,0 +1,209 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <title>Class: Milk::Application [RDoc Documentation]</title>
6
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
8
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
9
+ <script type="text/javascript">
10
+ // <![CDATA[
11
+
12
+ function popupCode( url ) {
13
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
14
+ }
15
+
16
+ function toggleCode( id ) {
17
+ if ( document.getElementById )
18
+ elem = document.getElementById( id );
19
+ else if ( document.all )
20
+ elem = eval( "document.all." + id );
21
+ else
22
+ return false;
23
+
24
+ elemStyle = elem.style;
25
+
26
+ if ( elemStyle.display != "block" ) {
27
+ elemStyle.display = "block"
28
+ } else {
29
+ elemStyle.display = "none"
30
+ }
31
+
32
+ return true;
33
+ }
34
+
35
+ // Make codeblocks hidden by default
36
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )
37
+
38
+ // ]]>
39
+ </script>
40
+
41
+ </head>
42
+ <body>
43
+
44
+
45
+ <div id="classHeader">
46
+ <table class="header-table">
47
+ <tr class="top-aligned-row">
48
+ <td><strong>Class</strong></td>
49
+ <td class="class-name-in-header">Milk::Application</td>
50
+ </tr>
51
+ <tr class="top-aligned-row">
52
+ <td><strong>In:</strong></td>
53
+ <td>
54
+
55
+
56
+ <a href="../../files/lib/milk/application_rb.html">
57
+
58
+ lib/milk/application.rb
59
+
60
+ </a>
61
+
62
+
63
+ <br />
64
+
65
+ </td>
66
+ </tr>
67
+
68
+
69
+ <tr class="top-aligned-row">
70
+ <td><strong>Parent:</strong></td>
71
+ <td>
72
+
73
+ <a href="../Object.html">
74
+
75
+ Object
76
+
77
+ </a>
78
+
79
+ </td>
80
+ </tr>
81
+
82
+ </table>
83
+ </div>
84
+ <!-- banner header -->
85
+
86
+ <div id="bodyContent">
87
+
88
+ <div id="contextContent">
89
+
90
+ </div>
91
+
92
+
93
+ <div id="method-list">
94
+ <h3 class="section-bar">Methods</h3>
95
+
96
+ <div class="name-list">
97
+
98
+ <a href="#M000008">call</a>&nbsp;&nbsp;
99
+
100
+ <a href="#M000007">route</a>&nbsp;&nbsp;
101
+
102
+ </div>
103
+ </div>
104
+
105
+ </div>
106
+
107
+ <!-- if includes -->
108
+
109
+ <div id="section">
110
+
111
+ <div id="constants-list">
112
+ <h3 class="section-bar">Constants</h3>
113
+
114
+ <div class="name-list">
115
+ <table summary="Constants">
116
+
117
+ <tr class="top-aligned-row context-row">
118
+ <td class="context-item-name">PAGE_PATH_REGEX</td>
119
+ <td>=</td>
120
+ <td class="context-item-value">/^\/([A-Z][a-zA-Z]+(\/[A-Z][a-zA-Z]+)*)+\/*$/</td>
121
+
122
+ </tr>
123
+
124
+ <tr class="top-aligned-row context-row">
125
+ <td class="context-item-name">EDIT_PATH_REGEX</td>
126
+ <td>=</td>
127
+ <td class="context-item-value">/^\/([A-Z][a-zA-Z]+(\/[A-Z][a-zA-Z]+)*)+\/edit\/*$/</td>
128
+
129
+ </tr>
130
+
131
+ <tr class="top-aligned-row context-row">
132
+ <td class="context-item-name">HAXE_PATH_REGEX</td>
133
+ <td>=</td>
134
+ <td class="context-item-value">/^\/(.*).hx$/</td>
135
+
136
+ </tr>
137
+
138
+ </table>
139
+ </div>
140
+ </div>
141
+
142
+
143
+
144
+
145
+ <!-- if method_list -->
146
+
147
+ <div id="methods">
148
+
149
+ <h3 class="section-bar">Public Instance methods</h3>
150
+
151
+
152
+ <div id="method-M000008" class="method-detail">
153
+ <a name="M000008"></a>
154
+
155
+ <div class="method-heading">
156
+
157
+ <a href="Application.src/M000008.html" target="Code" class="method-signature"
158
+ onclick="popupCode('Application.src/M000008.html');return false;">
159
+
160
+ <span class="method-name">call</span><span class="method-args">(env)</span>
161
+
162
+ </a>
163
+
164
+ </div>
165
+
166
+ <div class="method-description">
167
+
168
+ <p>
169
+ Rack call interface
170
+ </p>
171
+
172
+ </div>
173
+ </div>
174
+
175
+
176
+ <div id="method-M000007" class="method-detail">
177
+ <a name="M000007"></a>
178
+
179
+ <div class="method-heading">
180
+
181
+ <a href="Application.src/M000007.html" target="Code" class="method-signature"
182
+ onclick="popupCode('Application.src/M000007.html');return false;">
183
+
184
+ <span class="method-name">route</span><span class="method-args">(req)</span>
185
+
186
+ </a>
187
+
188
+ </div>
189
+
190
+ <div class="method-description">
191
+
192
+ </div>
193
+ </div>
194
+
195
+
196
+
197
+ </div>
198
+
199
+
200
+
201
+
202
+ </div>
203
+
204
+ <div id="validator-badges">
205
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
206
+ </div>
207
+
208
+ </body>
209
+ </html>