Commit Graph

540 Commits

Author SHA1 Message Date
Watson
33dffaeafb 2.26 2014-04-09 12:16:32 +09:00
Watson
a9938094ac 2.25 2014-04-08 11:40:46 +09:00
Eloy Durán
ff62c9a279 [bacon-ui] Get rid of a false positive warning. 2014-04-08 11:37:59 +09:00
Watson
8afefa3e0a fix a build error when “Resource” is contained as resource directory path
This should fix the following case which uses "HTBResources.bundle" as resource.

```
% rake
    ERROR! An iOS application cannot be installed if it contains a directory called `resources'. Please rename the directory at path `vendor/Pods/Resources/HTBResources.bundle' to, for instance, `vendor/Pods/Resources/assets'.
````
2014-04-08 11:36:55 +09:00
Watson
27bb7e0a11 fix a bug where nested array cannot be handled
it cause an error If app.resources_dirs has nested array

  app.resources_dirs << ['Images']

```
% rake
rake aborted!
no implicit conversion of Array into String
/Library/RubyMotion/lib/motion/project/template/ios.rb:51:in `exists?'
/Library/RubyMotion/lib/motion/project/template/ios.rb:51:in `block in pre_build_actions'
/Library/RubyMotion/lib/motion/project/template/ios.rb:50:in `each'
/Library/RubyMotion/lib/motion/project/template/ios.rb:50:in `pre_build_actions'
/Library/RubyMotion/lib/motion/project/template/ios.rb:67:in `block (2 levels) in <top (required)>'
/Library/RubyMotion/lib/motion/project/template/ios.rb:122:in `block in <top (required)>'
Tasks: TOP => build:simulator
(See full trace by running task with --trace)
```
2014-04-08 11:36:48 +09:00
Watson
32508cf243 fix build error if resource directory does not exits
This bug is introduced by 064672443d

% motion create hello && cd hello
% rm -rf resources
% rake
rake aborted!
No such file or directory @ dir_initialize - ./resources
/Library/RubyMotion/lib/motion/project/template/ios.rb:51:in `open'
/Library/RubyMotion/lib/motion/project/template/ios.rb:51:in `entries'
/Library/RubyMotion/lib/motion/project/template/ios.rb:51:in `block in pre_build_actions'
/Library/RubyMotion/lib/motion/project/template/ios.rb:50:in `each'
/Library/RubyMotion/lib/motion/project/template/ios.rb:50:in `pre_build_actions'
/Library/RubyMotion/lib/motion/project/template/ios.rb:66:in `block (2 levels) in <top (required)>'
/Library/RubyMotion/lib/motion/project/template/ios.rb:121:in `block in <top (required)>'
Tasks: TOP => build:simulator
(See full trace by running task with --trace)
2014-04-08 11:36:41 +09:00
Eloy Durán
5f5fbca0c8 [iOS] Fail build if one of the resources is a dir called `Resources'.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-450.
2014-04-08 11:36:09 +09:00
Eloy Durán
3caf55b141 [UI spec] Add failing test for flick and direction.
Related to http://hipbyte.myjetbrains.com/youtrack/issue/RM-439
2014-04-08 11:33:29 +09:00
Eloy Durán
a151789470 [UI spec] Make tap work with UISwitch. 2014-04-08 11:32:12 +09:00
Watson
9e2b1287bc Merge pull request #151 from markrickert/gem-template
Add gemspec call to Gemfile for gem template.
2014-04-03 10:30:59 +09:00
Watson
f99175bb52 update variable name
because it contains also non bridge support files.
2014-04-03 10:10:08 +09:00
Watson
53677c90d8 Merge pull request #152 from hboon/include-app-code-in-ctags
Include application's source code when running `rake ctags`
2014-04-03 09:46:06 +09:00
Hwee-Boon Yar
c9dc7e4287 Include app's source code when running rake ctags 2014-04-02 21:54:15 +08:00
Watson
60cc0bf979 2.24 2014-03-05 21:40:15 +09:00
Watson
562cdd9a96 add magic encoding comment 2014-03-05 21:39:03 +09:00
Eloy Durán
7eafa54b13 [vendor] Add magic encoding comments to all Ruby source files. 2014-03-05 21:36:11 +09:00
Laurent Sansonetti
c12dc01358 remove magic encoding comments from template files (which are not needed) 2014-03-05 21:36:00 +09:00
Laurent Sansonetti
a7c839173c add magic encoding comments to all ruby source files 2014-03-05 21:35:20 +09:00
Eloy Durán
4e13d3706a Replace all pretty quotes with ASCII. 2014-03-05 21:34:21 +09:00
Watson
404a28da83 2.23 2014-03-05 12:03:15 +09:00
Eloy Durán
4dc18fd908 [iOS] Make flick UI test helper work on iOS 7.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-437
2014-03-05 12:01:25 +09:00
Eloy Durán
ae42b81e85 [sim] Fail when launching in BG but not having configured the app.
Otherwise this leads to an ugly ‘failed to start’ error.
2014-03-05 12:01:05 +09:00
Eloy Durán
e66855f885 [iOS] The iPad 2 (non-retina) also has iOS 7 support. 2014-03-05 12:00:59 +09:00
Eloy Durán
8a6d6796d2 [CodeSign] Another small cleanup. 2014-03-05 12:00:48 +09:00
Eloy Durán
851687cc92 [CodeSign] Cleanup. 2014-03-05 12:00:43 +09:00
Eloy Durán
e0477f8795 [CodeSign] Improve cert finding by only checking codesign identities.
Also move the logic out into a separate util module.

Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-399.
2014-03-05 11:59:56 +09:00
Eloy Durán
91b528f451 [rake/iOS] Fail when trying to use retina=false on iOS >= 7. 2014-03-05 11:58:38 +09:00
Eloy Durán
c200211b4e [rake/iOS] Fail when targeting a sim SDK older than deployment target. 2014-03-05 11:58:29 +09:00
Eloy Durán
8279b3f667 [Command] Use Motion::Util::Version to compare. 2014-03-05 11:58:23 +09:00
Eloy Durán
f2ba642a51 [Version] Add a util class that can be used to compare versions. 2014-03-05 11:57:43 +09:00
Eloy Durán
2725ead68c [Vendor] When an explicit BS file exists in lib root, use that.
This allows a lib author to override the BS metadata by (manually)
creating and supplying one, which seems to be the case with Joybox.
2014-03-05 11:52:12 +09:00
Eloy Durán
437634448b [Vendor] Cannot reuse opts[:cflags] if it has been deleted before. 2014-03-05 11:51:42 +09:00
Eloy Durán
11decd3257 [Command] Improve create --template description to include URLs. 2014-03-05 11:51:13 +09:00
Eloy Durán
78b27cd05c [Command] Disable template validation for now.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-418.
2014-03-05 11:50:52 +09:00
Eloy Durán
f45fd90038 [REPL/OSX] Make it work when codesigned and sandboxed.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-410
2014-03-05 11:49:22 +09:00
Joffrey JAFFEUX
2d5b2a8176 [command] Fix error where a local was used instead of an ivar 2014-03-05 11:48:31 +09:00
Mark Rickert
a0200271d4 Add gemspec to Gemfile for gem template.
Since spec.add_development_dependency "rake" is already in the gemspec template, we don't need it in the Gemfile and we should always defer to the gemspec for our dependencies except for advanced use cases.
2014-02-16 09:05:19 -05:00
Eloy Durán
86faa6291d Merge pull request #150 from markrickert/gitignore-dat
Ignore .dat* files on new projects.
2014-02-10 16:08:39 +01:00
Mark Rickert
3f2a8dafc7 Ignore .dat* files on new projects. 2014-02-10 09:45:03 -05:00
Watson
820a908cc3 2.22 2014-02-04 07:52:12 +09:00
Eloy Durán
a4fe35523c [Vendor] BS files for :xcode projects are collected differently than :static. 2014-02-04 07:50:56 +09:00
Eloy Durán
95b61b826c [Vendor] Always explicitely create the dir where the BS will be stored.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-417.
2014-02-04 07:50:47 +09:00
Watson
37b33fa108 2.21 2014-02-03 22:24:34 +09:00
Eloy Durán
1ce7f3eb81 [Vendor] BS files should also go in the platform specific build dir.
* Because they can be different per platform.
* Because this way they are deleted as part of `rake clean.

Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-416
2014-02-03 22:22:59 +09:00
Eloy Durán
7f50c3cde5 [iOS Config] Retrieve DTSDKBuild & DTPlatformBuild programatically.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-415.
2014-02-03 22:22:51 +09:00
Eloy Durán
80da9e62c1 [Vendor] Use MACOSX_DEPLOYMENT_TARGET when building for OS X.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-412
2014-02-03 22:22:00 +09:00
Watson
568e1c0b35 fix a bug which `motion update --cache-version=X' is broken
http://hipbyte.myjetbrains.com/youtrack/issue/RM-408
2014-01-29 11:44:43 +09:00
Watson
c296e46c2e 2.20 2014-01-28 21:53:48 +09:00
Eloy Durán
2784658520 [Command] Add ANSI support to CLI and use bold to prettify output. 2014-01-28 21:43:40 +09:00
Eloy Durán
f9dd827ab2 [Command] Allow gems to register templates and show in help banner.
Load available templates list as late as possible.
2014-01-28 21:43:30 +09:00