Commit Graph

126 Commits

Author SHA1 Message Date
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
Watson
c546b3a5c1 install yard gem (v0.8.3) 2012-11-29 01:23:12 +09:00
Watson
47faf53967 fix the load path to load ripper for Ruby 1.8 2012-11-29 01:08:20 +09:00
Watson
c66af19e68 change the default value in detect_dependencies 2012-11-29 01:06:14 +09:00
Watson
6206fc6093 add detect_dependencies variable to resolve file dependencies 2012-11-29 01:06:09 +09:00
Watson
e52efa1366 use ripper gem if use Ruby18 2012-11-29 01:06:04 +09:00
Watson
9a6546a409 add ripper gem for Ruby18 2012-11-29 01:05:59 +09:00
Watson
f52c9ca1c1 add the feature to resolve file dependencies 2012-11-29 01:05:55 +09:00
Laurent Sansonetti
17339949ab Merge pull request #52 from denofevil/rubymine_formatter
Added formatter for RubyMine tests runner
2012-11-26 07:42:39 -08:00
Dennis Ushakov
dda6a8993e Added formatter for RubyMine tests runner 2012-11-15 14:06:19 +04:00
Laurent Sansonetti
4f9718b27e 1.27 2012-10-26 14:24:42 +02:00
Laurent Sansonetti
56a705ac7f fix UIAutomation bridge 2012-10-26 14:24:35 +02:00
Watson
744b8fbcf3 add some temporary files and project files into .gitignore (Thanks, @esummers) 2012-10-26 00:27:38 +09:00
Watson
aed34af709 Merge pull request #45 from markrickert/gitignore_addition
Add .DS_Store to project created .gitignore
2012-10-25 08:09:10 -07:00
Laurent Sansonetti
0d8902946d 1.26 2012-10-11 15:59:07 +02:00
Laurent Sansonetti
e065e26b2f follow changes in the sim launcher 2012-10-11 15:58:53 +02:00
Laurent Sansonetti
902110ec44 pass the app.framework_search_paths variable to the compiler 2012-10-11 15:58:39 +02:00
Laurent Sansonetti
33e070a2bb fix a bug in c66f4fa 2012-10-09 14:19:37 +02:00
Laurent Sansonetti
522a042bda define RUBYMOTION_VERSION 2012-10-09 14:18:57 +02:00
Mark Rickert
ad2a1108d2 Add .DS_Store to project created .gitignore 2012-10-08 21:05:04 -04:00
Laurent Sansonetti
c66f4faeff use a different build directory when building vendored Xcode projects 2012-10-09 00:59:27 +02:00
Laurent Sansonetti
c17fb27a77 Merge pull request #43 from ddrscott/patch-1
Update lib/motion/project/config.rb
2012-10-08 04:30:21 -07:00
Laurent Sansonetti
be09e5fdda introduce 'spec:device' rake task to run the specs on the device, fixed 'static' rake task for iOS 6, fixed a bug in the last commit 2012-10-08 13:29:19 +02:00
Laurent Sansonetti
22d82caccc fix the DT* settings of Info.plist for iOS 6.0 2012-10-02 23:03:04 +02:00
Scott Pierce
009e62a2b4 Update lib/motion/project/config.rb
Need extra parens to fix order of operations. Alternative could have been changing the "and" to "&&", but I don't know the coding guidelines.
2012-09-30 07:11:34 -05:00
Laurent Sansonetti
c889ac4008 1.25 2012-09-26 17:28:57 +02:00
Laurent Sansonetti
fca66307a7 pass app.deployment_target to xcodebuild 2012-09-26 16:16:20 +02:00
Laurent Sansonetti
c832971ec0 fixed the Info.plist generation to take into account app-level settings defined after a call to app.info_plist 2012-09-26 16:16:00 +02:00
Laurent Sansonetti
a69ada84f0 fix the 'nm' line to quote the object file 2012-09-26 16:14:05 +02:00
Laurent Sansonetti
d6f37b045a Merge pull request #39 from andreas/master
Allow get-task-allow to be false
2012-09-26 07:09:44 -07:00
Laurent Sansonetti
e59b8cc4f2 Merge pull request #37 from denofevil/no_stty_when_not_on_tty
do not launch stty when stdout is not tty to prevent error message
2012-09-26 07:07:03 -07:00
andreas
85dbad5db6 get-task-allow can be set to false.
Previously, get-task-allow could not be set to false due to the "||="-operator. This is very unhandy e.g. for TestFlight.
2012-09-21 16:46:42 +02:00