Commit Graph

245 Commits

Author SHA1 Message Date
Katsuyoshi Ito
8b73bafe8c to setup controller using block.
I implemented @colinta 's idea which was discussed below link.
https://groups.google.com/d/msg/rubymotion/M9T6LybaEUs/AWip_Vwy5_4J

When you want to setup UIViewController, you can setup it in a block of tests method.

# Example
  describe MyViewController do

    tests MyViewController do |controller|
      # you can set data to the controller here
      controller.my_data = "foo"
    end

    .
    .
  end
2013-06-30 00:29:48 +09:00
Colin T.A. Gray
a0a39d5333 AH! Commas! 2013-06-16 20:02:43 -04:00
Laurent Sansonetti
1fb3c6bab0 revert zombie env change because it's going to be implemented into the 'sim' executable instead 2013-06-16 16:56:49 +02:00
Watson
7ea395a1af use local scope variable 2013-06-15 01:25:00 +09:00
Watson
349c3ada05 refactor #92 2013-06-15 01:00:20 +09:00
Colin T.A. Gray
b9cc611643 adds 'skip_build' option to 'rake simulater' (ios) and 'rake run' (osx) 2013-06-14 08:47:54 -06:00
Colin T.A. Gray
806b0db569 Revert "Added "rake sim" to run simulator without recompiling."
This reverts commit 1810044d20.
2013-06-14 08:28:08 -06:00
Colin T.A. Gray
2104880f01 adds output=colorized option 2013-06-13 10:24:04 -06:00
Colin T.A. Gray
370df0d6d2 Revert "use the correct env name", because the arguments passed to rake don't
work how i thought they did ;-)

This reverts commit 95f31bf35f.
2013-06-13 10:08:37 -06:00
Watson
c186f84ff5 2.2 2013-06-14 01:02:53 +09:00
Laurent Sansonetti
5a8179ed95 use llvm-gcc for .rb compilation, retrieve compilers from stable Xcode (in the meantime we really migrate to clang) 2013-06-14 01:02:53 +09:00
Colin T.A. Gray
0345af91b2 added Clay's 'exclude_from_detect_dependencies' feature 2013-06-13 09:38:19 -06:00
Colin T.A. Gray
95f31bf35f use the correct env name 2013-06-13 09:19:28 -06:00
Colin T.A. Gray
0e0ad10f6b added zombies to OSX 2013-06-13 09:12:31 -06:00
Colin T.A. Gray
396ff8ed69 Merge pull request #84 from clayallsopp/spec_without_setup
Set `spec_mode` before `setup`
2013-06-13 08:11:41 -07:00
Colin T.A. Gray
2409ae0132 Merge pull request #89 from aceofspades/rake_sim
Added "rake sim" to run simulator without recompiling.
2013-06-13 08:10:08 -07:00
Colin T.A. Gray
49a04f96b4 Merge pull request #91 from danieldickison/master
Set NSZombieEnabled=YES in simulator by passing zombie=1 to rake
2013-06-13 08:07:42 -07:00
Colin T.A. Gray
c3fe96743d Merge pull request #92 from IconoclastLabs/master
Adding git repo ability for templates
2013-06-13 08:06:23 -07:00
Colin T.A. Gray
8a42e2a32f Merge pull request #96 from katsuyoshi/callback_setup_controller
add callback after created controller.
2013-06-13 07:59:25 -07:00
Matt Garriott
a3f8ccfb90 Fix build expression for Xcode 3.x 2013-06-12 10:57:49 -06:00
Watson
29f802ade6 2.1 2013-06-10 21:41:14 +09:00
Laurent Sansonetti
468946e528 add support for manifest plist file (ios only) 2013-06-10 21:38:57 +09:00
Laurent Sansonetti
47b2f24ddc allow hash keys to be symbols 2013-06-10 21:38:53 +09:00
Katsuyoshi Ito
4f71e2ac34 add callback after created controller.
Sometimes view controller has a data.
The controller was set as a root view controller to the window before called "before" block.
But a data is not set at this point.
The view controller access to nil, and crash sometime even if I set a data in "before" block.

After created controller it will call the specified callback method if you set :after_created option

# Example
  describe MyViewController do

    tests MyViewController, after_created: :after_created_controller

    def after_created_controller controller
      # you can set data to the controller here
      controller.my_data = "foo"
    end

    .
    .
  end
2013-06-10 17:47:48 +09:00
Laurent Sansonetti
00c8eb8965 remove app.sim_args and use args env variable instead 2013-06-09 23:57:29 +09:00
Laurent Sansonetti
2d81dec34f app.vendor_project(:xcode) now rebuilds the project in case a file changed 2013-06-09 21:07:59 +09:00
Laurent Sansonetti
4827f71bae OSX: add LSMinimumSystemVersion plist key 2013-06-09 21:07:48 +09:00
Watson
3764e3d438 [OSX] fix a bug where it is not possible to submit app to Mac App Store
We have to do the code sign twice to submit app

1. code sign to app with
  "3rd Party Mac Developer Application: XXX"

2. code sign to pkg with
  "3rd Party Mac Developer Installer: XXX"
2013-06-09 21:07:40 +09:00
Watson
b35c1ab341 added embedded frameworks support (OSX-only) 2013-06-09 21:06:48 +09:00
Watson
abd0150df4 display the workaround for tmux users
if use tmux, we need some operation to launch iOS simulator.
2013-06-08 01:25:22 +09:00
Watson
495828a495 fix a bug in detecting file dependencies where it will not detect dependencies if contains nested constants
http://hipbyte.myjetbrains.com/youtrack/issue/RM-160
2013-06-05 14:58:00 +09:00
Watson
c2c2db3862 fix app.sim_args
Because when passed the arguments as following

    app.sim_args += ["-com.apple.CoreData.SQLDebug 1"]

application will receive the argument like

    argv[1] = ["-com.apple.CoreData.SQLDebug
    argv[2] = 1"]

Expected:

    argv[1] = -com.apple.CoreData.SQLDebug
    argv[2] = 1
2013-06-05 05:12:17 +09:00
Laurent Sansonetti
246883aee3 osx: support for entitlements 2013-06-04 17:38:52 +09:00
Laurent Sansonetti
1efb6ff264 add 'build' task that builds for both modes 2013-06-04 17:38:45 +09:00
Laurent Sansonetti
fa5461a8a6 add 'rake static' task (OSX) 2013-06-04 17:38:31 +09:00
Laurent Sansonetti
143c508ffd move ctags to basic project rakefile so that it works with osx 2013-06-04 17:38:23 +09:00
Laurent Sansonetti
f011285dd6 app.sim_args 2013-06-04 17:38:06 +09:00
Watson
ed0b8bbc64 add a feature which passing the arguments on launching app 2013-06-04 17:37:24 +09:00
Watson
371b5a7a52 add .gitignore into gem template 2013-06-04 17:36:48 +09:00
Clay Allsopp
f888cffbcd set spec_mode and distribution_mode without setup 2013-05-27 15:32:31 -07:00
Jack Chen (chendo)
4f5fd08280 Use absolute path for CONFIGURATION_BUILD_DIR because when using relative xcodeproj path 2013-05-24 00:39:08 +10:00
Matt Garrison
3242325a9f added conditional for failed repo clones 2013-05-17 11:10:15 -05:00
Matt Garrison
6273ecece0 added more robust repo name extraction, refactored names to be more descriptive 2013-05-17 11:03:52 -05:00
Gant
6091814b65 Cache issue resolved, git works 2013-05-16 14:09:43 -05:00
Gant
0a925134c0 Really close, just need to figure out the cache issue on new create 2013-05-16 13:59:00 -05:00
Gant
a6addd6ec0 detecting git 2013-05-16 10:07:50 -05:00
Gant
c6cc46aafe Regex checks for git 2013-05-15 16:10:00 -05:00
Gant
3ce24eb767 Merge remote-tracking branch 'upstream/master' 2013-05-15 15:10:06 -05:00
Gant
368d33ab7b beginning in template 2013-05-15 14:59:10 -05:00
Daniel Dickison
cc9a9e241e Set NSZombieEnabled=YES when running the simulator if zombie=1 is set. 2013-05-15 02:58:25 -04:00