diff --git a/Gemfile.lock b/Gemfile.lock index ce05dc9..f5c9c9f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,10 +1,13 @@ GEM remote: https://rubygems.org/ specs: - rake (10.3.2) + rake (12.3.1) PLATFORMS ruby DEPENDENCIES rake + +BUNDLED WITH + 1.16.2 diff --git a/Rakefile b/Rakefile index 3ec4202..cbe643f 100644 --- a/Rakefile +++ b/Rakefile @@ -1,5 +1,7 @@ # -*- coding: utf-8 -*- $:.unshift("/Library/RubyMotion/lib") +$:.unshift("~/.rubymotion/rubymotion-templates") + require 'motion/project/template/ios' begin diff --git a/app/views/shapes_view.rb b/app/views/shapes_view.rb index 644ca03..c89c757 100644 --- a/app/views/shapes_view.rb +++ b/app/views/shapes_view.rb @@ -2,7 +2,7 @@ class ShapesView < UIButton def init super - setBackgroundColor UIColor.blackColor + backgroundColor = UIColor.blackColor # addSubview(image_view = UIImageView.new) # image_view.image = UIImage.imageNamed('title') @@ -18,7 +18,7 @@ def init self end - def animate(sender) + def animate(_) if @image_layer.opacity > 0.5 @image_layer.opacity = 0.5 @image_layer.position = [161, 235]