Commit Graph

236 Commits

Author SHA1 Message Date
Watson
2ebbd0d9f8 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-12 12:05:27 +09:00
Watson
771b42c674 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:19:15 +09:00
Watson
a55a36b177 slightly delay the start of spec execution
Because #tap method does not work when use a high performance machine
2013-02-07 16:26:09 +09:00
yury
03c33372d7 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 15:13:44 +09:00
Watson
46583198af add app/pixate_code.rb into the default .gitignore file because it contains the Pixate license key 2013-01-20 17:43:36 +09:00
Watson
838ae1dee6 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-18 18:16:39 +09:00
Watson
95fb1bd32a 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-18 17:26:04 +09:00
Watson
9b273d6f82 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-18 11:52:09 +09:00
Watson
517cb186c1 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-18 11:08:43 +09:00
Watson
b69859fbdf fix a bug in detecting dependencies where it would cause build error when passed non-flat array into `app.files' 2013-01-15 15:53:25 +09:00
Watson
24fa3e1eb8 add .idea which is RubyMine project directory into the default .gitignore file 2012-12-25 10:43:49 +09:00
Watson
794c307fd1 add .sass-cache directory into the default .gitignore file 2012-12-25 10:35:00 +09:00
Laurent Sansonetti
2a8f81542d work around a compiler problem (time method signature) 2012-12-20 15:53:00 +05:30
Dennis Ushakov
716c765571 Added formatter for RubyMine tests runner 2012-11-29 00:34:31 +09:00
Watson
1132ae6ff7 fix a bug which cannot detecting file dependencies when include a nesting class
This patch will fix https://gist.github.com/4160705
2012-11-28 23:57:50 +09:00
Watson
96f39d66ea fix a build error when app files is not passed as flat array. 2012-11-17 18:18:51 +09:00
Watson
3992f8e92c remove cyclic dependencies to fix a `stack level too deep' 2012-11-17 14:28:23 +09:00
Watson
5a39c5f381 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-17 12:34:15 +09:00
Watson
40d19d655f fix a bug that cannot be loaded ripper on Ruby18 2012-11-17 08:35:27 +09:00
Watson
09e2cfef41 remove "Defined in:" section in `motion ri' 2012-11-14 16:02:29 +09:00
Watson
9320db598e install yard gem (v0.8.3) 2012-11-14 15:58:42 +09:00
Watson
7abb10940c fix the load path to load ripper for Ruby 1.8 2012-11-14 11:50:07 +09:00
Watson
2513369a65 change the default value in detect_dependencies 2012-11-11 21:01:45 +09:00
Watson
ec7f3be3f8 add detect_dependencies variable to resolve file dependencies 2012-11-11 10:02:35 +09:00
Watson
06c1b597ea use ripper gem if use Ruby18 2012-11-10 21:52:34 +09:00
Watson
6312e3226b add ripper gem for Ruby18 2012-11-10 21:51:18 +09:00
Watson
b39797250f add the feature to resolve file dependencies 2012-11-10 21:22:35 +09:00
Watson
0333964b81 add some temporary files and project files into .gitignore (Thanks, @esummers) 2012-10-26 00:42:00 +09:00
Mark Rickert
2b96f6d638 Add .DS_Store to project created .gitignore 2012-10-26 00:39:29 +09:00
Laurent Sansonetti
35dc2d239e fix passing the UIAutomation bridgesupport file to the compiler 2012-10-22 13:20:26 +02:00
Watson
a40ca882c8 please not remove my patch for framework_search_paths which added in 6c43a2807c 2012-10-11 17:23:10 +09:00
Laurent Sansonetti
3b4557a014 fix 'rake spec' to always exit() based on the return code, to workaround race conditions with the new iOS 6 simulator 2012-10-09 18:05:40 +02:00
Laurent Sansonetti
696683b104 define RUBYMOTION_VERSION 2012-10-09 14:12:31 +02:00
Watson
864c3e898c fix the build error which causes when app uses the vendor library 2012-10-09 10:02:01 +09:00
Laurent Sansonetti
35d9de09f8 build vendored xcode projects into a .build directory (to not conflict with projects who have a 'build' directory already) 2012-10-08 15:47:49 +02:00
Laurent Sansonetti
657ae69319 fix a precedence operator bug 2012-10-08 13:34:34 +02:00
Laurent Sansonetti
25cd38f010 load UIAutomation dynamically, add 'spec:device' task which runs the specs on the device 2012-10-06 16:20:02 +02:00
Laurent Sansonetti
d07c72ef49 Merge branch 'master' of github.com:lrz/RubyMotion 2012-10-06 15:49:22 +02:00
Laurent Sansonetti
a0f8ec2698 fix 'rake static' on ios 6 2012-10-06 15:46:58 +02:00
Watson
fb398bcd36 remove all dots from DTXcode value 2012-10-06 21:21:10 +09:00
Watson
6c43a2807c add framework_search_paths property 2012-10-06 19:54:13 +09:00
Laurent Sansonetti
2868fbff4e fix DT plist settings for ios 6.0 2012-10-02 23:02:16 +02:00
Laurent Sansonetti
7d1ff7173d fix gen_bridge_metadata invocation on headers whose paths contain space character 2012-09-27 13:44:40 +02:00
Laurent Sansonetti
f87379dbb5 merge contributions from github 2012-09-26 16:20:29 +02:00
Laurent Sansonetti
b68775875e fix the 'nm' invocation to quote the object path 2012-09-25 18:26:27 +02:00
Laurent Sansonetti
fe45bdc1ed pass IPHONEOS_DEPLOYMENT_TARGET=app.deployment_target to xcodebuild 2012-09-25 18:12:42 +02:00
Watson
2e0a13b126 Fixed a bug in build system. If info_plist is customized at except the setup block end, it might cause build error
ex)

Motion::Project::App.setup do |app|
  # Use `rake config' to see complete project settings.
  app.info_plist['SomeVariable'] = 'SomeValue'
  app.name = 'test_plist'
end
2012-09-25 10:52:08 +09:00
Laurent Sansonetti
b95dda68d1 only strip symbols in distribution mode (because it breaks the repl module otherwise) 2012-09-19 16:39:40 +02:00
Laurent Sansonetti
c41ffd4bd8 the build mode can now be specified using the 'mode 2012-09-19 15:09:12 +02:00
Laurent Sansonetti
15673529c2 always expand paths of object files 2012-09-18 02:29:03 +02:00