uki 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (235) hide show
  1. data/.gitignore +7 -0
  2. data/.gitmodules +3 -0
  3. data/LICENSE +20 -0
  4. data/Rakefile +23 -0
  5. data/Readme.rdoc +9 -0
  6. data/VERSION +1 -0
  7. data/bin/uki +102 -0
  8. data/frameworks/jspec/lib/images/bg.png +0 -0
  9. data/frameworks/jspec/lib/images/hr.png +0 -0
  10. data/frameworks/jspec/lib/images/loading.gif +0 -0
  11. data/frameworks/jspec/lib/images/sprites.bg.png +0 -0
  12. data/frameworks/jspec/lib/images/sprites.png +0 -0
  13. data/frameworks/jspec/lib/images/vr.png +0 -0
  14. data/frameworks/jspec/lib/jspec.css +149 -0
  15. data/frameworks/jspec/lib/jspec.growl.js +115 -0
  16. data/frameworks/jspec/lib/jspec.jquery.js +72 -0
  17. data/frameworks/jspec/lib/jspec.js +1756 -0
  18. data/frameworks/jspec/lib/jspec.shell.js +39 -0
  19. data/frameworks/jspec/lib/jspec.timers.js +90 -0
  20. data/frameworks/jspec/lib/jspec.xhr.js +195 -0
  21. data/frameworks/uki/README.rdoc +179 -0
  22. data/frameworks/uki/compiler.jar +0 -0
  23. data/frameworks/uki/run.rb +2 -0
  24. data/frameworks/uki/spec/commands/example_command.rb +19 -0
  25. data/frameworks/uki/spec/dom.html +39 -0
  26. data/frameworks/uki/spec/support/images/bg.png +0 -0
  27. data/frameworks/uki/spec/support/images/hr.png +0 -0
  28. data/frameworks/uki/spec/support/images/loading.gif +0 -0
  29. data/frameworks/uki/spec/support/images/sprites.bg.png +0 -0
  30. data/frameworks/uki/spec/support/images/sprites.png +0 -0
  31. data/frameworks/uki/spec/support/images/vr.png +0 -0
  32. data/frameworks/uki/spec/support/jspec.css +149 -0
  33. data/frameworks/uki/spec/support/jspec.js +1773 -0
  34. data/frameworks/uki/spec/support/jspec.xhr.js +193 -0
  35. data/frameworks/uki/spec/support/spec.helper.js +1 -0
  36. data/frameworks/uki/spec/unit/background.spec.js +29 -0
  37. data/frameworks/uki/spec/unit/builder.spec.js +51 -0
  38. data/frameworks/uki/spec/unit/data/model.spec.js +29 -0
  39. data/frameworks/uki/spec/unit/dom/dnd.spec.js +71 -0
  40. data/frameworks/uki/spec/unit/dom/event.spec.js +78 -0
  41. data/frameworks/uki/spec/unit/dom.spec.js +28 -0
  42. data/frameworks/uki/spec/unit/geometry.spec.js +79 -0
  43. data/frameworks/uki/spec/unit/selector.spec.js +140 -0
  44. data/frameworks/uki/spec/unit/theme/template.spec.js +31 -0
  45. data/frameworks/uki/spec/unit/utils.spec.js +176 -0
  46. data/frameworks/uki/spec/unit/view/base.spec.js +86 -0
  47. data/frameworks/uki/spec/unit/view/container.spec.js +73 -0
  48. data/frameworks/uki/spec/unit/view.spec.js +13 -0
  49. data/frameworks/uki/src/airport.js +1 -0
  50. data/frameworks/uki/src/uki-core/attachment.js +175 -0
  51. data/frameworks/uki/src/uki-core/background/css.js +37 -0
  52. data/frameworks/uki/src/uki-core/background/cssBox.js +73 -0
  53. data/frameworks/uki/src/uki-core/background/multi.js +20 -0
  54. data/frameworks/uki/src/uki-core/background/null.js +10 -0
  55. data/frameworks/uki/src/uki-core/background/rows.js +77 -0
  56. data/frameworks/uki/src/uki-core/background/sliced9.js +206 -0
  57. data/frameworks/uki/src/uki-core/background.js +35 -0
  58. data/frameworks/uki/src/uki-core/builder.js +68 -0
  59. data/frameworks/uki/src/uki-core/collection.js +278 -0
  60. data/frameworks/uki/src/uki-core/const.js +17 -0
  61. data/frameworks/uki/src/uki-core/dom/dnd.js +93 -0
  62. data/frameworks/uki/src/uki-core/dom/event.js +194 -0
  63. data/frameworks/uki/src/uki-core/dom/nativeLayout.js +18 -0
  64. data/frameworks/uki/src/uki-core/dom/offset.js +130 -0
  65. data/frameworks/uki/src/uki-core/dom/w3cdnd.js +333 -0
  66. data/frameworks/uki/src/uki-core/dom.js +109 -0
  67. data/frameworks/uki/src/uki-core/geometry.js +658 -0
  68. data/frameworks/uki/src/uki-core/image.js +90 -0
  69. data/frameworks/uki/src/uki-core/selector.js +201 -0
  70. data/frameworks/uki/src/uki-core/theme/base.js +39 -0
  71. data/frameworks/uki/src/uki-core/theme/template.js +26 -0
  72. data/frameworks/uki/src/uki-core/theme.js +45 -0
  73. data/frameworks/uki/src/uki-core/uki.js +45 -0
  74. data/frameworks/uki/src/uki-core/utils.js +399 -0
  75. data/frameworks/uki/src/uki-core/view/base.js +480 -0
  76. data/frameworks/uki/src/uki-core/view/container.js +155 -0
  77. data/frameworks/uki/src/uki-core/view/focusable.js +93 -0
  78. data/frameworks/uki/src/uki-core/view/observable.js +66 -0
  79. data/frameworks/uki/src/uki-core/view/styleable.js +70 -0
  80. data/frameworks/uki/src/uki-core/view/utils.js +66 -0
  81. data/frameworks/uki/src/uki-core/view.js +21 -0
  82. data/frameworks/uki/src/uki-core.js +36 -0
  83. data/frameworks/uki/src/uki-data/data.js +1 -0
  84. data/frameworks/uki/src/uki-data/model.js +28 -0
  85. data/frameworks/uki/src/uki-data/observable.js +34 -0
  86. data/frameworks/uki/src/uki-data.js +1 -0
  87. data/frameworks/uki/src/uki-more/more/utils.js +20 -0
  88. data/frameworks/uki/src/uki-more/more/view/listContainer.js +4 -0
  89. data/frameworks/uki/src/uki-more/more/view/multiselectList.js +196 -0
  90. data/frameworks/uki/src/uki-more/more/view/radioButton.js +27 -0
  91. data/frameworks/uki/src/uki-more/more/view/splitTable.js +79 -0
  92. data/frameworks/uki/src/uki-more/more/view/toggleButton.js +24 -0
  93. data/frameworks/uki/src/uki-more/more/view/treeList/render.js +53 -0
  94. data/frameworks/uki/src/uki-more/more/view/treeList.js +110 -0
  95. data/frameworks/uki/src/uki-more/more/view.js +2 -0
  96. data/frameworks/uki/src/uki-more/more.js +1 -0
  97. data/frameworks/uki/src/uki-more.js +4 -0
  98. data/frameworks/uki/src/uki-theamless.js +15 -0
  99. data/frameworks/uki/src/uki-theme/airport/i/button/down-c.gif +0 -0
  100. data/frameworks/uki/src/uki-theme/airport/i/button/down-c.png +0 -0
  101. data/frameworks/uki/src/uki-theme/airport/i/button/down-h.gif +0 -0
  102. data/frameworks/uki/src/uki-theme/airport/i/button/down-h.png +0 -0
  103. data/frameworks/uki/src/uki-theme/airport/i/button/down-m.png +0 -0
  104. data/frameworks/uki/src/uki-theme/airport/i/button/down-v.png +0 -0
  105. data/frameworks/uki/src/uki-theme/airport/i/button/focusRing-c.png +0 -0
  106. data/frameworks/uki/src/uki-theme/airport/i/button/focusRing-h.png +0 -0
  107. data/frameworks/uki/src/uki-theme/airport/i/button/focusRing-m.png +0 -0
  108. data/frameworks/uki/src/uki-theme/airport/i/button/focusRing-v.png +0 -0
  109. data/frameworks/uki/src/uki-theme/airport/i/button/focusRing.png +0 -0
  110. data/frameworks/uki/src/uki-theme/airport/i/button/hover-c.gif +0 -0
  111. data/frameworks/uki/src/uki-theme/airport/i/button/hover-c.png +0 -0
  112. data/frameworks/uki/src/uki-theme/airport/i/button/hover-h.gif +0 -0
  113. data/frameworks/uki/src/uki-theme/airport/i/button/hover-h.png +0 -0
  114. data/frameworks/uki/src/uki-theme/airport/i/button/hover-m.png +0 -0
  115. data/frameworks/uki/src/uki-theme/airport/i/button/hover-v.png +0 -0
  116. data/frameworks/uki/src/uki-theme/airport/i/button/hover.png +0 -0
  117. data/frameworks/uki/src/uki-theme/airport/i/button/normal-c.gif +0 -0
  118. data/frameworks/uki/src/uki-theme/airport/i/button/normal-c.png +0 -0
  119. data/frameworks/uki/src/uki-theme/airport/i/button/normal-h.gif +0 -0
  120. data/frameworks/uki/src/uki-theme/airport/i/button/normal-h.png +0 -0
  121. data/frameworks/uki/src/uki-theme/airport/i/button/normal-m.png +0 -0
  122. data/frameworks/uki/src/uki-theme/airport/i/button/normal-v.png +0 -0
  123. data/frameworks/uki/src/uki-theme/airport/i/button/normal.png +0 -0
  124. data/frameworks/uki/src/uki-theme/airport/i/checkbox/checkbox.png +0 -0
  125. data/frameworks/uki/src/uki-theme/airport/i/checkbox/focus.png +0 -0
  126. data/frameworks/uki/src/uki-theme/airport/i/checkbox/normal.gif +0 -0
  127. data/frameworks/uki/src/uki-theme/airport/i/checkbox/normal.png +0 -0
  128. data/frameworks/uki/src/uki-theme/airport/i/panel/dark-h.gif +0 -0
  129. data/frameworks/uki/src/uki-theme/airport/i/panel/dark-h.png +0 -0
  130. data/frameworks/uki/src/uki-theme/airport/i/panel/dark-m.png +0 -0
  131. data/frameworks/uki/src/uki-theme/airport/i/panel/dark.png +0 -0
  132. data/frameworks/uki/src/uki-theme/airport/i/popup/normal.png +0 -0
  133. data/frameworks/uki/src/uki-theme/airport/i/radio/focus.png +0 -0
  134. data/frameworks/uki/src/uki-theme/airport/i/radio/normal.gif +0 -0
  135. data/frameworks/uki/src/uki-theme/airport/i/radio/normal.png +0 -0
  136. data/frameworks/uki/src/uki-theme/airport/i/radio/radio.png +0 -0
  137. data/frameworks/uki/src/uki-theme/airport/i/shadow/large-c.png +0 -0
  138. data/frameworks/uki/src/uki-theme/airport/i/shadow/large-h.png +0 -0
  139. data/frameworks/uki/src/uki-theme/airport/i/shadow/large-m.png +0 -0
  140. data/frameworks/uki/src/uki-theme/airport/i/shadow/large-v.png +0 -0
  141. data/frameworks/uki/src/uki-theme/airport/i/shadow/large.png +0 -0
  142. data/frameworks/uki/src/uki-theme/airport/i/slider/bar-m.gif +0 -0
  143. data/frameworks/uki/src/uki-theme/airport/i/slider/bar-m.png +0 -0
  144. data/frameworks/uki/src/uki-theme/airport/i/slider/bar-v.gif +0 -0
  145. data/frameworks/uki/src/uki-theme/airport/i/slider/bar-v.png +0 -0
  146. data/frameworks/uki/src/uki-theme/airport/i/slider/bar.png +0 -0
  147. data/frameworks/uki/src/uki-theme/airport/i/slider/focus.png +0 -0
  148. data/frameworks/uki/src/uki-theme/airport/i/slider/handle.gif +0 -0
  149. data/frameworks/uki/src/uki-theme/airport/i/splitPane/horizontal.gif +0 -0
  150. data/frameworks/uki/src/uki-theme/airport/i/splitPane/horizontal.png +0 -0
  151. data/frameworks/uki/src/uki-theme/airport/i/splitPane/vertical.gif +0 -0
  152. data/frameworks/uki/src/uki-theme/airport/i/x.gif +0 -0
  153. data/frameworks/uki/src/uki-theme/airport.js +322 -0
  154. data/frameworks/uki/src/uki-theme/aristo/i/button/down-c.gif +0 -0
  155. data/frameworks/uki/src/uki-theme/aristo/i/button/down-c.png +0 -0
  156. data/frameworks/uki/src/uki-theme/aristo/i/button/down-h.png +0 -0
  157. data/frameworks/uki/src/uki-theme/aristo/i/button/down-m.png +0 -0
  158. data/frameworks/uki/src/uki-theme/aristo/i/button/down-v.png +0 -0
  159. data/frameworks/uki/src/uki-theme/aristo/i/button/down.png +0 -0
  160. data/frameworks/uki/src/uki-theme/aristo/i/button/focusRing-c.png +0 -0
  161. data/frameworks/uki/src/uki-theme/aristo/i/button/focusRing-h.png +0 -0
  162. data/frameworks/uki/src/uki-theme/aristo/i/button/focusRing-m.png +0 -0
  163. data/frameworks/uki/src/uki-theme/aristo/i/button/focusRing-v.png +0 -0
  164. data/frameworks/uki/src/uki-theme/aristo/i/button/focusRing.png +0 -0
  165. data/frameworks/uki/src/uki-theme/aristo/i/button/normal-c.gif +0 -0
  166. data/frameworks/uki/src/uki-theme/aristo/i/button/normal-c.png +0 -0
  167. data/frameworks/uki/src/uki-theme/aristo/i/button/normal-h.png +0 -0
  168. data/frameworks/uki/src/uki-theme/aristo/i/button/normal-m.png +0 -0
  169. data/frameworks/uki/src/uki-theme/aristo/i/button/normal-v.png +0 -0
  170. data/frameworks/uki/src/uki-theme/aristo/i/button/normal.png +0 -0
  171. data/frameworks/uki/src/uki-theme/aristo/i/checkbox/focus.png +0 -0
  172. data/frameworks/uki/src/uki-theme/aristo/i/checkbox/normal.gif +0 -0
  173. data/frameworks/uki/src/uki-theme/aristo/i/checkbox/normal.png +0 -0
  174. data/frameworks/uki/src/uki-theme/aristo/i/panel/normal-h.png +0 -0
  175. data/frameworks/uki/src/uki-theme/aristo/i/panel/normal-m.png +0 -0
  176. data/frameworks/uki/src/uki-theme/aristo/i/panel/normal.png +0 -0
  177. data/frameworks/uki/src/uki-theme/aristo/i/popup/normal.png +0 -0
  178. data/frameworks/uki/src/uki-theme/aristo/i/radio/focus.png +0 -0
  179. data/frameworks/uki/src/uki-theme/aristo/i/radio/normal.gif +0 -0
  180. data/frameworks/uki/src/uki-theme/aristo/i/radio/normal.png +0 -0
  181. data/frameworks/uki/src/uki-theme/aristo/i/shadow/large-c.png +0 -0
  182. data/frameworks/uki/src/uki-theme/aristo/i/shadow/large-h.png +0 -0
  183. data/frameworks/uki/src/uki-theme/aristo/i/shadow/large-m.png +0 -0
  184. data/frameworks/uki/src/uki-theme/aristo/i/shadow/large-v.png +0 -0
  185. data/frameworks/uki/src/uki-theme/aristo/i/shadow/large.png +0 -0
  186. data/frameworks/uki/src/uki-theme/aristo/i/slider/bar-m.gif +0 -0
  187. data/frameworks/uki/src/uki-theme/aristo/i/slider/bar-m.png +0 -0
  188. data/frameworks/uki/src/uki-theme/aristo/i/slider/bar-v.gif +0 -0
  189. data/frameworks/uki/src/uki-theme/aristo/i/slider/bar-v.png +0 -0
  190. data/frameworks/uki/src/uki-theme/aristo/i/slider/bar.png +0 -0
  191. data/frameworks/uki/src/uki-theme/aristo/i/slider/handle.gif +0 -0
  192. data/frameworks/uki/src/uki-theme/aristo/i/slider/handle.png +0 -0
  193. data/frameworks/uki/src/uki-theme/aristo/i/splitPane/horizontal.gif +0 -0
  194. data/frameworks/uki/src/uki-theme/aristo/i/splitPane/horizontal.png +0 -0
  195. data/frameworks/uki/src/uki-theme/aristo/i/splitPane/vertical.gif +0 -0
  196. data/frameworks/uki/src/uki-theme/aristo/i/x.gif +0 -0
  197. data/frameworks/uki/src/uki-theme/aristo.js +217 -0
  198. data/frameworks/uki/src/uki-view/view/box.js +1 -0
  199. data/frameworks/uki/src/uki-view/view/button.js +126 -0
  200. data/frameworks/uki/src/uki-view/view/checkbox.js +36 -0
  201. data/frameworks/uki/src/uki-view/view/flow.js +48 -0
  202. data/frameworks/uki/src/uki-view/view/image.js +9 -0
  203. data/frameworks/uki/src/uki-view/view/label.js +123 -0
  204. data/frameworks/uki/src/uki-view/view/list/render.js +23 -0
  205. data/frameworks/uki/src/uki-view/view/list.js +442 -0
  206. data/frameworks/uki/src/uki-view/view/popup.js +113 -0
  207. data/frameworks/uki/src/uki-view/view/radio.js +57 -0
  208. data/frameworks/uki/src/uki-view/view/scrollPane.js +139 -0
  209. data/frameworks/uki/src/uki-view/view/slider.js +154 -0
  210. data/frameworks/uki/src/uki-view/view/splitPane.js +213 -0
  211. data/frameworks/uki/src/uki-view/view/table/column.js +96 -0
  212. data/frameworks/uki/src/uki-view/view/table/header.js +53 -0
  213. data/frameworks/uki/src/uki-view/view/table/render.js +25 -0
  214. data/frameworks/uki/src/uki-view/view/table.js +71 -0
  215. data/frameworks/uki/src/uki-view/view/textField.js +145 -0
  216. data/frameworks/uki/src/uki-view/view/toolbar.js +93 -0
  217. data/frameworks/uki/src/uki-view.js +15 -0
  218. data/frameworks/uki/src/uki.js +2 -0
  219. data/frameworks/uki/thin.yaml +11 -0
  220. data/frameworks/uki/uki.rb +38 -0
  221. data/frameworks/uki/uki.ru +2 -0
  222. data/lib/uki/include_js.rb +50 -0
  223. data/lib/uki/project.rb +207 -0
  224. data/lib/uki/routes.rb +20 -0
  225. data/lib/uki/server.rb +42 -0
  226. data/lib/uki.rb +9 -0
  227. data/templates/index.html.erb +10 -0
  228. data/templates/model.js.erb +5 -0
  229. data/templates/myapp.js.erb +44 -0
  230. data/templates/package.js.erb +3 -0
  231. data/templates/spec.html.erb +23 -0
  232. data/templates/spec.js.erb +6 -0
  233. data/templates/view.js.erb +10 -0
  234. data/uki.gemspec +281 -0
  235. metadata +317 -0
data/lib/uki/server.rb ADDED
@@ -0,0 +1,42 @@
1
+ require 'sinatra'
2
+ require 'uki/include_js'
3
+ require 'uki/routes'
4
+
5
+ module Uki
6
+ class Server
7
+ ##
8
+ # Host string.
9
+
10
+ attr_reader :host
11
+
12
+ ##
13
+ # Port number.
14
+
15
+ attr_reader :port
16
+
17
+
18
+ def initialize hoststr
19
+ @host, @port = (hoststr || 'localhost').split(':')
20
+ @port ||= 21119 # 21 u, 11 k, 9 i
21
+ end
22
+
23
+ def start!
24
+ host, port = @host, @port # otherwise sinatra host and port will hide Server methods
25
+ Sinatra::Application.class_eval do
26
+ begin
27
+ $stderr.puts 'Started uki server at http://%s:%d' % [host, port.to_i]
28
+ detect_rack_handler.run self, :Host => host, :Port => port do |server|
29
+ trap 'INT' do
30
+ server.respond_to?(:stop!) ? server.stop! : server.stop
31
+ end
32
+ end
33
+ rescue Errno::EADDRINUSE
34
+ raise "Port #{port} already in use"
35
+ rescue Errno::EACCES
36
+ raise "Permission Denied on port #{port}"
37
+ end
38
+ end
39
+ end
40
+ end
41
+
42
+ end
data/lib/uki.rb ADDED
@@ -0,0 +1,9 @@
1
+ $:.unshift File.expand_path File.dirname(__FILE__)
2
+
3
+
4
+ module Uki
5
+ require 'uki/project'
6
+ require 'uki/server'
7
+ end
8
+
9
+
@@ -0,0 +1,10 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title><%= project_name.capitalize %></title>
5
+ <style>body, html { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden };</style>
6
+ </head>
7
+ <body>
8
+ <script src="<%= project_name %>.cjs"></script>
9
+ </body>
10
+ </html>
@@ -0,0 +1,5 @@
1
+ <% if package_name %>include('../<%= package_name.sub(/.*\./, '') %>.js');<% end %>
2
+
3
+ <%= "#{package_name}." if package_name %><%= class_name %> = uki.newClass(uki.data.Model, function(Base) {
4
+
5
+ });
@@ -0,0 +1,44 @@
1
+ (function() {
2
+ // define namespace
3
+ <%= project_name %> = {};
4
+
5
+ // all core modules
6
+ include('frameworks/uki/uki-core.js');
7
+
8
+ // used views, comment out unused ones
9
+ include('frameworks/uki/uki-view/view/box.js');
10
+ include('frameworks/uki/uki-view/view/image.js');
11
+ include('frameworks/uki/uki-view/view/button.js');
12
+ include('frameworks/uki/uki-view/view/checkbox.js');
13
+ include('frameworks/uki/uki-view/view/radio.js');
14
+ include('frameworks/uki/uki-view/view/textField.js');
15
+ include('frameworks/uki/uki-view/view/label.js');
16
+ include('frameworks/uki/uki-view/view/list.js');
17
+ include('frameworks/uki/uki-view/view/table.js');
18
+ include('frameworks/uki/uki-view/view/slider.js');
19
+ include('frameworks/uki/uki-view/view/splitPane.js');
20
+ include('frameworks/uki/uki-view/view/scrollPane.js');
21
+ include('frameworks/uki/uki-view/view/popup.js');
22
+ include('frameworks/uki/uki-view/view/flow.js');
23
+ include('frameworks/uki/uki-view/view/toolbar.js');
24
+
25
+ // theme
26
+ include('frameworks/uki/uki-theme/airport.js');
27
+
28
+ // data
29
+ include('frameworks/uki/uki-data/model.js');
30
+
31
+
32
+ uki.theme.airport.imagePath = 'i/';
33
+
34
+ // skip interface creation if we're testing
35
+ if (window.TESTING) return;
36
+
37
+ uki({ view: 'Button', rect: '100 20 100 22', anchors: '', text: 'Hello world!' })
38
+ .attachTo(window, '300 62');
39
+
40
+ uki('Button').click(function() {
41
+ alert(this.text());
42
+ });
43
+
44
+ })();
@@ -0,0 +1,3 @@
1
+ include('../<%= package_name.split('.')[-2] %>.js');
2
+
3
+ <%= package_name %> = {};
@@ -0,0 +1,23 @@
1
+ <html>
2
+ <head>
3
+ <link type="text/css" rel="stylesheet" href="frameworks/jspec/jspec.css" />
4
+ <script src="frameworks/jspec/jspec.js"></script>
5
+ <script src="frameworks/jspec/jspec.xhr.js"></script>
6
+ <script src="spec/spec.helper.js"></script>
7
+ <script>
8
+ window.TESTING = true;
9
+ function runSuites() {
10
+ JSpec
11
+ .exec('spec/spec.js')
12
+ .run({ fixturePath: 'fixtures' })
13
+ .report()
14
+ }
15
+ </script>
16
+ </head>
17
+ <body class="jspec" onLoad="runSuites();">
18
+ <script src="<%= name %>.cjs"></script>
19
+ <div id="jspec-top"><h2 id="jspec-title">JSpec <em><script>document.write(JSpec.version)</script></em></h2></div>
20
+ <div id="jspec"></div>
21
+ <div id="jspec-bottom"></div>
22
+ </body>
23
+ </html>
@@ -0,0 +1,6 @@
1
+
2
+ describe '<%= name %>'
3
+ it 'should do something'
4
+ true.should.be true
5
+ end
6
+ end
@@ -0,0 +1,10 @@
1
+ <% if package_name %>include('../<%= package_name.sub(/.*\./, '') %>.js');<% end %>
2
+
3
+ uki.view.declare('<%= "#{package_name}." if package_name %><%= class_name %>', uki.view.Base, function(Base) {
4
+
5
+ this._createDom = function() {
6
+ Base._createDom.call(this);
7
+ // add your custom code here
8
+ };
9
+
10
+ });
data/uki.gemspec ADDED
@@ -0,0 +1,281 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{uki}
8
+ s.version = "1.0.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Vladimir Kolesnikov"]
12
+ s.date = %q{2010-03-22}
13
+ s.default_executable = %q{uki}
14
+ s.description = %q{Project creation, dev server, testing, building for uki apps}
15
+ s.email = %q{voloko@gmail.com}
16
+ s.executables = ["uki"]
17
+ s.extra_rdoc_files = [
18
+ "LICENSE"
19
+ ]
20
+ s.files = [
21
+ ".gitignore",
22
+ ".gitmodules",
23
+ "LICENSE",
24
+ "Rakefile",
25
+ "Readme.rdoc",
26
+ "VERSION",
27
+ "bin/uki",
28
+ "frameworks/jspec/lib/images/bg.png",
29
+ "frameworks/jspec/lib/images/hr.png",
30
+ "frameworks/jspec/lib/images/loading.gif",
31
+ "frameworks/jspec/lib/images/sprites.bg.png",
32
+ "frameworks/jspec/lib/images/sprites.png",
33
+ "frameworks/jspec/lib/images/vr.png",
34
+ "frameworks/jspec/lib/jspec.css",
35
+ "frameworks/jspec/lib/jspec.growl.js",
36
+ "frameworks/jspec/lib/jspec.jquery.js",
37
+ "frameworks/jspec/lib/jspec.js",
38
+ "frameworks/jspec/lib/jspec.shell.js",
39
+ "frameworks/jspec/lib/jspec.timers.js",
40
+ "frameworks/jspec/lib/jspec.xhr.js",
41
+ "frameworks/uki/README.rdoc",
42
+ "frameworks/uki/compiler.jar",
43
+ "frameworks/uki/run.rb",
44
+ "frameworks/uki/spec/commands/example_command.rb",
45
+ "frameworks/uki/spec/dom.html",
46
+ "frameworks/uki/spec/support/images/bg.png",
47
+ "frameworks/uki/spec/support/images/hr.png",
48
+ "frameworks/uki/spec/support/images/loading.gif",
49
+ "frameworks/uki/spec/support/images/sprites.bg.png",
50
+ "frameworks/uki/spec/support/images/sprites.png",
51
+ "frameworks/uki/spec/support/images/vr.png",
52
+ "frameworks/uki/spec/support/jspec.css",
53
+ "frameworks/uki/spec/support/jspec.js",
54
+ "frameworks/uki/spec/support/jspec.xhr.js",
55
+ "frameworks/uki/spec/support/spec.helper.js",
56
+ "frameworks/uki/spec/unit/background.spec.js",
57
+ "frameworks/uki/spec/unit/builder.spec.js",
58
+ "frameworks/uki/spec/unit/data/model.spec.js",
59
+ "frameworks/uki/spec/unit/dom.spec.js",
60
+ "frameworks/uki/spec/unit/dom/dnd.spec.js",
61
+ "frameworks/uki/spec/unit/dom/event.spec.js",
62
+ "frameworks/uki/spec/unit/geometry.spec.js",
63
+ "frameworks/uki/spec/unit/selector.spec.js",
64
+ "frameworks/uki/spec/unit/theme/template.spec.js",
65
+ "frameworks/uki/spec/unit/utils.spec.js",
66
+ "frameworks/uki/spec/unit/view.spec.js",
67
+ "frameworks/uki/spec/unit/view/base.spec.js",
68
+ "frameworks/uki/spec/unit/view/container.spec.js",
69
+ "frameworks/uki/src/airport.js",
70
+ "frameworks/uki/src/uki-core.js",
71
+ "frameworks/uki/src/uki-core/attachment.js",
72
+ "frameworks/uki/src/uki-core/background.js",
73
+ "frameworks/uki/src/uki-core/background/css.js",
74
+ "frameworks/uki/src/uki-core/background/cssBox.js",
75
+ "frameworks/uki/src/uki-core/background/multi.js",
76
+ "frameworks/uki/src/uki-core/background/null.js",
77
+ "frameworks/uki/src/uki-core/background/rows.js",
78
+ "frameworks/uki/src/uki-core/background/sliced9.js",
79
+ "frameworks/uki/src/uki-core/builder.js",
80
+ "frameworks/uki/src/uki-core/collection.js",
81
+ "frameworks/uki/src/uki-core/const.js",
82
+ "frameworks/uki/src/uki-core/dom.js",
83
+ "frameworks/uki/src/uki-core/dom/dnd.js",
84
+ "frameworks/uki/src/uki-core/dom/event.js",
85
+ "frameworks/uki/src/uki-core/dom/nativeLayout.js",
86
+ "frameworks/uki/src/uki-core/dom/offset.js",
87
+ "frameworks/uki/src/uki-core/dom/w3cdnd.js",
88
+ "frameworks/uki/src/uki-core/geometry.js",
89
+ "frameworks/uki/src/uki-core/image.js",
90
+ "frameworks/uki/src/uki-core/selector.js",
91
+ "frameworks/uki/src/uki-core/theme.js",
92
+ "frameworks/uki/src/uki-core/theme/base.js",
93
+ "frameworks/uki/src/uki-core/theme/template.js",
94
+ "frameworks/uki/src/uki-core/uki.js",
95
+ "frameworks/uki/src/uki-core/utils.js",
96
+ "frameworks/uki/src/uki-core/view.js",
97
+ "frameworks/uki/src/uki-core/view/base.js",
98
+ "frameworks/uki/src/uki-core/view/container.js",
99
+ "frameworks/uki/src/uki-core/view/focusable.js",
100
+ "frameworks/uki/src/uki-core/view/observable.js",
101
+ "frameworks/uki/src/uki-core/view/styleable.js",
102
+ "frameworks/uki/src/uki-core/view/utils.js",
103
+ "frameworks/uki/src/uki-data.js",
104
+ "frameworks/uki/src/uki-data/data.js",
105
+ "frameworks/uki/src/uki-data/model.js",
106
+ "frameworks/uki/src/uki-data/observable.js",
107
+ "frameworks/uki/src/uki-more.js",
108
+ "frameworks/uki/src/uki-more/more.js",
109
+ "frameworks/uki/src/uki-more/more/utils.js",
110
+ "frameworks/uki/src/uki-more/more/view.js",
111
+ "frameworks/uki/src/uki-more/more/view/listContainer.js",
112
+ "frameworks/uki/src/uki-more/more/view/multiselectList.js",
113
+ "frameworks/uki/src/uki-more/more/view/radioButton.js",
114
+ "frameworks/uki/src/uki-more/more/view/splitTable.js",
115
+ "frameworks/uki/src/uki-more/more/view/toggleButton.js",
116
+ "frameworks/uki/src/uki-more/more/view/treeList.js",
117
+ "frameworks/uki/src/uki-more/more/view/treeList/render.js",
118
+ "frameworks/uki/src/uki-theamless.js",
119
+ "frameworks/uki/src/uki-theme/airport.js",
120
+ "frameworks/uki/src/uki-theme/airport/i/button/down-c.gif",
121
+ "frameworks/uki/src/uki-theme/airport/i/button/down-c.png",
122
+ "frameworks/uki/src/uki-theme/airport/i/button/down-h.gif",
123
+ "frameworks/uki/src/uki-theme/airport/i/button/down-h.png",
124
+ "frameworks/uki/src/uki-theme/airport/i/button/down-m.png",
125
+ "frameworks/uki/src/uki-theme/airport/i/button/down-v.png",
126
+ "frameworks/uki/src/uki-theme/airport/i/button/focusRing-c.png",
127
+ "frameworks/uki/src/uki-theme/airport/i/button/focusRing-h.png",
128
+ "frameworks/uki/src/uki-theme/airport/i/button/focusRing-m.png",
129
+ "frameworks/uki/src/uki-theme/airport/i/button/focusRing-v.png",
130
+ "frameworks/uki/src/uki-theme/airport/i/button/focusRing.png",
131
+ "frameworks/uki/src/uki-theme/airport/i/button/hover-c.gif",
132
+ "frameworks/uki/src/uki-theme/airport/i/button/hover-c.png",
133
+ "frameworks/uki/src/uki-theme/airport/i/button/hover-h.gif",
134
+ "frameworks/uki/src/uki-theme/airport/i/button/hover-h.png",
135
+ "frameworks/uki/src/uki-theme/airport/i/button/hover-m.png",
136
+ "frameworks/uki/src/uki-theme/airport/i/button/hover-v.png",
137
+ "frameworks/uki/src/uki-theme/airport/i/button/hover.png",
138
+ "frameworks/uki/src/uki-theme/airport/i/button/normal-c.gif",
139
+ "frameworks/uki/src/uki-theme/airport/i/button/normal-c.png",
140
+ "frameworks/uki/src/uki-theme/airport/i/button/normal-h.gif",
141
+ "frameworks/uki/src/uki-theme/airport/i/button/normal-h.png",
142
+ "frameworks/uki/src/uki-theme/airport/i/button/normal-m.png",
143
+ "frameworks/uki/src/uki-theme/airport/i/button/normal-v.png",
144
+ "frameworks/uki/src/uki-theme/airport/i/button/normal.png",
145
+ "frameworks/uki/src/uki-theme/airport/i/checkbox/checkbox.png",
146
+ "frameworks/uki/src/uki-theme/airport/i/checkbox/focus.png",
147
+ "frameworks/uki/src/uki-theme/airport/i/checkbox/normal.gif",
148
+ "frameworks/uki/src/uki-theme/airport/i/checkbox/normal.png",
149
+ "frameworks/uki/src/uki-theme/airport/i/panel/dark-h.gif",
150
+ "frameworks/uki/src/uki-theme/airport/i/panel/dark-h.png",
151
+ "frameworks/uki/src/uki-theme/airport/i/panel/dark-m.png",
152
+ "frameworks/uki/src/uki-theme/airport/i/panel/dark.png",
153
+ "frameworks/uki/src/uki-theme/airport/i/popup/normal.png",
154
+ "frameworks/uki/src/uki-theme/airport/i/radio/focus.png",
155
+ "frameworks/uki/src/uki-theme/airport/i/radio/normal.gif",
156
+ "frameworks/uki/src/uki-theme/airport/i/radio/normal.png",
157
+ "frameworks/uki/src/uki-theme/airport/i/radio/radio.png",
158
+ "frameworks/uki/src/uki-theme/airport/i/shadow/large-c.png",
159
+ "frameworks/uki/src/uki-theme/airport/i/shadow/large-h.png",
160
+ "frameworks/uki/src/uki-theme/airport/i/shadow/large-m.png",
161
+ "frameworks/uki/src/uki-theme/airport/i/shadow/large-v.png",
162
+ "frameworks/uki/src/uki-theme/airport/i/shadow/large.png",
163
+ "frameworks/uki/src/uki-theme/airport/i/slider/bar-m.gif",
164
+ "frameworks/uki/src/uki-theme/airport/i/slider/bar-m.png",
165
+ "frameworks/uki/src/uki-theme/airport/i/slider/bar-v.gif",
166
+ "frameworks/uki/src/uki-theme/airport/i/slider/bar-v.png",
167
+ "frameworks/uki/src/uki-theme/airport/i/slider/bar.png",
168
+ "frameworks/uki/src/uki-theme/airport/i/slider/focus.png",
169
+ "frameworks/uki/src/uki-theme/airport/i/slider/handle.gif",
170
+ "frameworks/uki/src/uki-theme/airport/i/splitPane/horizontal.gif",
171
+ "frameworks/uki/src/uki-theme/airport/i/splitPane/horizontal.png",
172
+ "frameworks/uki/src/uki-theme/airport/i/splitPane/vertical.gif",
173
+ "frameworks/uki/src/uki-theme/airport/i/x.gif",
174
+ "frameworks/uki/src/uki-theme/aristo.js",
175
+ "frameworks/uki/src/uki-theme/aristo/i/button/down-c.gif",
176
+ "frameworks/uki/src/uki-theme/aristo/i/button/down-c.png",
177
+ "frameworks/uki/src/uki-theme/aristo/i/button/down-h.png",
178
+ "frameworks/uki/src/uki-theme/aristo/i/button/down-m.png",
179
+ "frameworks/uki/src/uki-theme/aristo/i/button/down-v.png",
180
+ "frameworks/uki/src/uki-theme/aristo/i/button/down.png",
181
+ "frameworks/uki/src/uki-theme/aristo/i/button/focusRing-c.png",
182
+ "frameworks/uki/src/uki-theme/aristo/i/button/focusRing-h.png",
183
+ "frameworks/uki/src/uki-theme/aristo/i/button/focusRing-m.png",
184
+ "frameworks/uki/src/uki-theme/aristo/i/button/focusRing-v.png",
185
+ "frameworks/uki/src/uki-theme/aristo/i/button/focusRing.png",
186
+ "frameworks/uki/src/uki-theme/aristo/i/button/normal-c.gif",
187
+ "frameworks/uki/src/uki-theme/aristo/i/button/normal-c.png",
188
+ "frameworks/uki/src/uki-theme/aristo/i/button/normal-h.png",
189
+ "frameworks/uki/src/uki-theme/aristo/i/button/normal-m.png",
190
+ "frameworks/uki/src/uki-theme/aristo/i/button/normal-v.png",
191
+ "frameworks/uki/src/uki-theme/aristo/i/button/normal.png",
192
+ "frameworks/uki/src/uki-theme/aristo/i/checkbox/focus.png",
193
+ "frameworks/uki/src/uki-theme/aristo/i/checkbox/normal.gif",
194
+ "frameworks/uki/src/uki-theme/aristo/i/checkbox/normal.png",
195
+ "frameworks/uki/src/uki-theme/aristo/i/panel/normal-h.png",
196
+ "frameworks/uki/src/uki-theme/aristo/i/panel/normal-m.png",
197
+ "frameworks/uki/src/uki-theme/aristo/i/panel/normal.png",
198
+ "frameworks/uki/src/uki-theme/aristo/i/popup/normal.png",
199
+ "frameworks/uki/src/uki-theme/aristo/i/radio/focus.png",
200
+ "frameworks/uki/src/uki-theme/aristo/i/radio/normal.gif",
201
+ "frameworks/uki/src/uki-theme/aristo/i/radio/normal.png",
202
+ "frameworks/uki/src/uki-theme/aristo/i/shadow/large-c.png",
203
+ "frameworks/uki/src/uki-theme/aristo/i/shadow/large-h.png",
204
+ "frameworks/uki/src/uki-theme/aristo/i/shadow/large-m.png",
205
+ "frameworks/uki/src/uki-theme/aristo/i/shadow/large-v.png",
206
+ "frameworks/uki/src/uki-theme/aristo/i/shadow/large.png",
207
+ "frameworks/uki/src/uki-theme/aristo/i/slider/bar-m.gif",
208
+ "frameworks/uki/src/uki-theme/aristo/i/slider/bar-m.png",
209
+ "frameworks/uki/src/uki-theme/aristo/i/slider/bar-v.gif",
210
+ "frameworks/uki/src/uki-theme/aristo/i/slider/bar-v.png",
211
+ "frameworks/uki/src/uki-theme/aristo/i/slider/bar.png",
212
+ "frameworks/uki/src/uki-theme/aristo/i/slider/handle.gif",
213
+ "frameworks/uki/src/uki-theme/aristo/i/slider/handle.png",
214
+ "frameworks/uki/src/uki-theme/aristo/i/splitPane/horizontal.gif",
215
+ "frameworks/uki/src/uki-theme/aristo/i/splitPane/horizontal.png",
216
+ "frameworks/uki/src/uki-theme/aristo/i/splitPane/vertical.gif",
217
+ "frameworks/uki/src/uki-theme/aristo/i/x.gif",
218
+ "frameworks/uki/src/uki-view.js",
219
+ "frameworks/uki/src/uki-view/view/box.js",
220
+ "frameworks/uki/src/uki-view/view/button.js",
221
+ "frameworks/uki/src/uki-view/view/checkbox.js",
222
+ "frameworks/uki/src/uki-view/view/flow.js",
223
+ "frameworks/uki/src/uki-view/view/image.js",
224
+ "frameworks/uki/src/uki-view/view/label.js",
225
+ "frameworks/uki/src/uki-view/view/list.js",
226
+ "frameworks/uki/src/uki-view/view/list/render.js",
227
+ "frameworks/uki/src/uki-view/view/popup.js",
228
+ "frameworks/uki/src/uki-view/view/radio.js",
229
+ "frameworks/uki/src/uki-view/view/scrollPane.js",
230
+ "frameworks/uki/src/uki-view/view/slider.js",
231
+ "frameworks/uki/src/uki-view/view/splitPane.js",
232
+ "frameworks/uki/src/uki-view/view/table.js",
233
+ "frameworks/uki/src/uki-view/view/table/column.js",
234
+ "frameworks/uki/src/uki-view/view/table/header.js",
235
+ "frameworks/uki/src/uki-view/view/table/render.js",
236
+ "frameworks/uki/src/uki-view/view/textField.js",
237
+ "frameworks/uki/src/uki-view/view/toolbar.js",
238
+ "frameworks/uki/src/uki.js",
239
+ "frameworks/uki/thin.yaml",
240
+ "frameworks/uki/uki.rb",
241
+ "frameworks/uki/uki.ru",
242
+ "lib/uki.rb",
243
+ "lib/uki/include_js.rb",
244
+ "lib/uki/project.rb",
245
+ "lib/uki/routes.rb",
246
+ "lib/uki/server.rb",
247
+ "templates/index.html.erb",
248
+ "templates/model.js.erb",
249
+ "templates/myapp.js.erb",
250
+ "templates/package.js.erb",
251
+ "templates/spec.html.erb",
252
+ "templates/spec.js.erb",
253
+ "templates/view.js.erb",
254
+ "uki.gemspec"
255
+ ]
256
+ s.homepage = %q{http://github.com/voloko/uki}
257
+ s.rdoc_options = ["--charset=UTF-8"]
258
+ s.require_paths = ["lib"]
259
+ s.rubygems_version = %q{1.3.5}
260
+ s.summary = %q{uki development tools}
261
+
262
+ if s.respond_to? :specification_version then
263
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
264
+ s.specification_version = 3
265
+
266
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
267
+ s.add_runtime_dependency(%q<sinatra>, [">= 0"])
268
+ s.add_runtime_dependency(%q<commander>, [">= 4.0.1"])
269
+ s.add_runtime_dependency(%q<jspec>, [">= 3.3.2"])
270
+ else
271
+ s.add_dependency(%q<sinatra>, [">= 0"])
272
+ s.add_dependency(%q<commander>, [">= 4.0.1"])
273
+ s.add_dependency(%q<jspec>, [">= 3.3.2"])
274
+ end
275
+ else
276
+ s.add_dependency(%q<sinatra>, [">= 0"])
277
+ s.add_dependency(%q<commander>, [">= 4.0.1"])
278
+ s.add_dependency(%q<jspec>, [">= 3.3.2"])
279
+ end
280
+ end
281
+