Commit Graph

551 Commits

Author SHA1 Message Date
Watson
6340ed48ed 2.27 2014-04-30 09:16:06 +09:00
Eloy Durán
380429d9a8 [test] rake spec:all now runs on all installed iOS and OS X sdks. 2014-04-30 09:14:47 +09:00
Eloy Durán
080637b5d2 Merge pull request #155 from HipByte/public
Compile `.strings` files. Closes #154.
2014-04-17 16:45:33 +02:00
Eloy Durán
07c4f8936b [builder] Also compile .strings files inside other bundles. 2014-04-17 16:39:57 +02:00
Hwee-Boon Yar
7e3ca1b929 [builder] Compile .strings resource files as binary plists.
Signed-off-by: Eloy Durán <eloy.de.enige@gmail.com>
2014-04-17 16:39:47 +02:00
Watson
506f6545f3 Revert "use a cached file dependencies in order to reduce the build time"
This reverts commit ee514286cf.

Now, detecting build order is much faster without cache by previous commit.
So, let's revert this commit.
2014-04-12 13:52:49 +09:00
Watson
0f6fe1149d more reduce the time of detecting build order. Thanks to Ignacio Piantanida for the patch.
http://hipbyte.myjetbrains.com/youtrack/issue/RM-466
2014-04-12 13:52:44 +09:00
Watson
a845f0f5cd add comment 2014-04-10 22:31:34 +09:00
Watson
85c2ba6b91 use a cached file dependencies in order to reduce the build time
http://hipbyte.myjetbrains.com/youtrack/issue/RM-466

* before
  % time rake
  ... snip ...
  rake  18.01s user 1.64s system 89% cpu 21.877 total

* after
  % time rake
  ... snip ...
  rake  2.74s user 1.41s system 119% cpu 3.460 total
2014-04-10 22:31:26 +09:00
Watson
5108850a5f memorize the calculated file dependencies. Thanks to Ignacio Piantanida for the patch.
http://hipbyte.myjetbrains.com/youtrack/issue/RM-466

* before
  % time rake
  ... snip ...
  rake  38.41s user 2.77s system 101% cpu 40.515 total

* after
  % time rake
  ... snip ...
  rake  18.01s user 1.64s system 89% cpu 21.877 total
2014-04-10 22:31:22 +09:00
Watson
c0a64ff66d fix a build error in environment which uses Ruby 1.8
http://hipbyte.myjetbrains.com/youtrack/issue/RM-463
2014-04-09 17:28:52 +09:00
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