Browse files

updating bundle files

  • Loading branch information...
1 parent dfe9236 commit 320035241b23bc6a16b66b0a2609aea6eca5a00a @larsburgess larsburgess committed Mar 1, 2009
Showing with 16,701 additions and 107 deletions.
  1. +0 −66 .gitignore
  2. +37 −0 rhodes/History.txt
  3. +2 −0 rhodes/README.rdoc
  4. +11 −0 rhodes/Rakefile
  5. +9 −0 rhodes/deps.rb
  6. +53 −0 rhodes/rhodes-build/Manifest.txt
  7. +37 −0 rhodes/rhodes-build/Rakefile
  8. +17 −0 rhodes/rhodes-build/lib/compileERB/bb.rb
  9. +26 −0 rhodes/rhodes-build/lib/compileERB/default.rb
  10. +22 −0 rhodes/rhodes-build/lib/compileRB/compileRB.rb
  11. +248 −0 rhodes/rhodes-build/lib/jake.rb
  12. +18 −0 rhodes/rhodes-build/lib/manifest/createAppManifest.rb
  13. +3 −0 rhodes/rhodes-build/lib/rhodes-build.rb
  14. +217 −0 rhodes/rhodes-build/lib/tasks/blackberry.rake
  15. +138 −0 rhodes/rhodes-build/lib/tasks/iphone.rake
  16. +5 −0 rhodes/rhodes-build/lib/tasks/rhodes-build.rb
  17. +0 −14 rhodes/rhodes-build/lib/tasks/rspec.rake
  18. +161 −0 rhodes/rhodes-build/lib/tasks/symbian.rake
  19. +138 −0 rhodes/rhodes-build/lib/tasks/wm.rake
  20. +10 −0 rhodes/rhodes-build/lib/version.rb
  21. BIN rhodes/rhodes-build/res/7z.exe
  22. BIN rhodes/rhodes-build/res/RhoRuby.exe
  23. BIN rhodes/rhodes-build/res/RubyMac
  24. +217 −0 rhodes/rhodes-build/res/build_inf.js
  25. +26 −0 rhodes/rhodes-build/res/insertRhoBundle2pkg.rb
  26. +12 −0 rhodes/rhodes-build/res/prebuilt/bb/MANIFEST.MF
  27. BIN rhodes/rhodes-build/res/prebuilt/bb/RubyVM.jar
  28. BIN rhodes/rhodes-build/res/prebuilt/bb/rhodes.jar
  29. +59 −0 rhodes/rhodes-build/res/prebuilt/bb/rhodesApp.alx
  30. BIN rhodes/rhodes-build/res/prebuilt/common/db/syncdb.sqlite
  31. BIN rhodes/rhodes-build/res/prebuilt/iphone/sim/.DS_Store
  32. +34 −0 rhodes/rhodes-build/res/prebuilt/iphone/sim/rhorunner.app/Info.plist
  33. BIN rhodes/rhodes-build/res/prebuilt/iphone/sim/rhorunner.app/MainWindow.nib
  34. +1 −0 rhodes/rhodes-build/res/prebuilt/iphone/sim/rhorunner.app/PkgInfo
  35. BIN rhodes/rhodes-build/res/prebuilt/iphone/sim/rhorunner.app/back_btn.png
  36. BIN rhodes/rhodes-build/res/prebuilt/iphone/sim/rhorunner.app/db/syncdb.sqlite
  37. BIN rhodes/rhodes-build/res/prebuilt/iphone/sim/rhorunner.app/forward_btn.png
  38. BIN rhodes/rhodes-build/res/prebuilt/iphone/sim/rhorunner.app/home_btn.png
  39. BIN rhodes/rhodes-build/res/prebuilt/iphone/sim/rhorunner.app/icon.png
  40. BIN rhodes/rhodes-build/res/prebuilt/iphone/sim/rhorunner.app/rhorunner
  41. BIN rhodes/rhodes-build/res/prebuilt/symbian/Epoc32/data/z/private/10003a3f/apps/rhodes_reg.RSC
  42. BIN rhodes/rhodes-build/res/prebuilt/symbian/Epoc32/data/z/resource/apps/rhodes.RSC
  43. BIN rhodes/rhodes-build/res/prebuilt/symbian/Epoc32/data/z/resource/apps/rhodes.mif
  44. BIN rhodes/rhodes-build/res/prebuilt/symbian/Epoc32/data/z/resource/apps/startup.mbm
  45. BIN rhodes/rhodes-build/res/prebuilt/symbian/Epoc32/data/z/system/data/cacerts.dat
  46. BIN rhodes/rhodes-build/res/prebuilt/symbian/Epoc32/release/gcce/urel/rhodes.exe
  47. BIN rhodes/rhodes-build/res/prebuilt/symbian/Epoc32/release/winscw/udeb/rhodes.exe
  48. +1 −0 rhodes/rhodes-build/res/prebuilt/symbian/Epoc32/winscw/c/Data/Rho/rhologpath.txt
  49. +5 −0 rhodes/rhodes-build/res/prebuilt/symbian/backup_registration.xml
  50. BIN rhodes/rhodes-build/res/prebuilt/symbian/rhodes.hlp
  51. +39 −0 rhodes/rhodes-build/res/prebuilt/symbian/rhodes_device.pkg
  52. +39 −0 rhodes/rhodes-build/res/prebuilt/symbian/rhodes_sim.pkg
  53. 0 rhodes/rhodes-build/res/prebuilt/symbian/rhologpath.txt
  54. BIN rhodes/rhodes-build/res/prebuilt/wm/wm6.7z
  55. +23 −0 rhodes/rhodes-build/res/rhodes_pid.key
  56. BIN rhodes/rhodes-build/res/xruby-0.3.3.jar
  57. +18 −0 rhodes/rhodes-build/rhodes-build.gemspec
  58. +1 −0 rhodes/rhodes-build/spec/spec.opts
  59. +16 −21 rhodes/rhodes-framework/Manifest.txt
  60. +21 −6 rhodes/rhodes-framework/Rakefile
  61. +18 −0 rhodes/rhodes-framework/rhodes-framework.gemspec
  62. +153 −0 rhodes/rhodes-generator/Manifest.txt
  63. +39 −0 rhodes/rhodes-generator/Rakefile
  64. +8 −0 rhodes/rhodes-generator/bin/rhogen
  65. +156 −0 rhodes/rhodes-generator/generators/rhogen.rb
  66. +1 −0 rhodes/rhodes-generator/generators/templates/application/Rakefile
  67. +4 −0 rhodes/rhodes-generator/generators/templates/application/application.rb
  68. +28 −0 rhodes/rhodes-generator/generators/templates/application/build.yml
  69. +7 −0 rhodes/rhodes-generator/generators/templates/application/config.rb
  70. +11 −0 rhodes/rhodes-generator/generators/templates/application/index.erb
  71. +17 −0 rhodes/rhodes-generator/generators/templates/application/layout.erb
  72. +3 −0 rhodes/rhodes-generator/generators/templates/application/public/css/rho.css
  73. +21 −0 rhodes/rhodes-generator/generators/templates/application/public/js/iui/LICENSE.txt
  74. BIN rhodes/rhodes-generator/generators/templates/application/public/js/iui/Thumbs.db
  75. BIN rhodes/rhodes-generator/generators/templates/application/public/js/iui/backButton.png
  76. BIN rhodes/rhodes-generator/generators/templates/application/public/js/iui/blueButton.png
  77. BIN rhodes/rhodes-generator/generators/templates/application/public/js/iui/cancel.png
  78. BIN rhodes/rhodes-generator/generators/templates/application/public/js/iui/grayButton.png
  79. BIN rhodes/rhodes-generator/generators/templates/application/public/js/iui/iui-logo-touch-icon.png
  80. +392 −0 rhodes/rhodes-generator/generators/templates/application/public/js/iui/iui.css
  81. +442 −0 rhodes/rhodes-generator/generators/templates/application/public/js/iui/iui.js
  82. BIN rhodes/rhodes-generator/generators/templates/application/public/js/iui/listArrow.png
  83. BIN rhodes/rhodes-generator/generators/templates/application/public/js/iui/listArrowSel.png
  84. BIN rhodes/rhodes-generator/generators/templates/application/public/js/iui/listGroup.png
  85. BIN rhodes/rhodes-generator/generators/templates/application/public/js/iui/loading.gif
  86. BIN rhodes/rhodes-generator/generators/templates/application/public/js/iui/pinstripes.png
  87. BIN rhodes/rhodes-generator/generators/templates/application/public/js/iui/selection.png
  88. BIN rhodes/rhodes-generator/generators/templates/application/public/js/iui/thumb.png
  89. BIN rhodes/rhodes-generator/generators/templates/application/public/js/iui/toggle.png
  90. BIN rhodes/rhodes-generator/generators/templates/application/public/js/iui/toggleOn.png
  91. BIN rhodes/rhodes-generator/generators/templates/application/public/js/iui/toolButton.png
  92. BIN rhodes/rhodes-generator/generators/templates/application/public/js/iui/toolbar.png
  93. BIN rhodes/rhodes-generator/generators/templates/application/public/js/iui/whiteButton.png
  94. +32 −0 rhodes/rhodes-generator/generators/templates/application/public/js/jquery-1.2.6.min.js
  95. +39 −0 ...rator/generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/flora.accordion.css
  96. +7 −0 ...s-generator/generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/flora.all.css
  97. +2 −0 ...hodes-generator/generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/flora.css
  98. +216 −0 ...ator/generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/flora.datepicker.css
  99. +100 −0 ...enerator/generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/flora.dialog.css
  100. +20 −0 ...rator/generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/flora.resizable.css
  101. +11 −0 ...enerator/generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/flora.slider.css
  102. +104 −0 ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/flora.tabs.css
  103. BIN .../generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/i/accordion-left-act.png
  104. BIN ...generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/i/accordion-left-over.png
  105. BIN ...ator/generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/i/accordion-left.png
  106. BIN ...enerators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/i/accordion-middle-act.png
  107. BIN ...nerators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/i/accordion-middle-over.png
  108. BIN ...or/generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/i/accordion-middle.png
  109. BIN ...generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/i/accordion-right-act.png
  110. BIN ...enerators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/i/accordion-right-over.png
  111. BIN ...tor/generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/i/accordion-right.png
  112. BIN ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/i/dialog-e.gif
  113. BIN ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/i/dialog-n.gif
  114. BIN ...generator/generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/i/dialog-ne.gif
  115. BIN ...generator/generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/i/dialog-nw.gif
  116. BIN ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/i/dialog-s.gif
  117. BIN ...generator/generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/i/dialog-se.gif
  118. BIN ...generator/generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/i/dialog-sw.gif
  119. BIN ...erator/generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/i/dialog-title.gif
  120. BIN ...rs/templates/application/public/js/jquery.ui-1.5.2/themes/flora/i/dialog-titlebar-close-hover.png
  121. BIN ...nerators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/i/dialog-titlebar-close.png
  122. BIN ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/i/dialog-w.gif
  123. BIN ...nerator/generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/i/resizable-e.gif
  124. BIN ...nerator/generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/i/resizable-n.gif
  125. BIN ...erator/generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/i/resizable-ne.gif
  126. BIN ...erator/generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/i/resizable-nw.gif
  127. BIN ...nerator/generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/i/resizable-s.gif
  128. BIN ...erator/generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/i/resizable-se.gif
  129. BIN ...erator/generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/i/resizable-sw.gif
  130. BIN ...nerator/generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/i/resizable-w.gif
  131. BIN ...nerator/generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/i/slider-bg-1.png
  132. BIN ...nerator/generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/i/slider-bg-2.png
  133. BIN ...rator/generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/i/slider-handle.gif
  134. BIN ...odes-generator/generators/templates/application/public/js/jquery.ui-1.5.2/themes/flora/i/tabs.png
  135. +207 −0 ...des-generator/generators/templates/application/public/js/jquery.ui-1.5.2/themes/ui.datepicker.css
  136. +23 −0 ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/i18n/ui.datepicker-ar.js
  137. +22 −0 ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/i18n/ui.datepicker-bg.js
  138. +22 −0 ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/i18n/ui.datepicker-ca.js
  139. +22 −0 ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/i18n/ui.datepicker-cs.js
  140. +22 −0 ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/i18n/ui.datepicker-da.js
  141. +22 −0 ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/i18n/ui.datepicker-de.js
  142. +22 −0 ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/i18n/ui.datepicker-es.js
  143. +24 −0 ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/i18n/ui.datepicker-fi.js
  144. +22 −0 ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/i18n/ui.datepicker-fr.js
  145. +22 −0 ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/i18n/ui.datepicker-he.js
  146. +22 −0 ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/i18n/ui.datepicker-hu.js
  147. +22 −0 ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/i18n/ui.datepicker-hy.js
  148. +22 −0 ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/i18n/ui.datepicker-id.js
  149. +22 −0 ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/i18n/ui.datepicker-is.js
  150. +22 −0 ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/i18n/ui.datepicker-it.js
  151. +22 −0 ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/i18n/ui.datepicker-ja.js
  152. +22 −0 ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/i18n/ui.datepicker-ko.js
  153. +25 −0 ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/i18n/ui.datepicker-lt.js
  154. +25 −0 ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/i18n/ui.datepicker-lv.js
  155. +21 −0 ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/i18n/ui.datepicker-nl.js
  156. +23 −0 ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/i18n/ui.datepicker-no.js
  157. +22 −0 ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/i18n/ui.datepicker-pl.js
  158. +22 −0 ...nerator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/i18n/ui.datepicker-pt-BR.js
  159. +22 −0 ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/i18n/ui.datepicker-ro.js
  160. +22 −0 ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/i18n/ui.datepicker-ru.js
  161. +22 −0 ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/i18n/ui.datepicker-sk.js
  162. +22 −0 ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/i18n/ui.datepicker-sv.js
  163. +22 −0 ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/i18n/ui.datepicker-th.js
  164. +22 −0 ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/i18n/ui.datepicker-tr.js
  165. +22 −0 ...-generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/i18n/ui.datepicker-uk.js
  166. +22 −0 ...nerator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/i18n/ui.datepicker-zh-CN.js
  167. +23 −0 ...nerator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/i18n/ui.datepicker-zh-TW.js
  168. +7,598 −0 ...s/rhodes-generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/jquery.ui.all.js
  169. +1 −0 ...rator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/minified/effects.blind.min.js
  170. +1 −0 ...ator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/minified/effects.bounce.min.js
  171. +1 −0 ...erator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/minified/effects.clip.min.js
  172. +1 −0 ...erator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/minified/effects.core.min.js
  173. +1 −0 ...erator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/minified/effects.drop.min.js
  174. +1 −0 ...tor/generators/templates/application/public/js/jquery.ui-1.5.2/ui/minified/effects.explode.min.js
  175. +1 −0 ...erator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/minified/effects.fold.min.js
  176. +1 −0 ...r/generators/templates/application/public/js/jquery.ui-1.5.2/ui/minified/effects.highlight.min.js
  177. +1 −0 ...tor/generators/templates/application/public/js/jquery.ui-1.5.2/ui/minified/effects.pulsate.min.js
  178. +1 −0 ...rator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/minified/effects.scale.min.js
  179. +1 −0 ...rator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/minified/effects.shake.min.js
  180. +1 −0 ...rator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/minified/effects.slide.min.js
  181. +1 −0 ...or/generators/templates/application/public/js/jquery.ui-1.5.2/ui/minified/effects.transfer.min.js
  182. +1 −0 ...rator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/minified/jquery.ui.all.min.js
  183. +1 −0 ...erator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/minified/ui.accordion.min.js
  184. +1 −0 ...s-generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/minified/ui.core.min.js
  185. +1 −0 ...rator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/minified/ui.datepicker.min.js
  186. +1 −0 ...generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/minified/ui.dialog.min.js
  187. +1 −0 ...erator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/minified/ui.draggable.min.js
  188. +1 −0 ...erator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/minified/ui.droppable.min.js
  189. +1 −0 ...erator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/minified/ui.resizable.min.js
  190. +1 −0 ...rator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/minified/ui.selectable.min.js
  191. +1 −0 ...generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/minified/ui.slider.min.js
  192. +1 −0 ...nerator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/minified/ui.sortable.min.js
  193. +1 −0 ...s-generator/generators/templates/application/public/js/jquery.ui-1.5.2/ui/minified/ui.tabs.min.js
  194. +1 −0 rhodes/rhodes-generator/generators/templates/application/public/js/jquery.ui-1.5.2/version.txt
  195. +4,221 −0 rhodes/rhodes-generator/generators/templates/application/public/js/prototype-1.6.0.2.js
  196. +4 −0 rhodes/rhodes-generator/generators/templates/application/public/js/rho.js
  197. +59 −0 rhodes/rhodes-generator/generators/templates/application/public/js/rhogeolocation-wm.js
  198. +11 −0 rhodes/rhodes-generator/generators/templates/application/public/js/rhogeolocation.js
  199. BIN rhodes/rhodes-generator/generators/templates/bundle/db/syncdb.sqlite
  200. +3 −0 rhodes/rhodes-generator/generators/templates/model/config.rb
  201. +49 −0 rhodes/rhodes-generator/generators/templates/model/controller.rb
  202. +21 −0 rhodes/rhodes-generator/generators/templates/model/edit.erb
  203. +10 −0 rhodes/rhodes-generator/generators/templates/model/index.erb
  204. +16 −0 rhodes/rhodes-generator/generators/templates/model/new.erb
  205. +6 −0 rhodes/rhodes-generator/generators/templates/model/show.erb
  206. +56 −0 rhodes/rhodes-generator/generators/templates/source/source_adapter.rb
  207. +1 −0 rhodes/rhodes-generator/lib/rhodes-generator.rb
  208. +10 −0 rhodes/rhodes-generator/lib/version.rb
  209. +18 −0 rhodes/rhodes-generator/rhodes-generator.gemspec
  210. +33 −0 rhodes/rhodes-generator/spec/app_generator_spec.rb
  211. +12 −0 rhodes/rhodes-generator/spec/generator_spec_helper.rb
  212. +36 −0 rhodes/rhodes-generator/spec/model_generator_spec.rb
  213. +27 −0 rhodes/rhodes-generator/spec/source_generator_spec.rb
  214. +1 −0 rhodes/rhodes-generator/spec/spec.opts
  215. +2 −0 rhodes/rhodes/.gitignore
  216. +4 −0 rhodes/rhodes/Manifest.txt
  217. +33 −0 rhodes/rhodes/Rakefile
  218. +9 −0 rhodes/rhodes/lib/rhodes.rb
  219. +18 −0 rhodes/rhodes/rhodes.gemspec
  220. +1 −0 rhodes/rhodes/spec/spec.opts
View
66 .gitignore
@@ -1,66 +0,0 @@
-*~
-.DS_Store
-shared/framework/coverage
-shared/framework/pkg
-iphone/build/*
-iphone/rhorubylib/build/*
-iphone/rhosynclib/build/*
-iphone/bin/*
-mac/bin/*
-iphone/*/*.link
-wm/bin/*
-win32/bin/*
-wm/target/*
-wm/build/cleanup.js
-iphone/*/rholog.txt
-
-android/bin/*
-shared/jrhobundle/bin/*
-shared/jruby/bin/*
-bb/.metadata/*
-bb/bin/*
-bb/target/*
-bb/build/LogFile.txt
-bb/*/.settings
-bb/*/.project
-bb/*/.classpath
-*.cso
-*.csl
-*.err
-*.class
-bb/.BB.jdw/*.files
-*.jad
-bb/build/rholog.txt
-
-symbian/.metadata/*
-symbian/bin/*
-symbian/target/*
-symbian/*/.project
-abld.bat
-ABLD.BAT
-*.sis
-*.sisx
-.cproject
-*.hlp
-*.hrh
-
-*.jar
-*.cod
-*.debug
-*.rapc
-*.log
-*.obj
-*.old
-*.suo
-*.user
-*.pdb
-*.idb
-*.lib
-
-*.pch
-*.mode1v3
-*.pbxuser
-*.CAB
-*.cab
-*.ncb
-*.perspectivev3
View
37 rhodes/History.txt
@@ -0,0 +1,37 @@
+== 0.2.6 2009-01-29
+ * changed signature of url_for, link_to, and redirect
+
+== 0.2.5 2009-01-28
+ * erb labels are now humanized
+
+== 0.2.4 2009-01-27
+ * added show.erb to model generator [#164]
+ * base source_adapter should include user_id on sync
+
+== 0.2.3 2009-01-26
+ * added newgem dependency
+
+== 0.2.2 2009-01-23
+ * fixed bug in layout.erb template
+
+== 0.2.1 2009-01-20
+ * adding new layout framework to generator [#45]
+
+== 0.2.0 2009-01-07
+ * releasing 0.2 version of gem
+ * fixed sqlite3-ruby 1.2.4 dependency [#147]
+ * fixed broken rspec tests [#148]
+
+== 0.1.3 2008-12-11
+ * Updated source_adapter generator to have base class
+ * fixed #50, removed dependency on Find library
+
+== 0.1.2 2008-12-09
+ * Added rhogen source <MySourceAdapter>
+
+== 0.1.1 2008-11-18
+ * Fixed template application name
+
+== 0.1.0 2008-11-18
+ * 1 major enhancement:
+ * Initial release
View
2 rhodes/README.rdoc
@@ -0,0 +1,2 @@
+= rhodes framework
+ * See rhodes/README.rdoc for more information
View
11 rhodes/Rakefile
@@ -0,0 +1,11 @@
+desc "install all gems locally"
+task :install_all_gems do
+ current_dir = pwd
+ ['rhodes-build','rhodes-generator','rhodes-framework','rhodes'].each do |dir|
+ chdir dir
+ puts `rake clobber`
+ puts `rake install_gem`
+ puts `rake clobber`
+ chdir current_dir
+ end
+end
View
9 rhodes/deps.rb
@@ -0,0 +1,9 @@
+$rhodesdeps = [
+ ['sqlite3-ruby','= 1.2.3'],
+ ['rcov'],
+ ['rspec'],
+ ['diff-lcs'],
+ ['extlib'],
+ ['newgem'],
+ ['activesupport']
+ ]
View
53 rhodes/rhodes-build/Manifest.txt
@@ -0,0 +1,53 @@
+lib/compileERB/bb.rb
+lib/compileERB/default.rb
+lib/compileRB/compileRB.rb
+lib/jake.rb
+lib/manifest/createAppManifest.rb
+lib/rhodes-build.rb
+lib/tasks/blackberry.rake
+lib/tasks/iphone.rake
+lib/tasks/rhodes-build.rb
+lib/tasks/rspec.rake
+lib/tasks/symbian.rake
+lib/tasks/wm.rake
+lib/version.rb
+Manifest.txt
+Rakefile
+res/7z.exe
+res/build_inf.js
+res/insertRhoBundle2pkg.rb
+res/prebuilt/bb/MANIFEST.MF
+res/prebuilt/bb/rhodes.jar
+res/prebuilt/bb/rhodesApp.alx
+res/prebuilt/bb/RubyVM.jar
+res/prebuilt/common/db/syncdb.sqlite
+res/prebuilt/iphone/sim/librhorubylib.a
+res/prebuilt/iphone/sim/librhosynclib.a
+res/prebuilt/iphone/sim/rhorunner.app/db/syncdb.sqlite
+res/prebuilt/iphone/sim/rhorunner.app/icon.png
+res/prebuilt/iphone/sim/rhorunner.app/Info.plist
+res/prebuilt/iphone/sim/rhorunner.app/MainWindow.nib
+res/prebuilt/iphone/sim/rhorunner.app/PkgInfo
+res/prebuilt/iphone/sim/rhorunner.app/rhorunner
+res/prebuilt/iphone/sim/rhorunner.app.dSYM/Contents/Info.plist
+res/prebuilt/iphone/sim/rhorunner.app.dSYM/Contents/Resources/DWARF/rhorunner
+res/prebuilt/symbian/backup_registration.xml
+res/prebuilt/symbian/Epoc32/data/z/private/10003a3f/apps/rhodes_reg.RSC
+res/prebuilt/symbian/Epoc32/data/z/resource/apps/rhodes.mif
+res/prebuilt/symbian/Epoc32/data/z/resource/apps/rhodes.RSC
+res/prebuilt/symbian/Epoc32/data/z/resource/apps/startup.mbm
+res/prebuilt/symbian/Epoc32/data/z/system/data/cacerts.dat
+res/prebuilt/symbian/Epoc32/release/gcce/urel/rhodes.exe
+res/prebuilt/symbian/Epoc32/release/winscw/udeb/rhodes.exe
+res/prebuilt/symbian/Epoc32/winscw/c/Data/Rho/rhologpath.txt
+res/prebuilt/symbian/rhodes.hlp
+res/prebuilt/symbian/rhodes_device.pkg
+res/prebuilt/symbian/rhodes_sim.pkg
+res/prebuilt/symbian/rhologpath.txt
+res/prebuilt/wm/wm6.7z
+res/rhodes_pid.key
+res/RhoRuby.exe
+res/RubyMac
+res/xruby-0.3.3.jar
+rhodes-build.gemspec
+spec/spec.opts
View
37 rhodes/rhodes-build/Rakefile
@@ -0,0 +1,37 @@
+%w[rubygems rake rake/clean fileutils newgem].each { |f| require f }
+$:.unshift(File.join(File.dirname(__FILE__), 'lib'))
+require 'lib/version.rb'
+
+task :default => [:spec, :features]
+
+# Generate all the Rake tasks
+# Run 'rake -T' to see list of generated tasks (from gem root directory)
+$hoe = Hoe.new('rhodes-build', RhodesBuild::VERSION) do |p|
+ p.developer('Rhomobile Dev', 'dev@rhomobile.com')
+ p.changes = p.paragraphs_of("../History.txt", 0..1).join("\n\n") if File.exists? "../History.txt"
+ #p.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required
+ p.rubyforge_name = p.name # TODO this is default value
+ p.extra_deps = [
+ ['sqlite3-ruby','= 1.2.3'],
+ ['rcov'],
+ ['rspec'],
+ ['templater'],
+ ['diff-lcs'],
+ ['extlib'],
+ ['newgem'],
+ ['activesupport']
+ ]
+
+ p.clean_globs |= %w[**/.DS_Store tmp *.log]
+ path = (p.rubyforge_name == p.name) ? p.rubyforge_name : "\#{p.rubyforge_name}/\#{p.name}"
+ p.remote_rdoc_dir = File.join(path.gsub(/^#{p.rubyforge_name}\/?/,''), 'rdoc')
+ p.rsync_args = '-av --delete --ignore-errors'
+ p.test_globs = ''
+ p.summary = "rhodes-build #{RhodesBuild::VERSION}"
+
+end
+
+require 'newgem/tasks' # load /tasks/*.rake
+# remove test task TODO: why does this run anyway?
+Rake.application.remove_task(:test)
+Dir['lib/tasks/**/*.rake'].each { |t| load t }
View
17 rhodes/rhodes-build/lib/compileERB/bb.rb
@@ -0,0 +1,17 @@
+require 'find'
+require 'erb'
+
+dir = File.dirname(File.expand_path(__FILE__))
+ext = ".erb"
+
+Find.find(dir) do |path|
+ if File.extname(path) == ext
+ rbText = ERB.new( IO.read(path) ).src
+ newName = File.basename(path).sub('.erb','_erb.rb')
+ fName = File.join(File.dirname(path), newName)
+ frb = File.new(fName, "w")
+ frb.write( rbText )
+ frb.close()
+ end
+end
+
View
26 rhodes/rhodes-build/lib/compileERB/default.rb
@@ -0,0 +1,26 @@
+require 'find'
+require 'erb'
+
+dir = File.dirname(File.expand_path(__FILE__))
+ext = ".erb"
+
+Find.find(dir) do |path|
+ if File.extname(path) == ext
+ rbText = ERB.new( IO.read(path) ).src
+
+ #create iseq
+
+ seq = __rho_compile(rbText)
+ arr = seq.to_a
+
+ newName = File.basename(path).sub('.erb','_erb.iseq')
+ fName = File.join(File.dirname(path), newName)
+ fseq = File.new(fName, "w")
+
+ Marshal.dump(arr,fseq)
+
+ fseq.close()
+
+ end
+end
+
View
22 rhodes/rhodes-build/lib/compileRB/compileRB.rb
@@ -0,0 +1,22 @@
+require 'find'
+
+fselfname = File.expand_path(__FILE__)
+dir = File.dirname(fselfname)
+
+ext = ".rb"
+
+Find.find(dir) do |path|
+ if File.extname(path) == ext && path != fselfname
+ seq = RubyVM::InstructionSequence.compile_file(path)
+ arr = seq.to_a
+
+ newName = File.basename(path).sub('.rb','.iseq')
+ fName = File.join(File.dirname(path), newName)
+ fseq = File.new(fName, "w")
+
+ Marshal.dump(arr,fseq)
+
+ fseq.close()
+ end
+end
+
View
248 rhodes/rhodes-build/lib/jake.rb
@@ -0,0 +1,248 @@
+require 'pathname'
+
+class Hash
+ def fetch_r(key)
+ if self.has_key?(key) and not self[key].is_a?(Hash)
+ return self[key]
+ else
+ self.each do |val|
+ value = false
+ if val.is_a?(Array)
+ val.each do |x|
+ value = x.fetch_r(key) if x.is_a?(Hash)
+ return value if value
+ end
+ end
+ value = val.fetch_r(key) if val.is_a?(Hash)
+ return value if value
+ end
+ end
+ return false
+ end
+end
+
+class Jake
+
+
+ def self.config(configfile)
+ @@config = YAML::load(configfile)
+ self.config_parse(@@config)
+ @@config
+ end
+
+ def self.get_absolute(path)
+ currentdir = pwd
+
+ path = currentdir + "/" + path
+
+ patharray = path.split(/\//)
+
+ while idx = patharray.index("..") do
+ if idx == 0
+ raise "error getting absolute"
+ end
+
+ if patharray[idx-1] != ".."
+ patharray.delete_at(idx)
+ patharray.delete_at(idx-1)
+ end
+ end
+ return patharray.join("/")
+ end
+
+ def self.config_parse(conf)
+ if conf.is_a?(Array)
+ conf.collect! do |x|
+ if x.is_a?(Hash) or x.is_a?(Array)
+ config_parse(x)
+ x
+ else
+ if x =~ /%(.*?)%/
+ x.gsub!(/%.*?%/, @@config.fetch_r($1).to_s)
+ end
+ x
+ end
+ end
+ elsif conf.is_a?(Hash)
+ conf = conf.collect do |k,x|
+
+ if x.is_a?(Hash) or x.is_a?(Array)
+ config_parse(x)
+ x
+ else
+ if x.to_s =~ /%(.*?)%/
+ x.gsub!(/%.*?%/, @@config.fetch_r($1).to_s)
+ end
+ x
+ end
+ end
+ end
+ end
+
+ def self.run(command, args, wd=nil,system = false)
+ argstr = " "
+ currentdir = ""
+
+ args.each do |x|
+ x = x.to_s
+ # x.gsub!(/"/,"\\\"")
+ argstr += x + " "
+ #argstr += "\"" + x + "\" "
+ end
+
+ if not wd.nil?
+ currentdir = pwd()
+ chdir wd
+ end
+ puts "PWD:" + pwd
+ puts "CMD:" + command
+ puts "ARGS:" + argstr
+
+ command = command + " " + argstr
+ #retval = `#{command} #{argstr}`
+ #retval = %x[#{command}]
+ if system
+ system(command)
+ retval = ""
+ else
+ bb = IO.popen(command)
+ b = bb.readlines
+ retval = b.join
+ end
+ if not wd.nil?
+ chdir currentdir
+ end
+
+ return retval
+
+ end
+
+ def self.unjar(src,targetdir)
+ cmd = @@config["env"]["paths"][@@config["env"]["bbver"]]["java"] + "/jar.exe"
+ p = Pathname.new(src)
+ src = p.realpath
+ currentdir = pwd()
+ src = src.to_s.gsub(/"/,"")
+
+ args = Array.new
+
+ args << "xf"
+ args << '"' + src.to_s + '"'
+
+ chdir targetdir
+ puts run(cmd,args)
+ chdir currentdir
+ end
+ def self.jarfilelist(target)
+ cmd = @@config["env"]["paths"][@@config["env"]["bbver"]]["java"] + "/jar.exe"
+ target.gsub!(/"/,"")
+
+ args = []
+ args << "tf"
+ args << '"' + target +'"'
+
+ filelist = []
+ run(cmd,args).each { |file| filelist << file if not file =~ /\/$/ }
+
+ filelist
+ end
+
+ def self.jar(target,manifest,files,isfolder=false)
+ cmd = @@config["env"]["paths"][@@config["env"]["bbver"]]["java"] + "/jar.exe"
+ target.gsub!(/"/,"")
+
+ args = []
+ args << "cfm"
+ args << '"' + target +'"'
+ args << manifest
+ if isfolder
+ args << "-C"
+ args << files
+ args << "."
+ else
+ args << files
+ end
+
+ puts run(cmd,args)
+
+
+ end
+
+ def self.rapc(output,destdir,imports,files,title=nil,vendor=nil,version=nil,icon=nil,library=true,cldc=false,quiet=true, nowarn=true)
+ #cmd = @@config["env"]["paths"][@@config["env"]["bbver"]]["java"] + "/java.exe"
+# cmd = "java.exe"
+
+ jdehome = @@config["env"]["paths"][@@config["env"]["bbver"]]["jde"]
+ javabin = @@config["env"]["paths"][@@config["env"]["bbver"]]["java"]
+ cmd = jdehome + "/bin/rapc.exe"
+
+ currentdir = pwd()
+
+
+ chdir destdir
+
+ if output and title and version and vendor
+ f = File.new(output + ".rapc", "w")
+ f.write "MicroEdition-Profile: MIDP-2.0\n"
+ f.write "MicroEdition-Configuration: CLDC-1.1\n"
+ f.write "MIDlet-Name: " + output + "\n"
+ f.write "MIDlet-Version: " + version + "\n"
+ f.write "MIDlet-Vendor: " + vendor + "\n"
+ f.write "MIDlet-Jar-URL: " + output + ".jar\n"
+ f.write "MIDlet-Jar-Size: 0\n"
+ f.write "RIM-Library-Flags: 2\n" if library
+
+ if cldc and icon
+ f.write "MIDlet-1: " + title + "," + icon + ",\n"
+ f.write "RIM-MIDLET-Flags-1: 0\n"
+ end
+
+ f.close
+ end
+
+
+ args = []
+ #args << "-classpath"
+ # args << "-jar"
+ #args << '"' + jdehome + "/bin/rapc.jar\""
+ #args << "net.rim.tools.compiler.Compiler"
+
+ args << "\"-javacompiler=" + javabin + "/javac.exe\""
+ args << "-quiet" if quiet
+ args << "-nowarn" if nowarn
+ args << '"import=' + imports + '"'
+ args << 'codename=' + output
+ args << 'library=' + output if library
+ args << output + '.rapc'
+ args << files
+
+ cmd.gsub!(/\//,"\\")
+ puts run( '"' + cmd + '"',args)
+ chdir currentdir
+
+ end
+
+ def self.ant(dir,target)
+
+ srcdir = @@config["build"]["srcdir"]
+ rubypath = @@config["build"]["rubypath"]
+ excludelib = @@config["build"]["excludelib"]
+ compileERB = @@config["build"]["compileERB"]
+
+
+ args = []
+ args << "-buildfile"
+ args << dir + "/build.xml"
+ args << '"-Dsrc.dir=' + get_absolute(srcdir) + '"'
+ args << '"-Druby.path=' + get_absolute(rubypath) + '"'
+ args << '"-Dexclude.lib=' + excludelib + '"'
+ args << '"-DcompileERB.path=' + get_absolute(compileERB) + '"'
+ args << '"-Dsrclib.dir=' + get_absolute(srcdir) + '"'
+
+
+ args << target
+ #puts args.to_s
+ puts run("ant.bat",args,dir)
+ end
+end
+
View
18 rhodes/rhodes-build/lib/manifest/createAppManifest.rb
@@ -0,0 +1,18 @@
+require 'find'
+
+dir = File.join(File.dirname(File.expand_path(__FILE__)), 'apps')
+fname = "config.rb"
+fappManifest = File.new( File.join(dir,'app_manifest.txt'), "w")
+
+Find.find(dir) do |path|
+ if File.basename(path) == fname
+
+ relPath = path[dir.length+1, File.dirname(path).length-1] #relative path
+ relPath = relPath[0, relPath.length-3] #remove .rb extension
+ fappManifest.puts( relPath )
+
+ end
+end
+
+fappManifest.close()
+
View
3 rhodes/rhodes-build/lib/rhodes-build.rb
@@ -0,0 +1,3 @@
+require File.join(File.dirname(__FILE__),'tasks','rhodes-build.rb')
+require File.join(File.dirname(__FILE__),'jake.rb')
+require File.join(File.dirname(__FILE__),'version.rb')
View
217 rhodes/rhodes-build/lib/tasks/blackberry.rake
@@ -0,0 +1,217 @@
+require File.join(File.dirname(__FILE__),'..','jake.rb')
+
+namespace "config" do
+ task :bb do
+ $config = Jake.config(File.open('build.yml'))
+ $basedir = pwd
+
+ $deploydir = File.join($basedir,'deploy','bb')
+
+ $bindir = File.join($basedir,'bin')
+ $tmpdir = File.join($bindir,'tmp')
+ $targetdir = File.join($bindir,'target')
+ $excludelib = ['**/rhom_db_adapter.rb','**/singleton.rb','**/TestServe.rb','**/rhoframework.rb','**/date.rb']
+ $srcdir = File.join($bindir, '/RhoBundle')
+ $compileERBbase = File.join(File.dirname(__FILE__),'..','compileERB')
+ $appmanifest = File.join(File.dirname(__FILE__),'..','manifest','createAppManifest.rb')
+ $res = File.join(File.dirname(__FILE__),'..','..','res')
+
+ $prebuilt = File.join($res,'prebuilt')
+ mkdir_p $bindir if not File.exists? $bindir
+ end
+end
+
+task :loadframework do
+ require 'rhodes-framework'
+ puts $rhodeslib
+end
+
+namespace "bundle" do
+ task :bb => ["config:bb", "loadframework"] do
+ jdehome = $config["env"]["paths"][$config["env"]["bbver"]]["jde"]
+
+ rm_rf $srcdir
+ mkdir_p $srcdir
+ mkdir_p File.join($srcdir,'apps')
+
+ compileERB = File.join($compileERBbase,'bb.rb')
+ rubypath = File.join($res,'RhoRuby.exe')
+ xruby = File.join($res,'xruby-0.3.3.jar')
+
+ dest = $srcdir
+ chdir $rhodeslib
+ Dir.glob("*").each { |f|
+ src = f
+ cp_r src,dest
+ }
+ chdir dest
+ Dir.glob("**/rhodes-framework.rb").each {|f| rm f}
+ Dir.glob("**/erb.rb").each {|f| rm f}
+ Dir.glob("**/find.rb").each {|f| rm f}
+ $excludelib.each {|e| Dir.glob(e).each {|f| rm f}}
+
+ chdir $basedir
+#throw "ME"
+ cp_r 'app',File.join($srcdir,'apps')
+ cp_r 'public', File.join($srcdir,'apps')
+ cp 'config.rb', File.join($srcdir,'apps')
+ #cp 'index.erb', File.join($srcdir,'apps')
+ #cp 'layout.erb', File.join($srcdir,'apps')
+ #cp 'loading.html', File.join($srcdir,'apps')
+ cp $appmanifest, $srcdir
+ puts `#{rubypath} -R#{$rhodeslib} #{$srcdir}/createAppManifest.rb`
+ rm File.join($srcdir,'createAppManifest.rb')
+ cp compileERB, $srcdir
+ puts `#{rubypath} -R#{$rhodeslib} #{$srcdir}/bb.rb`
+
+ chdir $bindir
+ puts `java -jar #{xruby} -c RhoBundle`
+ chdir $srcdir
+ Dir.glob("**/*.rb") { |f| rm f }
+ Dir.glob("**/*.erb") { |f| rm f }
+ puts `jar uf ../RhoBundle.jar apps/*.*`
+ chdir $basedir
+
+ rm_rf $srcdir
+
+ args = []
+ args << "-classpath"
+ args << '"' + jdehome + "/lib/net_rim_api.jar;" + File.join($prebuilt, "bb","RubyVM.jar") + '"'
+ args << "-d"
+ args << $bindir
+ args << $bindir + "/RhoBundle.jar"
+ puts Jake.run(jdehome + "/bin/preverify.exe",args)
+ $stdout.flush
+
+ rm_rf $tmpdir
+ mkdir_p $tmpdir
+
+ rm_rf $targetdir
+ mkdir_p $targetdir
+
+ Jake.unjar(File.join($prebuilt, "bb","RubyVM.jar"), $tmpdir)
+ Jake.unjar($bindir + "/RhoBundle.jar", $tmpdir)
+ Jake.unjar(File.join($prebuilt, "bb","rhodes.jar"), $tmpdir)
+
+ Jake.jar($bindir + "/rhodesApp.jar",'"' + File.join($prebuilt, "bb","manifest.mf") + '"',$tmpdir,true)
+ Jake.rapc("rhodesApp",
+ $targetdir,
+ jdehome + "/lib/net_rim_api.jar",
+ '"' + $bindir + "/rhodesApp.jar" +'"',
+ "rhodesApp",
+ $config["env"]["vendor"],
+ $config["env"]["version"],
+ "resources/icon.png",
+ false,
+ true
+ )
+ $stdout.flush
+
+ cp File.join($prebuilt, "bb","rhodesApp.alx"), $targetdir
+ end
+end
+
+namespace "device" do
+ desc "Create downloadable app for BlackBerry"
+ task :bb => "bundle:bb" do
+ if $config["env"]["bbsignpwd"] and $config["env"]["bbsignpwd"] != ""
+ Rake::Task["run:bb:autosign"].execute
+ else
+ Rake::Task["run:bb:manualsign"].execute
+ end
+
+ rm_rf $deploydir
+ mkdir_p $deploydir
+
+ cp File.join($targetdir, "rhodesApp.jad"), $deploydir
+
+ Jake.unjar(File.join($targetdir, "rhodesApp.cod"), $deploydir)
+
+
+ end
+end
+
+namespace "run" do
+ namespace "bb" do
+ task :sim do
+ sim = $config["env"]["paths"][$config["env"]["bbver"]]["sim"].to_s
+ jde = $config["env"]["paths"][$config["env"]["bbver"]]["jde"]
+
+ command = '"' + jde + "/simulator/fledge.exe\""
+ args = []
+ args << "/app=Jvm.dll"
+ args << "/handheld=" + sim
+ args << "/session=" + sim
+ args << "/app-param=DisableRegistration"
+ args << "/app-param=JvmAlxConfigFile:"+sim+".xml"
+ args << "/data-port=0x4d44"
+ args << "/data-port=0x4d4e"
+ args << "/pin=0x2100000A"
+ args << "\"/app-param=JvmDebugFile:"+ File.join($basedir,'applog.txt') +'"'
+
+ Thread.new { Jake.run(command,args,jde + "/simulator",true) }
+ $stdout.flush
+ end
+
+ task :mds do
+ mdshome = $config["env"]["paths"][$config["env"]["bbver"]]["mds"]
+ args = []
+ args << "/c"
+ args << "run.bat"
+
+ Thread.new { Jake.run("cmd.exe",args, mdshome,true) }
+
+ end
+
+ desc "Run app in BlackBerry Sim"
+ task :app => ["bundle:bb", "run:bb:mds", "run:bb:sim"] do
+ sim = $config["env"]["paths"][$config["env"]["bbver"]]["sim"].to_s
+ jde = $config["env"]["paths"][$config["env"]["bbver"]]["jde"]
+
+ puts "sleeping to allow simulator to get started"
+ sleep 25
+
+ command = '"' + jde + "/simulator/fledgecontroller.exe\""
+ args = []
+ args << "/session="+sim
+ args << "\"/execute=LoadCod(" + File.join($targetdir,"rhodesApp.cod") + ")\""
+
+ Jake.run(command,args, jde + "/simulator")
+ $stdout.flush
+ end
+
+ task :autosign do
+ java = $config["env"]["paths"][$config["env"]["bbver"]]["java"] + "/java.exe"
+ jde = $config["env"]["paths"][$config["env"]["bbver"]]["jde"]
+
+ args = []
+ args << "-jar"
+ args << '"' + jde + "/bin/SignatureTool.jar\""
+ args << "-c"
+ args << "-a"
+ args << "-p"
+ args << '"' + config["build"]["bbsignpwd"] +'"'
+ args << "-r"
+ args << $targetdir
+
+ puts Jake.run(java,args)
+ $stdout.flush
+
+ end
+
+ task :manualsign do
+ java = $config["env"]["paths"][$config["env"]["bbver"]]["java"] + "/java.exe"
+ jde = $config["env"]["paths"][$config["env"]["bbver"]]["jde"]
+
+ args = []
+ args << "-jar"
+ args << '"' + jde + "/bin/SignatureTool.jar\""
+ args << "-r"
+ args << $targetdir
+
+ puts Jake.run(java,args)
+ $stdout.flush
+
+ end
+ end
+end
View
138 rhodes/rhodes-build/lib/tasks/iphone.rake
@@ -0,0 +1,138 @@
+require File.join(File.dirname(__FILE__),'..','jake.rb')
+
+namespace "config" do
+ task :iphone do
+ $config = Jake.config(File.open('build.yml'))
+ $basedir = pwd
+ $homedir = `echo ~`.to_s.strip
+ $deploydir = File.join($basedir,'deploy','bb')
+
+ $bindir = File.join($basedir,'bin')
+ $srcdir = File.join($bindir, '/RhoBundle')
+ $tmpdir = File.join($bindir,'tmp')
+ $targetdir = File.join($bindir,'target')
+
+ $excludelib = ['**/builtinME.rb','**/ServeME.rb','**/TestServe.rb']
+
+ $compileERBbase = File.join(File.dirname(__FILE__),'..','compileERB')
+ $compileRBbase = File.join(File.dirname(__FILE__),'..','compileRB')
+ $appmanifest = File.join(File.dirname(__FILE__),'..','manifest','createAppManifest.rb')
+ $res = File.join(File.dirname(__FILE__),'..','..','res')
+
+ $prebuilt = File.join($res,'prebuilt')
+ $simapp="#{$homedir}/Library/Application Support/iPhone Simulator/User/Applications"
+ $simlink="#{$homedir}/Library/Application Support/iPhone Simulator/User/Library/Preferences"
+ $sim="/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications"
+ $guid="364FFCAF-C71D-4543-B293-9058E31CFFEE"
+ $applog = File.join($homedir,$config["env"]["applog"])
+ mkdir_p $bindir if not File.exists? $bindir
+ end
+end
+
+task :loadframework do
+ require 'rhodes-framework'
+ puts $rhodeslib
+end
+
+namespace "bundle" do
+ task :iphone => ["config:iphone", "loadframework"] do
+
+ rm_rf $srcdir
+ mkdir_p $srcdir
+ mkdir_p File.join($srcdir,'apps')
+
+ rubypath = File.join($res,'RubyMac')
+ compileERB = File.join($compileERBbase,'default.rb')
+ compileRB = File.join($compileRBbase,'compileRB.rb')
+
+ dest = $srcdir
+ src = $rhodeslib
+ cp_r src,dest
+
+ src = File.join($rhodeslib,"..","res","sqlite3")
+ cp_r src,File.join(dest,"lib")
+
+ chdir dest
+ Dir.glob("**/rhodes-framework.rb").each {|f| rm f}
+ Dir.glob("**/erb.rb").each {|f| rm f}
+ Dir.glob("**/find.rb").each {|f| rm f}
+ $excludelib.each {|e| Dir.glob(e).each {|f| rm f}}
+
+ chdir $basedir
+ cp_r 'app',File.join($srcdir,'apps')
+ cp_r 'public', File.join($srcdir,'apps')
+ cp 'config.rb', File.join($srcdir,'apps')
+
+ cp $appmanifest, $srcdir
+ puts `#{rubypath} -R#{$rhodeslib} #{$srcdir}/createAppManifest.rb`
+ rm File.join($srcdir,'createAppManifest.rb')
+ cp compileERB, $srcdir
+ puts `#{rubypath} -R#{$rhodeslib} #{$srcdir}/default.rb`
+
+ rm "#{$srcdir}/default.rb"
+
+ cp compileRB, $srcdir
+ puts `#{rubypath} -R#{$rhodeslib} #{$srcdir}/compileRB.rb`
+
+ chdir $srcdir
+ Dir.glob("**/*.rb") { |f| rm f }
+ Dir.glob("**/*.erb") { |f| rm f }
+#throw "ME"
+
+ chdir $basedir
+
+ # rm_rf $srcdir
+
+ end
+end
+
+namespace "device" do
+ desc "Create downloadable app for BlackBerry"
+ task :iphone => "bundle:iphone" do
+ if $config["env"]["bbsignpwd"] and $config["env"]["bbsignpwd"] != ""
+ Rake::Task["run:iphone:autosign"].execute
+ else
+ Rake::Task["run:iphone:manualsign"].execute
+ end
+
+ rm_rf $deploydir
+ mkdir_p $deploydir
+
+ cp File.join($targetdir, "rhodesApp.jad"), $deploydir
+
+ Jake.unjar(File.join($targetdir, "rhodesApp.cod"), $deploydir)
+
+
+ end
+end
+
+namespace "run" do
+ namespace "iphone" do
+
+ desc "Run app in iphone Sim"
+ task :app => ["bundle:iphone"] do
+ simrhodes = File.join($simapp,$guid)
+ rm_rf simrhodes
+
+ mkdir_p File.join(simrhodes,"Documents")
+ mkdir_p File.join(simrhodes,"Library","Preferences")
+
+ puts `cp -R -p "#{$prebuilt}/iphone/sim/rhorunner.app" "#{simrhodes}"`
+ puts `cp -R -p "#{$srcdir}/apps" "#{simrhodes}/rhorunner.app"`
+ puts `cp -R -p "#{$srcdir}/lib" "#{simrhodes}/rhorunner.app"`
+ puts `ln -f -s "#{$simlink}/com.apple.PeoplePicker.plist" "#{simrhodes}/Library/Preferences/com.apple.PeoplePicker.plist"`
+ puts `ln -f -s "#{$simlink}/.GlobalPreferences.plist" "#{simrhodes}/Library/Preferences/.GlobalPreferences.plist"`
+
+ puts `echo "#{$applog}" > "#{simrhodes}/Documents/rhologpath.txt"`
+
+ f = File.new("#{$simapp}/#{$guid}.sb","w")
+ f << "(version 1)\n(debug deny)\n(allow default)\n"
+ f.close
+
+ system("open \"#{$sim}/iPhone Simulator.app\"")
+
+ end
+
+
+ end
+end
View
5 rhodes/rhodes-build/lib/tasks/rhodes-build.rb
@@ -0,0 +1,5 @@
+$VERBOSE = nil
+
+# Load Rails rakefile extensions
+Dir["#{File.dirname(__FILE__)}/*.rake"].each { |ext| load ext }
+
View
14 rhodes/rhodes-build/lib/tasks/rspec.rake
@@ -17,18 +17,4 @@ end
task :test do
end
-$:.unshift(File.join(File.dirname(__FILE__), '..'))
-require 'spec/stubs'
-desc "Run the specs under spec/models"
-Spec::Rake::SpecTask.new do |t|
- t.spec_opts = ['--options', "spec/spec.opts"]
- t.spec_files = FileList['spec/**/*_spec.rb']
- t.rcov = true
- t.rcov_opts = ['--include',
- '"lib/rhom/*,lib/rho/*"',
- '-x',
- 'spec,gems,sqlite3/*,lib/date.rb,lib/rational.rb,lib/time.rb,lib/find.rb,config.rb,lib/erb.rb,lib/singleton.rb,lib/pairparser.rb',
- '--text-report',
- '--html']
-end
View
161 rhodes/rhodes-build/lib/tasks/symbian.rake
@@ -0,0 +1,161 @@
+require File.join(File.dirname(__FILE__),'..','jake.rb')
+
+namespace "config" do
+ task :symbian do
+ $config = Jake.config(File.open('build.yml'))
+ $basedir = pwd
+
+ $bindir = File.join($basedir,'bin')
+ $srcdir = File.join($bindir, '/RhoBundle')
+ $tmpdir = File.join($bindir,'tmp')
+ $targetdir = File.join($bindir,'target','symbian')
+
+ $excludelib = ['**/builtinME.rb','**/ServeME.rb','**/TestServe.rb']
+
+ $compileERBbase = File.join(File.dirname(__FILE__),'..','compileERB')
+ $compileRBbase = File.join(File.dirname(__FILE__),'..','compileRB')
+ $appmanifest = File.join(File.dirname(__FILE__),'..','manifest','createAppManifest.rb')
+ $res = File.join(File.dirname(__FILE__),'..','..','res')
+
+ $prebuilt = File.join($res,'prebuilt')
+
+ mkdir_p $bindir if not File.exists? $bindir
+ mkdir_p $targetdir if not File.exists? $targetdir
+ mkdir_p $tmpdir if not File.exists? $tmpdir
+ end
+end
+
+task :loadframework do
+ require 'rhodes-framework'
+ puts $rhodeslib
+end
+
+namespace "bundle" do
+ task :symbian => ["config:symbian", "loadframework"] do
+
+ rm_rf $srcdir
+ mkdir_p $srcdir
+ mkdir_p File.join($srcdir,'apps')
+
+ rubypath = File.join($res,'RhoRuby.exe')
+ compileERB = File.join($compileERBbase,'default.rb')
+ compileRB = File.join($compileRBbase,'compileRB.rb')
+
+ dest = $srcdir
+ src = $rhodeslib
+ cp_r src,dest
+
+ src = File.join($rhodeslib,"..","res","sqlite3")
+ cp_r src,File.join(dest,"lib")
+
+ chdir dest
+ Dir.glob("**/rhodes-framework.rb").each {|f| rm f}
+ Dir.glob("**/erb.rb").each {|f| rm f}
+ Dir.glob("**/find.rb").each {|f| rm f}
+ $excludelib.each {|e| Dir.glob(e).each {|f| rm f}}
+
+ chdir $basedir
+ cp_r 'app',File.join($srcdir,'apps')
+ cp_r 'public', File.join($srcdir,'apps')
+ cp 'config.rb', File.join($srcdir,'apps')
+
+ cp $appmanifest, $srcdir
+ puts `#{rubypath} -R#{$rhodeslib} #{$srcdir}/createAppManifest.rb`
+ rm File.join($srcdir,'createAppManifest.rb')
+ cp compileERB, $srcdir
+ puts `#{rubypath} -R#{$rhodeslib} #{$srcdir}/default.rb`
+
+ rm "#{$srcdir}/default.rb"
+
+ cp compileRB, $srcdir
+ puts `#{rubypath} -R#{$rhodeslib} #{$srcdir}/compileRB.rb`
+
+ chdir $srcdir
+ Dir.glob("**/*.rb") { |f| rm f }
+ Dir.glob("**/*.erb") { |f| rm f }
+#throw "ME"
+
+ chdir $basedir
+
+ src = File.join($prebuilt,"common","db")
+ dest = $srcdir
+
+ cp_r src,dest
+
+ src = File.join($prebuilt,"symbian")
+ dest = $tmpdir
+
+ cp_r File.join(src,"Epoc32"), dest
+
+ cp File.join(src,"backup_registration.xml"), dest
+ cp File.join(src,"rhodes.hlp"), dest
+ cp File.join(src,"rhologpath.txt"), dest
+ cp File.join(src,"rhodes_device.pkg"), File.join(dest, "rhodes_tmp.pkg")
+ cp File.join($res,"insertRhoBundle2pkg.rb"), dest
+
+ rubypath = File.join($res,'RhoRuby.exe')
+ puts `#{rubypath} -R#{$rhodeslib} #{$tmpdir}/insertRhoBundle2pkg.rb`
+
+ tools = $config["env"]["paths"]["symbiantools"]
+
+ chdir $tmpdir
+ makesis = File.join(tools,"makesis.exe")
+ puts `"#{makesis}" rhodes_tmp.pkg`
+ chdir $basedir
+
+ end
+end
+
+namespace "device" do
+ desc "Create downloadable app for symbian mobile"
+ task :symbian => "bundle:symbian" do
+ tools = $config["env"]["paths"]["symbiantools"]
+ chdir $tmpdir
+ certdir = File.join($tmpdir,"cert")
+ certpath = File.join(certdir,$config["env"]["symbian"]["certname"])
+ keypath = File.join(certdir,$config["env"]["symbian"]["certkey"])
+ pass = $config["env"]["symbian"]["selfsignpwd"]
+ name = $config["env"]["symbian"]["selfsignname"]
+
+ mkdir_p certdir
+
+ cp File.join($res,"rhodes_pid.key"),certdir
+ makekeys = File.join(tools,"makekeys.exe")
+
+ puts `"#{makekeys}" -cert -password "#{pass}" -len 2048 -dname "#{name}" "#{keypath}" "#{certpath}"`
+
+ signsis = File.join(tools,"signsis.exe")
+
+ puts `#{signsis} rhodes_tmp.sis rhodes.sisx #{certpath} #{keypath} #{pass}`
+
+ mv "rhodes.sisx",$targetdir
+ end
+end
+
+namespace "run" do
+ namespace "symbian" do
+
+ desc "Run app in symbian Sim"
+ task :app => ["bundle:symbian"] do
+
+ symroot = $config["env"]["paths"]["symroot"]
+
+ appsroot = File.join(symroot,"/epoc32/winscw/c/Data/Rho")
+ rm_rf appsroot
+ mkdir_p appsroot if not File.exists? appsroot
+ cp_r $srcdir + "/lib", appsroot
+ cp_r $srcdir + "/apps", appsroot
+ cp_r $srcdir + "/db", appsroot
+
+ cp_r File.join($prebuilt,"symbian","Epoc32"), symroot
+
+ executable = File.join(symroot,"epoc32","release","winscw","udeb","rhodes.exe")
+ Thread.new { system(executable) }
+
+
+
+ end
+
+
+ end
+end
View
138 rhodes/rhodes-build/lib/tasks/wm.rake
@@ -0,0 +1,138 @@
+require File.join(File.dirname(__FILE__),'..','jake.rb')
+
+namespace "config" do
+ task :wm do
+ $config = Jake.config(File.open('build.yml'))
+ $basedir = pwd
+
+ $bindir = File.join($basedir,'bin')
+ $srcdir = File.join($bindir, '/RhoBundle')
+ $tmpdir = File.join($bindir,'tmp')
+ $targetdir = File.join($bindir,'target','wm6')
+
+ $excludelib = ['**/builtinME.rb','**/ServeME.rb','**/TestServe.rb']
+
+ $compileERBbase = File.join(File.dirname(__FILE__),'..','compileERB')
+ $compileRBbase = File.join(File.dirname(__FILE__),'..','compileRB')
+ $appmanifest = File.join(File.dirname(__FILE__),'..','manifest','createAppManifest.rb')
+ $res = File.join(File.dirname(__FILE__),'..','..','res')
+
+ $prebuilt = File.join($res,'prebuilt')
+
+ mkdir_p $bindir if not File.exists? $bindir
+ mkdir_p $targetdir if not File.exists? $targetdir
+ end
+end
+
+task :loadframework do
+ require 'rhodes-framework'
+ puts $rhodeslib
+end
+
+namespace "bundle" do
+ task :wm => ["config:wm", "loadframework"] do
+
+ rm_rf $srcdir
+ mkdir_p $srcdir
+ mkdir_p File.join($srcdir,'apps')
+
+ rubypath = File.join($res,'RhoRuby.exe')
+ compileERB = File.join($compileERBbase,'default.rb')
+ compileRB = File.join($compileRBbase,'compileRB.rb')
+
+ dest = $srcdir
+ src = $rhodeslib
+ cp_r src,dest
+
+ src = File.join($rhodeslib,"..","res","sqlite3")
+ cp_r src,File.join(dest,"lib")
+
+ chdir dest
+ Dir.glob("**/rhodes-framework.rb").each {|f| rm f}
+ Dir.glob("**/erb.rb").each {|f| rm f}
+ Dir.glob("**/find.rb").each {|f| rm f}
+ $excludelib.each {|e| Dir.glob(e).each {|f| rm f}}
+
+ chdir $basedir
+ cp_r 'app',File.join($srcdir,'apps')
+ cp_r 'public', File.join($srcdir,'apps')
+ cp 'config.rb', File.join($srcdir,'apps')
+
+ cp $appmanifest, $srcdir
+ puts `#{rubypath} -R#{$rhodeslib} #{$srcdir}/createAppManifest.rb`
+ rm File.join($srcdir,'createAppManifest.rb')
+ cp compileERB, $srcdir
+ puts `#{rubypath} -R#{$rhodeslib} #{$srcdir}/default.rb`
+
+ rm "#{$srcdir}/default.rb"
+
+ cp compileRB, $srcdir
+ puts `#{rubypath} -R#{$rhodeslib} #{$srcdir}/compileRB.rb`
+
+ chdir $srcdir
+ Dir.glob("**/*.rb") { |f| rm f }
+ Dir.glob("**/*.erb") { |f| rm f }
+#throw "ME"
+
+ chdir $basedir
+
+ # rm_rf $srcdir
+
+ end
+end
+
+namespace "device" do
+ desc "Create downloadable app for windows mobile"
+ task :wm => "bundle:wm" do
+
+
+ end
+end
+
+namespace "run" do
+ namespace "wm" do
+
+ desc "Run app in iphone Sim"
+ task :app => ["bundle:wm"] do
+
+ src = File.join($prebuilt,"wm","wm6.7z")
+
+ seven = File.join($res,"7z.exe")
+ chdir $bindir
+
+ puts `#{seven} x #{src}`
+
+ chdir $basedir
+
+ src = File.join($prebuilt,"common","db")
+ dest = $srcdir
+
+ cp_r src,dest
+
+ src = File.join($res,"build_inf.js")
+ dest = $basedir
+ cp src,dest
+
+ chdir $basedir
+ puts `cscript build_inf.js rhodes.inf wm6`
+
+ cabwiz = $config["env"]["paths"]["cabwiz"]
+ puts `#{cabwiz} rhodes.inf`
+
+ puts `cscript cleanup.js`
+ rm "cleanup.js"
+
+ mv "rhodes.inf", $bindir
+ mv "rhodes.cab", $targetdir
+
+ Thread.new { system($config["env"]["paths"]["wmemu"]) }
+
+ puts "BUILD COMPLETE"
+ puts "*** Your .cab file is located in #{$targetdir}\\rhodes.cab"
+ puts "*** The device emulator has been started for you, select a windows mobile 6 device"
+ puts "*** Then you must cradle the device and can drop the cab in the Mobile Device folder in My computer"
+ end
+
+
+ end
+end
View
10 rhodes/rhodes-build/lib/version.rb
@@ -0,0 +1,10 @@
+module RhodesBuild
+ unless defined? RhodesBuild::VERSION
+ VERSION = '0.2.6'
+ end
+ unless defined? RhodesBuild::DBVERSION
+ DBVERSION = '0.2.6'
+ end
+
+end
+
View
BIN rhodes/rhodes-build/res/7z.exe
Binary file not shown.
View
BIN rhodes/rhodes-build/res/RhoRuby.exe
Binary file not shown.
View
BIN rhodes/rhodes-build/res/RubyMac
Binary file not shown.
View
217 rhodes/rhodes-build/res/build_inf.js
@@ -0,0 +1,217 @@
+var fso,output_file;
+
+//TBD need to move sources and settings to a separate config files
+
+var sources = new Object();
+sources['db'] = ["db","bin\\RhoBundle\\db"];
+//sources['sqlite3']= ["sqlite3","..\\..\\shared\\sqlite3"];
+sources['lib']= ["lib","bin\\RhoBundle\\lib"];
+sources['apps']= ["apps","bin\\RhoBundle\\apps"];
+
+var settings = new Object();
+settings['wm6'] = ['Windows Mobile 6 Professional SDK (ARMV4I)','VersionMin=5.02','VersionMax=6.99'];
+
+main();
+
+function p(str) {
+ output_file.WriteLine(str);
+}
+
+function expand_source(es,name,path,section,destination) {
+ var s = new Object();
+ s.name = name;
+ s.path = path;
+ s.section = ""+section+"_"+name.replace(/ /g,"_");
+ s.destination = destination+"\\"+name;
+ s.folder = fso.GetFolder(path);
+ es.push(s);
+
+ var fc = new Enumerator(s.folder.SubFolders);
+ for (; !fc.atEnd(); fc.moveNext()) {
+ expand_source(es,fc.item().Name,fc.item().Path,s.section,s.destination);
+ }
+}
+
+function expand_sources() {
+ var es = new Array();
+ for (var i in sources) {
+ expand_source(es,sources[i][0],sources[i][1],"copyfiles","rho");
+ }
+ return es;
+}
+
+function get_copyfiles_sections(es) {
+ var str = "";
+ for (var i in es) {
+ str = str+","+es[i].section;
+ }
+ return str;
+}
+
+function get_source_disks_names(es) {
+ var disk = 2;
+
+ for (var i in es) {
+ es[i].disk = disk;
+ p(""+disk+"=,\"\",,\""+es[i].path+"\\\"");
+ disk++;
+ }
+}
+
+function get_file_list(es) {
+ var file_list = new Array();
+ for (var i in es) {
+ var fc = new Enumerator(es[i].folder.files);
+ for (; !fc.atEnd(); fc.moveNext()) {
+ var f = new Object();
+ f.name = fc.item().Name;
+ f.fullname = es[i].folder.Path+"\\"+f.name;
+ f.section = es[i].section;
+ f.disk = es[i].disk;
+ file_list.push(f);
+ }
+ }
+ return file_list;
+}
+
+function is_dublicate(flist,file) {
+ for(var i in flist) {
+ if ( (flist[i].name == file.name) &&
+ (flist[i].fullname != file.fullname) ) {
+ return true;
+ }
+ }
+ return false;
+}
+
+function resolve_dublicates(es) {
+ var dups = new Array();
+ var flist = get_file_list(es);
+ var n = 1;
+ for(var i in flist) {
+ if ( is_dublicate(flist,flist[i]) ) {
+ flist[i].localname = flist[i].name+".copy"+n;
+ flist[i].copy = flist[i].fullname+".copy"+n;
+
+ var f = fso.GetFile(flist[i].fullname);
+ f.Copy(flist[i].copy);
+
+ dups.push(flist[i]);
+ n++;
+ } else {
+ flist[i].localname = flist[i].name;
+ }
+ }
+
+ var cleanup_file = fso.CreateTextFile("cleanup.js");
+
+ cleanup_file.WriteLine("var f;");
+ cleanup_file.WriteLine("var fso = new ActiveXObject(\"Scripting.FileSystemObject\");");
+ for(var i in dups) {
+ var copy = dups[i].copy.replace(/\\/g,"\\\\");
+ cleanup_file.WriteLine("f = fso.GetFile(\""+copy+"\");");
+ cleanup_file.WriteLine("f.Delete();");
+ }
+
+ cleanup_file.Close();
+
+ return flist;
+}
+
+function get_source_disks_files(es) {
+
+ var f = resolve_dublicates(es);
+
+ for (var i in f) {
+ p("\""+f[i].localname+"\"="+f[i].disk);
+ }
+
+ return f;
+}
+
+function get_destination_dirs(es) {
+ for (var i in es) {
+ p(es[i].section+"=0,\"%InstallDir%"+"\\"+es[i].destination+"\"");
+ }
+}
+
+function get_files_for_section(section,f) {
+ var list = new Array();
+ for (var i in f) {
+ if (f[i].section == section) {
+ list.push(f[i]);
+ }
+ }
+ return list;
+}
+
+function fill_copyfiles_sections(es,f) {
+ for (var i in es) {
+ p("["+es[i].section+"]");
+ var sf = get_files_for_section(es[i].section,f);
+ for (var i in sf) {
+ p("\""+sf[i].name+"\",\""+sf[i].localname+"\",,0");
+ }
+ p("");
+ }
+}
+
+function pinf(platform,es) {
+
+ p("[Version]");
+ p("Signature=\"$Windows NT$\"");
+ p("Provider=\"rhomobile\"");
+ p("CESignature=\"$Windows CE$\"");
+ p("");
+ p("[CEStrings]");
+ p("AppName=\"rhodes\"");
+ p("InstallDir=%CE1%\\%AppName%");
+ p("");
+ p("[Strings]");
+ p("Manufacturer=\"rhomobile\"");
+ p("");
+ p("[CEDevice]");
+ p(settings[platform][1]);
+ p(settings[platform][2]);
+ p("BuildMax=0xE0000000");
+ p("");
+ p("[DefaultInstall]");
+ p("CEShortcuts=Shortcuts");
+ p("AddReg=RegKeys");
+ p("CopyFiles=CopyToInstallDir"+get_copyfiles_sections(es));
+ p("");
+ p("[SourceDisksNames]");
+ p("1=,\"\",,\"bin\\"+settings[platform][0]+"\\rhodes\\Release\\\"");
+ get_source_disks_names(es);
+ p("");
+ p("[SourceDisksFiles]");
+ p("\"rhodes.exe\"=1");
+ var f = get_source_disks_files(es);
+ p("");
+ p("[DestinationDirs]");
+ p("Shortcuts=0,%CE2%\Start Menu");
+ p("CopyToInstallDir=0,\"%InstallDir%\"");
+ get_destination_dirs(es);
+ p("");
+ p("[CopyToInstallDir]");
+ p("\"rhodes.exe\",\"rhodes.exe\",,0");
+ p("");
+ fill_copyfiles_sections(es,f);
+ p("");
+ p("[Shortcuts]");
+ p("Rhodes,0,\"rhodes.exe\",%CE11%");
+ p("");
+ p("[RegKeys]");
+ p("");
+}
+
+function main() {
+ var args = WScript.Arguments;
+ fso = new ActiveXObject("Scripting.FileSystemObject");
+ output_file = fso.CreateTextFile(args(0));
+
+ var es = expand_sources();
+ pinf(args(1),es);
+
+ output_file.Close();
+}
View
26 rhodes/rhodes-build/res/insertRhoBundle2pkg.rb
@@ -0,0 +1,26 @@
+require 'find'
+
+install_path = "-\"!:\\Data\\Rho"
+
+dir = File.expand_path( File.dirname(File.expand_path(__FILE__)) + "/../RhoBundle")
+puts "Rhodes root directory..."
+puts dir
+
+pkg_file_path = File.expand_path( File.dirname(File.expand_path(__FILE__)) ) + "/rhodes_tmp.pkg"
+puts "Pkg file path..."
+puts pkg_file_path
+
+pkg_file = File.open(pkg_file_path, File::WRONLY|File::APPEND)
+
+Find.find(dir) do |path|
+ if FileTest.directory?(path)
+ next
+ else
+ rel_file_path = path
+ rel_file_path = rel_file_path.gsub(dir, "")
+
+ line = "\"" + path.tr("/", "\\") + "\" " + install_path + rel_file_path.tr("/", "\\") + "\""
+
+ pkg_file.puts( line )
+ end
+end
View
12 rhodes/rhodes-build/res/prebuilt/bb/MANIFEST.MF
@@ -0,0 +1,12 @@
+Manifest-Version: 1.0
+RIM-MIDlet-Flags-1: 0
+MIDlet-Vendor: <unknown>
+MIDlet-Version: 1.40
+MicroEdition-Configuration: CLDC-1.1
+MIDlet-1: ,resources/icon.png,
+Created-By: 1.6.0_02 (Sun Microsystems Inc.)
+MIDlet-Jar-URL: rhodes.jar
+MIDlet-Name: rhodes
+MicroEdition-Profile: MIDP-2.0
+MIDlet-Jar-Size: 0
+
View
BIN rhodes/rhodes-build/res/prebuilt/bb/RubyVM.jar
Binary file not shown.
View
BIN rhodes/rhodes-build/res/prebuilt/bb/rhodes.jar
Binary file not shown.
View
59 rhodes/rhodes-build/res/prebuilt/bb/rhodesApp.alx
@@ -0,0 +1,59 @@
+<loader version="1.0">
+ <application id="rhodesApp">
+ <name >
+
+ </name>
+ <description >
+
+ </description>
+ <version >
+ 0.10
+ </version>
+ <vendor >
+ RhoMobile
+ </vendor>
+ <copyright >
+ Copyright (c) 2008 RhoMobile
+ </copyright>
+ <fileset Java="1.35">
+ <directory >
+
+ </directory>
+ <files >
+ rhodesApp.cod
+
+ </files>
+
+ </fileset>
+
+ <application id="RubyVM">
+ <name >
+
+ </name>
+ <description >
+
+ </description>
+ <version >
+ 0.10
+ </version>
+ <vendor >
+ MyCompany
+ </vendor>
+ <copyright >
+ Copyright (c) 2008 MyCompany
+ </copyright>
+ <fileset Java="1.35">
+ <directory >
+
+ </directory>
+ <files >
+ RubyVM.cod
+
+ </files>
+
+ </fileset>
+ </application>
+
+ </application>
+
+</loader>
View
BIN rhodes/rhodes-build/res/prebuilt/common/db/syncdb.sqlite
Binary file not shown.
View
BIN rhodes/rhodes-build/res/prebuilt/iphone/sim/.DS_Store
Binary file not shown.
View
34 rhodes/rhodes-build/res/prebuilt/iphone/sim/rhorunner.app/Info.plist
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>en</string>
+ <key>CFBundleDisplayName</key>
+ <string>Rhodes</string>
+ <key>CFBundleExecutable</key>
+ <string>rhorunner</string>
+ <key>CFBundleIconFile</key>
+ <string>icon.png</string>
+ <key>CFBundleIdentifier</key>
+ <string>com.rhomobile.rhosyncclient</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>rhorunner</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1.0</string>
+ <key>DTPlatformName</key>
+ <string>iphonesimulator</string>
+ <key>DTSDKName</key>
+ <string>iphonesimulator2.1</string>
+ <key>LSRequiresIPhoneOS</key>
+ <true/>
+ <key>NSMainNibFile</key>
+ <string>MainWindow</string>
+</dict>
+</plist>
View
BIN rhodes/rhodes-build/res/prebuilt/iphone/sim/rhorunner.app/MainWindow.nib
Binary file not shown.
View
1 rhodes/rhodes-build/res/prebuilt/iphone/sim/rhorunner.app/PkgInfo
@@ -0,0 +1 @@
+APPL????
View
BIN rhodes/rhodes-build/res/prebuilt/iphone/sim/rhorunner.app/back_btn.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN rhodes/rhodes-build/res/prebuilt/iphone/sim/rhorunner.app/db/syncdb.sqlite
Binary file not shown.
View
BIN rhodes/rhodes-build/res/prebuilt/iphone/sim/rhorunner.app/forward_btn.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN rhodes/rhodes-build/res/prebuilt/iphone/sim/rhorunner.app/home_btn.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN rhodes/rhodes-build/res/prebuilt/iphone/sim/rhorunner.app/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN rhodes/rhodes-build/res/prebuilt/iphone/sim/rhorunner.app/rhorunner
Binary file not shown.
View
BIN rhodes/rhodes-build/res/prebuilt/symbian/Epoc32/data/z/private/10003a3f/apps/rhodes_reg.RSC
Binary file not shown.
View
BIN rhodes/rhodes-build/res/prebuilt/symbian/Epoc32/data/z/resource/apps/rhodes.RSC
Binary file not shown.
View
BIN rhodes/rhodes-build/res/prebuilt/symbian/Epoc32/data/z/resource/apps/rhodes.mif
Binary file not shown.
View
BIN rhodes/rhodes-build/res/prebuilt/symbian/Epoc32/data/z/resource/apps/startup.mbm
Binary file not shown.
View
BIN rhodes/rhodes-build/res/prebuilt/symbian/Epoc32/data/z/system/data/cacerts.dat
Binary file not shown.
View
BIN rhodes/rhodes-build/res/prebuilt/symbian/Epoc32/release/gcce/urel/rhodes.exe
Binary file not shown.
View
BIN rhodes/rhodes-build/res/prebuilt/symbian/Epoc32/release/winscw/udeb/rhodes.exe
Binary file not shown.
View
1 rhodes/rhodes-build/res/prebuilt/symbian/Epoc32/winscw/c/Data/Rho/rhologpath.txt
@@ -0,0 +1 @@
+\Data\Rho\debug_out.txt
View
5 rhodes/rhodes-build/res/prebuilt/symbian/backup_registration.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" standalone="yes" ?>
+<backup_registration>
+<system_backup />
+<restore requires_reboot="no" />
+</backup_registration>
View
BIN rhodes/rhodes-build/res/prebuilt/symbian/rhodes.hlp
Binary file not shown.
View
39 rhodes/rhodes-build/res/prebuilt/symbian/rhodes_device.pkg
@@ -0,0 +1,39 @@
+; Installation file for rhodes application
+;
+; This is an auto-generated PKG file by Carbide.
+; This file uses variables specific to Carbide builds that will not work
+; on command-line builds. If you want to use this generated PKG file from the
+; command-line tools you will need to modify the variables with the appropriate
+; values: \Symbian\9.2\S60_3rd_FP1\, GCCE, UREL
+;
+;Language - standard language definitions
+&EN
+
+; standard SIS file header
+#{"rhodes"},(0xE6B4F4DF),0,1,2
+
+;Localised Vendor name
+%{"RhoMobile-EN"}
+;Unique Vendor name
+:"RhoMobile"