Laurent Sansonetti
b26c668ece
quote executable
2013-05-10 00:40:00 +09:00
Laurent Sansonetti
721c171090
add osx repl
2013-05-10 00:39:31 +09:00
Watson
eb6bdd2caa
refactor
2013-05-10 00:38:45 +09:00
Watson
730301ba57
more fix in detecting file dependencies
...
if add the constant name into @defined and @referred in #on_const_path_ref,
it might not detect dependencies.
2013-05-10 00:38:41 +09:00
Watson
6f3ef17904
make sure to create a Resources directory for mac
...
Fix the following error:
$ motion create hello --template=osx
$ cd hello
$ rm -rf resources
$ rake
Build ./build/MacOSX-10.8-Development
Compile ./app/app_delegate.rb
Compile ./app/menu.rb
Create ./build/MacOSX-10.8-Development/hello.app/Contents
Create ./build/MacOSX-10.8-Development/hello.app/Contents/MacOS
Link ./build/MacOSX-10.8-Development/hello.app/Contents/MacOS/hello
Create ./build/MacOSX-10.8-Development/hello.app/Contents/Info.plist
Create ./build/MacOSX-10.8-Development/hello.app/Contents/PkgInfo
rake aborted!
No such file or directory - ./build/MacOSX-10.8-Development/hello.app/Contents/Resources
2013-05-10 00:38:35 +09:00
Watson
3015d8cc6b
Revert "make sure to create a Resources directory for mac"
...
This reverts commit 71ed8ce9b3 .
This changing causes the following error:
% mkdir -p resources/en.lproj
% touch resources/en.lproj/InfoPlist.strings
% rake
Build ./build/iPhoneSimulator-6.1-Development
Compile ./app/app_delegate.rb
Create ./build/iPhoneSimulator-6.1-Development/tt.app
Link ./build/iPhoneSimulator-6.1-Development/tt.app/tt
Create ./build/iPhoneSimulator-6.1-Development/tt.app/Info.plist
Create ./build/iPhoneSimulator-6.1-Development/tt.app/PkgInfo
Copy ./resources/Default-568h@2x.png
Copy ./resources/en.lproj/InfoPlist.strings
rake aborted!
2013-05-10 00:38:28 +09:00
Watson
79ad1620dc
forget to add a passing argument into another build_file.call
2013-05-10 00:38:22 +09:00
Laurent Sansonetti
2cf2cf569a
more work on osx template: create empty window, add Credits.rtf file
2013-05-10 00:37:29 +09:00
Laurent Sansonetti
2ad0b54052
mark file as utf-8
2013-05-10 00:37:24 +09:00
Watson
b1298ce3e1
make sure to create a Resources directory for mac
...
Fix the following error:
$ motion create hello --template=osx
$ cd hello
$ rm -rf resources
$ rake
Build ./build/MacOSX-10.8-Development
Compile ./app/app_delegate.rb
Compile ./app/menu.rb
Create ./build/MacOSX-10.8-Development/hello.app/Contents
Create ./build/MacOSX-10.8-Development/hello.app/Contents/MacOS
Link ./build/MacOSX-10.8-Development/hello.app/Contents/MacOS/hello
Create ./build/MacOSX-10.8-Development/hello.app/Contents/Info.plist
Create ./build/MacOSX-10.8-Development/hello.app/Contents/PkgInfo
rake aborted!
No such file or directory - ./build/MacOSX-10.8-Development/hello.app/Contents/Resources
2013-05-10 00:37:12 +09:00
Watson
bac8d6bf34
pass the build directory as block parameter
...
Proc does not introduce a variable as Proc's scope.
When build process is worked in parallel, the value of the variable is updated in the another build process.
2013-05-10 00:37:05 +09:00
Laurent Sansonetti
e371666883
add menu
2013-05-10 00:36:04 +09:00
Laurent Sansonetti
a9df39ba8f
fix projects containing space characters
2013-05-10 00:35:56 +09:00
Laurent Sansonetti
740d17002e
add debug mode
2013-05-10 00:35:44 +09:00
Watson
66d77079df
fix a bug in detecting file dependencies which cannot detect dependency when declare class/module with like "class XXX::YYY"
...
use @defined :
module XXX::YYY
...
end
use @referred :
class ZZZ
include XXX::YYY
...
end
add the value to @defined and @referred both,
because build system will cut the cyclic references.
2013-05-10 00:35:37 +09:00
Watson
b90bb19a0d
change the build directory for outside files of project
...
This changing will introduce:
1. When run 'rake clean', the object files of gem is not removed. To reduce the time when rebuild the project.
2. Across multiple projects that use the same gem, this changing will share the object files.
3. When update RubyMotion with 'motion update', it will remove the object files to clean up disk space.
2013-05-10 00:34:57 +09:00
Watson
8c54931662
use i386 binary Ruby when build app for ARM
2013-05-10 00:34:33 +09:00
Laurent Sansonetti
06c18cc293
mac port
2013-05-10 00:33:46 +09:00
Watson
7a16c3cdf1
change the template directory path
2013-05-10 00:33:01 +09:00
Watson
4f944cfa6b
add a feature which support the template
2013-05-10 00:32:31 +09:00
Watson
ddacbaf655
fix a bug in build system where it would cause "stack level too deep" error
...
http://hipbyte.myjetbrains.com/youtrack/issue/RM-112
1) specify file dependencies in Rakefile with `app.files_dependencies' by user.
2) detect file dependencies by build system
When merge 1) and 2), it might cause a cyclic references.
So, we will use 1) to detect cyclic references.
2013-04-23 14:33:55 +09:00
Watson
aae72ad1ed
display error message if does not exist spec files in spec directory
...
http://hipbyte.myjetbrains.com/youtrack/issue/RM-90
2013-04-13 14:26:24 +09:00
Watson
b05fb73345
Merge pull request #82 from clayallsopp/file_paths
...
Change file dependency regex to accept absolute paths
2013-04-05 00:23:40 -07:00
Clay Allsopp
0a85c61702
change file dependency regex to accept absolute paths
2013-04-04 19:24:49 -07:00
Watson
1b643606e6
1.35
2013-04-04 22:27:52 +09:00
Watson
bb524139d5
fix a bug in build system which does not load all depended frameworks
...
http://hipbyte.myjetbrains.com/youtrack/issue/RM-97
2013-04-02 12:27:26 +09:00
Watson
2793334edf
pass "-ObjC" flags to linker to load Objective-C class when "-force_load" is not used
2013-03-16 14:44:48 +09:00
Watson
630d88043f
add :force_load option into configuration of `app.vendor_project'
...
There are 3rd-party library which would trigger "duplicate symbol" error at compile time.
It will be useful in such libraries when specify false in :force_load option.
When specify true in this option (by default), it behaves in the same manner as before.
Usage:
app.vendor_project('vendor/OAuth2Client',
:static,
:force_load => false,
:headers_dir => 'Sources/OAuth2Client'
....
2013-03-15 11:26:53 +09:00
Watson
bb1c4fb6be
Merge pull request #71 from kastiglione/succinct-spec-files
...
Make _spec suffix optional when running `rake spec files=...`
2013-03-13 21:28:22 -07:00
Watson
91d74f4240
Merge pull request #68 from thefrontiergroup/display_exception_messages
...
Include exception message in bacon error output
2013-03-13 21:22:11 -07:00
Dave Lee
6cccf4a46f
Make _spec suffix optional when running rake spec files=...
...
With this change, the following invocations are equivalent:
rake spec files=integration_spec
and
rake spec files=integration
2013-03-13 11:46:34 -06:00
Watson
25e9564c14
1.34
2013-03-01 23:24:57 +09:00
Watson
410830eee3
fix a bug in build system which updated resource files are not copied
2013-02-28 09:13:20 +09:00
Watson
66ed8c8940
1.33
2013-02-27 13:21:15 +09:00
Watson
faeeba7416
slightly delay the start of spec execution
...
Because #tap method does not work when use a high performance machine
2013-02-26 14:42:42 +09:00
Watson
55d12615e1
fix a bug which iOS simulator will be re-launched at every time with `rake'
...
RM-52 Should not re-launch iOS simulator at every time with `rake'
2013-02-26 13:33:24 +09:00
Watson
8b81937286
fix a bug which does not launch iOS simulator when `app.xcode_dir' is specified a path other than the '/Applications' folder
2013-02-26 11:21:33 +09:00
Watson
08e416091e
`app.resources_dir' will be deprecated
2013-02-26 11:21:26 +09:00
Watson
dd0b9cdf29
fix a bug which cannot build an app when `app. xcode_dir' contains spaces
...
RM-40 Can't build with spaces in xcode.app path
2013-02-26 11:21:20 +09:00
Watson
0ef5821b90
fix variable name
2013-02-26 11:20:52 +09:00
Watson
41b9699a78
add a feature to support multiple resource directories
...
change `app.resources_dir' to accept an Array too, like:
app.resources_dir = ["resources", "vendor/GoogleMaps.framework/Resources"]
2013-02-26 11:20:45 +09:00
Watson
6be5131e74
add a feature which creates Default-568h@2x.png' in resource directory by motion create' in order to support 4-inch screen by default
2013-02-22 08:44:21 +09:00
Steven Webb
554a8eaa9c
Include exception message in bacon error output
2013-02-20 12:20:39 +08:00
Watson
25ee0b4cb4
convert a string encoding which retrieved from filesystem
...
The OSX filesystem uses UTF8-MAC as file name encoding.
Its encoding has a character that does not match UTF-8 encoding.
(ex, "が" in Japanese)
2013-02-10 02:39:47 +09:00
Watson
1abba61042
slightly delay the start of spec execution
...
Because #tap method does not work when use a high performance machine
2013-02-08 09:49:03 +09:00
Watson
995eec05a0
1.32
2013-01-29 10:28:08 +09:00
Watson
f229919f51
1.31
2013-01-25 16:08:52 +09:00
Watson
c394a46535
add app/pixate_code.rb into the default .gitignore file because it contains the Pixate license key
2013-01-25 16:07:31 +09:00
Watson
9ae3cf4949
remove a `#' if it is included in first character in tap's description because its description will handled as comment in tap format
2013-01-25 16:07:24 +09:00
Watson
95caf2d020
add a message of `describe' to description of tap's output
...
## before
not ok 1 - has one window: FAILED
## after
not ok 1 - Application 'test' has one window: FAILED
2013-01-25 16:07:17 +09:00