rhodes 3.2.3 → 3.3.0.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (368) hide show
  1. data/CHANGELOG +10 -0
  2. data/Rakefile +153 -46
  3. data/doc/build.txt +261 -102
  4. data/doc/configuration.txt +5 -2
  5. data/doc/device-caps.txt +134 -23
  6. data/doc/extensions.txt +922 -69
  7. data/doc/generator.txt +96 -39
  8. data/doc/install.txt +35 -19
  9. data/doc/jqt-jqm-transition.txt +17 -1
  10. data/doc/rhom.txt +23 -2
  11. data/doc/rhostudio-eclipse.txt +49 -0
  12. data/doc/rhostudio-test-plan.txt +440 -0
  13. data/doc/simulator.txt +1 -1
  14. data/doc/synchronization.txt +40 -1
  15. data/lib/build/jake.rb +108 -7
  16. data/lib/extensions/barcode/ext/barcode/platform/android/Rakefile +0 -35
  17. data/lib/extensions/barcode/ext/barcode/platform/iphone/Barcode.xcodeproj/project.pbxproj +8 -2
  18. data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/BarcodeCallbackHelper.mm +195 -195
  19. data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/BarcodeViewController.m +6 -0
  20. data/lib/extensions/barcode/ext/barcode/platform/iphone/Rakefile +5 -0
  21. data/lib/extensions/barcode/ext/barcode/shared/ruby/barcode_wrap.c +64 -20
  22. data/lib/extensions/debugger/CHANGELOG +3 -0
  23. data/lib/extensions/debugger/debugger.rb +26 -21
  24. data/lib/extensions/digest-md5/ext/Rakefile +5 -5
  25. data/lib/extensions/digest-md5/ext/build +10 -1
  26. data/lib/extensions/digest-md5/ext/defs.h +19 -0
  27. data/lib/extensions/digest-md5/ext/digest-md5.vcproj +317 -9
  28. data/lib/extensions/digest-md5/ext/iphone/Dmd5.xcodeproj/project.pbxproj +290 -0
  29. data/lib/extensions/digest-md5/ext/iphone/Dmd5_Prefix.pch +7 -0
  30. data/lib/extensions/digest-md5/ext/iphone/Rakefile +79 -0
  31. data/lib/extensions/digest-sha1/ext/Rakefile +5 -5
  32. data/lib/extensions/digest-sha1/ext/build +10 -1
  33. data/lib/extensions/digest-sha1/ext/defs.h +19 -0
  34. data/lib/extensions/digest-sha1/ext/digest-sha1.vcproj +317 -9
  35. data/lib/extensions/digest-sha1/ext/iphone/Dsha1.xcodeproj/project.pbxproj +278 -0
  36. data/lib/extensions/digest-sha1/ext/iphone/Dsha1_Prefix.pch +7 -0
  37. data/lib/extensions/digest-sha1/ext/iphone/Rakefile +79 -0
  38. data/lib/extensions/digest/ext/Rakefile +5 -5
  39. data/lib/extensions/digest/ext/build +10 -1
  40. data/lib/extensions/digest/ext/digest.vcproj +317 -9
  41. data/lib/extensions/digest/ext/iphone/Digest.xcodeproj/project.pbxproj +270 -0
  42. data/lib/extensions/digest/ext/iphone/Digest_Prefix.pch +7 -0
  43. data/lib/extensions/digest/ext/iphone/Rakefile +79 -0
  44. data/lib/extensions/esri/ext/esri/platform/iphone/ESRI.xcodeproj/project.pbxproj +10 -2
  45. data/lib/extensions/esri/ext/esri/platform/iphone/Rakefile +6 -0
  46. data/lib/extensions/fcntl/ext/Rakefile +5 -5
  47. data/lib/extensions/fcntl/ext/build +9 -1
  48. data/lib/extensions/fcntl/ext/iphone/Fcntl.xcodeproj/project.pbxproj +262 -0
  49. data/lib/extensions/fcntl/ext/iphone/Fcntl_Prefix.pch +7 -0
  50. data/lib/extensions/fcntl/ext/iphone/Rakefile +79 -0
  51. data/lib/extensions/net-http/net/http.rb +9 -7
  52. data/lib/extensions/nfc/ext/nfc/shared/ruby/nfc_wrap.c +64 -20
  53. data/lib/extensions/rhoxml/rexml/document.rb +3 -2
  54. data/lib/extensions/rhoxml/rexml/instruction.rb +70 -0
  55. data/lib/framework/builtinME.rb +9 -0
  56. data/lib/framework/date/format.rb +1 -1
  57. data/lib/framework/dateME.rb +19 -2
  58. data/lib/framework/rho/rho.rb +15 -4
  59. data/lib/framework/rho/rhoapplication.rb +1 -0
  60. data/lib/framework/rho/rhocontact.rb +10 -27
  61. data/lib/framework/rho/rhoevent_c.rb +8 -2
  62. data/lib/framework/rho/rhosupport.rb +25 -0
  63. data/lib/framework/rhodes.rb +1 -1
  64. data/lib/framework/rhoframework.rb +15 -0
  65. data/lib/framework/rholang/localization_simplified.rb +8 -10
  66. data/lib/framework/rhom/rhom_object_factory.rb +8 -2
  67. data/lib/framework/version.rb +1 -1
  68. data/lib/rhodes.rb +1 -1
  69. data/platform/android/Rhodes/jni/Application.mk +2 -1
  70. data/platform/android/Rhodes/jni/include/rhodes.h +9 -0
  71. data/platform/android/Rhodes/jni/src/callbacks.cpp +31 -1
  72. data/platform/android/Rhodes/jni/src/event.cpp +75 -31
  73. data/platform/android/Rhodes/jni/src/nativeview.cpp +1 -1
  74. data/platform/android/Rhodes/jni/src/phonebook.cpp +73 -9
  75. data/platform/android/Rhodes/jni/src/rhodes.cpp +21 -0
  76. data/platform/android/Rhodes/jni/src/rhodesapp.cpp +16 -24
  77. data/platform/android/Rhodes/jni/src/signature.cpp +27 -1
  78. data/platform/android/Rhodes/{default.properties → project.properties} +2 -2
  79. data/platform/android/Rhodes/src/com/rhomobile/rhodes/Capabilities.java +14 -12
  80. data/platform/android/Rhodes/src/com/rhomobile/rhodes/NativeBar.java +14 -12
  81. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesActivity.java +38 -115
  82. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesService.java +69 -52
  83. data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/Camera.java +9 -0
  84. data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/CameraNewService.java +21 -1
  85. data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/CameraOldService.java +1 -1
  86. data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/CameraSemiService.java +1 -1
  87. data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/CameraService.java +1 -1
  88. data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/ImageCapture.java +38 -6
  89. data/platform/android/Rhodes/src/com/rhomobile/rhodes/event/Event.java +212 -1
  90. data/platform/android/Rhodes/src/com/rhomobile/rhodes/event/EventStore.java +82 -125
  91. data/platform/android/Rhodes/src/com/rhomobile/rhodes/geolocation/GeoLocationImpl.java +1 -1
  92. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/MainView.java +2 -1
  93. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/SimpleMainView.java +39 -19
  94. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/SplashScreen.java +106 -136
  95. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/TabbedMainView.java +26 -25
  96. data/platform/android/Rhodes/src/com/rhomobile/rhodes/nativeview/RhoNativeViewManager.java +1 -1
  97. data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality.java +40 -0
  98. data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality01.java +47 -0
  99. data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality02.java +33 -0
  100. data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality03.java +33 -0
  101. data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality04.java +34 -0
  102. data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality05.java +75 -0
  103. data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality06.java +34 -0
  104. data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality07.java +34 -0
  105. data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality08.java +44 -0
  106. data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality09.java +34 -0
  107. data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality10.java +34 -0
  108. data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionalityManager.java +73 -0
  109. data/platform/android/Rhodes/src/com/rhomobile/rhodes/phonebook/Contact.java +57 -6
  110. data/platform/android/Rhodes/src/com/rhomobile/rhodes/phonebook/ContactAccessor.java +2 -2
  111. data/platform/android/Rhodes/src/com/rhomobile/rhodes/phonebook/ContactAccessorNew.java +322 -76
  112. data/platform/android/Rhodes/src/com/rhomobile/rhodes/phonebook/ContactAccessorOld.java +11 -6
  113. data/platform/android/Rhodes/src/com/rhomobile/rhodes/phonebook/Phonebook.java +5 -5
  114. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/ChromeClientOld.java +2 -1
  115. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/GoogleWebView.java +125 -0
  116. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebSettingsOld.java +2 -3
  117. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/WebView.java +16 -0
  118. data/platform/android/build/RhodesSRC_build.files +14 -0
  119. data/platform/android/build/android.rake +149 -147
  120. data/platform/android/build/android_tools.rb +58 -0
  121. data/platform/android/build/librhocommon_build.files +1 -0
  122. data/platform/android/build/libruby_build.files +3 -0
  123. data/platform/bb/RubyVM/src/com/rho/RhoConf.java +11 -1
  124. data/platform/bb/RubyVM/src/com/rho/db/DBAdapter.java +11 -5
  125. data/platform/bb/RubyVM/src/com/rho/db/DBAttrManager.java +3 -2
  126. data/platform/bb/RubyVM/src/com/rho/file/RhoFile.java +2 -0
  127. data/platform/bb/RubyVM/src/com/rho/net/RhoConnection.java +20 -8
  128. data/platform/bb/RubyVM/src/com/rho/sync/SyncEngine.java +9 -6
  129. data/platform/bb/RubyVM/src/com/rho/sync/SyncSource.java +45 -18
  130. data/platform/bb/RubyVM/src/com/rho/sync/SyncThread.java +1 -2
  131. data/platform/bb/build/bb.rake +84 -70
  132. data/platform/bb/rhodes/platform/5.0/com/rho/BrowserAdapter5.java +106 -14
  133. data/platform/bb/rhodes/src/com/rho/BrowserAdapter.java +1 -1
  134. data/platform/bb/rhodes/src/com/rho/BrowserAdapter5.java +108 -16
  135. data/platform/bb/rhodes/src/rhomobile/RhodesApplication.java +10 -5
  136. data/platform/bb/rhodes/src/rhomobile/camera/CameraScreen.java +21 -4
  137. data/platform/bb/rhodes/src/rhomobile/mapview/Annotation.java +17 -0
  138. data/platform/bb/rhodes/src/rhomobile/mapview/MapView.java +8 -5
  139. data/platform/bb/rhodes/src/rhomobile/mapview/MapViewScreen.java +3 -1
  140. data/platform/iphone/Classes/AppManager/AppManager.m +15 -3
  141. data/platform/iphone/Classes/Event/Event.m +45 -2
  142. data/platform/iphone/Classes/MapView/MapViewController.m +8 -4
  143. data/platform/iphone/Classes/Phonebook/phonebook.m +30 -7
  144. data/platform/iphone/Classes/Rhodes.h +11 -1
  145. data/platform/iphone/Classes/Rhodes.m +141 -9
  146. data/platform/iphone/Classes/Signature/SignatureDelegate.m +27 -1
  147. data/platform/iphone/Classes/SimpleMainView.h +1 -0
  148. data/platform/iphone/Classes/SimpleMainView.m +4 -0
  149. data/platform/iphone/RhoLib/RhoLib.xcodeproj/project.pbxproj +31 -1
  150. data/platform/iphone/curl/curl.xcodeproj/project.pbxproj +10 -0
  151. data/platform/iphone/rbuild/iphone.rake +33 -6
  152. data/platform/iphone/rhoextlib/rhoextlib.xcodeproj/project.pbxproj +10 -2
  153. data/platform/iphone/rhorubylib/rhorubylib.xcodeproj/project.pbxproj +22 -2
  154. data/platform/iphone/rhorunner.xcodeproj/project.pbxproj +14 -0
  155. data/platform/iphone/rhosynclib/rhosynclib.xcodeproj/project.pbxproj +10 -0
  156. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Info.plist +1 -1
  157. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/MacOS/RhoSimulator +0 -0
  158. data/platform/osx/build/osx.rake +58 -7
  159. data/platform/shared/RhoConnectClient/RhoConnectClient.cpp +427 -69
  160. data/platform/shared/RhoConnectClient/RhoConnectClient.h +21 -2
  161. data/platform/shared/common/Android.mk +2 -1
  162. data/platform/shared/common/AutoPointer.h +23 -0
  163. data/platform/shared/common/BundleManager.cpp +333 -0
  164. data/platform/shared/common/RhoFile.cpp +206 -23
  165. data/platform/shared/common/RhoFile.h +14 -4
  166. data/platform/shared/common/RhoFilePath.h +18 -0
  167. data/platform/shared/common/RhoStd.h +11 -1
  168. data/platform/shared/common/RhoThread.h +4 -1
  169. data/platform/shared/common/RhodesApp.cpp +31 -8
  170. data/platform/shared/common/RhodesApp.h +14 -0
  171. data/platform/shared/common/RhodesAppBase.cpp +6 -6
  172. data/platform/shared/common/RhodesAppBase.h +1 -1
  173. data/platform/shared/common/emml.h +34 -0
  174. data/platform/shared/common/iphone/RhoFileImpl.m +30 -2
  175. data/platform/shared/common/map/BaseMapEngine.cpp +3 -3
  176. data/platform/shared/common/map/GeocodingMapEngine.cpp +205 -14
  177. data/platform/shared/common/map/GeocodingMapEngine.h +25 -2
  178. data/platform/shared/common/map/MapEngine.cpp +24 -2
  179. data/platform/shared/common/map/MapEngine.h +23 -12
  180. data/platform/shared/common/phonebook/PhonebookParams.cpp +99 -0
  181. data/platform/shared/common/phonebook/PhonebookParams.h +52 -0
  182. data/platform/shared/common/rhoparams.cpp +14 -0
  183. data/platform/shared/common/rhoparams.h +1 -0
  184. data/platform/shared/db/DBAdapter.cpp +43 -24
  185. data/platform/shared/db/DBAdapter.h +6 -1
  186. data/platform/shared/db/DBAttrManager.cpp +50 -1
  187. data/platform/shared/logging/RhoLog.h +3 -0
  188. data/platform/shared/logging/RhoLogSink.cpp +5 -1
  189. data/platform/shared/net/CURLNetRequest.cpp +2 -0
  190. data/platform/shared/qt/rhodes/QtMainWindow.cpp +14 -1
  191. data/platform/shared/qt/rhodes/impl/PhonebookImpl.cpp +2 -2
  192. data/platform/shared/qt/rhodes/impl/RhoFileImpl.cpp +1 -1
  193. data/platform/shared/qt/rhodes/impl/SignatureImpl.cpp +14 -2
  194. data/platform/shared/qt/rhodes/impl/SystemImpl.cpp +16 -2
  195. data/platform/shared/qt/rhodes/main.cpp +28 -0
  196. data/platform/shared/qt/rhodes/rhodes.pro +3 -0
  197. data/platform/shared/qt/rholib/rholib.pro +2 -1
  198. data/platform/shared/qt/rubylib/rubylib.pro +2 -1
  199. data/platform/shared/ruby/Android.mk +3 -0
  200. data/platform/shared/ruby/class.c +7 -0
  201. data/platform/shared/ruby/compile.c +18 -10
  202. data/platform/shared/ruby/encdb.h +18 -8
  203. data/platform/shared/ruby/eval.c +108 -2
  204. data/platform/shared/ruby/ext/alert/alert_wrap.c +64 -20
  205. data/platform/shared/ruby/ext/asynchttp/asynchttp_wrap.c +64 -20
  206. data/platform/shared/ruby/ext/bluetooth/bluetooth_wrap.c +67 -23
  207. data/platform/shared/ruby/ext/calendar/calendar_wrap.c +64 -20
  208. data/platform/shared/ruby/ext/calendar/event_wrap.c +64 -20
  209. data/platform/shared/ruby/ext/camera/camera_wrap.c +64 -20
  210. data/platform/shared/ruby/ext/datetimepicker/datetimepicker_wrap.c +64 -20
  211. data/platform/shared/ruby/ext/geolocation/geolocation.i +16 -0
  212. data/platform/shared/ruby/ext/geolocation/geolocation_wrap.c +127 -26
  213. data/platform/shared/ruby/ext/mapview/mapview_wrap.c +64 -20
  214. data/platform/shared/ruby/ext/nativebar/nativebar_wrap.c +65 -21
  215. data/platform/shared/ruby/ext/nativeviewmanager/nativeviewmanager_wrap.c +64 -20
  216. data/platform/shared/ruby/ext/navbar/navbar_wrap.c +64 -20
  217. data/platform/shared/ruby/ext/phonebook/phonebook.i +7 -7
  218. data/platform/shared/ruby/ext/phonebook/phonebook_wrap.c +95 -120
  219. data/platform/shared/ruby/ext/rho/rhoruby.c +4 -4
  220. data/platform/shared/ruby/ext/rho/rhoruby.h +2 -0
  221. data/platform/shared/ruby/ext/rho/rhosupport.c +39 -6
  222. data/platform/shared/ruby/ext/rhoconf/rhoconf_wrap.c +65 -21
  223. data/platform/shared/ruby/ext/ringtones/ringtones_wrap.c +64 -20
  224. data/platform/shared/ruby/ext/signature/signature.i +37 -5
  225. data/platform/shared/ruby/ext/signature/signature_wrap.c +274 -45
  226. data/platform/shared/ruby/ext/syncengine/syncengine_wrap.c +65 -21
  227. data/platform/shared/ruby/ext/system/system.i +14 -2
  228. data/platform/shared/ruby/ext/system/system_wrap.c +146 -25
  229. data/platform/shared/ruby/ext/webview/webview_wrap.c +65 -21
  230. data/platform/shared/ruby/include/ruby/ruby.h +15 -4
  231. data/platform/shared/ruby/inits.c +1 -0
  232. data/platform/shared/ruby/io.c +13 -3
  233. data/platform/shared/ruby/win32/win32.c +3 -3
  234. data/platform/shared/ruby/wince/io_wce.c +2 -2
  235. data/platform/shared/rubyext/System.cpp +9 -5
  236. data/platform/shared/sync/ClientRegister.cpp +18 -8
  237. data/platform/shared/sync/SyncEngine.cpp +25 -11
  238. data/platform/shared/sync/SyncEngine.h +2 -0
  239. data/platform/shared/sync/SyncSource.cpp +40 -15
  240. data/platform/shared/sync/SyncSource.h +3 -2
  241. data/platform/shared/sync/SyncThread.cpp +9 -4
  242. data/platform/shared/sync/SyncThread.h +3 -1
  243. data/platform/symbian/build/symbian.rake +14 -9
  244. data/platform/symbian/rhodes/rhodes.pro +11 -8
  245. data/platform/symbian/rhodes/src/phonebook/ruby_phonebook.cpp +2 -2
  246. data/platform/symbian/rubylib/rubylib.pro +3 -0
  247. data/platform/win32/RhoSimulator/RhoSimulator.exe +0 -0
  248. data/platform/wm/RhoLib/RhoLib.vcproj +315 -2
  249. data/platform/wm/build/build_inf.js +235 -187
  250. data/platform/wm/build/wm.rake +388 -233
  251. data/platform/wm/rhodes.sln +56 -0
  252. data/platform/wm/rhodes/MainWindow.cpp +139 -77
  253. data/platform/wm/rhodes/MainWindow.h +27 -22
  254. data/platform/wm/rhodes/MapView/{Graphics.cpp → Bitmap.cpp} +15 -253
  255. data/platform/wm/rhodes/MapView/Bitmap.h +86 -0
  256. data/platform/wm/rhodes/MapView/MapViewManager.cpp +7 -2
  257. data/platform/wm/rhodes/MapView/MapViewManager.h +1 -1
  258. data/platform/wm/rhodes/MapView/Win32Graphics.cpp +263 -0
  259. data/platform/wm/rhodes/MapView/Win32Graphics.h +133 -0
  260. data/platform/wm/rhodes/MapView/WmGraphics.cpp +291 -0
  261. data/platform/wm/rhodes/MapView/{Graphics.h → WmGraphics.h} +14 -56
  262. data/platform/wm/rhodes/Rhodes.cpp +128 -32
  263. data/platform/wm/rhodes/Rhodes.rc +6 -2
  264. data/platform/wm/rhodes/camera/Camera.cpp +1 -0
  265. data/platform/wm/rhodes/phonebook/phonebook.cpp +2 -2
  266. data/platform/wm/rhodes/phonebook/phonebook.h +2 -2
  267. data/platform/wm/rhodes/resource.h +3 -2
  268. data/platform/wm/rhodes/rho/net/NetRequestImpl.cpp +6 -0
  269. data/platform/wm/rhodes/rho/rubyext/NativeToolbar.cpp +4 -0
  270. data/platform/wm/rhodes/rho/rubyext/RhoSignature.cpp +675 -0
  271. data/platform/wm/rhodes/rho/rubyext/RhoSignature.h +123 -0
  272. data/platform/wm/rhodes/rho/rubyext/SystemImpl.cpp +12 -2
  273. data/platform/wm/rhodes/rhodes.vcproj +2732 -1113
  274. data/platform/wm/rhodes/simulator/MainWindowQt.h +1 -1
  275. data/platform/wm/rhodes/stdafx.h +1 -0
  276. data/platform/wm/rhoelements.sln +118 -62
  277. data/platform/wm/rubylib/rubylib.vcproj +345 -16
  278. data/platform/wm/sqlite3/sqlite3.vcproj +305 -0
  279. data/platform/wm/syncengine/syncengine.vcproj +309 -0
  280. data/platform/wm/tools/detool/LogServer.cpp +19 -2
  281. data/platform/wm/tools/detool/detool.cpp +131 -6
  282. data/platform/wm/tools/detool/detool.vcproj +3 -1
  283. data/platform/wm/tools/detool/stdafx.h +1 -0
  284. data/platform/wp7/IronRuby/Languages/Ruby/Libraries/Builtins/RangeOps.cs +589 -0
  285. data/platform/wp7/IronRuby/Languages/Ruby/Ruby/Builtins/RubyEncoding.cs +678 -0
  286. data/platform/wp7/IronRuby/Languages/Ruby/Ruby/Runtime/RubyExceptionData.cs +271 -0
  287. data/platform/wp7/IronRuby/Languages/Ruby/Ruby/Runtime/RubyUtils.cs +31 -1
  288. data/platform/wp7/IronRuby/bin/Silverlight3Release/IronRuby.Libraries.dll +0 -0
  289. data/platform/wp7/IronRuby/bin/Silverlight3Release/IronRuby.dll +0 -0
  290. data/platform/wp7/RhoRubyLib/common/RhoStd.cs +6 -0
  291. data/platform/wp7/RhoRubyLib/common/RhodesApp.cs +16 -2
  292. data/platform/wp7/RhoRubyLib/net/NetRequest.cs +2 -0
  293. data/platform/wp7/RhoRubyLib/rubyext/RhoSyncEngine.cs +1 -2
  294. data/platform/wp7/RhoRubyLib/sync/SyncEngine.cs +13 -10
  295. data/platform/wp7/RhoRubyLib/sync/SyncSource.cs +30 -8
  296. data/platform/wp7/build/wp.rake +5 -0
  297. data/rakefile.rb +153 -46
  298. data/res/build-tools/detool.exe +0 -0
  299. data/res/build-tools/swig_patch/Lib/ruby/rubyerrors.swg +155 -0
  300. data/res/build-tools/swig_patch/Lib/ruby/rubyhead.swg +158 -0
  301. data/res/build-tools/swig_patch/Lib/ruby/rubyiterators.swg +932 -0
  302. data/res/build-tools/swig_patch/Lib/ruby/rubyrun.swg +448 -0
  303. data/res/build-tools/swig_patch/Lib/ruby/rubystdfunctors.swg +162 -0
  304. data/res/build-tools/swig_patch/Lib/ruby/rubytracking.swg +159 -0
  305. data/res/build-tools/swig_patch/Lib/ruby/std_basic_string.i +97 -0
  306. data/res/build-tools/swig_patch/Lib/ruby/std_map.i +418 -0
  307. data/res/build-tools/swig_patch/Lib/ruby/std_multimap.i +227 -0
  308. data/res/build-tools/swig_patch/Lib/swiginit.swg +269 -0
  309. data/res/build-tools/swig_patch/README +7 -0
  310. data/res/generators/templates/application/app/Settings/controller.rb +42 -1
  311. data/res/generators/templates/application/app/Settings/wait.erb +1 -1
  312. data/res/generators/templates/application/app/application.rb +1 -1
  313. data/res/generators/templates/application/app/layout.erb +8 -8
  314. data/res/generators/templates/application/build.yml +0 -1
  315. data/res/generators/templates/application/public/css/android.css +6 -0
  316. data/res/generators/templates/application/public/css/blackberry.css +6 -0
  317. data/res/generators/templates/application/public/css/iphone.css +6 -0
  318. data/res/generators/templates/application/public/css/jqmobile-patch.css +14 -0
  319. data/res/generators/templates/application/public/jqmobile/images/ajax-loader.png +0 -0
  320. data/res/generators/templates/application/public/jqmobile/images/icons-18-black.png +0 -0
  321. data/res/generators/templates/application/public/jqmobile/images/icons-18-white.png +0 -0
  322. data/res/generators/templates/application/public/jqmobile/images/icons-36-black.png +0 -0
  323. data/res/generators/templates/application/public/jqmobile/images/icons-36-white.png +0 -0
  324. data/res/generators/templates/application/public/jqmobile/{jquery.mobile-1.0rc1.css → jquery.mobile-1.0.css} +452 -354
  325. data/res/generators/templates/application/public/jqmobile/{jquery.mobile-1.0rc1.js → jquery.mobile-1.0.js} +629 -442
  326. data/res/generators/templates/application/public/jqmobile/jquery.mobile-1.0.min.css +2 -0
  327. data/res/generators/templates/application/public/jqmobile/jquery.mobile-1.0.min.js +172 -0
  328. data/res/generators/templates/application/public/jqmobile/jquery.mobile.structure-1.0.css +714 -0
  329. data/res/generators/templates/application/public/jqmobile/jquery.mobile.structure-1.0.min.css +2 -0
  330. data/res/generators/templates/application/public/js/jqmobile-patch.js +136 -7
  331. data/res/generators/templates/extension/app/MontanaTest/controller.rb +20 -20
  332. data/res/generators/templates/extension/app/MontanaTest/index.erb +17 -17
  333. data/res/generators/templates/extension/extensions/montana/ext/montana/platform/iphone/Montana.xcodeproj/project.pbxproj +8 -2
  334. data/res/generators/templates/extension/extensions/montana/ext/montana/platform/iphone/Rakefile +5 -0
  335. data/res/generators/templates/extension/extensions/montana/ext/montana/shared/ruby/montana_wrap.c +64 -20
  336. data/rhomobile-debug.gemspec +1 -1
  337. data/spec/framework_spec/app/layout.erb +1 -1
  338. data/spec/framework_spec/app/spec/core/rational/Rational_spec.rb +1 -1
  339. data/spec/framework_spec/app/spec/library/stringio/shared/each_char.rb +6 -2
  340. data/spec/framework_spec/app/spec/shared/rational/{Rational.rb → rational_main.rb} +0 -0
  341. data/spec/framework_spec/build.yml +0 -3
  342. data/spec/perfomance_spec/app/Benchmark/controller.rb +1 -1
  343. data/spec/perfomance_spec/app/layout.erb +1 -1
  344. data/spec/phone_spec/app/BlobTest_s/blob_test_s.rb +13 -0
  345. data/spec/phone_spec/app/BlobTest_s/test.png +0 -0
  346. data/spec/phone_spec/app/BlobTest_s/test2.png +0 -0
  347. data/spec/phone_spec/app/spec/blobsync_spec.rb +27 -15
  348. data/spec/phone_spec/app/spec/date_spec.rb +27 -1
  349. data/spec/phone_spec/app/spec/rho_spec.rb +6 -0
  350. data/spec/phone_spec/app/spec/rhom_object_spec.rb +64 -26
  351. data/spec/phone_spec/app/spec/syncengine_spec.rb +28 -7
  352. data/spec/phone_spec/app/spec/uri_spec.rb +4 -4
  353. data/spec/phone_spec/app/spec_runner.rb +4 -2
  354. data/spec/phone_spec/build.yml +7 -9
  355. data/spec/phone_spec/rhoconfig.txt +1 -0
  356. data/version +1 -1
  357. metadata +75 -22
  358. data/Manifest.txt +0 -7853
  359. data/platform/wm/rhodes/rhoelements/RhoWKBrowserEngine.cpp +0 -384
  360. data/platform/wm/rhodes/rhoelements/RhoWKBrowserEngine.h +0 -41
  361. data/platform/wm/rhodes/signature/Signature.cpp +0 -396
  362. data/platform/wm/rhodes/signature/Signature.h +0 -84
  363. data/platform/wm/rubylib/rubylib.vcproj.VLAD.Vladimir.user +0 -429
  364. data/platform/wm/sqlite3/sqlite3.vcproj.VLAD.Vladimir.user +0 -429
  365. data/platform/wm/syncengine/syncengine.vcproj.VLAD.Vladimir.user +0 -429
  366. data/res/generators/templates/application/public/jqmobile/jquery.mobile-1.0rc1.min.css +0 -12
  367. data/res/generators/templates/application/public/jqmobile/jquery.mobile-1.0rc1.min.js +0 -170
  368. data/rhomobile-debug-1.0.5.gem +0 -0
@@ -985,6 +985,7 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
985
985
  #define rb_undef_alloc_func(klass) rb_undef_method(CLASS_OF((klass)), "new")
986
986
  #endif
987
987
 
988
+ #define _mSWIG_defined
988
989
  static VALUE _mSWIG = Qnil;
989
990
 
990
991
  /* -----------------------------------------------------------------------------
@@ -1000,26 +1001,27 @@ static VALUE _mSWIG = Qnil;
1000
1001
  exceptions. Note this only works for C++ since a global cannot be
1001
1002
  initialized by a function in C. For C, fallback to rb_eRuntimeError.*/
1002
1003
 
1004
+ #define SWIG_rb_eNullReferenceError_defined
1005
+ static VALUE SWIG_rb_eNullReferenceError = Qnil;
1006
+
1007
+
1003
1008
  SWIGINTERN VALUE
1004
1009
  getNullReferenceError(void) {
1005
- static int init = 0;
1006
- static VALUE rb_eNullReferenceError ;
1007
- if (!init) {
1008
- init = 1;
1009
- rb_eNullReferenceError = rb_define_class("NullReferenceError", rb_eRuntimeError);
1010
+ if (SWIG_rb_eNullReferenceError == Qnil) {
1011
+ SWIG_rb_eNullReferenceError = rb_define_class("NullReferenceError", rb_eRuntimeError);
1010
1012
  }
1011
- return rb_eNullReferenceError;
1013
+ return SWIG_rb_eNullReferenceError;
1012
1014
  }
1013
1015
 
1016
+ #define SWIG_rb_eObjectPreviouslyDeleted_defined
1017
+ static VALUE SWIG_rb_eObjectPreviouslyDeleted = Qnil;
1018
+
1014
1019
  SWIGINTERN VALUE
1015
1020
  getObjectPreviouslyDeletedError(void) {
1016
- static int init = 0;
1017
- static VALUE rb_eObjectPreviouslyDeleted ;
1018
- if (!init) {
1019
- init = 1;
1020
- rb_eObjectPreviouslyDeleted = rb_define_class("ObjectPreviouslyDeleted", rb_eRuntimeError);
1021
+ if (SWIG_rb_eObjectPreviouslyDeleted == Qnil) {
1022
+ SWIG_rb_eObjectPreviouslyDeleted = rb_define_class("ObjectPreviouslyDeleted", rb_eRuntimeError);
1021
1023
  }
1022
- return rb_eObjectPreviouslyDeleted;
1024
+ return SWIG_rb_eObjectPreviouslyDeleted;
1023
1025
  }
1024
1026
 
1025
1027
 
@@ -1170,11 +1172,13 @@ extern "C" {
1170
1172
  /* Global Ruby hash table to store Trackings from C/C++
1171
1173
  structs to Ruby Objects.
1172
1174
  */
1175
+ #define swig_ruby_trackings_defined
1173
1176
  static VALUE swig_ruby_trackings = Qnil;
1174
1177
 
1175
1178
  /* Global variable that stores a reference to the ruby
1176
1179
  hash table delete function. */
1177
- static ID swig_ruby_hash_delete;
1180
+ #define swig_ruby_hash_delete_defined
1181
+ static ID swig_ruby_hash_delete = 0;
1178
1182
 
1179
1183
  /* Setup a Ruby hash table to store Trackings */
1180
1184
  SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) {
@@ -1413,11 +1417,17 @@ typedef struct {
1413
1417
 
1414
1418
 
1415
1419
  /* Global pointer used to keep some internal SWIG stuff */
1420
+ #define _cSWIG_Pointer_defined
1416
1421
  static VALUE _cSWIG_Pointer = Qnil;
1422
+
1423
+ #define swig_runtime_data_type_pointer_defined
1417
1424
  static VALUE swig_runtime_data_type_pointer = Qnil;
1418
1425
 
1419
1426
  /* Global IDs used to keep some internal SWIG stuff */
1427
+ #define swig_arity_id_defined
1420
1428
  static ID swig_arity_id = 0;
1429
+
1430
+ #define swig_call_id_defined
1421
1431
  static ID swig_call_id = 0;
1422
1432
 
1423
1433
  /*
@@ -1438,7 +1448,8 @@ static ID swig_call_id = 0;
1438
1448
  # define Ruby_DirectorTypeMismatchException(x) \
1439
1449
  rb_raise( rb_eTypeError, "%s", x ); return c_result;
1440
1450
 
1441
- static unsigned int swig_virtual_calls = 0;
1451
+ #define swig_virtual_calls_defined
1452
+ static unsigned int swig_virtual_calls = 0;
1442
1453
 
1443
1454
  #else /* normal non-embedded extension */
1444
1455
 
@@ -1452,12 +1463,12 @@ static ID swig_call_id = 0;
1452
1463
 
1453
1464
  SWIGRUNTIME VALUE
1454
1465
  getExceptionClass(void) {
1455
- static int init = 0;
1466
+ //static int init = 0;
1456
1467
  static VALUE rubyExceptionClass ;
1457
- if (!init) {
1458
- init = 1;
1468
+ //if (!init) {
1469
+ //init = 1;
1459
1470
  rubyExceptionClass = rb_const_get(_mSWIG, rb_intern("Exception"));
1460
- }
1471
+ //}
1461
1472
  return rubyExceptionClass;
1462
1473
  }
1463
1474
 
@@ -1479,11 +1490,11 @@ SWIG_Ruby_ExceptionType(swig_type_info *desc, VALUE obj) {
1479
1490
  SWIGRUNTIME void
1480
1491
  SWIG_Ruby_InitRuntime(void)
1481
1492
  {
1482
- if (_mSWIG == Qnil) {
1493
+ //if (_mSWIG == Qnil) {
1483
1494
  _mSWIG = rb_define_module("SWIG");
1484
1495
  swig_call_id = rb_intern("call");
1485
1496
  swig_arity_id = rb_intern("arity");
1486
- }
1497
+ //}
1487
1498
  }
1488
1499
 
1489
1500
  /* Define Ruby class for C type */
@@ -2074,6 +2085,39 @@ SWIG_InitializeModule(void *clientdata) {
2074
2085
  int found, init;
2075
2086
 
2076
2087
  clientdata = clientdata;
2088
+
2089
+ // clear static variables for support reinitialization
2090
+ #ifdef SWIG_rb_eNullReferenceError_defined
2091
+ SWIG_rb_eNullReferenceError = Qnil;
2092
+ #endif
2093
+ #ifdef SWIG_rb_eObjectPreviouslyDeleted_defined
2094
+ SWIG_rb_eObjectPreviouslyDeleted = Qnil;
2095
+ #endif
2096
+ //#ifdef _mSWIG_defined
2097
+ // _mSWIG = Qnil;
2098
+ //#endif
2099
+ #ifdef _cSWIG_Pointer_defined
2100
+ _cSWIG_Pointer = Qnil;
2101
+ #endif
2102
+ #ifdef swig_runtime_data_type_pointer_defined
2103
+ swig_runtime_data_type_pointer = Qnil;
2104
+ #endif
2105
+ #ifdef swig_arity_id_defined
2106
+ swig_arity_id = 0;
2107
+ #endif
2108
+ #ifdef swig_call_id_defined
2109
+ swig_call_id = 0;
2110
+ #endif
2111
+ #ifdef swig_virtual_calls_defined
2112
+ swig_virtual_calls = 0;
2113
+ #endif
2114
+ #ifdef swig_ruby_trackings_defined
2115
+ swig_ruby_trackings = Qnil;
2116
+ #endif
2117
+ #ifdef swig_ruby_hash_delete_defined
2118
+ swig_ruby_hash_delete = 0;
2119
+ #endif
2120
+
2077
2121
 
2078
2122
  /* check to see if the circular list has been setup, if not, set it up */
2079
2123
  if (swig_module.next==0) {
@@ -985,6 +985,7 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
985
985
  #define rb_undef_alloc_func(klass) rb_undef_method(CLASS_OF((klass)), "new")
986
986
  #endif
987
987
 
988
+ #define _mSWIG_defined
988
989
  static VALUE _mSWIG = Qnil;
989
990
 
990
991
  /* -----------------------------------------------------------------------------
@@ -1000,26 +1001,27 @@ static VALUE _mSWIG = Qnil;
1000
1001
  exceptions. Note this only works for C++ since a global cannot be
1001
1002
  initialized by a function in C. For C, fallback to rb_eRuntimeError.*/
1002
1003
 
1004
+ #define SWIG_rb_eNullReferenceError_defined
1005
+ static VALUE SWIG_rb_eNullReferenceError = Qnil;
1006
+
1007
+
1003
1008
  SWIGINTERN VALUE
1004
1009
  getNullReferenceError(void) {
1005
- static int init = 0;
1006
- static VALUE rb_eNullReferenceError ;
1007
- if (!init) {
1008
- init = 1;
1009
- rb_eNullReferenceError = rb_define_class("NullReferenceError", rb_eRuntimeError);
1010
+ if (SWIG_rb_eNullReferenceError == Qnil) {
1011
+ SWIG_rb_eNullReferenceError = rb_define_class("NullReferenceError", rb_eRuntimeError);
1010
1012
  }
1011
- return rb_eNullReferenceError;
1013
+ return SWIG_rb_eNullReferenceError;
1012
1014
  }
1013
1015
 
1016
+ #define SWIG_rb_eObjectPreviouslyDeleted_defined
1017
+ static VALUE SWIG_rb_eObjectPreviouslyDeleted = Qnil;
1018
+
1014
1019
  SWIGINTERN VALUE
1015
1020
  getObjectPreviouslyDeletedError(void) {
1016
- static int init = 0;
1017
- static VALUE rb_eObjectPreviouslyDeleted ;
1018
- if (!init) {
1019
- init = 1;
1020
- rb_eObjectPreviouslyDeleted = rb_define_class("ObjectPreviouslyDeleted", rb_eRuntimeError);
1021
+ if (SWIG_rb_eObjectPreviouslyDeleted == Qnil) {
1022
+ SWIG_rb_eObjectPreviouslyDeleted = rb_define_class("ObjectPreviouslyDeleted", rb_eRuntimeError);
1021
1023
  }
1022
- return rb_eObjectPreviouslyDeleted;
1024
+ return SWIG_rb_eObjectPreviouslyDeleted;
1023
1025
  }
1024
1026
 
1025
1027
 
@@ -1170,11 +1172,13 @@ extern "C" {
1170
1172
  /* Global Ruby hash table to store Trackings from C/C++
1171
1173
  structs to Ruby Objects.
1172
1174
  */
1175
+ #define swig_ruby_trackings_defined
1173
1176
  static VALUE swig_ruby_trackings = Qnil;
1174
1177
 
1175
1178
  /* Global variable that stores a reference to the ruby
1176
1179
  hash table delete function. */
1177
- static ID swig_ruby_hash_delete;
1180
+ #define swig_ruby_hash_delete_defined
1181
+ static ID swig_ruby_hash_delete = 0;
1178
1182
 
1179
1183
  /* Setup a Ruby hash table to store Trackings */
1180
1184
  SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) {
@@ -1413,11 +1417,17 @@ typedef struct {
1413
1417
 
1414
1418
 
1415
1419
  /* Global pointer used to keep some internal SWIG stuff */
1420
+ #define _cSWIG_Pointer_defined
1416
1421
  static VALUE _cSWIG_Pointer = Qnil;
1422
+
1423
+ #define swig_runtime_data_type_pointer_defined
1417
1424
  static VALUE swig_runtime_data_type_pointer = Qnil;
1418
1425
 
1419
1426
  /* Global IDs used to keep some internal SWIG stuff */
1427
+ #define swig_arity_id_defined
1420
1428
  static ID swig_arity_id = 0;
1429
+
1430
+ #define swig_call_id_defined
1421
1431
  static ID swig_call_id = 0;
1422
1432
 
1423
1433
  /*
@@ -1438,7 +1448,8 @@ static ID swig_call_id = 0;
1438
1448
  # define Ruby_DirectorTypeMismatchException(x) \
1439
1449
  rb_raise( rb_eTypeError, "%s", x ); return c_result;
1440
1450
 
1441
- static unsigned int swig_virtual_calls = 0;
1451
+ #define swig_virtual_calls_defined
1452
+ static unsigned int swig_virtual_calls = 0;
1442
1453
 
1443
1454
  #else /* normal non-embedded extension */
1444
1455
 
@@ -1452,12 +1463,12 @@ static ID swig_call_id = 0;
1452
1463
 
1453
1464
  SWIGRUNTIME VALUE
1454
1465
  getExceptionClass(void) {
1455
- static int init = 0;
1466
+ //static int init = 0;
1456
1467
  static VALUE rubyExceptionClass ;
1457
- if (!init) {
1458
- init = 1;
1468
+ //if (!init) {
1469
+ //init = 1;
1459
1470
  rubyExceptionClass = rb_const_get(_mSWIG, rb_intern("Exception"));
1460
- }
1471
+ //}
1461
1472
  return rubyExceptionClass;
1462
1473
  }
1463
1474
 
@@ -1479,11 +1490,11 @@ SWIG_Ruby_ExceptionType(swig_type_info *desc, VALUE obj) {
1479
1490
  SWIGRUNTIME void
1480
1491
  SWIG_Ruby_InitRuntime(void)
1481
1492
  {
1482
- if (_mSWIG == Qnil) {
1493
+ //if (_mSWIG == Qnil) {
1483
1494
  _mSWIG = rb_define_module("SWIG");
1484
1495
  swig_call_id = rb_intern("call");
1485
1496
  swig_arity_id = rb_intern("arity");
1486
- }
1497
+ //}
1487
1498
  }
1488
1499
 
1489
1500
  /* Define Ruby class for C type */
@@ -1928,6 +1939,39 @@ SWIG_InitializeModule(void *clientdata) {
1928
1939
  int found, init;
1929
1940
 
1930
1941
  clientdata = clientdata;
1942
+
1943
+ // clear static variables for support reinitialization
1944
+ #ifdef SWIG_rb_eNullReferenceError_defined
1945
+ SWIG_rb_eNullReferenceError = Qnil;
1946
+ #endif
1947
+ #ifdef SWIG_rb_eObjectPreviouslyDeleted_defined
1948
+ SWIG_rb_eObjectPreviouslyDeleted = Qnil;
1949
+ #endif
1950
+ //#ifdef _mSWIG_defined
1951
+ // _mSWIG = Qnil;
1952
+ //#endif
1953
+ #ifdef _cSWIG_Pointer_defined
1954
+ _cSWIG_Pointer = Qnil;
1955
+ #endif
1956
+ #ifdef swig_runtime_data_type_pointer_defined
1957
+ swig_runtime_data_type_pointer = Qnil;
1958
+ #endif
1959
+ #ifdef swig_arity_id_defined
1960
+ swig_arity_id = 0;
1961
+ #endif
1962
+ #ifdef swig_call_id_defined
1963
+ swig_call_id = 0;
1964
+ #endif
1965
+ #ifdef swig_virtual_calls_defined
1966
+ swig_virtual_calls = 0;
1967
+ #endif
1968
+ #ifdef swig_ruby_trackings_defined
1969
+ swig_ruby_trackings = Qnil;
1970
+ #endif
1971
+ #ifdef swig_ruby_hash_delete_defined
1972
+ swig_ruby_hash_delete = 0;
1973
+ #endif
1974
+
1931
1975
 
1932
1976
  /* check to see if the circular list has been setup, if not, set it up */
1933
1977
  if (swig_module.next==0) {
@@ -985,6 +985,7 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
985
985
  #define rb_undef_alloc_func(klass) rb_undef_method(CLASS_OF((klass)), "new")
986
986
  #endif
987
987
 
988
+ #define _mSWIG_defined
988
989
  static VALUE _mSWIG = Qnil;
989
990
 
990
991
  /* -----------------------------------------------------------------------------
@@ -1000,26 +1001,27 @@ static VALUE _mSWIG = Qnil;
1000
1001
  exceptions. Note this only works for C++ since a global cannot be
1001
1002
  initialized by a function in C. For C, fallback to rb_eRuntimeError.*/
1002
1003
 
1004
+ #define SWIG_rb_eNullReferenceError_defined
1005
+ static VALUE SWIG_rb_eNullReferenceError = Qnil;
1006
+
1007
+
1003
1008
  SWIGINTERN VALUE
1004
1009
  getNullReferenceError(void) {
1005
- static int init = 0;
1006
- static VALUE rb_eNullReferenceError ;
1007
- if (!init) {
1008
- init = 1;
1009
- rb_eNullReferenceError = rb_define_class("NullReferenceError", rb_eRuntimeError);
1010
+ if (SWIG_rb_eNullReferenceError == Qnil) {
1011
+ SWIG_rb_eNullReferenceError = rb_define_class("NullReferenceError", rb_eRuntimeError);
1010
1012
  }
1011
- return rb_eNullReferenceError;
1013
+ return SWIG_rb_eNullReferenceError;
1012
1014
  }
1013
1015
 
1016
+ #define SWIG_rb_eObjectPreviouslyDeleted_defined
1017
+ static VALUE SWIG_rb_eObjectPreviouslyDeleted = Qnil;
1018
+
1014
1019
  SWIGINTERN VALUE
1015
1020
  getObjectPreviouslyDeletedError(void) {
1016
- static int init = 0;
1017
- static VALUE rb_eObjectPreviouslyDeleted ;
1018
- if (!init) {
1019
- init = 1;
1020
- rb_eObjectPreviouslyDeleted = rb_define_class("ObjectPreviouslyDeleted", rb_eRuntimeError);
1021
+ if (SWIG_rb_eObjectPreviouslyDeleted == Qnil) {
1022
+ SWIG_rb_eObjectPreviouslyDeleted = rb_define_class("ObjectPreviouslyDeleted", rb_eRuntimeError);
1021
1023
  }
1022
- return rb_eObjectPreviouslyDeleted;
1024
+ return SWIG_rb_eObjectPreviouslyDeleted;
1023
1025
  }
1024
1026
 
1025
1027
 
@@ -1170,11 +1172,13 @@ extern "C" {
1170
1172
  /* Global Ruby hash table to store Trackings from C/C++
1171
1173
  structs to Ruby Objects.
1172
1174
  */
1175
+ #define swig_ruby_trackings_defined
1173
1176
  static VALUE swig_ruby_trackings = Qnil;
1174
1177
 
1175
1178
  /* Global variable that stores a reference to the ruby
1176
1179
  hash table delete function. */
1177
- static ID swig_ruby_hash_delete;
1180
+ #define swig_ruby_hash_delete_defined
1181
+ static ID swig_ruby_hash_delete = 0;
1178
1182
 
1179
1183
  /* Setup a Ruby hash table to store Trackings */
1180
1184
  SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) {
@@ -1413,11 +1417,17 @@ typedef struct {
1413
1417
 
1414
1418
 
1415
1419
  /* Global pointer used to keep some internal SWIG stuff */
1420
+ #define _cSWIG_Pointer_defined
1416
1421
  static VALUE _cSWIG_Pointer = Qnil;
1422
+
1423
+ #define swig_runtime_data_type_pointer_defined
1417
1424
  static VALUE swig_runtime_data_type_pointer = Qnil;
1418
1425
 
1419
1426
  /* Global IDs used to keep some internal SWIG stuff */
1427
+ #define swig_arity_id_defined
1420
1428
  static ID swig_arity_id = 0;
1429
+
1430
+ #define swig_call_id_defined
1421
1431
  static ID swig_call_id = 0;
1422
1432
 
1423
1433
  /*
@@ -1438,7 +1448,8 @@ static ID swig_call_id = 0;
1438
1448
  # define Ruby_DirectorTypeMismatchException(x) \
1439
1449
  rb_raise( rb_eTypeError, "%s", x ); return c_result;
1440
1450
 
1441
- static unsigned int swig_virtual_calls = 0;
1451
+ #define swig_virtual_calls_defined
1452
+ static unsigned int swig_virtual_calls = 0;
1442
1453
 
1443
1454
  #else /* normal non-embedded extension */
1444
1455
 
@@ -1452,12 +1463,12 @@ static ID swig_call_id = 0;
1452
1463
 
1453
1464
  SWIGRUNTIME VALUE
1454
1465
  getExceptionClass(void) {
1455
- static int init = 0;
1466
+ //static int init = 0;
1456
1467
  static VALUE rubyExceptionClass ;
1457
- if (!init) {
1458
- init = 1;
1468
+ //if (!init) {
1469
+ //init = 1;
1459
1470
  rubyExceptionClass = rb_const_get(_mSWIG, rb_intern("Exception"));
1460
- }
1471
+ //}
1461
1472
  return rubyExceptionClass;
1462
1473
  }
1463
1474
 
@@ -1479,11 +1490,11 @@ SWIG_Ruby_ExceptionType(swig_type_info *desc, VALUE obj) {
1479
1490
  SWIGRUNTIME void
1480
1491
  SWIG_Ruby_InitRuntime(void)
1481
1492
  {
1482
- if (_mSWIG == Qnil) {
1493
+ //if (_mSWIG == Qnil) {
1483
1494
  _mSWIG = rb_define_module("SWIG");
1484
1495
  swig_call_id = rb_intern("call");
1485
1496
  swig_arity_id = rb_intern("arity");
1486
- }
1497
+ //}
1487
1498
  }
1488
1499
 
1489
1500
  /* Define Ruby class for C type */
@@ -2049,6 +2060,39 @@ SWIG_InitializeModule(void *clientdata) {
2049
2060
  int found, init;
2050
2061
 
2051
2062
  clientdata = clientdata;
2063
+
2064
+ // clear static variables for support reinitialization
2065
+ #ifdef SWIG_rb_eNullReferenceError_defined
2066
+ SWIG_rb_eNullReferenceError = Qnil;
2067
+ #endif
2068
+ #ifdef SWIG_rb_eObjectPreviouslyDeleted_defined
2069
+ SWIG_rb_eObjectPreviouslyDeleted = Qnil;
2070
+ #endif
2071
+ //#ifdef _mSWIG_defined
2072
+ // _mSWIG = Qnil;
2073
+ //#endif
2074
+ #ifdef _cSWIG_Pointer_defined
2075
+ _cSWIG_Pointer = Qnil;
2076
+ #endif
2077
+ #ifdef swig_runtime_data_type_pointer_defined
2078
+ swig_runtime_data_type_pointer = Qnil;
2079
+ #endif
2080
+ #ifdef swig_arity_id_defined
2081
+ swig_arity_id = 0;
2082
+ #endif
2083
+ #ifdef swig_call_id_defined
2084
+ swig_call_id = 0;
2085
+ #endif
2086
+ #ifdef swig_virtual_calls_defined
2087
+ swig_virtual_calls = 0;
2088
+ #endif
2089
+ #ifdef swig_ruby_trackings_defined
2090
+ swig_ruby_trackings = Qnil;
2091
+ #endif
2092
+ #ifdef swig_ruby_hash_delete_defined
2093
+ swig_ruby_hash_delete = 0;
2094
+ #endif
2095
+
2052
2096
 
2053
2097
  /* check to see if the circular list has been setup, if not, set it up */
2054
2098
  if (swig_module.next==0) {