Commit Graph

157 Commits

Author SHA1 Message Date
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
Watson
72cde58da0 fix a tap format in `rake spec' to output the each test numbers instead of the total number
## before
$ rake spec output=tap
ok 34  - works with Assets
ok 34  - works with hash
…
ok 34  - should work
1..34
# 34 tests, 61 assertions, 0 failures, 0 errors

## after
$ rake spec output=tap
ok 1   - works with Assets
ok 2   - works with hash
…
ok 34  - should work
1..34
# 34 tests, 61 assertions, 0 failures, 0 errors
2013-01-25 16:07:11 +09:00
Watson
930de8070f fix a bug in `rake spec' which it would raise an ArgumentError when use "it" without block
A following spec will raise an ArgumentError.

	describe "Application 'test'" do
	  it "has one window"
	end

`instance_eval' will pass a receiver object into block.
When use a block which created by lambda, it should accept a receiver object as block parameter.

	b = lambda { self.upcase }
	"test".instance_eval(&b) #=> wrong number of arguments (1 for 0) (ArgumentError)
2013-01-25 16:07:01 +09:00
Watson
3898a9d1e7 Merge pull request #63 from anjlab/speed_up_build
Speed up build a little bit.
2013-01-22 22:07:57 -08:00
yury
d8a5e32874 Speed up build a little bit.
We use rubymotion v1.30 with new automatically detected file dependencies. We have very slow builds (about 30 secs on not cold builds) in project with only 52 ruby files.
After investigating I found that almost all build time rubymotion spend in `Motion::Project::Config#ordered_build_files` (about 24 secs).
`Array#uniq` does exactly what `orderd_build_files` is doing but much much faster.
With this change `Motion::Project::Config#ordered_build_files` takes only about 0.06 secs on my machine.
2013-01-23 00:23:51 +04:00
Watson
48e65ad64c fix a bug in detecting dependencies where it would cause build error when passed non-flat array into `app.files' 2013-01-15 23:12:09 +09:00
Watson
6cbf061bda add .idea which is RubyMine project directory into the default .gitignore file 2013-01-04 11:55:44 +09:00
Watson
e30bb53e61 add .sass-cache directory into the default .gitignore file 2013-01-04 11:55:36 +09:00
Watson
efaa93878a 1.30 2012-12-20 20:50:32 +09:00
Laurent Sansonetti
72f664f72d work around a compiler problem (time method signature) 2012-12-20 20:49:41 +09:00
Watson
e0f538c715 fix a bug which cannot detecting file dependencies when include a nesting class
This patch will fix https://gist.github.com/4160705
2012-11-29 01:27:36 +09:00
Watson
b0a32780cc 1.29 2012-11-29 01:26:12 +09:00
Watson
80570b8d02 fix a build error when app files is not passed as flat array. 2012-11-29 01:26:08 +09:00
Watson
b7d8d8421a remove cyclic dependencies to fix a `stack level too deep' 2012-11-29 01:26:05 +09:00
Watson
84922df985 fix a bug in detection dependency which ignore definition of constants
The files that contains only constants (like a configuration file) have been ignored in detection dependency.

	$ cat app/config.rb
	USER_NAME = "Watson"
	MAIL = "watson1978@gmail.com"
2012-11-29 01:26:00 +09:00
Watson
1672990b33 fix a bug that cannot be loaded ripper on Ruby18 2012-11-29 01:25:56 +09:00
Watson
b3292cbb33 1.28 2012-11-29 01:25:39 +09:00
Watson
438ed8d67e remove "Defined in:" section in `motion ri' 2012-11-29 01:24:31 +09:00