Commit Graph

83 Commits

Author SHA1 Message Date
Eloy Durán
da14a8b0eb [REPL] Use DEBUG_SIM_WINDOW_OFFSETS to print what sim is recognized. 2013-11-11 17:40:45 +01:00
Eloy Durán
80fd09c608 [REPL] Document inset macro. 2013-11-09 01:42:18 +01:00
Eloy Durán
2250d3ca46 [REPL] Properly name inset macro. 2013-11-09 01:38:27 +01:00
Eloy Durán
07c17769ef [REPL] Cover devices I can test on non-retina mac and handle landscape. 2013-11-09 01:34:56 +01:00
Eloy Durán
c7688dd2ff [REPL] No longer ask user to scale to 50% in Retina mode. 2013-11-08 18:52:49 +01:00
Eloy Durán
dceb65c6f2 [REPL] Take orientation into account when offsetting thick borders. 2013-11-08 18:36:59 +01:00
Eloy Durán
1c151523d7 Merge branch 'master' into repl 2013-11-08 13:28:15 +01:00
Eloy Durán
2e9f7d0495 [REPL] Apply proper insets for all thick borders except iPad Retina. 2013-11-07 19:27:53 +01:00
Eloy Durán
350a3a09f8 [REPL] Recognize thick borders for all devices except iPad Retina. 2013-11-07 18:51:40 +01:00
Eloy Durán
c192ddb154 Small cleanup. 2013-11-07 16:57:10 +01:00
Eloy Durán
4f0b155741 [REPL] Always update windows bounds in sim.
This ensures the user can switch the iOS device scale without having to
restart the REPL.
2013-11-07 16:54:22 +01:00
Eloy Durán
3ffcbe1d54 [REPL] Report relative geometry from sim, taking scale factor out of equation. 2013-11-06 18:25:03 +01:00
Watson
3386dd113f split the source code for RMTask 2013-11-06 12:57:47 +09:00
Eloy Durán
5653716744 [sim] Recognize 64-bit 4-inch iPhone simulator window. 2013-11-05 19:15:39 +01:00
Laurent Sansonetti
edcdf29ed6 ship only one libmacruby-repl.dylib file per platform, the one that has been built with the lowest deployment target (4.3 for ios and 10.7 for osx) 2013-10-30 23:54:57 +01:00
Laurent Sansonetti
90f6e7e83c use NSTask to launch osx apps 2013-10-30 12:53:14 +01:00
Laurent Sansonetti
396636f69f [OSX] fix default lldb commands 2013-10-29 17:51:27 +01:00
Laurent Sansonetti
e7005f1779 [OSX} launch /usr/bin/lldb in case /usr/bin/gdb does not exist 2013-10-29 15:37:54 +01:00
Eloy Durán
ac34d37b06 [sim] Although it's not leaking in practice, add -[RMTask dealloc] nonetheless. 2013-10-28 11:56:19 +01:00
Eloy Durán
e6d56cb167 [10.9] NSTask is unable to launch lldb. Replace with custom task for now.
It appears that NSTask was re-written on 10.9 and others have similar
issues as well. E.g. https://devforums.apple.com/message/863811#863811.

Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-295.
2013-10-25 20:00:53 +02:00
Laurent Sansonetti
41d5acbb1b better messages 2013-08-25 14:57:55 +02:00
Watson
af3678071d fix mouse over feature, now it works in 50 % window scale. 2013-08-25 15:25:09 +09:00
Watson
6e03a42e18 add iOS7 simulator pattern 2013-08-25 15:07:55 +09:00
Laurent Sansonetti
8cc0865f9d always set the libedit prompt in main thread, to avoid memory race condition crasher 2013-08-10 18:06:07 +02:00
Laurent Sansonetti
6d849e6563 fix compilation warning 2013-08-10 17:43:29 +02:00
Watson
b59e6bee89 forward a termination status in OSX environment to rake task 2013-08-07 23:50:02 +09:00
Watson
060e24d349 add lldb_commands_file for the initial configuration in lldb 2013-08-06 20:39:11 +09:00
Watson
098c8c48b9 split the method in where save command into temporary file 2013-08-06 20:39:06 +09:00
Watson
b503784a73 terminate RELP with exit status 0 if press CTRL + C 2013-07-23 02:27:30 +09:00
Watson
8384e336f9 fix a bug in debugger where built-in debug commands are not working
http://hipbyte.myjetbrains.com/youtrack/issue/RM-187

This bug was introduced by 3847d29e31
2013-07-19 16:48:38 +09:00
Laurent Sansonetti
9f3de43d1c fix race condition when launching simulator and activating simulator (in the foreground) 2013-06-14 13:46:27 +02:00
Laurent Sansonetti
3847d29e31 use lldb if gdb is not present, honor malloc_debug env variable (1 for malloc history debug, 2 for guard malloc) 2013-06-11 20:15:21 +02:00
Laurent Sansonetti
89ef64df1f fix 'rake debug=1' with app name including spaces (OSX) 2013-05-29 19:29:19 +09:00
Laurent Sansonetti
913ae11077 app.sim_args 2013-05-29 19:21:10 +09:00
Watson
3e075d47c5 add a feature which passing the arguments on launching app 2013-05-28 09:29:14 +09:00
Laurent Sansonetti
46a2e3d934 loop over windows 2013-05-07 12:09:36 +02:00
Laurent Sansonetti
30958b210f osx repl: added mouse-over support (experimental) 2013-05-07 03:10:25 +02:00
Watson
5276062e3a osx: move the app window to foreground 2013-05-01 01:39:54 +09:00
Laurent Sansonetti
9a1576debf osx repl: save history, quit app upon SIGINT 2013-04-30 17:03:56 +02:00
Laurent Sansonetti
21aacfd769 fixed a bug when receiving too much input from the repl evaluator 2013-04-30 14:32:22 +02:00
Laurent Sansonetti
c7152c8143 add osx repl 2013-04-29 21:07:39 +02:00
Laurent Sansonetti
105a915f3d mac port 2013-04-25 02:26:56 +02:00
Watson
9cf62a20e3 fix a bug in REPL which often causes an error with "exit" command 2013-03-28 17:59:07 +01:00
Watson
088080b681 fix a bug in REPL which often causes an error with "quit" command
When run "quit" command in REPL, terminates iOS simulator session.
2013-03-12 11:18:51 +09:00
Watson
d4ce537d07 fix a bug in REPL which can't handle the UTF8 string in history 2013-03-04 09:23:40 +09:00
Watson
92803b2722 adjust simulator_app_bounds for iPhone 3.5-inch retina 2013-02-12 15:43:08 +09:00
Watson
2bfbba1e0c enable the mouse over in retina
still can't select a view correctly when scrolled.
2013-02-04 15:56:40 +09:00
Watson
9e847832ad adjust simulator_app_bounds for iPad simulator 2013-02-01 23:51:18 +09:00
Watson
d639dae7c5 fix a bug in mouseover which can't select a view when rotated an iOS simulator 2013-01-31 15:38:48 +09:00
Watson
e5485b333b fix the assertion when it cannot find iOS simulator
When customers does not install older iOS simulator,
`rake target' task will fail with assertion, like:

	$ rake target=5.0
	     Build ./build/iPhoneSimulator-5.1-Development
	   Compile ./app/app_delegate.rb
	      Link ./build/iPhoneSimulator-5.1-Development/TestTwitter.app/TestTwitter
	    Create ./build/iPhoneSimulator-5.1-Development/TestTwitter.dSYM
	  Simulate ./build/iPhoneSimulator-5.1-Development/TestTwitter.app
	Assertion failed: (system_root != nil), function main, file sim.m, line 937.
	rake aborted!

This message looks not  kindly to customers.

After changing:

	$ rake target=5.0
	     Build ./build/iPhoneSimulator-5.1-Development
	   Compile ./app/app_delegate.rb
	      Link ./build/iPhoneSimulator-5.1-Development/TestTwitter.app/TestTwitter
	    Create ./build/iPhoneSimulator-5.1-Development/TestTwitter.dSYM
	  Simulate ./build/iPhoneSimulator-5.1-Development/TestTwitter.app

	Not found iOS 5.0 simulator.

	rake aborted!
2012-11-16 12:39:13 +09:00