Merge branch 'master' of github.com:lrz/RubyMotion

This commit is contained in:
Laurent Sansonetti
2013-04-05 19:52:06 +02:00
4 changed files with 33 additions and 2 deletions

5
NEWS
View File

@@ -1,3 +1,8 @@
= RubyMotion 1.36 =
* Improved detecting file dependencies to accept absolute paths. Thanks to
Clay Allsopp for the patch (pull request #82).
= RubyMotion 1.35 =
* Added support for string constants defined in 3rd-party header files

View File

@@ -1,4 +1,4 @@
PROJECT_VERSION = '1.35'
PROJECT_VERSION = '1.36'
PLATFORMS_DIR = (ENV['PLATFORMS_DIR'] || '/Applications/Xcode.app/Contents/Developer/Platforms')
sim_sdks = Dir.glob(File.join(PLATFORMS_DIR, 'iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator*.sdk')).map do |path|

View File

@@ -276,7 +276,7 @@ EOS
def files_dependencies(deps_hash)
res_path = lambda do |x|
path = /^\./.match(x) ? x : File.join('.', x)
path = /^\.?\//.match(x) ? x : File.join('.', x)
unless @files.flatten.include?(path)
App.fail "Can't resolve dependency `#{x}'"
end

View File

@@ -0,0 +1,26 @@
class Base
def bar(args)
$spec_result << args.first
if args = args[1..-1]
obj = Foo.new
obj.bar(args)
end
end
end
class Foo < Base
def bar(args)
$spec_result << "a"
super
end
end
$spec_result = []
describe "'super'" do
it "should work when calls inherited class method in super method" do
obj = Foo.new
obj.bar(%w{1 2 3})
$spec_result.should == ["a", "1", "a", "2", "a", "3", "a", nil]
end
end